...
Code Block |
---|
{ "balances": [ { "amount": 14464, "currency": "points" } ], "eligibleDiscounts": [ { "details": { "displayName": "20% off order", "discountValue": 20, "subtype": "PERCENTAGE_DISCOUNT or AMOUNT_DISCOUNT", "type": "offer" or "reward" }, "incentiveId": "$sanityIncentiveId", "productId": "$incentivePlu", "referenceId": "$incentiveLoyaltyId" } ], "loyaltyUser": { "created": "2021-08-10T12:18:39.180Z", "id": "$loyaltyUserId", "name": "$loyaltyUserName" }, "order": [], "transactionId": "$loyaltyTransactionId" } |
Transaction Update
If a customer guest includes a discount discounts in its their order, then the POS or kiosk devices must send an appliedDiscounts
field when calling the Loyalty API v1 - Update endpoint to commit a Loyalty transaction with a status of CLAIMED
. The appliedDiscounts
field is used to specify that the discount has actually been applied.
...