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
{
"tier": null,
"email": "john.doe@email.com",
"lastName": "Doe",
"firstName": "John",
"providerId": "68964",
"dateOfBirth": "1970-01-01T00:00:00.000000+00:00",
"phoneNumber": "+32411222333",
"lifetimePointsBalance": 0
}
{
"tier": {
"name": "Bronze",
"media": {
"url": "https://deliverect.com/image.png",
"mediaType": "image",
"requirements": {
"maxLifetimePoints": 1000,
"minLifetimePoints": 0
}
},
"description": "This is a bronze tier"
},
"email": "john.doe@email.com",
"status": "active",
"lastName": "Doe",
"firstName": "John",
"providerId": "234567",
"dateOfBirth": "1970-01-01T00:00:00.000000+00:00",
"phoneNumber": "+32411222333",
"lifetimePointsBalance": 0
}
Response examples (400)
{
"error": "no active loyalty profile found",
"http_code": 400,
"description": "no active loyalty profile found"
}