Referral

Use Rest API to retrieve the shortened link for refferal

Get referral link

post
Header parameters
X-Joy-Loyalty-App-KeystringOptionalExample: {{appKey}}
X-Joy-Loyalty-Secret-KeystringOptionalExample: {{secretKey}}
Body
emailstringRequired
Responses
200

OK

application/json
post
/rest_api/v1/referral/getLink
200

OK

Get list refer by shopify customer id

get
Path parameters
shopifyCustomerIdstringRequired
Header parameters
X-Joy-Loyalty-App-KeystringOptionalExample: {{appKey}}
X-Joy-Loyalty-Secret-KeystringOptionalExample: {{secretKey}}
Responses
200

OK

application/json
get
/rest_api/v1/referral/{shopifyCustomerId}
200

OK

Get total redeemed coupons and points earned from referrals

get
Path parameters
shopifyCustomerIdstringRequired
Header parameters
X-Joy-Loyalty-App-KeystringOptionalExample: {{appKey}}
X-Joy-Loyalty-Secret-KeystringOptionalExample: {{secretKey}}
Responses
200

OK

application/json
get
/rest_api/v1/referral/summary/{shopifyCustomerId}
200

OK

Get analytics on referral link clicks and coupon code usage

get
Query parameters
shopifyCustomerIdstringOptional

Shopify customer ID to get specific customer analytics

Example: 1234567890
Header parameters
X-Joy-Loyalty-App-KeystringOptionalExample: {{appKey}}
X-Joy-Loyalty-Secret-KeystringOptionalExample: {{secretKey}}
Responses
200

OK

application/json
get
/rest_api/v1/referral/analytics/clicks-usage
200

OK

Last updated