Versions Compared

Key

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

Contents

Table of Contents
stylenone

Cart Structures

Item

Item

Screenshot 2024-08-07 at 15.22.25.png
Code Block
languagejson
{
    "callbackUrl": "https://euw3-staging-plk-partners-api.rbictg.com/api/v1/orders/c5412daa-f7e9-455c-9bf6-e1c1bb8d16c7/price/callback",
    "cart": {
        "menuSelections": [
            {
                "externalReferenceId": "801500",
                "id": "item_67165",
                "menuSelections": [],
                "price": {
                    "amount": 649,
                    "currency": "EUR"
                },
                "quantity": 1,
                "type": "Item"
            }
        ]
    },
    "channel": "WHITELABEL_DELIVERY",
    "fees": [],
    "id": "c5412daa-f7e9-455c-9bf6-e1c1bb8d16c7",
    "instructions": [],
    "number": "4999",
    "orderDiscounts": [],
    "serviceMode": "DELIVERY",
    "storeId": "1111"
}

Item w/ modifiers

image-20240807-132503.png
Code Block
languagejson
{
    "callbackUrl": "https://euw3-staging-plk-partners-api.rbictg.com/api/v1/orders/6e9d20f9-e3ae-47b4-87cd-3f9e3637f20a/price/callback",
    "cart": {
        "menuSelections": [
            {
                "externalReferenceId": "801500",
                "id": "item_67165",
                "menuSelections": [
                    {
                        "externalReferenceId": "940289",
                        "id": "34933841d0e7",
                        "menuSelections": [],
                        "price": {
                            "amount": 0,
                            "currency": "EUR"
                        },
                        "quantity": 1,
                        "type": "ItemOptionModifier"
                    },
                    {
                        "externalReferenceId": "940294",
                        "id": "2fb34e217cf2",
                        "menuSelections": [],
                        "price": {
                            "amount": 0,
                            "currency": "EUR"
                        },
                        "quantity": 1,
                        "type": "ItemOptionModifier"
                    }
                ],
                "price": {
                    "amount": 649,
                    "currency": "EUR"
                },
                "quantity": 1,
                "type": "Item"
            }
        ]
    },
    "channel": "WHITELABEL_DELIVERY",
    "fees": [],
    "id": "6e9d20f9-e3ae-47b4-87cd-3f9e3637f20a",
    "instructions": [],
    "number": "5498",
    "orderDiscounts": [],
    "serviceMode": "DELIVERY",
    "storeId": "7777"
}

Combo

Combo

Screenshot 2024-08-07 at 15.20.25.png
Code Block
languagejson
{
    "callbackUrl": "https://euw3-staging-plk-partners-api.rbictg.com/api/v1/orders/b1f2302b-723b-416f-bdc6-1e2f9659caaf/price/callback",
    "cart": {
        "menuSelections": [
            {
                "externalReferenceId": "940269",
                "id": "3ffc8d3e-7c67-4410-8fbd-cd1b366fbf20",
                "menuSelections": [
                    {
                        "externalReferenceId": "801500",
                        "id": "item_67165",
                        "menuSelections": [],
                        "price": {
                            "amount": 0,
                            "currency": "EUR"
                        },
                        "quantity": 1,
                        "type": "Item"
                    },
                    {
                        "externalReferenceId": "942214",
                        "id": "item_50929",
                        "menuSelections": [],
                        "price": {
                            "amount": 0,
                            "currency": "EUR"
                        },
                        "quantity": 1,
                        "type": "Item"
                    },
                    {
                        "externalReferenceId": "942215",
                        "id": "item_66018",
                        "menuSelections": [],
                        "price": {
                            "amount": 0,
                            "currency": "EUR"
                        },
                        "quantity": 1,
                        "type": "Item"
                    },
                    {
                        "externalReferenceId": "940325",
                        "id": "45adf5bb-2f3d-4c40-a735-cf59d5a661ef",
                        "menuSelections": [],
                        "price": {
                            "amount": 0,
                            "currency": "EUR"
                        },
                        "quantity": 1,
                        "type": "Item"
                    }
                ],
                "price": {
                    "amount": 849,
                    "currency": "EUR"
                },
                "quantity": 1,
                "type": "Combo"
            }
        ]
    },
    "channel": "WHITELABEL_DELIVERY",
    "fees": [],
    "id": "b1f2302b-723b-416f-bdc6-1e2f9659caaf",
    "instructions": [],
    "number": "5495",
    "orderDiscounts": [],
    "serviceMode": "DELIVERY",
    "storeId": "7777"
}

