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
-
business-details object Required
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.
-
customer object Required
In this block, the primary information of the customer who has placed the order needs to be added here.
-
order object Required
This section contains multiple subsections such as details, items, payment, and discount, which hold relevant information about the order's details.
curl \
-X POST https://api.grafterr.com/v1/order/create \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"business-details":{"business-id":"123456"},"customer":{"name":"John Doe","email":"[email protected]","phone":"01234567893","address":{"flat":"1/15","street":"kingsknowe court","city":"edinburgh","postcode":"EH14 2JS"}},"order":{"details":{"order-id":"API108","order-type":"eat_in","order-status":"placed","total-tax":2,"total-discount":10,"total-amount":12,"tip-amount":2,"delivery-charges":3.5},"items":[{"plu":"item_00006","size-plu":"item_multi_0006","quantity":2,"price":3,"discount-amount":0,"tax-amount":1,"total-with-tax":2,"type":"item","topping-style":"","taxes":[{"tax-plu":"tax_00001","tax-amount":1,"tax-percentage":20}],"options":[{"type":"modifier","data":[{"plu":"mod_00006","size-plu":"mod_multi_00007","quantity":2,"price":3,"split-part":"","discount-amount":0,"tax-amount":1,"total-with-tax":1.99,"taxes":[{"tax-plu":"tax_00001","tax-amount":0.3,"tax-percentage":20},{"tax-plu":"tax_00001","tax-amount":0.7,"tax-percentage":20}],"options":[]},{"plu":"mod_00006","size-plu":"mod_multi_00008","quantity":2,"price":3,"split-part":"","discount-amount":0,"tax-amount":1,"total-with-tax":1.99,"taxes":[{"tax-plu":"tax_00001","tax-amount":0.2,"tax-percentage":20},{"tax-plu":"tax_00001","tax-amount":0.8,"tax-percentage":20}],"options":[]}]}]}],"payment":[{"type":"cash","amount":40,"change":10,"payment-id":"1234567781","card-4-digit":"","card-type":""},{"type":"card","amount":7.5,"change":0,"payment-id":"123456773sfcsdvd","card-4-digit":"1234","card-type":"visa"}],"discount":[{"plu":"mix_and_match_0001","type":"promo_code","amount":10}]}}'
{
"business-details": {
"business-id": "123456"
},
"customer": {
"name": "John Doe",
"email": "[email protected]",
"phone": "01234567893",
"address": {
"flat": "1/15",
"street": "kingsknowe court",
"city": "edinburgh",
"postcode": "EH14 2JS"
}
},
"order": {
"details": {
"order-id": "API108",
"order-type": "eat_in",
"order-status": "placed",
"total-tax": 2,
"total-discount": 10,
"total-amount": 12,
"tip-amount": 2,
"delivery-charges": 3.5
},
"items": [
{
"plu": "item_00006",
"size-plu": "item_multi_0006",
"quantity": 2,
"price": 3,
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 2,
"type": "item",
"topping-style": "",
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1,
"tax-percentage": 20
}
],
"options": [
{
"type": "modifier",
"data": [
{
"plu": "mod_00006",
"size-plu": "mod_multi_00007",
"quantity": 2,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.3,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.7,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "mod_00006",
"size-plu": "mod_multi_00008",
"quantity": 2,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.2,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.8,
"tax-percentage": 20
}
],
"options": []
}
]
}
]
}
],
"payment": [
{
"type": "cash",
"amount": 40,
"change": 10,
"payment-id": "1234567781",
"card-4-digit": "",
"card-type": ""
},
{
"type": "card",
"amount": 7.5,
"change": 0,
"payment-id": "123456773sfcsdvd",
"card-4-digit": "1234",
"card-type": "visa"
}
],
"discount": [
{
"plu": "mix_and_match_0001",
"type": "promo_code",
"amount": 10
}
]
}
}
{
"business-details": {
"business-id": "123456"
},
"customer": {
"name": "John Doe",
"email": "[email protected]",
"phone": "01234567893",
"address": {
"flat": "1/15",
"street": "kingsknowe court",
"city": "edinburgh",
"postcode": "EH14 2JS"
}
},
"order": {
"details": {
"order-id": "API106",
"order-type": "eat_in",
"order-status": "placed",
"total-tax": 10,
"total-discount": 5,
"total-amount": 41,
"tip-amount": 2,
"delivery-charges": 3.5
},
"items": [
{
"plu": "pizaa_00009",
"size-plu": "pizza_multi_00001",
"quantity": 2,
"price": 4,
"discount-amount": 0,
"tax-amount": 3,
"total-with-tax": 2,
"type": "pizza",
"topping-style": "regular",
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 2,
"tax-percentage": 20
}
],
"options": [
{
"type": "modifier",
"data": [
{
"plu": "M-DE-2b36",
"size-plu": "M-MP-SM-5230-1",
"quantity": 2,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.1,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.9,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-TH-5a07",
"size-plu": "M-MP-SM-17ca-1",
"quantity": 3,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-HA-7af0",
"size-plu": "M-MP-SM-6d59-1",
"quantity": 3,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-SP-0e73",
"size-plu": "M-MP-SM-a303-1",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
}
]
}
]
}
],
"payment": [
{
"type": "cash",
"amount": 24.5,
"change": 2,
"payment-id": "1234567781",
"card-4-digit": "",
"card-type": ""
},
{
"type": "card",
"amount": 19,
"change": 0,
"payment-id": "123456773",
"card-4-digit": "4321",
"card-type": "visa"
}
],
"discount": [
{
"plu": "mix_and_match_0001",
"type": "promo_code",
"amount": 5
}
]
}
}
{
"business-details": {
"business-id": "123456"
},
"customer": {
"name": "John Doe",
"email": "[email protected]",
"phone": "01234567893",
"address": {
"flat": "1/15",
"street": "kingsknowe court",
"city": "edinburgh",
"postcode": "EH14 2JS"
}
},
"order": {
"details": {
"order-id": "API105",
"order-type": "eat_in",
"order-status": "placed",
"total-tax": 16,
"total-discount": 5,
"total-amount": 68,
"tip-amount": 2,
"delivery-charges": 3.5
},
"items": [
{
"plu": "pizaa_00009",
"size-plu": "pizza_multi_00001",
"quantity": 2,
"price": 4,
"discount-amount": 0,
"tax-amount": 3,
"total-with-tax": 2,
"type": "pizza",
"topping-style": "half_and_half",
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 2,
"tax-percentage": 20
}
],
"options": [
{
"type": "modifier",
"data": [
{
"plu": "M-DE-2b36",
"size-plu": "M-MP-SM-5230-1",
"quantity": 2,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.1,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.9,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-TH-5a07",
"size-plu": "M-MP-SM-17ca-1",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-OT-6bad",
"size-plu": "M-MP-SM-25d0-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-HA-7af0",
"size-plu": "M-MP-SM-6d59-1",
"quantity": 3,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-MU-d50d",
"size-plu": "M-MP-SM-d8f8-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-SP-0e73",
"size-plu": "M-MP-SM-a303-1",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-MU-921b",
"size-plu": "M-MP-SM-3465-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
}
]
}
]
}
],
"payment": [
{
"type": "cash",
"amount": 24.5,
"change": 2,
"payment-id": "1234567781",
"card-4-digit": "",
"card-type": ""
},
{
"type": "card",
"amount": 46,
"change": 0,
"payment-id": "123456773",
"card-4-digit": "4321",
"card-type": "visa"
}
],
"discount": [
{
"plu": "mix_and_match_0001",
"type": "promo_code",
"amount": 5
}
]
}
}
{
"business-details": {
"business-id": "123456"
},
"customer": {
"name": "John Doe",
"email": "[email protected]",
"phone": "01234567812",
"address": {
"flat": "1/15",
"street": "1/15 kingsknow court edinburgh",
"city": "edinburgh",
"postcode": "EH14 2JS"
}
},
"order": {
"details": {
"order-id": "API153",
"order-type": "take_away",
"order-status": "placed",
"total-tax": 16,
"total-discount": 5,
"total-amount": 78,
"tip-amount": 2,
"delivery-charges": 3.5
},
"items": [
{
"plu": "item_00001",
"size-plu": "",
"quantity": 2,
"price": 3,
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 2,
"type": "query-meal-deal",
"topping-style": "",
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.1,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.9,
"tax-percentage": 20
}
],
"options": [
{
"type": "modifier",
"data": [
{
"plu": "mod_00002",
"size-plu": "mod_multi_00004",
"quantity": 2,
"price": 3,
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.35,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.65,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "mod_00004",
"size-plu": "mod_multi_00004",
"quantity": 2,
"price": 3,
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.65,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.35,
"tax-percentage": 20
}
],
"options": []
}
]
},
{
"type": "pizza",
"data": [
{
"plu": "pizaa_00009",
"size-plu": "ps_sf45",
"quantity": 2,
"price": 0,
"discount-amount": 0,
"tax-amount": 0,
"type": "pizza",
"topping-style": "half_and_half",
"taxes": [],
"options": [
{
"type": "modifier",
"data": [
{
"plu": "M-DE-2b36",
"size-plu": "M-MP-SM-5230-1",
"quantity": 2,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.1,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.9,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-TH-5a07",
"size-plu": "M-MP-SM-17ca-1",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-OT-6bad",
"size-plu": "M-MP-SM-25d0-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-HA-7af0",
"size-plu": "M-MP-SM-6d59-1",
"quantity": 3,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-MU-d50d",
"size-plu": "M-MP-SM-d8f8-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-SP-0e73",
"size-plu": "M-MP-SM-a303-1",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-MU-921b",
"size-plu": "M-MP-SM-3465-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
}
]
}
]
}
]
}
]
}
],
"payment": [
{
"type": "cash",
"amount": 22,
"change": 2,
"payment-id": "1234567781",
"card-4-digit": "",
"card-type": ""
},
{
"type": "card",
"amount": 58.5,
"change": 0,
"payment-id": "123456773",
"card-4-digit": "1234",
"card-type": "visa"
}
],
"discount": [
{
"plu": "mix_and_match_0001",
"type": "promo_code",
"amount": 5
}
]
}
}
{
"business-details": {
"business-id": "123456"
},
"customer": {
"name": "John Doe",
"email": "[email protected]",
"phone": "01234567812",
"address": {
"flat": "1/15",
"street": "1/15 kingsknow court edinburgh",
"city": "edinburgh",
"postcode": "EH14 2JS"
}
},
"order": {
"details": {
"order-id": "API154",
"order-type": "take_away",
"order-status": "placed",
"total-tax": 16,
"total-discount": 5,
"total-amount": 75,
"tip-amount": 2,
"delivery-charges": 3.5
},
"items": [
{
"plu": "pizaa_00009",
"size-plu": "ps_sf45",
"quantity": 2,
"price": 0,
"discount-amount": 0,
"tax-amount": 0,
"type": "query-meal-deal",
"topping-style": "half_and_half",
"taxes": [],
"options": [
{
"type": "modifier",
"data": [
{
"plu": "M-DE-2b36",
"size-plu": "M-MP-SM-5230-1",
"quantity": 2,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.1,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.9,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-TH-5a07",
"size-plu": "M-MP-SM-17ca-1",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-OT-6bad",
"size-plu": "M-MP-SM-25d0-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-HA-7af0",
"size-plu": "M-MP-SM-6d59-1",
"quantity": 3,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-MU-d50d",
"size-plu": "M-MP-SM-d8f8-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-SP-0e73",
"size-plu": "M-MP-SM-a303-1",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-MU-921b",
"size-plu": "M-MP-SM-3465-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
}
]
},
{
"type": "item",
"data": [
{
"plu": "I-PA-eb26",
"size-plu": "",
"quantity": 2,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.1,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.9,
"tax-percentage": 20
}
],
"options": [
{
"type": "modifier",
"data": [
{
"plu": "mod_00001",
"size-plu": "mod_multi_00001",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
}
]
}
]
}
]
}
]
}
],
"payment": [
{
"type": "cash",
"amount": 22,
"change": 2,
"payment-id": "1234567781",
"card-4-digit": "",
"card-type": ""
},
{
"type": "card",
"amount": 55.5,
"change": 0,
"payment-id": "123456773",
"card-4-digit": "1234",
"card-type": "visa"
}
],
"discount": [
{
"plu": "mix_and_match_0001",
"type": "promo_code",
"amount": 5
}
]
}
}
{
"business-details": {
"business-id": "123456"
},
"customer": {
"name": "John Doe",
"email": "[email protected]",
"phone": "01234567812",
"address": {
"flat": "1/15",
"street": "1/15 kingsknowe courtedinburghEH14 2JS",
"city": "edinburgh",
"postcode": "EH14 2JS"
}
},
"order": {
"details": {
"order-id": "API149",
"order-type": "take_away",
"order-status": "placed",
"total-tax": 16,
"total-discount": 10,
"total-amount": 78,
"tip-amount": 2,
"delivery-charges": 3.5
},
"items": [
{
"plu": "deal_00001",
"size-plu": "",
"quantity": 2,
"price": 3,
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"type": "meal-deal",
"topping-style": "",
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.35,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.65,
"tax-percentage": 20
}
],
"options": [
{
"type": "pizza",
"data": [
{
"plu": "pizaa_00009",
"size-plu": "ps_sf45",
"quantity": 2,
"price": 0,
"discount-amount": 0,
"tax-amount": 0,
"type": "pizza",
"topping-style": "half_and_half",
"taxes": [],
"options": [
{
"type": "modifier",
"data": [
{
"plu": "M-DE-2b36",
"size-plu": "M-MP-SM-5230-1",
"quantity": 2,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.1,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.9,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-TH-5a07",
"size-plu": "M-MP-SM-17ca-1",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-OT-6bad",
"size-plu": "M-MP-SM-25d0-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-HA-7af0",
"size-plu": "M-MP-SM-6d59-1",
"quantity": 3,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-MU-d50d",
"size-plu": "M-MP-SM-d8f8-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-SP-0e73",
"size-plu": "M-MP-SM-a303-1",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-MU-921b",
"size-plu": "M-MP-SM-3465-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
}
]
}
]
}
]
},
{
"type": "item",
"data": [
{
"plu": "item_00006",
"size-plu": "item_multi_0008",
"quantity": 2,
"price": 0,
"split-part": "",
"discount-amount": 0,
"tax-amount": 0,
"total-with-tax": 2,
"type": "item",
"taxes": [],
"options": [
{
"type": "modifier",
"data": [
{
"plu": "mod_00006",
"size-plu": "mod_multi_00009",
"quantity": 2,
"price": 3,
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.35,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.65,
"tax-percentage": 20
}
]
},
{
"plu": "mod_00006",
"size-plu": "mod_multi_00008vdf",
"quantity": 2,
"price": 3,
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.65,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.35,
"tax-percentage": 20
}
]
}
]
}
]
}
]
}
]
}
],
"payment": [
{
"type": "cash",
"amount": 30,
"change": 6,
"payment-id": "1234567781",
"card-4-digit": "",
"card-type": ""
},
{
"type": "cash",
"amount": 29,
"change": 0,
"payment-id": "123456772",
"card-4-digit": "",
"card-type": ""
},
{
"type": "card",
"amount": 20.5,
"change": 0,
"payment-id": "123456773sfcsdvd",
"card-4-digit": "1234",
"card-type": "master"
}
],
"discount": [
{
"plu": "mix_and_match_0001",
"type": "promo_code",
"amount": 10
}
]
}
}
{
"business-details": {
"business-id": "123456"
},
"customer": {
"name": "John Doe",
"email": "[email protected]",
"phone": "01234567893",
"address": {
"flat": "1/15",
"street": "kingsknowe court",
"city": "edinburgh",
"postcode": "EH14 2JS"
}
},
"order": {
"details": {
"order-id": "API103",
"order-type": "eat_in",
"order-status": "placed",
"total-tax": 35,
"total-discount": 5,
"total-amount": 160,
"tip-amount": 2,
"delivery-charges": 3.5
},
"items": [
{
"plu": "mix_and_match_0001",
"size-plu": "",
"quantity": 2,
"price": 3,
"discount-amount": 0,
"tax-amount": 0,
"total-with-tax": 1.99,
"type": "mix-and-match",
"topping-style": "",
"taxes": [],
"options": [
{
"type": "pizza",
"data": [
{
"plu": "pizaa_00009",
"size-plu": "ps_sf45",
"quantity": 2,
"price": 4,
"discount-amount": 0,
"tax-amount": 3,
"total-with-tax": 2,
"type": "pizza",
"topping-style": "half_and_half",
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 2,
"tax-percentage": 20
}
],
"options": [
{
"type": "modifier",
"data": [
{
"plu": "M-DE-2b36",
"size-plu": "M-MP-SM-5230-1",
"quantity": 2,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.1,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.9,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-TH-5a07",
"size-plu": "M-MP-SM-17ca-1",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-OT-6bad",
"size-plu": "M-MP-SM-25d0-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-HA-7af0",
"size-plu": "M-MP-SM-6d59-1",
"quantity": 3,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-MU-d50d",
"size-plu": "M-MP-SM-d8f8-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-SP-0e73",
"size-plu": "M-MP-SM-a303-1",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-MU-921b",
"size-plu": "M-MP-SM-3465-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
}
]
}
]
}
]
},
{
"type": "item",
"data": [
{
"plu": "item_00006",
"size-plu": "item_multi_0008",
"quantity": 2,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 2,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.7,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.3,
"tax-percentage": 20
}
],
"options": [
{
"type": "modifier",
"data": [
{
"plu": "mod_00006",
"size-plu": "mod_multi_00009",
"quantity": 2,
"price": 3,
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.15,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.85,
"tax-percentage": 20
}
]
},
{
"plu": "mod_00006",
"size-plu": "mod_multi_00008",
"quantity": 2,
"price": 3,
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.4,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.6,
"tax-percentage": 20
}
]
}
]
}
]
}
]
},
{
"type": "pizza",
"data": [
{
"plu": "pizaa_00009",
"size-plu": "ps_sf45",
"quantity": 2,
"price": 4,
"discount-amount": 0,
"tax-amount": 3,
"total-with-tax": 2,
"type": "pizza",
"topping-style": "half_and_half",
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 2,
"tax-percentage": 20
}
],
"options": [
{
"type": "modifier",
"data": [
{
"plu": "M-DE-2b36",
"size-plu": "M-MP-SM-5230-1",
"quantity": 2,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.1,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.9,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-TH-5a07",
"size-plu": "M-MP-SM-17ca-1",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-OT-6bad",
"size-plu": "M-MP-SM-25d0-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-HA-7af0",
"size-plu": "M-MP-SM-6d59-1",
"quantity": 3,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-MU-d50d",
"size-plu": "M-MP-SM-d8f8-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-SP-0e73",
"size-plu": "M-MP-SM-a303-1",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-MU-921b",
"size-plu": "M-MP-SM-3465-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
}
]
}
]
}
]
}
]
}
],
"payment": [
{
"type": "cash",
"amount": 24.5,
"change": 2,
"payment-id": "1234567781",
"card-4-digit": "",
"card-type": ""
},
{
"type": "card",
"amount": 138,
"change": 0,
"payment-id": "123456773",
"card-4-digit": "1234",
"card-type": "visa"
}
],
"discount": [
{
"plu": "mix_and_match_0001",
"type": "promo_code",
"amount": 5
}
]
}
}
{
"business-details": {
"business-id": "123456"
},
"customer": {
"name": "John Doe",
"email": "[email protected]",
"phone": "01234567812",
"address": {
"flat": "1/15",
"street": "1/15 kingsknowe court edinburgh",
"city": "edinburgh",
"postcode": "EH14 2JS"
}
},
"order": {
"details": {
"order-id": "API117",
"order-type": "eat_in",
"order-status": "placed",
"total-tax": 22,
"total-discount": 5,
"total-amount": 104,
"tip-amount": 2,
"delivery-charges": 3.5
},
"items": [
{
"plu": "mix_and_match_0001",
"size-plu": "",
"quantity": 2,
"price": 3,
"discount-amount": 0,
"tax-amount": 0,
"type": "mix-and-match",
"topping-style": "",
"taxes": [],
"options": [
{
"type": "pizza",
"data": [
{
"plu": "pizaa_00009",
"size-plu": "ps_sf45",
"quantity": 2,
"price": 4,
"discount-amount": 0,
"tax-amount": 3,
"total-with-tax": 2,
"type": "pizza",
"topping-style": "half_and_half",
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 2,
"tax-percentage": 20
}
],
"options": [
{
"type": "modifier",
"data": [
{
"plu": "M-DE-2b36",
"size-plu": "M-MP-SM-5230-1",
"quantity": 2,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.1,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.9,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-TH-5a07",
"size-plu": "M-MP-SM-17ca-1",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-OT-6bad",
"size-plu": "M-MP-SM-25d0-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-HA-7af0",
"size-plu": "M-MP-SM-6d59-1",
"quantity": 3,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-MU-d50d",
"size-plu": "M-MP-SM-d8f8-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-SP-0e73",
"size-plu": "M-MP-SM-a303-1",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-MU-921b",
"size-plu": "M-MP-SM-3465-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
}
]
}
]
}
]
},
{
"type": "item",
"data": [
{
"plu": "item_00006",
"size-plu": "item_multi_0008",
"quantity": 2,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 2,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.7,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.3,
"tax-percentage": 20
}
],
"options": [
{
"type": "modifier",
"data": [
{
"plu": "mod_00006",
"size-plu": "mod_multi_00009",
"quantity": 1,
"price": 3,
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.15,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.85,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "mod_00006",
"size-plu": "mod_multi_00008",
"quantity": 2,
"price": 3,
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.4,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.6,
"tax-percentage": 20
}
],
"options": []
}
]
}
]
}
]
}
]
},
{
"plu": "item_00006",
"size-plu": "item_multi_0008",
"quantity": 2,
"price": 3,
"type": "item",
"topping-style": "",
"split-part": "",
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 2,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.7,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.3,
"tax-percentage": 20
}
],
"options": [
{
"type": "modifier",
"data": [
{
"plu": "mod_00006",
"size-plu": "mod_multi_00009",
"quantity": 1,
"price": 3,
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.15,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.85,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "mod_00006",
"size-plu": "mod_multi_00008",
"quantity": 2,
"price": 3,
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.4,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.6,
"tax-percentage": 20
}
],
"options": []
}
]
}
]
}
],
"payment": [
{
"type": "cash",
"amount": 24.5,
"change": 2,
"payment-id": "1234567781",
"card-4-digit": "",
"card-type": ""
},
{
"type": "card",
"amount": 82,
"change": 0,
"payment-id": "123456773",
"card-4-digit": "1234",
"card-type": "visa"
}
],
"discount": [
{
"plu": "mix_and_match_0001",
"type": "promo_code",
"amount": 5
}
]
}
}
{
"business-details": {
"business-id": "123456"
},
"customer": {
"name": "John Doe",
"email": "[email protected]",
"phone": "01234567893",
"address": {
"flat": "1/15",
"street": "kingsknowe court",
"city": "edinburgh",
"postcode": "EH14 2JS"
}
},
"order": {
"details": {
"order-id": "API119",
"order-type": "eat_in",
"order-status": "placed",
"total-tax": 52,
"total-discount": 5,
"total-amount": 245,
"tip-amount": 2,
"delivery-charges": 3.5
},
"items": [
{
"plu": "deal_00001",
"size-plu": "",
"quantity": 2,
"price": 3,
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"type": "meal-deal",
"topping-style": "",
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.35,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.65,
"tax-percentage": 20
}
],
"options": [
{
"type": "pizza",
"data": [
{
"plu": "pizaa_00009",
"size-plu": "ps_sf45",
"quantity": 2,
"price": 0,
"discount-amount": 0,
"tax-amount": 0,
"type": "pizza",
"topping-style": "half_and_half",
"taxes": [],
"options": [
{
"type": "modifier",
"data": [
{
"plu": "M-DE-2b36",
"size-plu": "M-MP-SM-5230-1",
"quantity": 2,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.1,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.9,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-TH-5a07",
"size-plu": "M-MP-SM-17ca-1",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-OT-6bad",
"size-plu": "M-MP-SM-25d0-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-HA-7af0",
"size-plu": "M-MP-SM-6d59-1",
"quantity": 3,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-MU-d50d",
"size-plu": "M-MP-SM-d8f8-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-SP-0e73",
"size-plu": "M-MP-SM-a303-1",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-MU-921b",
"size-plu": "M-MP-SM-3465-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
}
]
}
]
}
]
},
{
"type": "item",
"data": [
{
"plu": "item_00006",
"size-plu": "item_multi_0008",
"quantity": 2,
"price": 0,
"split-part": "",
"discount-amount": 0,
"tax-amount": 0,
"total-with-tax": 2,
"type": "item",
"taxes": [],
"options": [
{
"type": "modifier",
"data": [
{
"plu": "mod_00006",
"size-plu": "mod_multi_00009",
"quantity": 2,
"price": 3,
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.35,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.65,
"tax-percentage": 20
}
]
},
{
"plu": "mod_00006",
"size-plu": "mod_multi_00008vdf",
"quantity": 1,
"price": 3,
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.65,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.35,
"tax-percentage": 20
}
]
}
]
}
]
}
]
}
]
},
{
"plu": "pizaa_00009",
"size-plu": "ps_sf45",
"quantity": 2,
"price": 0,
"discount-amount": 0,
"tax-amount": 0,
"type": "query-meal-deal",
"topping-style": "half_and_half",
"taxes": [],
"options": [
{
"type": "modifier",
"data": [
{
"plu": "M-DE-2b36",
"size-plu": "M-MP-SM-5230-1",
"quantity": 2,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.1,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.9,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-TH-5a07",
"size-plu": "M-MP-SM-17ca-1",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-OT-6bad",
"size-plu": "M-MP-SM-25d0-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-HA-7af0",
"size-plu": "M-MP-SM-6d59-1",
"quantity": 3,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-MU-d50d",
"size-plu": "M-MP-SM-d8f8-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-SP-0e73",
"size-plu": "M-MP-SM-a303-1",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-MU-921b",
"size-plu": "M-MP-SM-3465-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
}
]
},
{
"type": "item",
"data": [
{
"plu": "I-PA-eb26",
"size-plu": "",
"quantity": 2,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.1,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.9,
"tax-percentage": 20
}
],
"options": [
{
"type": "modifier",
"data": []
}
]
}
]
}
]
}
],
"payment": [
{
"type": "cash",
"amount": 24.5,
"change": 2,
"payment-id": "1234567781",
"card-4-digit": "",
"card-type": ""
},
{
"type": "card",
"amount": 223,
"change": 0,
"payment-id": "123456773",
"card-4-digit": "1234",
"card-type": "visa"
}
],
"discount": [
{
"plu": "mix_and_match_0001",
"type": "promo_code",
"amount": 5
}
]
}
}
{
"business-details": {
"business-id": "123456"
},
"customer": {
"name": "John Doe",
"email": "[email protected]",
"phone": "01234567893",
"address": {
"flat": "1/15",
"street": "kingsknowe court",
"city": "edinburgh",
"postcode": "EH14 2JS"
}
},
"order": {
"details": {
"order-id": "API119",
"order-type": "eat_in",
"total-tax": 52,
"total-discount": 5,
"total-amount": 245,
"tip-amount": 2,
"delivery-charges": 3.5
},
"items": [
{
"plu": "deal_00001",
"size-plu": "",
"quantity": 2,
"price": 3,
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"type": "meal-deal",
"topping-style": "",
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.35,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.65,
"tax-percentage": 20
}
],
"options": [
{
"type": "pizza",
"data": [
{
"plu": "pizaa_00009",
"size-plu": "ps_sf45",
"quantity": 2,
"price": 0,
"discount-amount": 0,
"tax-amount": 0,
"type": "pizza",
"topping-style": "half_and_half",
"taxes": [],
"options": [
{
"type": "modifier",
"data": [
{
"plu": "M-DE-2b36",
"size-plu": "M-MP-SM-5230-1",
"quantity": 2,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.1,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.9,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-TH-5a07",
"size-plu": "M-MP-SM-17ca-1",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-OT-6bad",
"size-plu": "M-MP-SM-25d0-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-HA-7af0",
"size-plu": "M-MP-SM-6d59-1",
"quantity": 3,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-MU-d50d",
"size-plu": "M-MP-SM-d8f8-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-SP-0e73",
"size-plu": "M-MP-SM-a303-1",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-MU-921b",
"size-plu": "M-MP-SM-3465-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
}
]
}
]
}
]
},
{
"type": "item",
"data": [
{
"plu": "item_00006",
"size-plu": "item_multi_0008",
"quantity": 2,
"price": 0,
"split-part": "",
"discount-amount": 0,
"tax-amount": 0,
"total-with-tax": 2,
"type": "item",
"taxes": [],
"options": [
{
"type": "modifier",
"data": [
{
"plu": "mod_00006",
"size-plu": "mod_multi_00009",
"quantity": 2,
"price": 3,
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.35,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.65,
"tax-percentage": 20
}
]
},
{
"plu": "mod_00006",
"size-plu": "mod_multi_00008vdf",
"quantity": 1,
"price": 3,
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.65,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.35,
"tax-percentage": 20
}
]
}
]
}
]
}
]
}
]
},
{
"plu": "pizaa_00009",
"size-plu": "ps_sf45",
"quantity": 2,
"price": 0,
"discount-amount": 0,
"tax-amount": 0,
"type": "query-meal-deal",
"topping-style": "half_and_half",
"taxes": [],
"options": [
{
"type": "modifier",
"data": [
{
"plu": "M-DE-2b36",
"size-plu": "M-MP-SM-5230-1",
"quantity": 2,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.1,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.9,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-TH-5a07",
"size-plu": "M-MP-SM-17ca-1",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-OT-6bad",
"size-plu": "M-MP-SM-25d0-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-HA-7af0",
"size-plu": "M-MP-SM-6d59-1",
"quantity": 3,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-MU-d50d",
"size-plu": "M-MP-SM-d8f8-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-SP-0e73",
"size-plu": "M-MP-SM-a303-1",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-MU-921b",
"size-plu": "M-MP-SM-3465-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
}
]
},
{
"type": "item",
"data": [
{
"plu": "I-PA-eb26",
"size-plu": "",
"quantity": 2,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.1,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.9,
"tax-percentage": 20
}
],
"options": [
{
"type": "modifier",
"data": []
}
]
}
]
}
]
}
],
"payment": [
{
"type": "cash",
"amount": 24.5,
"change": 2,
"payment-id": "1234567781",
"card-4-digit": "",
"card-type": ""
},
{
"type": "card",
"amount": 223,
"change": 0,
"payment-id": "123456773",
"card-4-digit": "1234",
"card-type": "visa"
}
],
"discount": [
{
"plu": "mix_and_match_0001",
"type": "promo_code",
"amount": 5
}
]
}
}
{
"business-details": {
"business-id": "123456"
},
"customer": {
"name": "John Doe",
"email": "[email protected]",
"phone": "01234567893",
"address": {
"flat": "1/15",
"street": "kingsknowe court",
"city": "edinburgh",
"postcode": "EH14 2JS"
}
},
"order": {
"details": {
"order-id": "API127",
"order-type": "eat_in",
"order-status": "placed",
"total-tax": 49,
"total-discount": 5,
"total-amount": 230,
"tip-amount": 2,
"delivery-charges": 3.5
},
"items": [
{
"plu": "deal_00001",
"size-plu": "",
"quantity": 2,
"price": 3,
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"type": "meal-deal",
"topping-style": "",
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.35,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.65,
"tax-percentage": 20
}
],
"options": [
{
"type": "pizza",
"data": [
{
"plu": "pizaa_00009",
"size-plu": "pizza_multi_00001",
"quantity": 2,
"price": 0,
"discount-amount": 0,
"tax-amount": 0,
"type": "pizza",
"topping-style": "half_and_half",
"taxes": [],
"options": [
{
"type": "modifier",
"data": [
{
"plu": "M-DE-2b36",
"size-plu": "M-MP-SM-5230-1",
"quantity": 2,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.1,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.9,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-TH-5a07",
"size-plu": "M-MP-SM-17ca-1",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-OT-6bad",
"size-plu": "M-MP-SM-25d0-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-HA-7af0",
"size-plu": "M-MP-SM-6d59-1",
"quantity": 3,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-MU-d50d",
"size-plu": "M-MP-SM-d8f8-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-SP-0e73",
"size-plu": "M-MP-SM-a303-1",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-MU-921b",
"size-plu": "M-MP-SM-3465-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
}
]
}
]
}
]
},
{
"type": "item",
"data": [
{
"plu": "item_00006",
"size-plu": "item_multi_0008",
"quantity": 2,
"price": 0,
"split-part": "",
"discount-amount": 0,
"tax-amount": 0,
"total-with-tax": 2,
"type": "item",
"taxes": [],
"options": [
{
"type": "modifier",
"data": [
{
"plu": "mod_00006",
"size-plu": "mod_multi_00009",
"quantity": 2,
"price": 3,
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.35,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.65,
"tax-percentage": 20
}
]
},
{
"plu": "mod_00006",
"size-plu": "mod_multi_00008vdf",
"quantity": 1,
"price": 3,
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.65,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.35,
"tax-percentage": 20
}
]
}
]
}
]
}
]
}
]
},
{
"plu": "pizaa_00009",
"size-plu": "ps_sf45",
"quantity": 2,
"price": 0,
"discount-amount": 0,
"tax-amount": 0,
"type": "query-meal-deal",
"topping-style": "half_and_half",
"taxes": [],
"options": [
{
"type": "modifier",
"data": [
{
"plu": "M-DE-2b36",
"size-plu": "M-MP-SM-5230-1",
"quantity": 2,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.1,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.9,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-TH-5a07",
"size-plu": "M-MP-SM-17ca-1",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-OT-6bad",
"size-plu": "M-MP-SM-25d0-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-HA-7af0",
"size-plu": "M-MP-SM-6d59-1",
"quantity": 3,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-MU-d50d",
"size-plu": "M-MP-SM-d8f8-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-SP-0e73",
"size-plu": "M-MP-SM-a303-1",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-MU-921b",
"size-plu": "M-MP-SM-3465-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
}
]
},
{
"type": "item",
"data": [
{
"plu": "I-PA-eb26",
"size-plu": "",
"quantity": 2,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.1,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.9,
"tax-percentage": 20
}
],
"options": [
{
"type": "modifier",
"data": []
}
]
}
]
}
]
},
{
"plu": "mix_and_match_0001",
"size-plu": "",
"quantity": 2,
"price": 3,
"discount-amount": 0,
"tax-amount": 0,
"total-with-tax": 1.99,
"type": "mix-and-match",
"topping-style": "",
"taxes": [],
"options": [
{
"type": "pizza",
"data": [
{
"plu": "pizaa_00009",
"size-plu": "ps_sf45",
"quantity": 2,
"price": 4,
"discount-amount": 0,
"tax-amount": 3,
"total-with-tax": 2,
"type": "pizza",
"topping-style": "half_and_half",
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 2,
"tax-percentage": 20
}
],
"options": [
{
"type": "modifier",
"data": [
{
"plu": "M-DE-2b36",
"size-plu": "M-MP-SM-5230-1",
"quantity": 2,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.1,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.9,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-TH-5a07",
"size-plu": "M-MP-SM-17ca-1",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-OT-6bad",
"size-plu": "M-MP-SM-25d0-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-HA-7af0",
"size-plu": "M-MP-SM-6d59-1",
"quantity": 3,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-MU-d50d",
"size-plu": "M-MP-SM-d8f8-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-SP-0e73",
"size-plu": "M-MP-SM-a303-1",
"quantity": 3,
"price": 3,
"split-part": "left",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
},
{
"plu": "M-MU-921b",
"size-plu": "M-MP-SM-3465-1",
"quantity": 3,
"price": 3,
"split-part": "right",
"discount-amount": 0,
"tax-amount": 2,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 1.5,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.5,
"tax-percentage": 20
}
],
"options": []
}
]
}
]
}
]
},
{
"type": "item",
"data": [
{
"plu": "item_00006",
"size-plu": "item_multi_0008",
"quantity": 2,
"price": 3,
"split-part": "",
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 2,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.7,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.3,
"tax-percentage": 20
}
],
"options": [
{
"type": "modifier",
"data": [
{
"plu": "mod_00006",
"size-plu": "mod_multi_00009",
"quantity": 2,
"price": 3,
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.15,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.85,
"tax-percentage": 20
}
]
},
{
"plu": "mod_00006",
"size-plu": "mod_multi_00008",
"quantity": 1,
"price": 3,
"discount-amount": 0,
"tax-amount": 1,
"total-with-tax": 1.99,
"taxes": [
{
"tax-plu": "tax_00001",
"tax-amount": 0.4,
"tax-percentage": 20
},
{
"tax-plu": "tax_00001",
"tax-amount": 0.6,
"tax-percentage": 20
}
]
}
]
}
]
}
]
}
]
}
],
"payment": [
{
"type": "cash",
"amount": 24.5,
"change": 2,
"payment-id": "1234567781",
"card-4-digit": "",
"card-type": ""
},
{
"type": "card",
"amount": 208,
"change": 0,
"payment-id": "123456773",
"card-4-digit": "1234",
"card-type": "visa"
}
],
"discount": [
{
"plu": "mix_and_match_0001",
"type": "promo_code",
"amount": 5
}
]
}
}
{
"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!"
}