Create Loyalty Customer Run in API Explorer
Ask AI
POST
/loyalty/{channelLinkId}/customer
curl \
--request POST 'https://api.staging.deliverect.com/loyalty/{channelLinkId}/customer' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"email":"string","phoneNumber":"string","firstName":"string","lastName":"string","dateOfBirth":"string"}'
Request examples
{
"email": "string",
"phoneNumber": "string",
"firstName": "string",
"lastName": "string",
"dateOfBirth": "string"
}
Response examples (200)
Without tier
{
"providerId": "68964",
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@email.com",
"phoneNumber": "+32411222333",
"dateOfBirth": "1970-01-01T00:00:00.000000+00:00",
"lifetimePointsBalance": 0,
"tier": null
}
{
"providerId": "234567",
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@email.com",
"phoneNumber": "+32411222333",
"dateOfBirth": "1970-01-01T00:00:00.000000+00:00",
"lifetimePointsBalance": 0,
"status": "active",
"tier": {
"name": "Bronze",
"description": "This is a bronze tier",
"media": {
"url": "https://deliverect.com/image.png",
"mediaType": "image",
"requirements": {
"minLifetimePoints": 0,
"maxLifetimePoints": 1000
}
}
}
}
Response examples (400)
{
"error": "no active loyalty profile found",
"http_code": 400,
"description": "no active loyalty profile found"
}