...
Request Format
Endpoint
PUT /loyalty/v2/changestatusstatus
Headers
Bearer token in JWT format as specified in /wiki/spaces/IN/pages/3739288100.
...
Response Format
Success response body
balances
: object that indicates loyalty balance of the user's accountamount
this QR code was pre-selected with rewards, then this number already has those loyalty points temporarily deducted from total user’s loyalty points balance.points
<number>: this represents the number of loyalty points the user has after the change of status is complete. Ifcurrency
<string>: this represents the currency the above amount. Normally set to "points".order
: an array that includes objects with the below fields for each product that is in the order basket.productId
<string>: PLU of the product that was pre-selected in the app. This can be an offer or a reward.quantity
<number>: the amount of the above product that is in the loyalty order.price
<number>: the price of the productproductType
<string>: the type of product. In this case it would either beREWARD
orOFFER
referenceId
<string>: unique line ID of the product
the order changes to a status of "CLAIMED" this is the final point balance of the guest after the order is completed. If the order changes to a status of "VOID" this is the final point balance after the order has been cancelled and guest loyalty points reversed.
pointsEarned
<number>: this represents the number of loyalty points the user has earned with this change of status. If the order changes to a status of "CLAIMED" this is the total number of points that were earned in this order. If the order changes to a status of "VOID" this is the total number of points that were earned when the guest’s loyalty points were reversed.pointsRedeemed
<number>: this represents the number of loyalty points the user has redeemed with this change of status. If the order changes to a status of "CLAIMED" this is the final number of points that were deducted / burned in this order. If the order changes to a status of "VOID" this is the final number of points that were deducted from the user balance after the cancellation of the order is complete.
Success response example
Code Block |
---|
{ "balancespoints": [ { "amount": 14464, "currencypointsEarned": "points" } ]50, "orderpointsRedeemed": [ { "productId": "2244", "quantity": 1, "price": 0, "productType": "REWARD", "referenceId": "01", }, { "productId": "6688", "quantity": 1, "price": 500, "productType": "OFFER", "referenceId": "02", }, ]750, } |
Error responses
Info |
---|
All error responses use the standard https://rbictg.atlassian.net/wiki/spaces/RDP/pages/4231725617/Loyalty+API+v1+-+Error+Responses?atl_f=content-tree format. |
...