CONTEÚDO
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.
Método | URL |
---|---|
POST | https://api-barramento.meuelevestage.com/order/newOrder |
Estrutura do corpo da requisição para criação de novos pedidos com itens de valor integral e adiconais
{ "integrationHubServiceId": "5ffec6b8-1c55-4a7d-985f-12d13685b553", "data": { "id": "f4114e16-c2e4-4dc3-86f3-98a52bfd5d7d", "type": "TABLE", "displayId": "58", "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 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": [ { "index": "61", "id": "61", "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": [], "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 } } |
Sua solicitação foi aceita mas ainda não processada, aguarde alguns instantes e procure o status. |
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, index: string, name: string, externalCode: string, unit: UN, ean: string, quantity: 0, specialInstructions: string, unitPrice: value: 0, currency: string originalPrice: value: 0, currency: string optionsPrice: value: 0, currency: string totalPrice: value: 0, currency: string options: index: string, id: string, name: string, externalCode: string, unit: UN, ean: string, quantity: 0, unitPrice: value: 0, currency: string originalPrice: value: 0, currency: string totalPrice: value: 0, currency: string productionPoint: string otherFees: total: items: 0, otherFees: 0, discount: 0, orderAmount: 0, additionalFees: 0, deliveryFee: 0 payments: prepaid: 0, pending: 0, methods: value: 0, currency: string, type: OFFLINE, method: CREDIT, brand: VISA, methodInfo: string, changeFor: 0 delivery: null, extraInfo: Teste, schedule: null, takeout: null, indoor: null, table: waiterCode: 0, tableNumber: 0, chairNumber: 0 card: null |
A seguir, alguns dos erros comuns que podem ser apresentados ao lidar com requisições HTTP e suas respectivas respostas: