Get loyalty customer by ID
Fetch a customer by its ID. Returns a customer if found account in the loyalty service.
GET
/v1/customers/{id}authorization<token>
To get an API key, please contact us. We'll be happy to help you.
In: header
Path Parameters
idstring
Customer id
Format
uuidResponse Body
application/json
application/json
application/json
curl -X GET "http://localhost:4010/v1/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08"{
"id": "c49f95c8-8fd6-4ab5-8a01-e56c8fdd916d",
"firstName": "John",
"lastName": "Doe",
"email": "john@doe.com",
"phoneNumber": "+33601020304",
"birthDate": null,
"hasOptinSms": null,
"hasOptinEmail": null,
"externalLoyaltyId": "external-loyalty-id-12345"
}{
"code": "CUSTOMER_NOT_FOUND",
"message": "No customers found."
}{
"code": "UNEXPECTED_ERROR",
"message": "Internal server error"
}