Create Order
Order Sync API is designed to store the order details sent by the user. User can send the order details as per the menu created though the Menu Sync API. The order details saved through this API can be seen on EPOS Admin panel. Here for the understanding purpose, the API JSON Schema is divided into few parts explaining about its purpose and details.
Body
Required
Save Order Data
-
This includes the 'business_id' key. Every business registered with us has a unique random business ID, and the integration partner will have access to it.
-
In this block, the primary information of the customer who has placed the order needs to be added here.
-
This section contains multiple subsections such as details, items, payment, and discount, which hold relevant information about the order's details.
curl \
--request POST 'https://api.grafterr.com/v1/order/create' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"order":{"items":[{"plu":"item_00006","type":"item","price":3,"taxes":[{"tax_plu":"tax_00001","tax_amount":1,"tax_percentage":20}],"options":[{"data":[{"plu":"mod_00006","price":3,"taxes":[{"tax_plu":"tax_00001","tax_amount":0.3,"tax_percentage":20},{"tax_plu":"tax_00001","tax_amount":0.7,"tax_percentage":20}],"options":[],"quantity":2,"size_plu":"mod_multi_00007","split_part":"","tax_amount":1,"total-with-tax":1.99,"discount_amount":0},{"plu":"mod_00006","price":3,"taxes":[{"tax_plu":"tax_00001","tax_amount":0.2,"tax_percentage":20},{"tax_plu":"tax_00001","tax_amount":0.8,"tax_percentage":20}],"options":[],"quantity":2,"size_plu":"mod_multi_00008","split_part":"","tax_amount":1,"total-with-tax":1.99,"discount_amount":0}],"type":"modifier"}],"quantity":2,"size_plu":"item_multi_0006","tax_amount":1,"topping_style":"","total-with-tax":2,"discount_amount":0}],"details":{"order_id":"API108","total_tax":2,"order_type":"eat_in","tip_amount":2,"order_status":"placed","total_amount":12,"total_discount":10,"delivery_charges":3.5},"payment":[{"type":"cash","amount":40,"change":10,"card_type":"","payment_id":"1234567781","card_4_digit":""},{"type":"card","amount":7.5,"change":0,"card_type":"visa","payment_id":"123456773sfcsdvd","card_4_digit":"1234"}],"discount":[{"plu":"mix_and_match_0001","type":"promo_code","amount":10}]},"customer":{"name":"John Doe","email":"johndoe@email.com","phone":"01234567893","address":{"city":"edinburgh","flat":"1/15","street":"kingsknowe court","postcode":"EH14 2JS"}},"business_details":{"business_id":"123456"}}'
{
"order": {
"items": [
{
"plu": "item_00006",
"type": "item",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1,
"tax_percentage": 20
}
],
"options": [
{
"data": [
{
"plu": "mod_00006",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.3,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.7,
"tax_percentage": 20
}
],
"options": [],
"quantity": 2,
"size_plu": "mod_multi_00007",
"split_part": "",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "mod_00006",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.2,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.8,
"tax_percentage": 20
}
],
"options": [],
"quantity": 2,
"size_plu": "mod_multi_00008",
"split_part": "",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "modifier"
}
],
"quantity": 2,
"size_plu": "item_multi_0006",
"tax_amount": 1,
"topping_style": "",
"total-with-tax": 2,
"discount_amount": 0
}
],
"details": {
"order_id": "API108",
"total_tax": 2,
"order_type": "eat_in",
"tip_amount": 2,
"order_status": "placed",
"total_amount": 12,
"total_discount": 10,
"delivery_charges": 3.5
},
"payment": [
{
"type": "cash",
"amount": 40,
"change": 10,
"card_type": "",
"payment_id": "1234567781",
"card_4_digit": ""
},
{
"type": "card",
"amount": 7.5,
"change": 0,
"card_type": "visa",
"payment_id": "123456773sfcsdvd",
"card_4_digit": "1234"
}
],
"discount": [
{
"plu": "mix_and_match_0001",
"type": "promo_code",
"amount": 10
}
]
},
"customer": {
"name": "John Doe",
"email": "johndoe@email.com",
"phone": "01234567893",
"address": {
"city": "edinburgh",
"flat": "1/15",
"street": "kingsknowe court",
"postcode": "EH14 2JS"
}
},
"business_details": {
"business_id": "123456"
}
}
{
"order": {
"items": [
{
"plu": "pizaa_00009",
"type": "pizza",
"price": 4,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 2,
"tax_percentage": 20
}
],
"options": [
{
"data": [
{
"plu": "M-DE-2b36",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.1,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.9,
"tax_percentage": 20
}
],
"options": [],
"quantity": 2,
"size_plu": "M-MP-SM-5230-1",
"split_part": "",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-TH-5a07",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-17ca-1",
"split_part": "",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-HA-7af0",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-6d59-1",
"split_part": "",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-SP-0e73",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-a303-1",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "modifier"
}
],
"quantity": 2,
"size_plu": "pizza_multi_00001",
"tax_amount": 3,
"topping_style": "regular",
"total-with-tax": 2,
"discount_amount": 0
}
],
"details": {
"order_id": "API106",
"total_tax": 10,
"order_type": "eat_in",
"tip_amount": 2,
"order_status": "placed",
"total_amount": 41,
"total_discount": 5,
"delivery_charges": 3.5
},
"payment": [
{
"type": "cash",
"amount": 24.5,
"change": 2,
"card_type": "",
"payment_id": "1234567781",
"card_4_digit": ""
},
{
"type": "card",
"amount": 19,
"change": 0,
"card_type": "visa",
"payment_id": "123456773",
"card_4_digit": "4321"
}
],
"discount": [
{
"plu": "mix_and_match_0001",
"type": "promo_code",
"amount": 5
}
]
},
"customer": {
"name": "John Doe",
"email": "johndoe@email.com",
"phone": "01234567893",
"address": {
"city": "edinburgh",
"flat": "1/15",
"street": "kingsknowe court",
"postcode": "EH14 2JS"
}
},
"business_details": {
"business_id": "123456"
}
}
{
"order": {
"items": [
{
"plu": "pizaa_00009",
"type": "pizza",
"price": 4,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 2,
"tax_percentage": 20
}
],
"options": [
{
"data": [
{
"plu": "M-DE-2b36",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.1,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.9,
"tax_percentage": 20
}
],
"options": [],
"quantity": 2,
"size_plu": "M-MP-SM-5230-1",
"split_part": "",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-TH-5a07",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-17ca-1",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-OT-6bad",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-25d0-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-HA-7af0",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-6d59-1",
"split_part": "",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-MU-d50d",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-d8f8-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-SP-0e73",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-a303-1",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-MU-921b",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-3465-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "modifier"
}
],
"quantity": 2,
"size_plu": "pizza_multi_00001",
"tax_amount": 3,
"topping_style": "half_and_half",
"total-with-tax": 2,
"discount_amount": 0
}
],
"details": {
"order_id": "API105",
"total_tax": 16,
"order_type": "eat_in",
"tip_amount": 2,
"order_status": "placed",
"total_amount": 68,
"total_discount": 5,
"delivery_charges": 3.5
},
"payment": [
{
"type": "cash",
"amount": 24.5,
"change": 2,
"card_type": "",
"payment_id": "1234567781",
"card_4_digit": ""
},
{
"type": "card",
"amount": 46,
"change": 0,
"card_type": "visa",
"payment_id": "123456773",
"card_4_digit": "4321"
}
],
"discount": [
{
"plu": "mix_and_match_0001",
"type": "promo_code",
"amount": 5
}
]
},
"customer": {
"name": "John Doe",
"email": "johndoe@email.com",
"phone": "01234567893",
"address": {
"city": "edinburgh",
"flat": "1/15",
"street": "kingsknowe court",
"postcode": "EH14 2JS"
}
},
"business_details": {
"business_id": "123456"
}
}
{
"order": {
"items": [
{
"plu": "item_00001",
"type": "query_meal_deal",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.1,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.9,
"tax_percentage": 20
}
],
"options": [
{
"data": [
{
"plu": "mod_00002",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.35,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.65,
"tax_percentage": 20
}
],
"options": [],
"quantity": 2,
"size_plu": "mod_multi_00004",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "mod_00004",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.65,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.35,
"tax_percentage": 20
}
],
"options": [],
"quantity": 2,
"size_plu": "mod_multi_00004",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "modifier"
},
{
"data": [
{
"plu": "pizaa_00009",
"type": "pizza",
"price": 0,
"taxes": [],
"options": [
{
"data": [
{
"plu": "M-DE-2b36",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.1,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.9,
"tax_percentage": 20
}
],
"options": [],
"quantity": 2,
"size_plu": "M-MP-SM-5230-1",
"split_part": "",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-TH-5a07",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-17ca-1",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-OT-6bad",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-25d0-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-HA-7af0",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-6d59-1",
"split_part": "",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-MU-d50d",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-d8f8-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-SP-0e73",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-a303-1",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-MU-921b",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-3465-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "modifier"
}
],
"quantity": 2,
"size_plu": "ps_sf45",
"tax_amount": 0,
"topping_style": "half_and_half",
"discount_amount": 0
}
],
"type": "pizza"
}
],
"quantity": 2,
"size_plu": "",
"tax_amount": 1,
"topping_style": "",
"total-with-tax": 2,
"discount_amount": 0
}
],
"details": {
"order_id": "API153",
"total_tax": 16,
"order_type": "take_away",
"tip_amount": 2,
"order_status": "placed",
"total_amount": 78,
"total_discount": 5,
"delivery_charges": 3.5
},
"payment": [
{
"type": "cash",
"amount": 22,
"change": 2,
"card_type": "",
"payment_id": "1234567781",
"card_4_digit": ""
},
{
"type": "card",
"amount": 58.5,
"change": 0,
"card_type": "visa",
"payment_id": "123456773",
"card_4_digit": "1234"
}
],
"discount": [
{
"plu": "mix_and_match_0001",
"type": "promo_code",
"amount": 5
}
]
},
"customer": {
"name": "John Doe",
"email": "johndoe@email.com",
"phone": "01234567812",
"address": {
"city": "edinburgh",
"flat": "1/15",
"street": "1/15 kingsknow court edinburgh",
"postcode": "EH14 2JS"
}
},
"business_details": {
"business_id": "123456"
}
}
{
"order": {
"items": [
{
"plu": "pizaa_00009",
"type": "query_meal_deal",
"price": 0,
"taxes": [],
"options": [
{
"data": [
{
"plu": "M-DE-2b36",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.1,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.9,
"tax_percentage": 20
}
],
"options": [],
"quantity": 2,
"size_plu": "M-MP-SM-5230-1",
"split_part": "",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-TH-5a07",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-17ca-1",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-OT-6bad",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-25d0-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-HA-7af0",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-6d59-1",
"split_part": "",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-MU-d50d",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-d8f8-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-SP-0e73",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-a303-1",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-MU-921b",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-3465-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "modifier"
},
{
"data": [
{
"plu": "I-PA-eb26",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.1,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.9,
"tax_percentage": 20
}
],
"options": [
{
"data": [
{
"plu": "mod_00001",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "mod_multi_00001",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "modifier"
}
],
"quantity": 2,
"size_plu": "",
"split_part": "",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "item"
}
],
"quantity": 2,
"size_plu": "ps_sf45",
"tax_amount": 0,
"topping_style": "half_and_half",
"discount_amount": 0
}
],
"details": {
"order_id": "API154",
"total_tax": 16,
"order_type": "take_away",
"tip_amount": 2,
"order_status": "placed",
"total_amount": 75,
"total_discount": 5,
"delivery_charges": 3.5
},
"payment": [
{
"type": "cash",
"amount": 22,
"change": 2,
"card_type": "",
"payment_id": "1234567781",
"card_4_digit": ""
},
{
"type": "card",
"amount": 55.5,
"change": 0,
"card_type": "visa",
"payment_id": "123456773",
"card_4_digit": "1234"
}
],
"discount": [
{
"plu": "mix_and_match_0001",
"type": "promo_code",
"amount": 5
}
]
},
"customer": {
"name": "John Doe",
"email": "johndoe@email.com",
"phone": "01234567812",
"address": {
"city": "edinburgh",
"flat": "1/15",
"street": "1/15 kingsknow court edinburgh",
"postcode": "EH14 2JS"
}
},
"business_details": {
"business_id": "123456"
}
}
{
"order": {
"items": [
{
"plu": "deal_00001",
"type": "meal_deal",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.35,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.65,
"tax_percentage": 20
}
],
"options": [
{
"data": [
{
"plu": "pizaa_00009",
"type": "pizza",
"price": 0,
"taxes": [],
"options": [
{
"data": [
{
"plu": "M-DE-2b36",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.1,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.9,
"tax_percentage": 20
}
],
"options": [],
"quantity": 2,
"size_plu": "M-MP-SM-5230-1",
"split_part": "",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-TH-5a07",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-17ca-1",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-OT-6bad",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-25d0-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-HA-7af0",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-6d59-1",
"split_part": "",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-MU-d50d",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-d8f8-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-SP-0e73",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-a303-1",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-MU-921b",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-3465-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "modifier"
}
],
"quantity": 2,
"size_plu": "ps_sf45",
"tax_amount": 0,
"topping_style": "half_and_half",
"discount_amount": 0
}
],
"type": "pizza"
},
{
"data": [
{
"plu": "item_00006",
"type": "item",
"price": 0,
"taxes": [],
"options": [
{
"data": [
{
"plu": "mod_00006",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.35,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.65,
"tax_percentage": 20
}
],
"quantity": 2,
"size_plu": "mod_multi_00009",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "mod_00006",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.65,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.35,
"tax_percentage": 20
}
],
"quantity": 2,
"size_plu": "mod_multi_00008vdf",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "modifier"
}
],
"quantity": 2,
"size_plu": "item_multi_0008",
"split_part": "",
"tax_amount": 0,
"total-with-tax": 2,
"discount_amount": 0
}
],
"type": "item"
}
],
"quantity": 2,
"size_plu": "",
"tax_amount": 1,
"topping_style": "",
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"details": {
"order_id": "API149",
"total_tax": 16,
"order_type": "take_away",
"tip_amount": 2,
"order_status": "placed",
"total_amount": 78,
"total_discount": 10,
"delivery_charges": 3.5
},
"payment": [
{
"type": "cash",
"amount": 30,
"change": 6,
"card_type": "",
"payment_id": "1234567781",
"card_4_digit": ""
},
{
"type": "cash",
"amount": 29,
"change": 0,
"card_type": "",
"payment_id": "123456772",
"card_4_digit": ""
},
{
"type": "card",
"amount": 20.5,
"change": 0,
"card_type": "master",
"payment_id": "123456773sfcsdvd",
"card_4_digit": "1234"
}
],
"discount": [
{
"plu": "mix_and_match_0001",
"type": "promo_code",
"amount": 10
}
]
},
"customer": {
"name": "John Doe",
"email": "johndoe@email.com",
"phone": "01234567812",
"address": {
"city": "edinburgh",
"flat": "1/15",
"street": "1/15 kingsknowe courtedinburghEH14 2JS",
"postcode": "EH14 2JS"
}
},
"business_details": {
"business_id": "123456"
}
}
{
"order": {
"items": [
{
"plu": "mix_and_match_0001",
"type": "mix_and_match",
"price": 3,
"taxes": [],
"options": [
{
"data": [
{
"plu": "pizaa_00009",
"type": "pizza",
"price": 4,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 2,
"tax_percentage": 20
}
],
"options": [
{
"data": [
{
"plu": "M-DE-2b36",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.1,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.9,
"tax_percentage": 20
}
],
"options": [],
"quantity": 2,
"size_plu": "M-MP-SM-5230-1",
"split_part": "",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-TH-5a07",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-17ca-1",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-OT-6bad",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-25d0-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-HA-7af0",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-6d59-1",
"split_part": "",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-MU-d50d",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-d8f8-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-SP-0e73",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-a303-1",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-MU-921b",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-3465-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "modifier"
}
],
"quantity": 2,
"size_plu": "ps_sf45",
"tax_amount": 3,
"topping_style": "half_and_half",
"total-with-tax": 2,
"discount_amount": 0
}
],
"type": "pizza"
},
{
"data": [
{
"plu": "item_00006",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.7,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.3,
"tax_percentage": 20
}
],
"options": [
{
"data": [
{
"plu": "mod_00006",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.15,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.85,
"tax_percentage": 20
}
],
"quantity": 2,
"size_plu": "mod_multi_00009",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "mod_00006",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.4,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.6,
"tax_percentage": 20
}
],
"quantity": 2,
"size_plu": "mod_multi_00008",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "modifier"
}
],
"quantity": 2,
"size_plu": "item_multi_0008",
"split_part": "",
"tax_amount": 1,
"total-with-tax": 2,
"discount_amount": 0
}
],
"type": "item"
},
{
"data": [
{
"plu": "pizaa_00009",
"type": "pizza",
"price": 4,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 2,
"tax_percentage": 20
}
],
"options": [
{
"data": [
{
"plu": "M-DE-2b36",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.1,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.9,
"tax_percentage": 20
}
],
"options": [],
"quantity": 2,
"size_plu": "M-MP-SM-5230-1",
"split_part": "",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-TH-5a07",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-17ca-1",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-OT-6bad",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-25d0-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-HA-7af0",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-6d59-1",
"split_part": "",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-MU-d50d",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-d8f8-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-SP-0e73",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-a303-1",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-MU-921b",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-3465-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "modifier"
}
],
"quantity": 2,
"size_plu": "ps_sf45",
"tax_amount": 3,
"topping_style": "half_and_half",
"total-with-tax": 2,
"discount_amount": 0
}
],
"type": "pizza"
}
],
"quantity": 2,
"size_plu": "",
"tax_amount": 0,
"topping_style": "",
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"details": {
"order_id": "API103",
"total_tax": 35,
"order_type": "eat_in",
"tip_amount": 2,
"order_status": "placed",
"total_amount": 160,
"total_discount": 5,
"delivery_charges": 3.5
},
"payment": [
{
"type": "cash",
"amount": 24.5,
"change": 2,
"card_type": "",
"payment_id": "1234567781",
"card_4_digit": ""
},
{
"type": "card",
"amount": 138,
"change": 0,
"card_type": "visa",
"payment_id": "123456773",
"card_4_digit": "1234"
}
],
"discount": [
{
"plu": "mix_and_match_0001",
"type": "promo_code",
"amount": 5
}
]
},
"customer": {
"name": "John Doe",
"email": "johndoe@emai.com",
"phone": "01234567893",
"address": {
"city": "edinburgh",
"flat": "1/15",
"street": "kingsknowe court",
"postcode": "EH14 2JS"
}
},
"business_details": {
"business_id": "123456"
}
}
{
"order": {
"items": [
{
"plu": "mix_and_match_0001",
"type": "mix_and_match",
"price": 3,
"taxes": [],
"options": [
{
"data": [
{
"plu": "pizaa_00009",
"type": "pizza",
"price": 4,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 2,
"tax_percentage": 20
}
],
"options": [
{
"data": [
{
"plu": "M-DE-2b36",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.1,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.9,
"tax_percentage": 20
}
],
"options": [],
"quantity": 2,
"size_plu": "M-MP-SM-5230-1",
"split_part": "",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-TH-5a07",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-17ca-1",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-OT-6bad",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-25d0-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-HA-7af0",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-6d59-1",
"split_part": "",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-MU-d50d",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-d8f8-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-SP-0e73",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-a303-1",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-MU-921b",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-3465-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "modifier"
}
],
"quantity": 2,
"size_plu": "ps_sf45",
"tax_amount": 3,
"topping_style": "half_and_half",
"total-with-tax": 2,
"discount_amount": 0
}
],
"type": "pizza"
},
{
"data": [
{
"plu": "item_00006",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.7,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.3,
"tax_percentage": 20
}
],
"options": [
{
"data": [
{
"plu": "mod_00006",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.15,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.85,
"tax_percentage": 20
}
],
"options": [],
"quantity": 1,
"size_plu": "mod_multi_00009",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "mod_00006",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.4,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.6,
"tax_percentage": 20
}
],
"options": [],
"quantity": 2,
"size_plu": "mod_multi_00008",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "modifier"
}
],
"quantity": 2,
"size_plu": "item_multi_0008",
"split_part": "",
"tax_amount": 1,
"total-with-tax": 2,
"discount_amount": 0
}
],
"type": "item"
}
],
"quantity": 2,
"size_plu": "",
"tax_amount": 0,
"topping_style": "",
"discount_amount": 0
},
{
"plu": "item_00006",
"type": "item",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.7,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.3,
"tax_percentage": 20
}
],
"options": [
{
"data": [
{
"plu": "mod_00006",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.15,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.85,
"tax_percentage": 20
}
],
"options": [],
"quantity": 1,
"size_plu": "mod_multi_00009",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "mod_00006",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.4,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.6,
"tax_percentage": 20
}
],
"options": [],
"quantity": 2,
"size_plu": "mod_multi_00008",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "modifier"
}
],
"quantity": 2,
"size_plu": "item_multi_0008",
"split_part": "",
"tax_amount": 1,
"topping_style": "",
"total-with-tax": 2,
"discount_amount": 0
}
],
"details": {
"order_id": "API117",
"total_tax": 22,
"order_type": "eat_in",
"tip_amount": 2,
"order_status": "placed",
"total_amount": 104,
"total_discount": 5,
"delivery_charges": 3.5
},
"payment": [
{
"type": "cash",
"amount": 24.5,
"change": 2,
"card_type": "",
"payment_id": "1234567781",
"card_4_digit": ""
},
{
"type": "card",
"amount": 82,
"change": 0,
"card_type": "visa",
"payment_id": "123456773",
"card_4_digit": "1234"
}
],
"discount": [
{
"plu": "mix_and_match_0001",
"type": "promo_code",
"amount": 5
}
]
},
"customer": {
"name": "John Doe",
"email": "johndoe@email.com",
"phone": "01234567812",
"address": {
"city": "edinburgh",
"flat": "1/15",
"street": "1/15 kingsknowe court edinburgh",
"postcode": "EH14 2JS"
}
},
"business_details": {
"business_id": "123456"
}
}
{
"order": {
"items": [
{
"plu": "deal_00001",
"type": "meal_deal",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.35,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.65,
"tax_percentage": 20
}
],
"options": [
{
"data": [
{
"plu": "pizaa_00009",
"type": "pizza",
"price": 0,
"taxes": [],
"options": [
{
"data": [
{
"plu": "M-DE-2b36",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.1,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.9,
"tax_percentage": 20
}
],
"options": [],
"quantity": 2,
"size_plu": "M-MP-SM-5230-1",
"split_part": "",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-TH-5a07",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-17ca-1",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-OT-6bad",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-25d0-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-HA-7af0",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-6d59-1",
"split_part": "",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-MU-d50d",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-d8f8-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-SP-0e73",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-a303-1",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-MU-921b",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-3465-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "modifier"
}
],
"quantity": 2,
"size_plu": "ps_sf45",
"tax_amount": 0,
"topping_style": "half_and_half",
"discount_amount": 0
}
],
"type": "pizza"
},
{
"data": [
{
"plu": "item_00006",
"type": "item",
"price": 0,
"taxes": [],
"options": [
{
"data": [
{
"plu": "mod_00006",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.35,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.65,
"tax_percentage": 20
}
],
"quantity": 2,
"size_plu": "mod_multi_00009",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "mod_00006",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.65,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.35,
"tax_percentage": 20
}
],
"quantity": 1,
"size_plu": "mod_multi_00008vdf",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "modifier"
}
],
"quantity": 2,
"size_plu": "item_multi_0008",
"split_part": "",
"tax_amount": 0,
"total-with-tax": 2,
"discount_amount": 0
}
],
"type": "item"
}
],
"quantity": 2,
"size_plu": "",
"tax_amount": 1,
"topping_style": "",
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "pizaa_00009",
"type": "query_meal_deal",
"price": 0,
"taxes": [],
"options": [
{
"data": [
{
"plu": "M-DE-2b36",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.1,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.9,
"tax_percentage": 20
}
],
"options": [],
"quantity": 2,
"size_plu": "M-MP-SM-5230-1",
"split_part": "",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-TH-5a07",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-17ca-1",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-OT-6bad",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-25d0-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-HA-7af0",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-6d59-1",
"split_part": "",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-MU-d50d",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-d8f8-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-SP-0e73",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-a303-1",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-MU-921b",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-3465-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "modifier"
},
{
"data": [
{
"plu": "I-PA-eb26",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.1,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.9,
"tax_percentage": 20
}
],
"options": [
{
"data": [],
"type": "modifier"
}
],
"quantity": 2,
"size_plu": "",
"split_part": "",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "item"
}
],
"quantity": 2,
"size_plu": "ps_sf45",
"tax_amount": 0,
"topping_style": "half_and_half",
"discount_amount": 0
}
],
"details": {
"order_id": "API119",
"total_tax": 52,
"order_type": "eat_in",
"tip_amount": 2,
"order_status": "placed",
"total_amount": 245,
"total_discount": 5,
"delivery_charges": 3.5
},
"payment": [
{
"type": "cash",
"amount": 24.5,
"change": 2,
"card_type": "",
"payment_id": "1234567781",
"card_4_digit": ""
},
{
"type": "card",
"amount": 223,
"change": 0,
"card_type": "visa",
"payment_id": "123456773",
"card_4_digit": "1234"
}
],
"discount": [
{
"plu": "mix_and_match_0001",
"type": "promo_code",
"amount": 5
}
]
},
"customer": {
"name": "John Doe",
"email": "johndoe@email.com",
"phone": "01234567893",
"address": {
"city": "edinburgh",
"flat": "1/15",
"street": "kingsknowe court",
"postcode": "EH14 2JS"
}
},
"business_details": {
"business_id": "123456"
}
}
{
"order": {
"items": [
{
"plu": "deal_00001",
"type": "meal_deal",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.35,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.65,
"tax_percentage": 20
}
],
"options": [
{
"data": [
{
"plu": "pizaa_00009",
"type": "pizza",
"price": 0,
"taxes": [],
"options": [
{
"data": [
{
"plu": "M-DE-2b36",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.1,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.9,
"tax_percentage": 20
}
],
"options": [],
"quantity": 2,
"size_plu": "M-MP-SM-5230-1",
"split_part": "",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-TH-5a07",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-17ca-1",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-OT-6bad",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-25d0-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-HA-7af0",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-6d59-1",
"split_part": "",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-MU-d50d",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-d8f8-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-SP-0e73",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-a303-1",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-MU-921b",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-3465-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "modifier"
}
],
"quantity": 2,
"size_plu": "ps_sf45",
"tax_amount": 0,
"topping_style": "half_and_half",
"discount_amount": 0
}
],
"type": "pizza"
},
{
"data": [
{
"plu": "item_00006",
"type": "item",
"price": 0,
"taxes": [],
"options": [
{
"data": [
{
"plu": "mod_00006",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.35,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.65,
"tax_percentage": 20
}
],
"quantity": 2,
"size_plu": "mod_multi_00009",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "mod_00006",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.65,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.35,
"tax_percentage": 20
}
],
"quantity": 1,
"size_plu": "mod_multi_00008vdf",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "modifier"
}
],
"quantity": 2,
"size_plu": "item_multi_0008",
"split_part": "",
"tax_amount": 0,
"total-with-tax": 2,
"discount_amount": 0
}
],
"type": "item"
}
],
"quantity": 2,
"size_plu": "",
"tax_amount": 1,
"topping_style": "",
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "pizaa_00009",
"type": "query_meal_deal",
"price": 0,
"taxes": [],
"options": [
{
"data": [
{
"plu": "M-DE-2b36",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.1,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.9,
"tax_percentage": 20
}
],
"options": [],
"quantity": 2,
"size_plu": "M-MP-SM-5230-1",
"split_part": "",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-TH-5a07",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-17ca-1",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-OT-6bad",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-25d0-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-HA-7af0",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-6d59-1",
"split_part": "",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-MU-d50d",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-d8f8-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-SP-0e73",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-a303-1",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-MU-921b",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-3465-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "modifier"
},
{
"data": [
{
"plu": "I-PA-eb26",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.1,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.9,
"tax_percentage": 20
}
],
"options": [
{
"data": [],
"type": "modifier"
}
],
"quantity": 2,
"size_plu": "",
"split_part": "",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "item"
}
],
"quantity": 2,
"size_plu": "ps_sf45",
"tax_amount": 0,
"topping_style": "half_and_half",
"discount_amount": 0
}
],
"details": {
"order_id": "API119",
"total_tax": 52,
"order_type": "eat_in",
"tip_amount": 2,
"total_amount": 245,
"total_discount": 5,
"delivery_charges": 3.5
},
"payment": [
{
"type": "cash",
"amount": 24.5,
"change": 2,
"card_type": "",
"payment_id": "1234567781",
"card_4_digit": ""
},
{
"type": "card",
"amount": 223,
"change": 0,
"card_type": "visa",
"payment_id": "123456773",
"card_4_digit": "1234"
}
],
"discount": [
{
"plu": "mix_and_match_0001",
"type": "promo_code",
"amount": 5
}
]
},
"customer": {
"name": "John Doe",
"email": "johndoe@email.com",
"phone": "01234567893",
"address": {
"city": "edinburgh",
"flat": "1/15",
"street": "kingsknowe court",
"postcode": "EH14 2JS"
}
},
"business_details": {
"business_id": "123456"
}
}
{
"order": {
"items": [
{
"plu": "deal_00001",
"type": "meal_deal",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.35,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.65,
"tax_percentage": 20
}
],
"options": [
{
"data": [
{
"plu": "pizaa_00009",
"type": "pizza",
"price": 0,
"taxes": [],
"options": [
{
"data": [
{
"plu": "M-DE-2b36",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.1,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.9,
"tax_percentage": 20
}
],
"options": [],
"quantity": 2,
"size_plu": "M-MP-SM-5230-1",
"split_part": "",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-TH-5a07",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-17ca-1",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-OT-6bad",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-25d0-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-HA-7af0",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-6d59-1",
"split_part": "",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-MU-d50d",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-d8f8-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-SP-0e73",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-a303-1",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-MU-921b",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-3465-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "modifier"
}
],
"quantity": 2,
"size_plu": "pizza_multi_00001",
"tax_amount": 0,
"topping_style": "half_and_half",
"discount_amount": 0
}
],
"type": "pizza"
},
{
"data": [
{
"plu": "item_00006",
"type": "item",
"price": 0,
"taxes": [],
"options": [
{
"data": [
{
"plu": "mod_00006",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.35,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.65,
"tax_percentage": 20
}
],
"quantity": 2,
"size_plu": "mod_multi_00009",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "mod_00006",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.65,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.35,
"tax_percentage": 20
}
],
"quantity": 1,
"size_plu": "mod_multi_00008vdf",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "modifier"
}
],
"quantity": 2,
"size_plu": "item_multi_0008",
"split_part": "",
"tax_amount": 0,
"total-with-tax": 2,
"discount_amount": 0
}
],
"type": "item"
}
],
"quantity": 2,
"size_plu": "",
"tax_amount": 1,
"topping_style": "",
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "pizaa_00009",
"type": "query_meal_deal",
"price": 0,
"taxes": [],
"options": [
{
"data": [
{
"plu": "M-DE-2b36",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.1,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.9,
"tax_percentage": 20
}
],
"options": [],
"quantity": 2,
"size_plu": "M-MP-SM-5230-1",
"split_part": "",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-TH-5a07",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-17ca-1",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-OT-6bad",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-25d0-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-HA-7af0",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-6d59-1",
"split_part": "",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-MU-d50d",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-d8f8-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-SP-0e73",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-a303-1",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-MU-921b",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-3465-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "modifier"
},
{
"data": [
{
"plu": "I-PA-eb26",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.1,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.9,
"tax_percentage": 20
}
],
"options": [
{
"data": [],
"type": "modifier"
}
],
"quantity": 2,
"size_plu": "",
"split_part": "",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "item"
}
],
"quantity": 2,
"size_plu": "ps_sf45",
"tax_amount": 0,
"topping_style": "half_and_half",
"discount_amount": 0
},
{
"plu": "mix_and_match_0001",
"type": "mix_and_match",
"price": 3,
"taxes": [],
"options": [
{
"data": [
{
"plu": "pizaa_00009",
"type": "pizza",
"price": 4,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 2,
"tax_percentage": 20
}
],
"options": [
{
"data": [
{
"plu": "M-DE-2b36",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.1,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.9,
"tax_percentage": 20
}
],
"options": [],
"quantity": 2,
"size_plu": "M-MP-SM-5230-1",
"split_part": "",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-TH-5a07",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-17ca-1",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-OT-6bad",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-25d0-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-HA-7af0",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-6d59-1",
"split_part": "",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-MU-d50d",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-d8f8-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-SP-0e73",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-a303-1",
"split_part": "left",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "M-MU-921b",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 1.5,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.5,
"tax_percentage": 20
}
],
"options": [],
"quantity": 3,
"size_plu": "M-MP-SM-3465-1",
"split_part": "right",
"tax_amount": 2,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "modifier"
}
],
"quantity": 2,
"size_plu": "ps_sf45",
"tax_amount": 3,
"topping_style": "half_and_half",
"total-with-tax": 2,
"discount_amount": 0
}
],
"type": "pizza"
},
{
"data": [
{
"plu": "item_00006",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.7,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.3,
"tax_percentage": 20
}
],
"options": [
{
"data": [
{
"plu": "mod_00006",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.15,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.85,
"tax_percentage": 20
}
],
"quantity": 2,
"size_plu": "mod_multi_00009",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
},
{
"plu": "mod_00006",
"price": 3,
"taxes": [
{
"tax_plu": "tax_00001",
"tax_amount": 0.4,
"tax_percentage": 20
},
{
"tax_plu": "tax_00001",
"tax_amount": 0.6,
"tax_percentage": 20
}
],
"quantity": 1,
"size_plu": "mod_multi_00008",
"tax_amount": 1,
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"type": "modifier"
}
],
"quantity": 2,
"size_plu": "item_multi_0008",
"split_part": "",
"tax_amount": 1,
"total-with-tax": 2,
"discount_amount": 0
}
],
"type": "item"
}
],
"quantity": 2,
"size_plu": "",
"tax_amount": 0,
"topping_style": "",
"total-with-tax": 1.99,
"discount_amount": 0
}
],
"details": {
"order_id": "API127",
"total_tax": 49,
"order_type": "eat_in",
"tip_amount": 2,
"order_status": "placed",
"total_amount": 230,
"total_discount": 5,
"delivery_charges": 3.5
},
"payment": [
{
"type": "cash",
"amount": 24.5,
"change": 2,
"card_type": "",
"payment_id": "1234567781",
"card_4_digit": ""
},
{
"type": "card",
"amount": 208,
"change": 0,
"card_type": "visa",
"payment_id": "123456773",
"card_4_digit": "1234"
}
],
"discount": [
{
"plu": "mix_and_match_0001",
"type": "promo_code",
"amount": 5
}
]
},
"customer": {
"name": "John Doe",
"email": "johndoe@email.com",
"phone": "01234567893",
"address": {
"city": "edinburgh",
"flat": "1/15",
"street": "kingsknowe court",
"postcode": "EH14 2JS"
}
},
"business_details": {
"business_id": "123456"
}
}
{
"status": 200,
"message": "Data saved successfully!"
}
{
"status": 400,
"message": "Please check the input and try again!"
}
{
"status": 403,
"message": "Please check the credentials and try again!"
}
{
"status": 404,
"message": "Something went wrong. Please try again!"
}