...
Este endpoint permite o envio de requisições para a criação de novos pedidos na API Order , especificamente para pedidos realizados em mesa, utilizando a barramento de serviços. A estrutura JSON apresentada ilustra um exemplo de payload para o endpoint newOrder, destinado ao registro de pedidos com itens de valor integral incluindo adicionais e desconto em um item.
...
| Bloco de código | ||||
|---|---|---|---|---|
| ||||
{
"integrationHubServiceId": "e079e724818484b6-d3d4bad8-483a43e4-a6cea44d-4b804b5b6e399a6b0280ffb2",
"data": {
"id": "2b36e76700e50465-fd3c560a-46d14354-819290ca-c165abea850f0a4dd144bbef",
"type": "TABLE",
"displayId": "575",
"createdAt": "2024-06-24T17:35:00",
"orderTiming": "2024-06-24T17:40:24",
"preparationStartDateTime": "2024-06-24T18:00:00",
"merchant": {
"id": "c312d2ff-1a8f-40ad-8eed-9ae9a908df6e",
"name": "BOTECO DO ALBINO"
},
"items": [
{
"id": "603",
"index": "603",
"name": "A FRANCESA",
"externalCode": "1",
"unit": "UN",
"quantity": 1,
"specialInstructions": "Teste",
"unitPrice": {
"value": 69.90,
"currency": "R$"
},
"optionsPrice": {
"value": 01.000,
"currency": "R$"
},
"totalPrice": {
"value": 69.90,
"currency": "R$"
},
"options": [
{
"index": "614",
"id": "614",
"name": "COMPOSICAO A",
"externalCode": "201",
"unit": "UN",
"quantity": 1,
"unitPrice": {
"value": 1.00,
"currency": "R$"
},
"originalPrice": {
"value": 1.00,
"currency": "R$"
},
"totalPrice": {
"value": 1.00,
"currency": "R$"
},
"productionPoint": "Teste"
}
]
}
],
"otherFees": [],
"discountstotal":[
{
"value":10.0,
"target":"ITEM",
"targetId":"60",
"sponsorshipValues":[
{
"name":"MARKETPLACE",
"value":0.0
}
]
}
],
"total": {
"items": 70.90,
" "items": 70.90,
"otherFees": 0.00,
"discount": 100.00,
"orderAmount": 6070.90,
"additionalFees": 0,
"deliveryFee": 0
},
"payments": {
"prepaid": 0.0,
"pending": 0.0,
"methods": [
{
"value": 6070.90,
"currency": "BRL",
"type": "PREPAID",
"method": "credit",
"methodInfo": "Visa",
"changeFor": 0.0
}
]
},
"delivery": null,
"extraInfo": "Teste",
"schedule": null,
"indoor": null,
"takeout": null,
"table": {
"waiterCode": "9999",
"tableNumber": "575",
"chairNumber": "1"
},
"card": null
}
} |
...