Combo with items with modifiers

image-20240807-132925.png
Code Block
languagejson
{
    "callbackUrl": "https://euw3-staging-plk-partners-api.rbictg.com/api/v1/orders/3e7b0a1b-7373-4024-8916-83057924988a/price/callback",
    "cart": {
        "menuSelections": [
            {
                "externalReferenceId": "940269",
                "id": "3ffc8d3e-7c67-4410-8fbd-cd1b366fbf20",
                "menuSelections": [
                    {
                        "externalReferenceId": "801500",
                        "id": "item_67165",
                        "menuSelections": [
                            {
                                "externalReferenceId": "940275",
                                "id": "9cbf858b2190",
                                "menuSelections": [],
                                "price": {
                                    "amount": 1000,
                                    "currency": "EUR"
                                },
                                "quantity": 1,
                                "type": "ItemOptionModifier"
                            },
                            {
                                "externalReferenceId": "940294",
                                "id": "2fb34e217cf2",
                                "menuSelections": [],
                                "price": {
                                    "amount": 0,
                                    "currency": "EUR"
                                },
                                "quantity": 1,
                                "type": "ItemOptionModifier"
                            }
                        ],
                        "price": {
                            "amount": 0,
                            "currency": "EUR"
                        },
                        "quantity": 1,
                        "type": "Item"
                    },
                    {
                        "externalReferenceId": "942214",
                        "id": "item_50929",
                        "menuSelections": [],
                        "price": {
                            "amount": 0,
                            "currency": "EUR"
                        },
                        "quantity": 1,
                        "type": "Item"
                    },
                    {
                        "externalReferenceId": "940209",
                        "id": "item_66033",
                        "menuSelections": [],
                        "price": {
                            "amount": 0,
                            "currency": "EUR"
                        },
                        "quantity": 1,
                        "type": "Item"
                    },
                    {
                        "externalReferenceId": "940325",
                        "id": "45adf5bb-2f3d-4c40-a735-cf59d5a661ef",
                        "menuSelections": [],
                        "price": {
                            "amount": 0,
                            "currency": "EUR"
                        },
                        "quantity": 1,
                        "type": "Item"
                    }
                ],
                "price": {
                    "amount": 849,
                    "currency": "EUR"
                },
                "quantity": 1,
                "type": "Combo"
            }
        ]
    }

{

Example 2 (only cart object):

Systemwide Offer

Item

image-20240319-145916.png

Currently not supported.

Combo

image-20240315-235528.png

Example 1:

Code Block
languagejson
{
    "callbackUrl": "https://euc1-staging-plk-partners-api.rbictg.com/api/v1/orders/f07c593e-0d35-4845-8509-cce96a0b0b59/price/callback",
    "cart": {
        "menuSelections": [
            {
                "externalReferenceId": "4017", # (plu-Offer) Mechanics > Vendor Configs > Partner > Constant PLU
                "id": "24f239c0-e8de-4d13-9967-bb96b8aef2b4", # Combo PLU: Mechanics > In-App Benefits > Add Item… > Combo 
                "menuSelections": [
                    {
                        "externalReferenceId": "3001001", # Vendor Configs > Partner > Constant PLU
                        "id": "74c5465d-bd85-413b-b730-e1eece111125", # product Id inside the combo
                        "menuSelections": [],
                        "price": {
                            "amount": 1995,
                            "currency": "PLN"
                        },
                        "quantity": 1,
                        "type": "Item"
                    }
                ],
                "price": {
                    "amount": 1895,
                    "currency": "PLN"
                },
                "quantity": 1,
                "type": "Offer"
            }
        ]
    },
    "channel": "WHITELABEL_IN_STORE",
    "fees": [],
    "id": "f07c593e-0d35-4845-8509-cce96a0b0b59",
    "instructions": [],
    "number": "M346",
    "serviceMode": "TAKEOUT",
    "storeId": "48002"
}

Combo w/ modifier

image-20240315-235613.pngImage Removed

Code Block
languagejson
Code Block
"cart": {
  "menuSelections": [
    {
      "callbackUrlexternalReferenceId": "8351"https://euc1-staging-plk-partners-api.rbictg.com/api/v1/orders/ea7645b5-1ce9-44c2-be77-946e3187a0fa/price/callback",
    "cart": {, // offer plu
      "id": "43b4cf07-79c9-4aff-98d1-bce9cf2d890f", //offer sanity id
           "menuSelections": [
            {
                "externalReferenceId": "40178167", // combo plu
                "id": "45808975d90a7113-71c20620-459e44d9-8809b678-3c9635c68d97743330a2f207", //combo sanity id
                "menuSelections": [
                    {
                        "externalReferenceId": "300100180003",
                        "id": "74c5465dce847c79-bd859eb5-413b4be3-b7308a1e-e1eece111125842919aa5ba0",
                        "menuSelections": [],
                        "price": {
                            "amount": 19950,
                            "currency": "PLNSAR"
                        },
                        "quantity": 1,
                        "type": "Item"
                    },
                    {
                        "externalReferenceId": "3500001142538",
                        "id": "aec9dc8a-afc1-420d-bfc4-fd7c004e6c16142538",
                        "menuSelections": [],
                            {
"price": {
                               "externalReferenceIdamount": "8002001"0,

                               "idcurrency": "406f327f8d6f",SAR"
                        },
                "menuSelections": [],       "quantity": 1,
                        "pricetype": {"Item"
                    }
               "amount": 25],
                "price": {
                    "currencyamount": "PLN"
   500, //price of the combo
                    "currency": "SAR"
      },          },
                ],
     "quantity": 1,                "price": {
                "typeamount": "ItemOptionModifier"
     100, // final price of the offer
                "currency": "SAR"
    }            },
            ],    "quantity": 1,
                "type": "Offer"
 "price": {          }
        ]
    },

Combo w/ modifier

image-20240315-235613.pngImage Added

Code Block
languagejson
{
    "amountcallbackUrl": 995"https://euc1-staging-plk-partners-api.rbictg.com/api/v1/orders/ea7645b5-1ce9-44c2-be77-946e3187a0fa/price/callback",
    "cart": {
        "menuSelections": [
            "currency": "PLN"{
                  "externalReferenceId": "4017",
      },          "id": "45808975-71c2-459e-8809-3c9635c68d97",
                "quantitymenuSelections": 1,[
                    {
   "type": "Item"                     }"externalReferenceId": "3001001",
                ],              "id": "74c5465d-bd85-413b-b730-e1eece111125",
  "price": {                     "amountmenuSelections": 1895[],
                        "currencyprice": "PLN" {
                       },     "amount": 1995,
          "quantity": 1,                 "typecurrency": "OfferPLN"
 
          }         ]     },
     "channel": "WHITELABEL_IN_STORE",     "fees": [],     "id": "ea7645b5-1ce9-44c2-be77-946e3187a0fa",       "instructionsquantity": []1,
    "number": "M349",       "serviceMode": "TAKEOUT",     "storeId": "48002" }

Promo Codes (Config Offers)

Amount discount

image-20240315-233801.pngImage Removed

image-20240315-234123.pngImage Removed

Code Block

languagejson
{
     "
callbackUrl
type": "
https://euc1-staging-plk-partners-api.rbictg.com/api/v1/orders/ec2ca2e1-f490-492d-b320-2dae80e9befa/price/callback",
Item"
       
"cart":
 
{
         
"menuSelections":
 
[
  },
          
{
          {
      
"externalReferenceId":
 
"3001001",
                 "
id
externalReferenceId": "
690f1bc2-f254-4ec6-b5be-8215ee023a6f
3500001",
                
"menuSelections":
 
[],
       "id": "aec9dc8a-afc1-420d-bfc4-fd7c004e6c16",
        
"price":
 
{
               "menuSelections": [
    
"amount":
 
1995,
                     
"currency":
 
"PLN"
 {
               
},
                 "
quantity
externalReferenceId": 
1
"8002001",
                
"type":
 
"Item"
             
},
  "id": "406f327f8d6f",
         
{
                 
"externalReferenceId":
 
"2002",
     "menuSelections": [],
           
"id":
 
"4fa240c0-d2f0-4ca3-8736-4c62e798267a",
 
#
 
Sanity
 
ID
                 "
menuSelections
price": 
[],
{
                
"price":
 
{
                   "amount": 
0
25,
                    
"currency":
 
"PLN"
               "currency": "PLN"
 
},
                 
"quantity":
 
1,
             },
   
"type": "OfferDiscount"
                
}
         
]
    "quantity": 
}
1,
    
"channel": "WHITELABEL_IN_STORE",
          
"fees":
 
[],
     
"id":
 
"ec2ca2e1-f490-492d-b320-2dae80e9befa",
     
"instructions":
 
[],
     "
number
type": "
M351",
ItemOptionModifier"
           
"orderDiscounts":
 
[
 
#
 
Amount
 
Discount
 
Specific
         
{
   }
         
"type":
 
"amount",
             
"value": 3
 ],
        
}
     
],
     
"serviceMode":
 
"TAKEOUT",
     "
storeId
price": {
"48002" }

Percentage discount

image-20240315-234432.pngImage Removed

image-20240315-234608.pngImage Removed

Code Block

languagejson
{ "callbackUrl": "https://euc1-staging-plk-partners-api.rbictg.com/api/v1/orders/390d643e-3a45-4962-972b-fb4fe8488a3c/price/callback", "cart": {
                            "amount": 995,
                            "currency": "PLN"
                        },
                        "quantity": 1,
                        "type": "Item"
                    }
                ],
                "price": {
                    "amount": 1895,
                    "currency": "PLN"
                },
                "quantity": 1,
                "type": "Offer"
            }
        ]
    },
    "channel": "WHITELABEL_IN_STORE",
    "fees": [],
    "id": "ea7645b5-1ce9-44c2-be77-946e3187a0fa",
    "instructions": [],
    "number": "M349",
    "serviceMode": "TAKEOUT",
    "storeId": "48002"
}

