Loyalty
Storefront REST API endpoints related to Okendo Loyalty. Both unauthenticated and after customer authentication.
Pre-Requisites
Okendo Partner ID
Terminology
Recommended Usage
Program Enrolment
Unauthenticated
The unique identifier for the store. Available on the Okendo integration settings page.
API version header
A list of earning rules
A list of earning rules
The unique identifier for the store. Available on the Okendo integration settings page.
Country code for localisation
Language code for localisation
Currency code for localisation
API version header
A list of redemption rules
A list of redemption rules
The unique identifier for the store. Available on the Okendo integration settings page.
API version header
The VIP program details
The VIP program details
The unique identifier for the store. Available on the Okendo integration settings page.
API version header
A list of FAQ items
A list of FAQ items
The unique identifier for the store. Available on the Okendo integration settings page.
API version header
Legal policies information
Legal policies information
The unique identifier for the store. Available on the Okendo integration settings page.
API version header
Login successful
Login successful
Customer Authenticated
JWT token for authenticated customer
API version header
Customer details retrieved successfully
Unauthorized - Invalid or missing authentication token
Customer not found
Conflict - Unable to load customer data
JWT token for authenticated customer
API version header
The channel through which the customer is enrolling into the loyalty program
Version of legal policies accepted by the customer. To fetch the legal policies to display and their version, call the GET /stores/{subscriberId}/loyalty/legal_policies endpoint.
Customer activated successfully
Bad Request - Invalid customer identifier or subscriber ID
Unauthorized - Invalid or missing authentication token
Forbidden - Customer blocked, loyalty feature missing, or access denied
Not Found - Loyalty customer not found
Internal Server Error - Failed to activate customer
JWT token for authenticated customer
API version header
Earning rules retrieved successfully
Unauthorized - Invalid or missing authentication token
Customer or subscriber not found
JWT token for authenticated customer
The unique identifier for the earning rule to trigger
API version header
Earning rule triggered successfully
Bad request - Invalid earning rule or customer
Unauthorized - Invalid or missing authentication token
Forbidden - Customer not enrolled or invalid earning rule type
Earning rule not found or inactive
JWT token for authenticated customer
API version header
The day of the month, from 1 to 31.
The month of the year, from 1 to 12.
Successfully updated customer birthday.
Bad Request - Invalid birthday provided.
Not Found - Customer or subscriber not found.
No content
JWT token for authenticated customer
Language code for localization
enCountry code for localization
usCurrency code for localization
USDAPI version header
Redemption rules retrieved successfully
Unauthorized - Invalid or missing authentication token
Customer or subscriber not found
JWT token for authenticated customer
API version header
The unique identifier of the redemption rule to use
Points redeemed successfully
Bad request - Invalid redemption rule or request
Unauthorized - Invalid or missing authentication token
Forbidden - Customer not enrolled, insufficient points, or ineligible for rule
Customer not found
Unprocessable entity - Currency exchange mismatch
JWT token for authenticated customer
Maximum number of transactions to return
25Token for pagination to get the next page of results
Field and direction to order results by
date descPossible values: API version header
Loyalty transactions retrieved successfully
Unauthorized - Invalid or missing authentication token
JWT token for authenticated customer
API version header
Customer spend retrieved successfully
Unauthorized - Invalid or missing authentication token
Forbidden - Loyalty program not launched or customer not enrolled
Customer not found
Loyalty x Referrals
JWT token for authenticated customer
API version header
The email of the person being referred to the loyalty program
The Referral Sender ID of the loyalty member. This can be found in the response from the Get Customer Details authenticated endpoint.
Successfully sent referral request.
Bad Request - Unable to create referral.
No content
JWT token for authenticated customer
Token for pagination to get the next page of results
API version header
Referral history retrieved successfully
Referral history retrieved successfully
JWT token for authenticated customer
API version header
Referral count retrieved successfully
Referral count retrieved successfully
Last updated
