Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expected Response Payload when LD-EMAIL Flag is ON and Identifier IS emailOFF:

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 ResponseResponse Payload when LD-EMAIL Flag is ON:

Code Block
{
    "codebalances": "IDENTIFIER_TYPE_DISABLED", [
       "details": {
            "channelamount": "RESTAURANT"14464,
            "identifiercurrency": "__REDACTED__points",
        "identifierType": "EMAIL_ADDRESS",}
    ],
    "moduleloyaltyUser": "LOYALTY_IN_STORE_TRANSACTION",{
        "posSystemcreated": "ncr2021-08-10T12:18:39.180Z",
        "posVendorid": "NCR4711fc2a-3a8f-414f-a9e7-44dd5231dca7",
        "requestPayloadname": {
  "Farhan",
         "identifieremail": "__REDACTED__",example@domain.com"
    },
    "order": [
 "posVendor": {       {
            "posTypeproductId": "ncrReward PLU",
                "storeIdincentiveId": "13253",Sanity ID of Reward"
            "quantity": 1,
            "terminalprice": "0",,
            "productType": "reward",
            "operatorreferenceId": "300",00", // unique line id
        },
        {
            "transactionIdproductId": "000000000257Offer PLU",
            }
   "incentiveId": "Sanity ID of Offer"
    },         "serviceModequantity": "TAKEOUT",1,
            "stepproductType": "IDENTIFY_SHORT_CODEoffer",
            "storeIdreferenceId": "13253"00", // unique line id
        },
    ],
    "messagetransactionId": "Identifier type is valid but is not enabled for use"f4190848-169d-4c69-9f53-f916318c432b" // uuid of the loyalty order/transaction
}

Transaction Validation (POST)

...