Páginas filhas
  • New Order Cartão - Itens Fracionado com Adicionais

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

Esta documentação tem como finalidade demonstrar o formato JSON para envio de requisições de pedidos com item fracionando na API Order MesaCartão Consumo, utilizando o endpoint newOrder. Para pedidos com itens fracionandos e adicionais.

...

02. ENDPOINT
Âncora
endpoint
endpoint


MétodoURL
POSThttps://api-barramento.meuelevestage.com/order/newOrder


...

03. EXEMPLO DE UTILIZAÇÃO
Âncora
pedido_inteiro
pedido_inteiro

...

Bloco de código
titleJSON para pedido com item fracionado
linenumberstrue
{
   	"integrationHubServiceId": "3fea8768-bbd9-454b-9e7b-40841e9a6812",
   	"data": {
      		"id": "f853a079-d0cb-4612-847f-430460485c02",
      		"type": "TABLECARD",
      		"displayId": "29",
      		"createdAt": "2024-06-24T17:35:00",
      		"orderTiming": "2024-06-24T17:40:24",
      "preparationStartDateTime":"		"preparationStartDateTime": "2024-06-24T18:00:00",
      		"merchant": {
         			"id": "3d0cbd44-a6c4-469c-8ab3-c83700672ee1",
         			"name": "BOTECO DO ALBINO"
      		},
      		"items": [
         {
            			{
				"id": "3973594022",
            				"index": "22",
            				"name": "MARACUJA",
            "externalCode":"58",
            				"externalCode": "58",
				"unit": "UN",
            				"quantity": 0.5,
            				"specialInstructions": "Teste",
            				"unitPrice":{
                {
					"value": 61.00,
               					"currency": "R$"
            },
            				},
				"optionsPrice":{
                {
					"value": 0.0,
               					"currency": "R$"
            },
            				},
				"totalPrice":{
                {
					"value": 30.50,
               					"currency": "R$"
            },
            				},
				"otherFees": []
         }
      ],
      			}
		],
		"total": {
         			"items": 30.50,
         			"otherFees": 0,
         			"discount": 0.00,
         			"orderAmount": 20.50,
         			"additionalFees": 0,
         			"deliveryFee": 0
      		},
      "payments":{
         		"payments": {
			"prepaid": 0.0,
         			"pending": 0.0,
         			"methods": [
            {
               				{
					"value": 30.50,
               					"currency": "BRL",
               					"type":"PREPAID",
               " "PREPAID",
					"method": "credit",
               					"methodInfo": "Visa",
               "changeFor":0.0
            }
         ]
      },
      "delivery":null,
      "extraInfo":"Teste",
      "schedule":null,
      "indoor":null,
      "takeout":null,
      "table":{
         "waiterCode":"9999",
         "tableNumber":"29",
         "chairNumber":"1"
      },
      "card":null
   					"changeFor": 0.0
				}
			]
		},
		"delivery": null,
		"extraInfo": "Teste",
		"schedule": null,
		"indoor": null,
		"takeout": null,
		"table": null,
		"card": {
			"waiterCode": 9999,
			"cardNumber": 29,
			"deliveryTableNumber": 29
		}  
	}
}
Nota
titleNota: HTTP Status Code = 200 OK

Sua solicitação foi aceita mas ainda não processada, aguarde alguns instantes e procure o status.

...

Bloco de código
titleJSON Inválido
linenumberstrue
{
	"integrationHubServiceId": "3fea8768-bbd9-454b-9e7b-40841e9a6812",
	"data": {
		"id": "b1e26dd8f853a079-0a1bd0cb-486e4612-bf62847f-65e80ddce2f4430460485c02",
		"type": "TABLECARD",
		"displayId": 5529,
		"createdAt": "2024-06-24T17:35:00",
		"orderTiming": "2024-06-24T17:40:24",
		"preparationStartDateTime": "2024-06-24T18:00:00",
		"merchant": {
			"id": "c312d2ff3d0cbd44-1a8fa6c4-40ad469c-8eed8ab3-9ae9a908df6ec83700672ee1",
			"name": "BOTECO DO ALBINO"
		},
		"items": [
			{
				"id": "543973594022",
				"index": "5422",
				"name": "MARACUJA",
				"externalCode": "58",
				"unit": "UN",
				"quantity": 10.05,
				"specialInstructions": "Teste",
				"unitPrice": {
					"value": 61.00,
					"currency": "R$"
				},
				"optionsPrice": {
					"value": 0.0,
					"currency": "R$"
				},
				"totalPrice": {
					"value": 6130.0050,
					"currency": "R$"
				},
			}
		],
		"otherFees": []
			}
		],
		"total": {
			"items": 6130.050,
			"otherFees": 0,
			"discount": 0.000,
			"orderAmount": 6120.050,
			"additionalFees": 0,
			"deliveryFee": 0
		},
		"payments": {
			"prepaid": 0.0,
			"pending": 0.0,
			"methods": [
				{
					"value": 6130.050,
					"currency": "BRL",
					"type": "PREPAID",
					"method": "credit",
					"methodInfo": "Visa",
					"changeFor": 0.0
				}
			]
		},
		"delivery": null,
		"extraInfo": "Teste",
		"schedule": null,
		"indoor": null,
		"takeout": null,
		"table": {null,
			"waiterCodecard": "9999",{
			"tableNumberwaiterCode": "54"9999,
			"chairNumbercardNumber": "1"29,
		},
		"carddeliveryTableNumber": null29
		}  
	}
}
Bloco de código
titleJSON Resposta
linenumberstrue
{
	"errors": [
		{
			"key": "displayId",
			"message": "body.data.displayId must be a string"
		}
	]
}

