Skip to main content
Documentation for version v74

Remove member from loyalty program

Description

Removes a member from a loyalty program. Before removal, the profile is searched using the selected matching method: email, phone number, profile ID, or a custom field.

Request URL

Method: POST

https://example.com/api/v1.1/loyalty/delete_member

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abc123def456"YesAPI token
loyalty_program_idint123YesLoyalty program ID
matchingstring"email"YesProfile lookup method: email, phone, profile_id, custom
emailstring"user@example.com"Yes, if matching = emailEmail used to find the profile
phonestring"+1234567890"Yes, if matching = phonePhone number in international format
profile_idstring"profile123"Yes, if matching = profile_idProfile ID
field_namestring"user_id"Yes, if matching = customCustom field name
field_valuestring / int"123456"Yes, if matching = customCustom field value

Request example

{
"token": "abc123def456",
"loyalty_program_id": 123,
"matching": "email",
"email": "user@example.com"
}

Response example

{
"error": 0,
"error_text": "Successful operation",
"profile_id": "123456"
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text
profile_idstringID of the removed profile