Promo Codes (Config Offers)

Amount discount

image-20240315-233801.pngImage Added

image-20240315-234123.pngImage Added

Code Block
languagejson
{
    "callbackUrl": "https://euc1-staging-plk-partners-api.rbictg.com/api/v1/orders/ec2ca2e1-f490-492d-b320-2dae80e9befa/price/callback",
    "cart": {
        "menuSelections": [
            {
                "externalReferenceId": "3001001",
                "id": "690f1bc2-f254-4ec6-b5be-8215ee023a6f",
                "menuSelections": [],
                "price": {
                    "amount": 1995,
                    "currency": "PLN"
                },
                "quantity": 1,
                "type": "Item"
            },
            {
                "externalReferenceId": "2002", 
                "id": "4fa240c0-d2f0-4ca3-8736-4c62e798267a", # Sanity ID
                "menuSelections": [],
                "price": {
                    "amount": 0,
                    "currency": "PLN"
                },
                "quantity": 1,
                "type": "OfferDiscount"
            }
        ]
    },
    "channel": "WHITELABEL_IN_STORE",
    "fees": [],
    "id": "ec2ca2e1-f490-492d-b320-2dae80e9befa",
    "instructions": [],
    "number": "M351",
    "orderDiscounts": [ # Amount Discount Specific
        {
            "type": "amount",
            "value": 3
        }
    ],
    "serviceMode": "TAKEOUT",
    "storeId": "48002"
}

