...
Code Block |
---|
"cart": { "menuSelections": [ { "externalReferenceId": "8351", // reward plu "id": "43b4cf07-79c9-4aff-98d1-bce9cf2d890f", //reward sanity id "menuSelections": [ { "externalReferenceId": "8350", // combo plu "id": "43b4cf07-79c9-4aff-98d1-bce9cf2d890f", //combo sanity id "menuSelections": [ { "externalReferenceId": "10059", "id": "item_1852", "menuSelections": [], "price": { "amount": 0, "currency": "SAR" }, "quantity": 1, "type": "Item" }, { "externalReferenceId": "80007", "id": "4f99db1e-128a-4e53-b23b-dffc0fedf636", "menuSelections": [], "price": { "amount": 0, "currency": "SAR" }, "quantity": 1, "type": "Item" }, { "externalReferenceId": "80001", "id": "16f482db-2f13-4476-88d3-d2eec26057f3", "menuSelections": [], "price": { "amount": 0, "currency": "SAR" }, "quantity": 1, "type": "Item" }, { "externalReferenceId": "141139", "id": "141139", "menuSelections": [], "price": { "amount": 0, "currency": "SAR" }, "quantity": 1, "type": "Item" } ], "price": { "amount": 300, // original price of combo "currency": "SAR" }, "quantity": 1, "type": "Combo" } ], "price": { "amount": 0, // final price of the reward "currency": "SAR" }, "quantity": 1, "type": "Reward" } ] }, |
...
Reward with a
...
cart discount
Code Block |
---|
"cartpayload": { "menuSelectionsnumber": ["5803", {"fees": [ "externalReferenceId": "8351", // offer{ plu "id": "43b4cf07-79c9-4aff-98d1-bce9cf2d890f", //offer sanity id "total": { "menuSelections": [ "amount": 19, { "externalReferenceIdcurrency": "8167EUR", // combo plu }, "id": "d90a7113-0620-44d9-b678-743330a2f207", //combo sanity id "type": "BAG_FEE" } ], "serviceMode": "DELIVERY", "channel": "WHITELABEL_DELIVERY", "callbackUrl": "https://euw3-staging-bk-partners-api.rbictg.com/api/v1/orders/60c1983c-8cbc-4aa8-9486-c55fa78566f5/price/callback", "id": "60c1983c-8cbc-4aa8-9486-c55fa78566f5", "orderDiscounts": [ { "type": "amount", "value": 200 } ], "storeId": "12349", "cart": { "menuSelections": [ { "externalReferenceId": "502633", "quantity": 1, "price": { "amount": 645, "currency": "EUR" }, "id": "item_11107", "type": "Item" } ] } } |
Reward with a product discount
Code Block |
---|
{
"payload": {
"number": "5807",
"fees": [
{
"total": {
"amount": 19,
"currency": "EUR"
},
"type": "BAG_FEE"
}
],
"serviceMode": "DELIVERY",
"channel": "WHITELABEL_DELIVERY",
"callbackUrl": "https://euw3-staging-bk-partners-api.rbictg.com/api/v1/orders/781f28e9-d6bb-4c8e-9ea6-e65a2e7c3764/price/callback",
"id": "781f28e9-d6bb-4c8e-9ea6-e65a2e7c3764",
"orderDiscounts": [
{
"plu": "948348",
"type": "percentage",
"value": 50
}
],
"storeId": "12349",
"cart": {
"menuSelections": [
{
"externalReferenceId": "948348",
"quantity": 1,
"menuSelections": [
{
"externalReferenceId": "502633",
"quantity": 1,
"price": {
"amount": 0,
"currency": "EUR"
},
"id": "item_11107",
"type": "Item"
}
],
"price": {
"amount": 645,
"currency": "EUR"
},
"id": "fbdead97-5acb-4d1c-a5fe-5794ece61aaa",
"type": "Reward"
}
]
}
}
} |
Offer with a combo
Code Block |
---|
"cart": {
"menuSelections": [
{
"externalReferenceId": "8351", // offer plu
"id": "43b4cf07-79c9-4aff-98d1-bce9cf2d890f", //offer sanity id
"menuSelections": [
{
"externalReferenceId": "8167", // combo plu
"id": "d90a7113-0620-44d9-b678-743330a2f207", //combo sanity id
"menuSelections": [
{
"externalReferenceId": "80003",
"id": "ce847c79-9eb5-4be3-8a1e-842919aa5ba0",
"menuSelections": [],
"price": {
"amount": 0,
"currency": "SAR"
},
"quantity": 1,
"type": "Item"
},
{
"externalReferenceId": "142538",
"id": "142538",
"menuSelections": [],
"price": {
"amount": 0,
"currency": "SAR"
},
"quantity": 1,
"type": "Item"
}
],
"price": {
"amount": 500, //price of the combo
"currency": "SAR"
},
],
"price": {
"amount": 100, // final price of the offer
"currency": "SAR"
},
"quantity": 1,
"type": "Offer"
}
]
}, |
Offer with a picker
Code Block |
---|
"cart": { "menuSelections": [ { "externalReferenceId": "8351", // offer plu "id": "43b4cf07-79c9-4aff-98d1-bce9cf2d890f", //offer sanity id "menuSelections": [ { "externalReferenceId": "8168", //combo plu "id": "3318d2c2-99d3-40f9-92d2-1798d9c5e987", //combo sanity id "menuSelections": [ { "externalReferenceId": "20001", "id": "item_61936", "menuSelections": [], "price": { "amount": 0, "currency": "SAR" }, "quantity": 1, "type": "Item" }, { "externalReferenceId": "80002", "id": "865a632f-e2f7-4e2b-8fcc-9281aa3f5868", "menuSelections": [], "price": { "amount": 0, "currency": "SAR" }, "quantity": 1, "type": "Item" }, { "externalReferenceId": "80008", "id": "04462c22-bf58-4eee-842a-213e3d17a072", "menuSelections": [], "price": { "amount": 0, "currency": "SAR" }, "quantity": 1, "type": "Item" }, { "externalReferenceId": "142538", "id": "142538", "menuSelections": [], "price": { "amount": 0, "currency": "SAR" }, "quantity": 1, "menuSelectionstype": [ "Item" } { ], "externalReferenceId": "80003", "price": { "idamount": "ce847c79-9eb5-4be3-8a1e-842919aa5ba0"500, //price of the combo "menuSelectionscurrency": [],"SAR" }, "price": { ], "price": { "amount": 0, "amount": 100, // final price of the offer "currency": "SAR" }, "quantity": 1, "type": "ItemOffer" }, ] }, |
Offer with a cart discount
Code Block |
---|
{ "payload": { "number": "5814", "fees": [ "externalReferenceId": "142538", { "idtotal": "142538", { "menuSelectionsamount": []19, "currency": "EUR" "price": { }, "amounttype": 0,"BAG_FEE" } ], "currencyserviceMode": "SARDELIVERY", "channel": "WHITELABEL_DELIVERY", }"callbackUrl": "https://euw3-staging-bk-partners-api.rbictg.com/api/v1/orders/6d66a02e-810f-478f-bf0d-b69bfcb56d51/price/callback", "id": "6d66a02e-810f-478f-bf0d-b69bfcb56d51", "orderDiscounts": [ "quantity": 1, { "type": "Itempercentage", "value": 20 } } ], "storeId": "12349", "pricecart": { "menuSelections": [ "amount": 500, //price of the combo { "currencyexternalReferenceId": "SAR502633", }, "quantity": 1, ], "price": { "price": { "amount": 100645, // final price of the offer "currency": "SAREUR" }, "quantityid": 1"item_11107", "type": "OfferItem" } ] }, |
Offer with a picker
Code Block |
---|
"cart": { } "menuSelections": [ { } } |
Offer with a product discount
Code Block |
---|
{ "externalReferenceIdpayload": "8351", // offer plu{ "idnumber": "43b4cf07-79c9-4aff-98d1-bce9cf2d890f5821", //offer sanity id "menuSelectionsfees": [ { "externalReferenceIdtotal": "8168", //combo plu{ "idamount": "3318d2c2-99d3-40f9-92d2-1798d9c5e987", //combo sanity id 19, "menuSelections": [ "currency": "EUR" { }, "externalReferenceIdtype": "20001",BAG_FEE" } ], "idserviceMode": "item_61936DELIVERY", "channel": "WHITELABEL_DELIVERY", "menuSelections": []"callbackUrl": "https://euw3-staging-bk-partners-api.rbictg.com/api/v1/orders/ed50be10-cf7c-4b1c-8bb1-0c2625cbf3be/price/callback", "id": "ed50be10-cf7c-4b1c-8bb1-0c2625cbf3be", "price"orderDiscounts": {[ { "amountplu": 0"502617", "type": "percentage", "currencyvalue": "SAR"20 } ], }, "storeId": "12349", "cart": { "quantity": 1, "menuSelections": [ { "type": "Item" }"externalReferenceId": "502617", { "quantity": 1, "menuSelections": [ "externalReferenceId": "80002", { "id": "865a632f-e2f7-4e2b-8fcc-9281aa3f5868", "menuSelectionsexternalReferenceId": [],"502633", "pricequantity": {1, "amountprice": 0, { "currency": "SAR" "amount": 0, }, "quantitycurrency": 1,"EUR" "type": "Item" }, }, "id": "item_11107", { "externalReferenceIdtype": "80008Item", }, "id": "04462c22-bf58-4eee-842a-213e3d17a072", { "menuSelections": [], "priceexternalReferenceId": {"942258", "amountquantity": 01, "currencyprice": "SAR" { },"amount": 0, "quantity": 1, "currency": "EUR" "type": "Item" }, }, "id": "item_11126", { "externalReferenceIdtype": "142538Item", }, "id": "142538", { "menuSelections": [], "priceexternalReferenceId": {"527646", "amountquantity": 01, "currencyprice": "SAR"{ }, "amount": 0, "quantity": 1, "typecurrency": "ItemEUR" } }, ], "priceid": { "9aac0a46-5a73-431d-937c-8848ca01ac86", "amount": 500, //price of the combo "type": "Item" "currency": "SAR" } }, ], ], "price": { "amount": 100875, // final price of the offer "currency": "SAREUR" }, "quantityid": 1,"a2e73fd9-5f3d-4afc-9585-43ebd7bbc6dc", "type": "Offer" } ] }, } } } |