Deleting a Program Membership
Delete a program membership to remove any PII tied to the membership.
Deleting Program Memberships
To delete a program membership, you can make a DELETE
request to the /v2/program-memberships/:program_membership_id
endpoint.
Request Parameters
program_membership_id
: Route parameter, the ID of the program membership
Example Request
curl -X DELETE 'https://loyalty.hang.xyz/partner-api/v2/program-memberships/membership_id_1' \
-H 'X-API-Key: YOUR_API_KEY'
Response
If successful, the API will return a 200 OK status along with the following message.
Example Response
{
"message": "Program membership successfully deleted"
}
Error Handling
If the API encounters an error, a relevant error message will be returned to guide you through the troubleshooting process.
PreviousUpdating Program Memberships for Existing UsersNextRecord Activities on a Program Membership
Last updated