Percentage discount

image-20240315-234432.pngImage Added

image-20240315-234608.pngImage Added

Code Block
languagejson
{
    "callbackUrl": "https://euc1-staging-plk-partners-api.rbictg.com/api/v1/orders/390d643e-3a45-4962-972b-fb4fe8488a3c/price/callback",
    "cart": {
        "menuSelections": [
            {
                "externalReferenceId": "3001001",
                "id": "690f1bc2-f254-4ec6-b5be-8215ee023a6f",
                "menuSelections": [],
                "price": {
                    "amount": 1995,
                    "currency": "PLN"
                },
                "quantity": 1,
                "type": "Item"
            },
            {
                "externalReferenceId": "2001",
                "id": "f63248d2-f817-4c2b-8591-839809341ac6",
                "menuSelections": [],
                "price": {
                    "amount": 0,
                    "currency": "PLN"
                },
                "quantity": 1,
                "type": "OfferDiscount"
            }
        ]
    },
    "channel": "WHITELABEL_IN_STORE",
    "fees": [],
    "id": "390d643e-3a45-4962-972b-fb4fe8488a3c",
    "instructions": [],
    "number": "M352",
    "orderDiscounts": [
        {
            "type": "percentage",
            "value": 20
        }
    ],
    "serviceMode": "TAKEOUT",
    "storeId": "48002"
}

