...
Expected Response Payload when LD-EMAIL Flag is ON and Identifier IS Email OR OTP:
Code Block |
---|
{
"balances": [
{
"amount": 14464,
"currency": "points"
}
],
"loyaltyUser": {
"created": "2021-08-10T12:18:39.180Z",
"id": "4711fc2a-3a8f-414f-a9e7-44dd5231dca7",
"name": "Farhan",
"email": "example@domain.com"
},
"order": [
{
"productId": "Reward PLU",
"incentiveId": "Sanity ID of Reward"
"quantity": 1,
"price": 0,
"productType": "reward",
"referenceId": "00", // unique line id
},
{
"productId": "Offer PLU",
"incentiveId": "Sanity ID of Offer"
"quantity": 1,
"productType": "offer",
"referenceId": "00", // unique line id
},
],
"transactionId": "f4190848-169d-4c69-9f53-f916318c432b" // uuid of the loyalty order/transaction
} |
Expected Error Response:
Code Block |
---|
{
"code": "IDENTIFIER_TYPE_DISABLED",
"details": {
"channel": "RESTAURANT",
"identifier": "__REDACTED__",
"identifierType": "EMAIL_ADDRESS",
"module": "LOYALTY_IN_STORE_TRANSACTION",
"posSystem": "ncr",
"posVendor": "NCR",
"requestPayload": {
"identifier": "__REDACTED__",
"posVendor": {
"posType": "ncr",
"storeId": "13253",
"terminal": "0",
"operator": "300",
"transactionId": "000000000257"
}
},
"serviceMode": "TAKEOUT",
"step": "IDENTIFY_SHORT_CODE",
"storeId": "13253"
},
"message": "Identifier type is valid but is not enabled for use"
} |
Transaction Validation (POST)
...