...
Code Block |
---|
{ "channel": "Restaurant", "created": "2021-05-04T13:39:47Z", "loyaltyId": "$loyaltyUserId", "serviceMode": "$serviceMode", "status": "CLAIMED", "transactionDetails": { "appliedDiscounts": [ { "details": { "displayName": "20% off order", "discountValue": 20, "subtype": "PERCENTAGE_DISCOUNT or AMOUNT_DISCOUNT", "type": "offer" or "reward" }, "incentiveId": 1b97c0c1-2a03-4b5c-be0d-2470fbed5696 //"$sanityIncentiveId", "productId": 702 //"$incentivePlu", "referenceId": "$incentiveLoyaltyId316d4390-e17b-4f1b-aa43-c44c4d6c8c53 //"$incentiveLoyaltyEngineId" } ], "currency": "USD", "order": [ { "nameincentiveId": "med whopper combo1b97c0c1-2a03-4b5c-be0d-2470fbed5696", "price": 4.000, "productId": "$plu702", //offer plu of discount offer "productType": "combooffer", "quantity": 1, "referenceId": "3", "tax": 0 }, { "name": "med whopper", "parentReferenceId": "1" combo", "price": 04.00, "productId": "$plu", "productType": "itemcombo", "quantity": 1, "referenceId": "43", "tax": 0 }, { "name": "med frieswhopper", "parentReferenceId": "1", "price": 0, "productId": "$plu", "productType": "item", "quantity": 1, "referenceId": "54", "tax": 0 }, { "incentiveIdname": "med fries", "parentReferenceId": "$sanityRewardId1", "price": 0, "productId": "$rewardPlu$plu", "productType": "rewarditem", "quantity": 1, "referenceId": "35", "tax": 0 } , ], "payments": [ { "amount": 500, "type": "$paymentMethod", "ccToken"?: "$panToken" } ], "posVendor": { "operator": "$operatorId", "posType": "$posVendorName", "storeId": "$rbiStoreId", "supportingPos": "POS vendor name (optional field)", // vendor to return plu for "terminal": "$terminalNumber", "transactionId": "$posTransactionId" } }, "transactionId": "$loyaltyTransactionId" } |
...