Reward

Item

image-20240315-235844.pngImage Added

Example 1:

Code Block
languagejson
{
    "callbackUrl": "https://euc1-staging-plk-partners-api.rbictg.com/api/v1/orders/773c6655-a9ad-4e5b-9581-143d43c4f463/price/callback",
    "cart": {
        "menuSelections": [
            {
                "externalReferenceId": "3005019",
                "id": "31049d5a-4047-4965-8780-8ff2f37775dc",
                "menuSelections": [
                    {
                        "externalReferenceId": "3004004",
                        "id": "ba322af6-a956-4c6b-8bf2-d6fea3c351fd",
                        "menuSelections": [],
                        "price": {
                            "amount": 2495,
                            "currency": "PLN"
                        },
                        "quantity": 1,
                        "type": "Item"
                    }
                ],
                "price": {
                    "amount": 0,
                    "currency": "PLN"
                },
                "quantity": 1,
                "type": "Reward" 
            }
        ]
    },
    "channel": "WHITELABEL_IN_STORE",
    "fees": [],
    "id": "773c6655-a9ad-4e5b-9581-143d43c4f463",
    "instructions": [],
    "number": "M360",
    "orderDiscounts": [],
    "serviceMode": "TAKEOUT",
    "storeId": "48002"
}

Example 2 (only cart object):

Code Block
"cart": [
  {
    "menuSelections": [
      {
        "id": "7ee7338a-a016-47c6-aef6-3783d40c003e", // Reward Sanity id
        "externalReferenceId": "123", // Reward constant plu defined in Sanity
        "quantity": 1,
        "price": {
          "amount": 0,
          "currency": "SAR",
        }
        "type": "Reward", 
        "menuSelections": [
          {
            "externalReferenceId": "51056", // item constant plu
            "id": "item_1862", // item Sanity id
            "menuSelections": [],
            "price": {
                "amount": 2495, // normal price
                "currency": "SAR"
          },
            "quantity": 1,
            "type": "Item"
          }
        ]
      }
    ]
  }
]

Combo

image-20240316-000328.pngImage Added

Example 1:

