For the complete documentation index, see llms.txt. This page is also available as Markdown.

Loyalty

Merchant REST API endpoints related to Okendo Loyalty

Loyalty

Retrieve basic details about a Loyalty Customer

get
Authorizations
AuthorizationstringRequired
Query parameters
loyaltyCustomerIdstring · uuidOptional

The ID of the Loyalty Customer. Note: May not be used in combination with the email parameter

emailstring · emailOptional

The email address of the Loyalty Customer. Note: May not be used in combination with the loyaltyCustomerId parameter

Example: email@example.com
Responses
401

Authentication credentials are missing or incorrect.

No content

get/loyalty/customers

No content

List ways to earn loyalty points

get

Lists the available ways to earn loyalty points. If a Loyalty Customer is specified, this returns ways of earning and amounts tailored to that customer.

Authorizations
AuthorizationstringRequired
Query parameters
loyaltyCustomerIdstring · uuidOptional

The ID of the Loyalty Customer. Note: May not be used in combination with the email parameter

emailstring · emailOptional

The email address of the Loyalty Customer. Note: May not be used in combination with the loyaltyCustomerId parameter

Example: email@example.com
Responses
401

Authentication credentials are missing or incorrect.

No content

get/loyalty/earning_rules

No content

List ways to redeem loyalty points for rewards

get

Lists the available ways to redeem loyalty points for rewards. If a Loyalty Customer is specified, this returns ways of earning and amounts tailored to that customer.

Authorizations
AuthorizationstringRequired
Query parameters
loyaltyCustomerIdstring · uuidOptional

The ID of the Loyalty Customer. Note: May not be used in combination with the email parameter

emailstring · emailOptional

The email address of the Loyalty Customer. Note: May not be used in combination with the loyaltyCustomerId parameter

Example: email@example.com
Responses
401

Authentication credentials are missing or incorrect.

No content

get/loyalty/redemption_rules

No content

List active coupons for a loyalty customer

get

Lists the active coupons for a customer. If a Loyalty Customer is specified, this returns the most recent coupons that have not been used for that customer.

Authorizations
AuthorizationstringRequired
Query parameters
limitinteger · int32Optional

A limit on the number of items returned. Between 1 and 100. Default 25.

Example: 25
lastEvaluatedstringOptional

The URL-encoded JSON object representing the cursor for the next page of results.

loyaltyCustomerIdstring · uuidOptional

The ID of the Loyalty Customer. Note: May not be used in combination with the email parameter

emailstring · emailOptional

The email address of the Loyalty Customer. Note: May not be used in combination with the loyaltyCustomerId parameter

Example: email@example.com
Responses
401

Authentication credentials are missing or incorrect.

No content

get/loyalty/coupons

No content

Adjust the points balance of a Loyalty Customer

post
Authorizations
AuthorizationstringRequired
Body
customerIdentifierone ofRequired

An object identifying the Loyalty Customer by email or loyaltyCustomerId.

or
amountinteger · int32Required

The number of points by which the customer's points balance is to be adjusted. Specify either a positive number to add points or a negative number to remove points.

Example: 10
internalReasonstringOptional

Description of the transaction which is displayed to the store owner.

Example: Gifted points due to bad shipping experience
notificationTextstringOptional

Description of the transaction which is displayed to the Customer.

Example: Gifted Points
Responses
401

Authentication credentials are missing or incorrect.

No content

post/loyalty/adjustment_transactions

No content

Trigger a custom earning rule for a Loyalty Customer

post
Authorizations
AuthorizationstringRequired
Body
actionIdstringRequired

The action ID of the custom earning rule.

Example: k2d6ne
customerIdentifierone ofRequired

An object identifying the Loyalty Customer by email or loyaltyCustomerId.

or
valuenumberOptional

The value to be multiplied with the 'points per' value. Required for Custom Points Per Value Rules.

Example: 10
Responses
401

Authentication credentials are missing or incorrect.

No content

post/loyalty/earning_transactions

No content

Redeem a redemption reward for a Loyalty Customer

post
Authorizations
AuthorizationstringRequired
Body
customerIdentifierone ofRequired

An object identifying the Loyalty Customer by email or loyaltyCustomerId.

or
redemptionRuleIdstring · uuidRequired

The unique identifier for the redemption rule.

Responses
200

The redemption transaction was successfully created and the Loyalty Customer's points balance was updated.

application/json
rewardone ofOptional
or
post/loyalty/redemption_transactions

Set a Loyalty Customer's minimum VIP Tier

post
Authorizations
AuthorizationstringRequired
Body
customerIdentifierone ofRequired

An object identifying the Loyalty Customer by email or loyaltyCustomerId.

or
minimumVipTierNamestring · nullableRequired

The name of the VIP Tier, or null to remove a previously configured minimum VIP Tier.

Example: Silver
Responses
401

Authentication credentials are missing or incorrect.

No content

post/loyalty/customer_minimum_vip_tiers

No content

Last updated