...
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 no pedido.
...
Âncora | ||||
---|---|---|---|---|
|
...
Bloco de código | ||||
---|---|---|---|---|
| ||||
{ "integrationHubServiceId": "933aadb45ffec6b8-c33b1c55-40b84a7d-8285985f-bf1e575d8b3812d13685b553", "data": { "id": "9ec389e5f4114e16-7582c2e4-47684dc3-875b86f3-ee7c309aa34f98a52bfd5d7d", "type": "TABLE", "displayId": "2958", "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": "61", "index": "60", "name": "A "name":"BOTECO DO ALBINO" }, "items":FRANCESA", "externalCode": "1", "unit": "UN", "quantity": 1, "specialInstructions": "Teste", "unitPrice": { "value": 69.90, "currency": "R$" }, "optionsPrice": { "value": 0.0, "currency": "R$" }, "totalPrice": { "value": 69.90, "currency": "R$" }, "options": [ { "idindex": "397359402161", "indexid": "2161", "name": "MARACUJACOMPOSICAO A", "externalCode": "58201", "unit": "UN", "quantity": 1.0, "specialInstructionsunitPrice":"Teste", "unitPrice":{ "value":61 1.00, "currency": "R$" }, "optionsPriceoriginalPrice": { "value":0 1.000, "currency": "R$" }, "totalPrice": { "value":61 1.00, "currency": "R$" }, "otherFeesproductionPoint":[] "Teste" } ] } ], "otherFees": [], "total": { "items": 70.90, "otherFees": 0, "discount": 0.0, "orderAmount": 70.90, "additionalFees": 0, "deliveryFee": 0 }, "payments": { "prepaid": 0.0, "pending": 0.0, "methods": [ { "value": 70.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": "57", "chairNumber": "1" }, "card": null } } |
Nota | ||
---|---|---|
| ||
Sua solicitação foi aceita mas ainda não processada, aguarde alguns instantes e procure o status. |
Bloco de código | ||||
---|---|---|---|---|
| ||||
integrationHubServiceId: string, data: id: string, type: DELIVERY, displayId: string, sourceAppId: string, salesChannel: string, createdAt: string, lastEvent: CREATED, orderTiming: INSTANT, preparationStartDateTime: string, merchant: id: string, name: string items: id: string"total":{ "items":61.00, "otherFees":0, "discount":0.00, "orderAmount":61.00, "additionalFees":0, index: string, "deliveryFee":0 name: string, externalCode: }string, "payments":{ unit: UN, ean: string, "prepaid" quantity:0.0, 0, specialInstructions: string, unitPrice: value: 0, currency: string originalPrice: "pending":0.0 value: 0, "methods":[currency: string optionsPrice: value: 0, currency: string { totalPrice: "value":61.00 0, currency: string "currency":"BRL" options: index: string, id: string, "type":"PREPAID"name: string, externalCode: string, "method":"credit"unit: UN, ean: string, "methodInfo":"Visa", quantity: 0, unitPrice: "changeFor":0.0 value: 0, currency: string originalPrice: value: 0, }currency: string ] totalPrice: } value: 0, "delivery":null currency: string productionPoint: string otherFees: total: items: 0, otherFees: 0, "extraInfo":"Teste"discount: 0, orderAmount: "schedule":null0, additionalFees: 0, deliveryFee: "indoor":null0 payments: prepaid: 0, pending: 0, "takeout":null, methods: value: 0, "table":{ currency: string, type: OFFLINE, "waiterCode":"9999"method: CREDIT, "tableNumber":"29", brand: VISA, methodInfo: string, changeFor: 0 "chairNumber":"1"delivery: null, extraInfo: Teste, schedule: }null, takeout: null, "card":nullindoor: null, table: } } | ||||
Nota | ||||
| ||||
Sua solicitação foi aceita mas ainda não processada, aguarde alguns instantes e procure o status. waiterCode: 0,
tableNumber: 0,
chairNumber: 0
card: null
|
...
Âncora | ||||
---|---|---|---|---|
|
A seguir, alguns dos erros comuns que podem ser apresentados ao lidar com requisições HTTP e suas respectivas respostas:
...