Code Block
languagejson
{
    "callbackUrl": "https://euc1-staging-plk-partners-api.rbictg.com/api/v1/orders/1f4022f9-f825-430c-ac05-8aa6673731e2/price/callback",
    "cart": {
        "menuSelections": [
            {
                "externalReferenceId": "3005019",
                "id": "a943b901-b05c-4a02-ac34-40e7c403a214",
                "menuSelections": [
                    {
                        "externalReferenceId": "3011005",
                        "id": "074cdc86-6c51-4554-9579-ac6e1301ba58",
                        "menuSelections": [],
                        "price": {
                            "amount": 295,
                            "
menuSelections
currency": 
[
"PLN"
            
{
            },
    
"externalReferenceId": "3001001",
                    "
id
quantity": 
"690f1bc2-f254-4ec6-b5be-8215ee023a6f",
1,
                        "
menuSelections
type":
[],
 "Item"
                    },
 
"price":
 
{
                  {
  
"amount":
 
1995,
                     "
currency
externalReferenceId": "
PLN
3011005",
                
},
        "id": "074cdc86-6c51-4554-9579-ac6e1301ba58",
                        "
quantity
menuSelections": 
1,
[],
                        "
type
price": 
"Item"
{
            
},
             
{
   "amount": 295,
            
"externalReferenceId":
 
"2001",
               
"
id
currency": "
f63248d2-f817-4c2b-8591-839809341ac6",
PLN"
                
"menuSelections":
 
[],
       },
         
"price":
 
{
              "quantity": 1,
  
"amount":
 
0,
                     "
currency
type": "
PLN
Item"
                
},
    },
            
"quantity":
 
1,
       {
         
"type":
 
"OfferDiscount"
             
}
 "externalReferenceId": "3011005",
      
]
     
},
 
"channel":
 
"WHITELABEL_IN_STORE",
     
"fees":
 
[],
     "id": "
390d643e
074cdc86-
3a45
6c51-
4962
4554-
972b
9579-
fb4fe8488a3c
ac6e1301ba58",
    
"instructions": [],
              
"number":
 
"M352",
     "
orderDiscounts
menuSelections": [],
        
{
                "
type
price": 
"percentage",
{
              
"value":
 
20
         
}
    "amount": 
]
295,
        
"serviceMode":
 
"TAKEOUT",
     
"storeId":
 
"48002"
 
}

Reward

Item

image-20240315-235844.pngImage Removed

Code Block
languagejson
{     "callbackUrl": "https://euc1-staging-plk-partners-api.rbictg.com/api/v1/orders/773c6655-a9ad-4e5b-9581-143d43c4f463/price/callback",       "cartcurrency": { "PLN"
                  "menuSelections": [     },
       {                 "externalReferenceIdquantity": "3005019"1,
                 "id       "type": "31049d5a-4047-4965-8780-8ff2f37775dc",Item"
                   "menuSelections": [ },
                    {
                        "externalReferenceId": "30040043011005",
                        "id": "ba322af6074cdc86-a9566c51-4c6b4554-8bf29579-d6fea3c351fdac6e1301ba58",
                        "menuSelections": [],
                        "price": {
                            "amount": 2495295,
                            "currency": "PLN"
                        },
                        "quantity": 1,
                        "type": "Item"
                   "quantity": 1},
                    {
   "type": "Item"                     }"externalReferenceId": "3011005",
                ],        "id": "074cdc86-6c51-4554-9579-ac6e1301ba58",
       "price": {
                    "amountmenuSelections": 0[],
                    "currency": "PLN"   "price":  {
           },                 "quantityamount": 1295,
                "type": "Reward"           "currency": "PLN"
 }         ]     },     "channel": "WHITELABEL_IN_STORE",   },
 "fees": [],
    "id": "773c6655-a9ad-4e5b-9581-143d43c4f463",     "instructions": [],       "number": "M360",     "orderDiscountsquantity": []1,
     "serviceMode": "TAKEOUT",     "storeId": "48002" }

Combo

image-20240316-000328.pngImage Removed

Code Block
languagejson
{     "callbackUrl": "https://euc1-staging-plk-partners-api.rbictg.com/api/v1/orders/1f4022f9-f825-430c-ac05-8aa6673731e2/price/callback",     "carttype": {"Item"
        "menuSelections": [           }
 {                 "externalReferenceId": "3005019"],
                "idprice": "a943b901-b05c-4a02-ac34-40e7c403a214", {
                    "menuSelections": [amount": 0,
                    "currency": "PLN"
{                },
        "externalReferenceId": "3011005",       "quantity": 1,
                "idtype": "074cdc86-6c51-4554-9579-ac6e1301ba58",Reward"
            }
        ]
   "menuSelections": [] },
    "channel": "WHITELABEL_IN_STORE",
    "fees": [],
       "id": "1f4022f9-f825-430c-ac05-8aa6673731e2",
    "priceinstructions": {[],
    "number": "M361",
    "orderDiscounts": [],
    "serviceMode": "TAKEOUT",
    "storeId": "48002"
}

Example 2 (only cart object):

Code Block
"cart": {
  "amountmenuSelections": 295,[
    {
      "externalReferenceId": "8351", // reward plu
            "currency"id": "PLN"
  43b4cf07-79c9-4aff-98d1-bce9cf2d890f", //reward sanity id
        "menuSelections": [
           },  {
                      "quantity"externalReferenceId": 1"8350", // combo  plu
                    "typeid": "Item"
  43b4cf07-79c9-4aff-98d1-bce9cf2d890f", //combo sanity id
                 },"menuSelections": [
                    {
                        "externalReferenceId": "301100510059",
                        "id": "074cdc86-6c51-4554-9579-ac6e1301ba58item_1852",
                        "menuSelections": [],
                        "price": {
                            "amount": 2950,
                            "currency": "PLNSAR"
                        },
                        "quantity": 1,
                        "type": "Item"
                    },
                    {
                        "externalReferenceId": "301100580007",
                        "id": "074cdc864f99db1e-6c51128a-45544e53-9579b23b-ac6e1301ba58dffc0fedf636",
                        "menuSelections": [],
                        "price": {
                            "amount": 2950,
                            "currency": "PLNSAR"
                        },
                        "quantity": 1,
                        "type": "Item"
                    },
                    {
                        "externalReferenceId": "301100580001",
                        "id": "074cdc8616f482db-6c512f13-45544476-957988d3-ac6e1301ba58d2eec26057f3",
                        "menuSelections": [],
                        "price": {
                            "amount": 2950,
                            "currency": "PLNSAR"
                        },
                        "quantity": 1,
                        "type": "Item"
                    },
                    {
                        "externalReferenceId": "3011005141139",
                        "id": "074cdc86-6c51-4554-9579-ac6e1301ba58141139",
                        "menuSelections": [],
                        "price": {
                            "amount": 2950,
                            "currency": "PLNSAR"
                        },
                        "quantity": 1,
                        "type": "Item"
                    }
                ],
                "price": {": {
                "amount": 300, // original price of combo
                "currency": "SAR"
                 },
                 "quantity": 1,
                 "type": "Combo"
      "amount": 0,          }
          "currency": "PLN"   ],
             }, "price": {
              "quantityamount": 10, // final price of the reward
              "typecurrency": "RewardSAR"
            }  },
      ]     },
    "channelquantity": "WHITELABEL_IN_STORE"1,
    "fees": [],          "idtype": "1f4022f9-f825-430c-ac05-8aa6673731e2",Reward"
    "instructions": [],     "number": "M361", }
   "orderDiscounts": [],     "serviceMode": "TAKEOUT",
]
    "storeId": "48002"
}},