...

Bloco de código
titleJSON Inválido
linenumberstrue
{
	"integrationHubServiceId": "3fea8768-bbd9-454b-9e7b-40841e9a6812",
	"data": {
		"id": "fa3a2d45f853a079-3a29d0cb-41364612-95e7847f-692d93db8b2b430460485c02",
		"type": "TABLECARD",
		"displayId": "5529",
		"createdAt": "2024-06-24T17:35:00",
		"orderTiming": "2024-06-24T17:40:24",
		"preparationStartDateTime": "2024-06-24T18:00:00",		
		"items": [
			{
				"id": "543973594022",
				"index": "5422",
				"name": "MARACUJA",
				"externalCode": "58",
				"unit": "UN",
				"quantity": 10.05,
				"specialInstructions": "Teste",
				"unitPrice": {
					"value": 61.00,
					"currency": "R$"
				},
				"optionsPrice": {
					"value": 0.0,
					"currency": "R$"
				},
				"totalPrice": {
					"value": 6130.0050,
					"currency": "R$"
				},
			}
		],
		"otherFees": []
			}
		],
		"total": {
			"items": 6130.050,
			"otherFees": 0,
			"discount": 0.000,
			"orderAmount": 6120.050,
			"additionalFees": 0,
			"deliveryFee": 0
		},
		"payments": {
			"prepaid": 0.0,
			"pending": 0.0,
			"methods": [
				{
					"value": 6130.050,
					"currency": "BRL",
					"type": "PREPAID",
					"method": "credit",
					"methodInfo": "Visa",
					"changeFor": 0.0
				}
			]
		},
		"delivery": null,
		"extraInfo": "Teste",
		"schedule": null,
		"indoor": null,
		"takeout": null,
		"table": null,
		"card": {
			"waiterCode": "9999",
			"tableNumbercardNumber": "54"29,
			"chairNumberdeliveryTableNumber": "1"29
		},  
		"card": null
	}
}
Bloco de código
titleJSON Resposta
linenumberstrue
{
	"errors": [
		{
			"key": "merchant",
			"message": "body.data.merchant is required"
		}
	]
}

...

Bloco de código
titleIntegration Hub Code Inválido
linenumberstrue
{
	"integrationHubServiceId": "f1b874af-96ab-4535-aac3-25118fe586c25118fe586cc",
	"data": {
		"id": "f1bddb3ff853a079-63c4d0cb-4b2f4612-be53847f-e4527275ad9d430460485c02",
		"type": "TABLECARD",
		"displayId": "5529",
		"createdAt": "2024-06-24T17:35:00",
		"orderTiming": "2024-06-24T17:40:24",
		"preparationStartDateTime": "2024-06-24T18:00:00",
		"merchant": {
			"id": "c312d2ff3d0cbd44-1a8fa6c4-40ad469c-8eed8ab3-9ae9a908df6ec83700672ee1",
			"name": "BOTECO DO ALBINO"
		},
		"items": [
			{
				"id": "543973594022",
				"index": "5422",
				"name": "MARACUJA",
				"externalCode": "58",
				"unit": "UN",
				"quantity": 10.05,
				"specialInstructions": "Teste",
				"unitPrice": {
					"value": 61.00,
					"currency": "R$"
				},
				"optionsPrice": {
					"value": 0.0,
					"currency": "R$"
				},
				"totalPrice": {
					"value": 6130.0050,
					"currency": "R$"
				},
			}
		],
		"otherFees": []
			}
		],
		"total": {
			"items": 6130.050,
			"otherFees": 0,
			"discount": 0.000,
			"orderAmount": 6120.050,
			"additionalFees": 0,
			"deliveryFee": 0
		},
		"payments": {
			"prepaid": 0.0,
			"pending": 0.0,
			"methods": [
				{
					"value": 6130.050,
					"currency": "BRL",
					"type": "PREPAID",
					"method": "credit",
					"methodInfo": "Visa",
					"changeFor": 0.0
				}
			]
		},
		"delivery": null,
		"extraInfo": "Teste",
		"schedule": null,
		"indoor": null,
		"takeout": null,
		"table": {null,
			"waiterCodecard": "9999",{
			"tableNumberwaiterCode": "54"9999,
			"chairNumbercardNumber": "1"29,
		},
		"carddeliveryTableNumber": null29
		}  
	}
}
Bloco de código
titleJSON Response
linenumberstrue
{
	"errors": [
		{
			"key": "integrationHubServiceId",
			"message": "Provider Merchant for integrationHubServiceId \"f1b874af-96ab-4535-aac3-25118fe586cc\" not found or disabled"
		}
	]
}

...

Dica
titleSaiba mais!

Para obter detalhes técnicos sobre o envio de requisições ao endpoint newOrder, incluindo a estrutura do corpo da requisição para itens com valor fracionando, adicionais e descontos  acesse a documentação clicando aqui.

Dica
titleSaiba mais!

Para obter detalhes técnicos sobre o envio de requisições ao endpoint newOrder, incluindo a estrutura do corpo da requisição para itens com valor fracionado, adicionais, descontos e taxa  acesse a documentação clicando aqui.


...


New Order Mesa - Itens Fracionando
New Order - Vários Itens


Templatedocumentos