Redeeming programs

Redeeming program get, list and redeem using custome balance.

Get redeeming program list

get

The list of redeeming program

Header parameters
X-Joy-Loyalty-App-KeystringOptional

App ID of your shop which retrieved from the Settings page

Example: {{appKey}}
X-Joy-Loyalty-Secret-KeystringOptional

Secret Key of your shop which retrieved from the Settings page

Example: {{secretKey}}
Responses
get
/rest_api/v1/spending
200

OK

Get a redeeming program

get

Get a specific redeeming program by its ID.

Path parameters
spendingProgramIdstringRequired
Header parameters
X-Joy-Loyalty-App-KeystringOptionalExample: {{appKey}}
X-Joy-Loyalty-Secret-KeystringOptionalExample: {{secretKey}}
Responses
get
/rest_api/v1/spending/{spendingProgramId}
200

OK

Redeem loyalty points

post

Redeem customer loyalty points for discounts or rewards.

Header parameters
X-Joy-Loyalty-App-KeystringOptional

App ID of your shop which is retrieved from the Settings page

Example: {{appKey}}
X-Joy-Loyalty-Secret-KeystringOptional

Secret Key of your shop which is retrieved from the Settings page

Example: {{secretKey}}
Body
customerIdstringOptional

The unique ID of the customer

programIdstringOptional

The ID of the loyalty program

localestringOptional

The locale of the customer

redeemPointnumberOptional

Number of points the customer wants to redeem

shopifyCustomerIdnumberOptional

The Shopify customer ID

sourcestringOptional

The source of the redemption request

Responses
post
/rest_api/v1/redeem
200

OK

Last updated