Combo with item with modifier

image-20240316-000603.png

Code Block
languagejson
{
    "callbackUrl": "https://euc1-staging-plk-partners-api.rbictg.com/api/v1/orders/1f4022f9-f825-430c-ac05-8aa6673731e2/price/callback",
    "cart": {
        "menuSelections": [
            {
                "externalReferenceId": "3005019",
                "id": "a943b901-b05c-4a02-ac34-40e7c403a214",
                "menuSelections": [
                    {
                        "externalReferenceId": "3011005",
                        "id": "074cdc86-6c51-4554-9579-ac6e1301ba58",
                        "menuSelections": [],
                        "price": {
                            "amount": 295,
                            "currency": "PLN"
                        },
                        "quantity": 1,
                        "type": "Item"
                    },
                    {
                        "externalReferenceId": "3011005",
                        "id": "074cdc86-6c51-4554-9579-ac6e1301ba58",
                        "menuSelections": [],
                        "price": {
                            "amount": 295,
                            "currency": "PLN"
                        },
                        "quantity": 1,
                        "type": "Item"
                    },
                    {
                        "externalReferenceId": "3011005",
                        "id": "074cdc86-6c51-4554-9579-ac6e1301ba58",
                        "menuSelections": [],
                        "price": {
                            "amount": 295,
                            "currency": "PLN"
                        },
                        "quantity": 1,
                        "type": "Item"
                    },
                    {
                        "externalReferenceId": "3011005",
                        "id": "074cdc86-6c51-4554-9579-ac6e1301ba58",
                        "menuSelections": [],
                        "price": {
                            "amount": 295,
                            "currency": "PLN"
                        },
                        "quantity": 1,
                        "type": "Item"
                    },
                    {
                        "externalReferenceId": "3011005",
                        "id": "074cdc86-6c51-4554-9579-ac6e1301ba58",
                        "menuSelections": [],
                        "price": {
                            "amount": 295,
                            "currency": "PLN"
                        },
                        "quantity": 1,
                        "type": "Item"
                    }
                ],
                "price": {
                    "amount": 0,
                    "currency": "PLN"
                },
                "quantity": 1,
                "type": "Reward"
            }
        ]
    },
    "channel": "WHITELABEL_IN_STORE",
    "fees": [],
    "id": "1f4022f9-f825-430c-ac05-8aa6673731e2",
    "instructions": [],
    "number": "M361",
    "orderDiscounts": [],
    "serviceMode": "TAKEOUT",
    "storeId": "48002"
}

