Orders API - Cart Structure Examples
This page contains examples of all possible cart structures that are sent in the price webhook and get order endpoint.
Contents
- 1 Cart Structures
- 1.1 Item
- 1.1.1 Item
- 1.1.2 Item with modifiers
- 1.2 Combo
- 1.2.1 Combo
- 1.2.2 Combo with items with modifiers
- 1.3 Offer
- 1.3.1 Item
- 1.3.2 Combo
- 1.3.3 Bundle (combo with 3 burger items)
- 1.4 Offer Discount
- 1.4.1 Amount cart discount
- 1.4.2 Percentage cart discount
- 1.4.3 Amount Product Discount
- 1.4.4 Percentage Product Discount
- 1.5 Reward
- 1.5.1 Item
- 1.5.2 Item with modifier
- 1.5.3 Combo
- 1.5.4 Combo with item with modifier
- 1.6 Reward Discount
- 1.6.1 Amount cart discount
- 1.6.2 Percentage cart discount
- 1.6.3 Amount Product Discount
- 1.6.4 Percentage Product Discount
- 1.1 Item
Cart Structures
Item | |
---|---|
Item |
"callbackUrl": "https://euw3-staging-bk-partners-api.rbictg.com/api/v1/orders/8ba76472-c1c7-4585-bfe8-be35dc884ff8/price/callback",
"cart": {
"menuSelections": [
{
"externalReferenceId": "946417", // Item PLU
"id": "item_68399",
"menuSelections": [],
"price": {
"amount": 675,
"currency": "EUR"
},
"quantity": 1,
"type": "Item"
}
]
},
"channel": "WHITELABEL_DELIVERY",
"fees": [
{
"total": {
"amount": 19,
"currency": "EUR"
},
"type": "BAG_FEE"
}
],
"id": "8ba76472-c1c7-4585-bfe8-be35dc884ff8",
"instructions": [],
"number": "2647",
"orderDiscounts": [],
"serviceMode": "DELIVERY",
"storeId": "1111"
|
Item with modifiers | {
"callbackUrl":"https://euw3-staging-bk-partners-api.rbictg.com/api/v1/orders/73bcecac-671e-4960-89ef-867c74be2554/price/callback",
"cart":{
"menuSelections":[
{
"externalReferenceId":"521289", // Item PLU
"id":"item_18638",
"menuSelections":[
{
"externalReferenceId":"503370", // Modifier PLU
"id":"db3447ccd50b",
"menuSelections":[
],
"price":{
"amount":0,
"currency":"EUR"
},
"quantity":1,
"type":"ItemOptionModifier"
},
{
"externalReferenceId":"503378",
"id":"5a5eadaff04a",
"menuSelections":[
],
"price":{
"amount":0,
"currency":"EUR"
},
"quantity":1,
"type":"ItemOptionModifier"
}
],
"price":{
"amount":625,
"currency":"EUR"
},
"quantity":1,
"type":"Item"
}
]
},
"channel":"WHITELABEL_DELIVERY",
"fees":[
{
"total":{
"amount":19,
"currency":"EUR"
},
"type":"BAG_FEE"
}
],
"id":"73bcecac-671e-4960-89ef-867c74be2554",
"instructions":[
],
"number":"2645",
"orderDiscounts":[
],
"serviceMode":"DELIVERY",
"storeId":"1111"
} |
Combo | |
---|---|
Combo | "callbackUrl": "https://euw3-staging-bk-partners-api.rbictg.com/api/v1/orders/0f4c860b-e7dc-4d92-b66b-fd478d6e7c1e/price/callback",
"cart": {
"menuSelections": [
{
"externalReferenceId": "946420", // Combo PLU
"id": "a2a04696-8554-4902-b25f-2ea3185ec62f",
"menuSelections": [
{
"externalReferenceId": "946417", // Main item PLU (CBK)
"id": "item_68399",
"menuSelections": [],
"price": {
"amount": 0,
"currency": "EUR"
},
"quantity": 1,
"type": "Item"
},
{
"externalReferenceId": "942258", // Fries PLU
"id": "item_11126",
"menuSelections": [],
"price": {
"amount": 0,
"currency": "EUR"
},
"quantity": 1,
"type": "Item"
},
{
"externalReferenceId": "527646", // Drinks PLU
"id": "9aac0a46-5a73-431d-937c-8848ca01ac86",
"menuSelections": [],
"price": {
"amount": 0,
"currency": "EUR"
},
"quantity": 1,
"type": "Item"
}
],
"price": {
"amount": 875,
"currency": "EUR"
},
"quantity": 1,
"type": "Combo"
}
]
},
"channel": "WHITELABEL_DELIVERY",
"fees": [
{
"total": {
"amount": 19,
"currency": "EUR"
},
"type": "BAG_FEE"
}
],
"id": "0f4c860b-e7dc-4d92-b66b-fd478d6e7c1e",
"instructions": [],
"number": "2650",
"orderDiscounts": [],
"serviceMode": "DELIVERY",
"storeId": "1111" |
Combo with items with modifiers | "callbackUrl": "https://euw3-staging-bk-partners-api.rbictg.com/api/v1/orders/22cbe98a-6894-418b-a0a7-ba0f884137dd/price/callback",
"cart": {
"menuSelections": [
{
"externalReferenceId": "946420", // Combo PLU
"id": "a2a04696-8554-4902-b25f-2ea3185ec62f",
"menuSelections": [
{
"externalReferenceId": "946417", // Main item PLU (CBK)
"id": "item_68399",
"menuSelections": [
{
"externalReferenceId": "517752", // Modifider PLU (Extra crispy onion)
"id": "a68cd77ceea8",
"menuSelections": [],
"price": {
"amount": 0,
"currency": "EUR"
},
"quantity": 1,
"type": "ItemOptionModifier"
},
{
"externalReferenceId": "946440", // Modifier PLU (No CBK sauce)
"id": "31d9607b0597",
"menuSelections": [],
"price": {
"amount": 0,
"currency": "EUR"
},
"quantity": 1,
"type": "ItemOptionModifier"
},
{
"externalReferenceId": "517754", // Modifier PLU (No bacon)
"id": "ad442d20bcb2",
"menuSelections": [],
"price": {
"amount": 0,
"currency": "EUR"
},
"quantity": 1,
"type": "ItemOptionModifier"
}
],
"price": {
"amount": 0,
"currency": "EUR"
},
"quantity": 1,
"type": "Item"
},
{
"externalReferenceId": "942258", // Fries PLU
"id": "item_11126",
"menuSelections": [],
"price": {
"amount": 0,
"currency": "EUR"
},
"quantity": 1,
"type": "Item"
},
{
"externalReferenceId": "527646", // Drink PLU
"id": "9aac0a46-5a73-431d-937c-8848ca01ac86",
"menuSelections": [],
"price": {
"amount": 0,
"currency": "EUR"
},
"quantity": 1,
"type": "Item"
}
],
"price": {
"amount": 875,
"currency": "EUR"
},
"quantity": 1,
"type": "Combo"
}
]
},
"channel": "WHITELABEL_DELIVERY",
"fees": [
{
"total": {
"amount": 19,
"currency": "EUR"
},
"type": "BAG_FEE"
}
],
"id": "22cbe98a-6894-418b-a0a7-ba0f884137dd",
"instructions": [],
"number": "2653",
"orderDiscounts": [],
"serviceMode": "DELIVERY",
"storeId": "1111" |
Offer | |
---|---|
Item | {
"cart": {
"menuSelections": [
{
"externalReferenceId": "949076",
"id": "0f243b17-0f10-47af-8c06-591fc517c479",
"menuSelections": [
{
"externalReferenceId": "942240",
"id": "6de50707-76b1-4eec-a073-fc08e53b02d9",
"menuSelections": [],
"price": {
"amount": 199, // price of the item
"currency": "EUR"
},
"quantity": 1,
"type": "Item"
}
],
"name": "Nuggets x5",
"price": {
"amount": 99, // price of the offer
"currency": "EUR"
},
"quantity": 1,
"type": "Offer"
}
]
}
} |
Combo | {
"callbackUrl": "https://euw3-staging-bk-partners-api.rbictg.com/api/v1/orders/64922a77-fad2-4f66-b7d3-c2b0e2bfbac7/price/callback",
"number": "7394",
"fees": [
{
"total": {
"amount": 48,
"currency": "EUR"
},
"type": "BAG_FEE"
}
],
"serviceMode": "DRIVE_THRU",
"channel": "WHITELABEL_IN_STORE",
"id": "64922a77-fad2-4f66-b7d3-c2b0e2bfbac7",
"storeId": "12349",
"cart": {
"menuSelections": [
{
"externalReferenceId": "948920",
"quantity": 1,
"menuSelections": [
{
"externalReferenceId": "948920",
"quantity": 1,
"menuSelections": [
{
"externalReferenceId": "560014",
"quantity": 2,
"price": {
"amount": 0,
"currency": "EUR"
},
"id": "367953b0-cbf0-42ab-a08c-88f4da49584d",
"type": "Item"
}
],
"price": {
"amount": 550,
"currency": "EUR"
},
"id": "9430f9bb-dce8-4740-82f0-b44780c4454d",
"type": "Combo"
}
],
"price": {
"amount": 550,
"currency": "EUR"
},
"id": "0bfad3b8-a1da-4356-af14-a9b1e8b91da3",
"type": "Offer"
}
]
}
} |
Bundle (combo with 3 burger items)An example of this type of bundle offer are markets that would like to sell an 3 for 2 offer where they sell 3 burgers for the price of 2. | "cart": {
"menuSelections": [
{
"externalReferenceId": "503660",
"quantity": 1,
"menuSelections": [
{
"externalReferenceId": "502552",
"quantity": 1,
"price": {
"amount": 0,
"currency": "EUR"
},
"id": "item_11175",
"type": "Item"
},
{
"externalReferenceId": "942235",
"quantity": 1,
"price": {
"amount": 0,
"currency": "EUR"
},
"id": "item_11119",
"type": "Item"
},
{
"externalReferenceId": "527646",
"quantity": 1,
"price": {
"amount": 0,
"currency": "EUR"
},
"id": "9aac0a46-5a73-431d-937c-8848ca01ac86",
"type": "Item"
}
],
"price": {
"amount": 1095,
"currency": "EUR"
},
"id": "474a9687-4d59-475b-a828-8273909a0246",
"type": "Combo"
},
{
"externalReferenceId": "946420",
"quantity": 1,
"menuSelections": [
{
"externalReferenceId": "946417",
"quantity": 1,
"price": {
"amount": 0,
"currency": "EUR"
},
"id": "item_68399",
"type": "Item"
},
{
"externalReferenceId": "942258",
"quantity": 1,
"price": {
"amount": 0,
"currency": "EUR"
},
"id": "item_11126",
"type": "Item"
},
{
"externalReferenceId": "527647",
"quantity": 1,
"price": {
"amount": 0,
"currency": "EUR"
},
"id": "996e0571-aad8-479d-88fa-22e097e97214",
"type": "Item"
}
],
"price": {
"amount": 975,
"currency": "EUR"
},
"id": "a2a04696-8554-4902-b25f-2ea3185ec62f",
"type": "Combo"
},
{
"externalReferenceId": "949319",
"quantity": 1,
"menuSelections": [
{
"externalReferenceId": "502633",
"quantity": 1,
"price": {
"amount": 745,
"currency": "EUR"
},
"id": "item_11107",
"type": "Item"
}
],
"price": {
"amount": 0,
"currency": "EUR"
},
"id": "efa3f856-681b-4baf-909b-b466fe2967ec",
"type": "Offer"
}
]
}, |
Offer Discount | |
---|---|
Amount cart discount
| {
"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": "Offer"
}
]
},
"channel": "WHITELABEL_IN_STORE",
"fees": [],
"id": "ec2ca2e1-f490-492d-b320-2dae80e9befa",
"instructions": [],
"number": "M351",
"orderDiscounts": [ # Amount Discount Specific
{
"type": "amount",
"value": 300
}
],
"serviceMode": "TAKEOUT",
"storeId": "48002"
} Note: the cart discount can be also sent with a |
Percentage cart discount
| {
"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": "Offer"
}
]
},
"channel": "WHITELABEL_IN_STORE",
"fees": [],
"id": "390d643e-3a45-4962-972b-fb4fe8488a3c",
"instructions": [],
"number": "M352",
"orderDiscounts": [
{
"type": "percentage",
"value": 20
}
],
"serviceMode": "TAKEOUT",
"storeId": "48002"
} Note: the cart discount can be also sent with a |
Amount Product Discount |
{
"callbackUrl": "https://euw3-staging-bk-partners-api.rbictg.com/api/v1/orders/ed50be10-cf7c-4b1c-8bb1-0c2625cbf3be/price/callback",
"number": "5821",
"fees": [
{
"total": {
"amount": 19,
"currency": "EUR"
},
"type": "BAG_FEE"
}
],
"serviceMode": "DELIVERY",
"channel": "WHITELABEL_DELIVERY",
"id": "ed50be10-cf7c-4b1c-8bb1-0c2625cbf3be",
"orderDiscounts": [
{
"plu": "502617",
"type": "amount",
"value": 300
}
],
"storeId": "12349",
"cart": {
"menuSelections": [
{
"externalReferenceId": "502617",
"quantity": 1,
"menuSelections": [
{
"externalReferenceId": "502617",
"quantity": 1,
"menuSelections": [
{
"externalReferenceId": "502633",
"quantity": 1,
"price": {
"amount": 0,
"currency": "EUR"
},
"id": "item_11107",
"type": "Item"
},
{
"externalReferenceId": "510382",
"quantity": 1,
"price": {
"amount": 0,
"currency": "EUR"
},
"id": "item_11126",
"type": "Item"
},
{
"externalReferenceId": "502942",
"quantity": 1,
"price": {
"amount": 0,
"currency": "EUR"
},
"id": "d7954be7-9533-4dd3-a44d-36d2f9906f9d",
"type": "Item"
}
],
"price": {
"amount": 895,
"currency": "EUR"
},
"id": "a2e73fd9-5f3d-4afc-9585-43ebd7bbc6dc",
"type": "Combo"
}
],
"price": {
"amount": 895,
"currency": "EUR"
},
"id": "08e4ccf5-23fc-4bc7-a800-a7703e7228c6",
"type": "Offer"
}
]
}
} |
Percentage Product Discount | {
"number": "5821",
"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/ed50be10-cf7c-4b1c-8bb1-0c2625cbf3be/price/callback",
"id": "ed50be10-cf7c-4b1c-8bb1-0c2625cbf3be",
"orderDiscounts": [
{
"plu": "502617",
"type": "percentage",
"value": 20
}
],
"storeId": "12349",
"cart": {
"menuSelections": [
{
"externalReferenceId": "502617",
"quantity": 1,
"menuSelections": [
{
"externalReferenceId": "502633",
"quantity": 1,
"price": {
"amount": 0,
"currency": "EUR"
},
"id": "item_11107",
"type": "Item"
}
],
"price": {
"amount": 875,
"currency": "EUR"
},
"id": "a2e73fd9-5f3d-4afc-9585-43ebd7bbc6dc",
"type": "Offer"
}
]
}
} |
Reward | |
---|---|
Item
| Example 1: {
"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"
} |
Item with modifier | "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
| {
"callbackUrl": "https://euw3-staging-bk-partners-api.rbictg.com/api/v1/orders/0ac26327-9e7b-4a48-8708-1b16a559e206/price/callback",
"number": "7270",
"fees": [
{
"total": {
"amount": 48,
"currency": "EUR"
},
"type": "BAG_FEE"
}
],
"serviceMode": "DRIVE_THRU",
"channel": "WHITELABEL_IN_STORE",
"id": "0ac26327-9e7b-4a48-8708-1b16a559e206",
"storeId": "12349",
"cart": {
"menuSelections": [
{
"externalReferenceId": "948351",
"quantity": 1,
"menuSelections": [
{
"externalReferenceId": "502617",
"quantity": 1,
"menuSelections": [
{
"externalReferenceId": "502633",
"quantity": 1,
"price": {
"amount": 0,
"currency": "EUR"
},
"id": "item_11107",
"type": "Item"
},
{
"externalReferenceId": "510382",
"quantity": 1,
"price": {
"amount": 0,
"currency": "EUR"
},
"id": "item_11126",
"type": "Item"
},
{
"externalReferenceId": "948092",
"quantity": 1,
"price": {
"amount": 100,
"currency": "EUR"
},
"id": "3fee6218-93d5-41c5-b94e-de927041a0fa",
"type": "Item"
}
],
"price": {
"amount": 915,
"currency": "EUR"
},
"id": "a2e73fd9-5f3d-4afc-9585-43ebd7bbc6dc",
"type": "Combo"
}
],
"price": {
"amount": 750,
"currency": "EUR"
},
"id": "024f9096-e3ee-45fc-8f76-d75e272ff9e9",
"type": "Reward"
}
]
}
} |
Combo with item with modifier
| {
"payload": {
"number": "5848",
"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/15c3dbe1-5165-404b-8858-088239d14014/price/callback",
"id": "15c3dbe1-5165-404b-8858-088239d14014",
"storeId": "12349",
"cart": {
"menuSelections": [
{
"externalReferenceId": "948351",
"quantity": 1,
"menuSelections": [
{
"externalReferenceId": "502617",
"quantity": 1,
"menuSelections": [
{
"externalReferenceId": "502633",
"quantity": 1,
"menuSelections": [
{
"externalReferenceId": "528232",
"quantity": 1,
"price": {
"amount": 90,
"currency": "EUR"
},
"id": "8ba0df7b35df",
"type": "ItemOptionModifier"
}
],
"price": {
"amount": 0,
"currency": "EUR"
},
"id": "item_11107",
"type": "Item"
},
{
"externalReferenceId": "942258",
"quantity": 1,
"price": {
"amount": 0,
"currency": "EUR"
},
"id": "item_11126",
"type": "Item"
},
{
"externalReferenceId": "527646",
"quantity": 1,
"price": {
"amount": 0,
"currency": "EUR"
},
"id": "9aac0a46-5a73-431d-937c-8848ca01ac86",
"type": "Item"
}
],
"price": {
"amount": 875,
"currency": "EUR"
},
"id": "a2e73fd9-5f3d-4afc-9585-43ebd7bbc6dc",
"type": "Combo"
}
],
"price": {
"amount": 450,
"currency": "EUR"
},
"id": "024f9096-e3ee-45fc-8f76-d75e272ff9e9",
"type": "Reward"
}
]
}
}
} |
Reward Discount | |
---|---|
Amount cart discount
| {
"number": "5803",
"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/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"
}
{
"externalReferenceId": "2001",
"id": "08e4ccf5-23fc-4bc7-a800-a7703e7228c6",
"menuSelections": [],
"price": {
"amount": 0,
"currency": "EUR"
},
"quantity": 1,
"type": "Reward"
}
]
}
} Note: the cart discount can be also sent with a |
Percentage cart discount
| {
"number": "5803",
"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/60c1983c-8cbc-4aa8-9486-c55fa78566f5/price/callback",
"id": "60c1983c-8cbc-4aa8-9486-c55fa78566f5",
"orderDiscounts": [
{
"type": "percentage",
"value": 20
}
],
"storeId": "12349",
"cart": {
"menuSelections": [
{
"externalReferenceId": "502633",
"quantity": 1,
"price": {
"amount": 645,
"currency": "EUR"
},
"id": "item_11107",
"type": "Item"
}
{
"externalReferenceId": "2001",
"id": "08e4ccf5-23fc-4bc7-a800-a7703e7228c6",
"menuSelections": [],
"price": {
"amount": 0,
"currency": "EUR"
},
"quantity": 1,
"type": "Reward"
}
]
}
} Note: the cart discount can be also sent with a |
Amount Product Discount | {
"number": "5821",
"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/ed50be10-cf7c-4b1c-8bb1-0c2625cbf3be/price/callback",
"id": "ed50be10-cf7c-4b1c-8bb1-0c2625cbf3be",
"orderDiscounts": [
{
"plu": "502617", // this is the product plu of the discount to be applied
"type": "amount",
"value": 30
}
],
"storeId": "12349",
"cart": {
"menuSelections": [
{
"externalReferenceId": "502617",
"quantity": 1,
"menuSelections": [
{
"externalReferenceId": "502633",
"quantity": 1,
"price": {
"amount": 0,
"currency": "EUR"
},
"id": "item_11107",
"type": "Item"
},
{
"externalReferenceId": "942258",
"quantity": 1,
"price": {
"amount": 0,
"currency": "EUR"
},
"id": "item_11126",
"type": "Item"
},
{
"externalReferenceId": "527646",
"quantity": 1,
"price": {
"amount": 0,
"currency": "EUR"
},
"id": "9aac0a46-5a73-431d-937c-8848ca01ac86",
"type": "Item"
}
],
"price": {
"amount": 875,
"currency": "EUR"
},
"id": "a2e73fd9-5f3d-4afc-9585-43ebd7bbc6dc",
"type": "Reward"
}
]
}
} |
Percentage Product Discount | {
"number": "5821",
"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/ed50be10-cf7c-4b1c-8bb1-0c2625cbf3be/price/callback",
"id": "ed50be10-cf7c-4b1c-8bb1-0c2625cbf3be",
"orderDiscounts": [
{
"plu": "502617", // this is the product plu of the discount to be applied
"type": "percentage",
"value": 20
}
],
"storeId": "12349",
"cart": {
"menuSelections": [
{
"externalReferenceId": "502617",
"quantity": 1,
"menuSelections": [
{
"externalReferenceId": "502633",
"quantity": 1,
"price": {
"amount": 0,
"currency": "EUR"
},
"id": "item_11107",
"type": "Item"
},
{
"externalReferenceId": "942258",
"quantity": 1,
"price": {
"amount": 0,
"currency": "EUR"
},
"id": "item_11126",
"type": "Item"
},
{
"externalReferenceId": "527646",
"quantity": 1,
"price": {
"amount": 0,
"currency": "EUR"
},
"id": "9aac0a46-5a73-431d-937c-8848ca01ac86",
"type": "Item"
}
],
"price": {
"amount": 875,
"currency": "EUR"
},
"id": "a2e73fd9-5f3d-4afc-9585-43ebd7bbc6dc",
"type": "Reward"
}
]
}
} |