Enroll a Customer in the Loyalty Program
POST/customers/:customerId/loyalty
The API allows the partner to enroll a customer in the loyalty program.
- The API allows the partner to enroll a customer in the loyalty program only if the partner is authorized.
- Enrollment requires the customer's consent, which must be included in the request. The API validates the consent and proceeds only if it is provided.
- The API is idempotent, ensuring repeated enrollment requests for the same customer do not create duplicate records.
- The API may enforce eligibility rules, such as account status, before completing the enrollment.
Upon successful enrollment, the API returns the customer’s details, including clientId
and profileId
for the loyalty application, along with the customerId
for the Paysafe embedded wallet.
Request
Responses
- 201
- 400
- 401
- 403
- 429
- 500
- 503
Created
Bad Request
Unauthorized
Forbidden
Too Many Requests
Internal Server Error
Service Unavailable