Difference between Combo Offer and Combo

Combo Offer

image-20240319-153517.png

Sanity:

Code Block
languagejson
{
        "externalReferenceId": "4017", # This number is the Systemwide Offer Vendor Plu
        "id": "24f239c0-e8de-4d13-9967-bb96b8aef2b4", # This number is the Inner Item (ComboOffer) Sanity Id  
        "menuSelections": [
          {
            "externalReferenceId": "3001001", # This number is the ComboOffer Vendor Plu
            "id": "74c5465d-bd85-413b-b730-e1eece111125" # This is the inner Item id
            "menuSelections": [],
            "price": { "amount": 1995, "currency": "PLN" },
            "quantity": 1,
            "type": "Item"
          }
        ],
        "price": { "amount": 1895, "currency": "PLN" },
        "quantity": 1,
        "type": "Offer"
      },

Combo

image-20240319-153540.png

Sanity:

  • A. Supreme Chicken Sandwich Meal(Combo)

    • vendorConfigs > partner > 3001020

    • id > 8adbaec9-48ee-48f9-b733-04cba561c629

    • mainItem > 0ba8ec59-9f2b-4011-a5cb-9974a9c0f26f

      • vendorConfigs > partner > 3001019

Code Block
languagejson
{
        "externalReferenceId": "3001020", # This number is the Combo Vendor Plu
        "id": "8adbaec9-48ee-48f9-b733-04cba561c629", # This number is the combo Sanity Id 
        "menuSelections": [
          {
            "externalReferenceId": "3001019", # This number is the Main Item Vendor Plu
            "id": "0ba8ec59-9f2b-4011-a5cb-9974a9c0f26f", # This number is the Main Item Sanity Id
            "menuSelections": [],
            "price": { "amount": 2495, "currency": "PLN" },
            "quantity": 1,
            "type": "Item"
          },
          {
            "externalReferenceId": "3500001",
            "id": "aec9dc8a-afc1-420d-bfc4-fd7c004e6c16",
            "menuSelections": [
              {
                "externalReferenceId": "8002001",
                "id": "406f327f8d6f",
                "menuSelections": [],
                "price": { "amount": 25, "currency": "PLN" },
                "quantity": 1,
                "type": "ItemOptionModifier"
              }
            ],
            "price": { "amount": 995, "currency": "PLN" },
            "quantity": 1,
            "type": "Item"
          },
          {
            "externalReferenceId": "3010006",
            "id": "6de63121-74dd-4f6b-80b9-6283b391f2e8",
            "menuSelections": [],
            "price": { "amount": 895, "currency": "PLN" },
            "quantity": 1,
            "type": "Item"
          }
        ],
        "price": { "amount": 3295, "currency": "PLN" },
        "quantity": 1,
        "type": "Combo"
      }