Public API action methods
Redeem a program
joyInstance.redeem(programId, points, variantIdSelected).then(function(resp){
console.log(resp)
});{
"customer": {
"id": "avsu0TQoHYd4Zq5TZnJg",
"shopifyCustomerId": 6858989109535,
"earnSignUp": true,
"name": "admin super",
"hasPoint": true,
"state": "enabled",
"shopId": "7vqeDbhZtyofeuH7l1ky",
"type": "member",
"acceptsMarketing": false,
"urlReferral": "https://inviteee.to/i/5Nuw",
"email": "[email protected]",
"createdAt": "2023-04-04T07:03:32.119Z",
"totalSpent": 22,
"latestActivity": "2023-06-14T04:45:55.465Z",
"point": 9999800,
"updatedAt": "2023-08-08T06:48:42.938Z",
"appliedCollectionIds": []
},
"discount": {
"id": "gid://shopify/DiscountCodeNode/1396689076511",
"code": "JOY-1YOCADBV6JMW"
}
}Generate referral link
Update date of birth
Revoke coupon
Last updated