Earning programs

Get all earning programs available to all or specific customers

List programs

get

Get a list of all earning programs.

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
200

OK

application/json
get
/rest_api/v1/earning
200

OK

Get an earning program

get

Retrieve an earning program by its ID.

Path parameters
programIdstringRequired
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
200

OK

application/json
get
/rest_api/v1/earning/{programId}
200

OK

List all earning programs available to a specific customer

get
Query parameters
customerIdstringOptional

At least one of customerId or shopifyCustomerId is required. priority

Example: {{customerId}}
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}}
stringOptional
Responses
200

OK

application/json
get
/rest_api/v1/earning-programs-by-customer
200

OK

Calculate Earning Points

post

Calculate the points a user would earn for a given activity without actually awarding the points.

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}}
Body
shopifyCustomerIdnumberOptional
sourceNamestring · enumOptionalPossible values:
Responses
200

OK

application/json
post
/rest_api/v1/earn/calc-points
200

OK

Social Interaction Points

post

Calculate and award points for a social interaction activity.

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
shopifyCustomerIdnumberRequired
earningIdnumberRequired
Responses
200

OK

application/json
post
/rest_api/v1/earn/interact-social
200

OK

Last updated