Buscar pedido por id
GEThttps://erp.hub.it4360.com/api/v1/orders/{id}
Este endpoint permite buscar pedidos pedidos pelo seu id.
Rate limit
| Quantidade de Requisições | Tempo em Segundos |
|---|---|
| 120 | 60 |
Parâmetros
| Parâmetro | Tipo | Localização | Descrição | Obrigatório |
|---|---|---|---|---|
| IdDataSourceCompanyBranch | string | Header | Identificador da Company Branch. | Sim |
| Authorization | string | Header | Token de autenticação. | Sim |
| id | string | Route | Id do pedido. | Sim |
Exemplos de Requisição
curl --location 'https://erp.hub.it4360.com/api/v1/orders/XXXX-XXXXXX-XXXXXXXX-XXXXXX' \
--header 'IdDataSourceCompanyBranch: BR57BCF9-D043-4480-B9EF-A7C2641F0B82' \
--header 'Accept: text/plain' \
--header 'Authorization: Bearer token-de-autorizacao' \Respostas
-
200 Success - Sucesso.
Corpo da Resposta (Exemplo):
{ "id": "string", "orderNumber": "string", "idOrderSiteExhibition": "string", "totalGrossValue": 0, "totalDiscount": 0, "totalFreight": 0, "totalNetValue": 0, "totalIncrease": 0, "note": "string", "date": "2025-08-27T10:55:19.623Z", "customer": { "cpf": "string", "firstName": "string", "lastName": "string", "email": "string", "phone": "string", "neighborhood": "string", "street": "string", "complement": "string", "number": "string", "city": "string", "state": "string", "postalCode": "string" }, "items": [ { "description": "string", "refSku": "string", "ean": "string", "grossValue": 0, "netValue": 0, "freight": 0, "discount": 0, "increase": 0, "shippingAddress": { "receiverName": "string", "street": "string", "number": "string", "neighborhood": "string", "complement": "string", "city": "string", "state": "string", "postalCode": "string" }, "shippingMethod": { "name": "string", "code": "string", "erpShippingName": "string", "erpShippingCode": "string", "carrier": { "name": "string", "code": "string", "erpCarrierName": "string", "erpCarrierCode": "string" } } } ], "payments": [ { "paidValue": 0, "installment": 0, "nsu": "string", "idTransaction": "string", "authId": "string", "approval": "string", "giftCardCod": "string", "paymentDate": "2025-08-27T10:55:19.623Z", "approvalDate": "2025-08-27T10:55:19.623Z", "paymentMethod": { "description": "string", "code": "string", "erpCode": "string" }, "flag": { "description": "string", "code": "string", "erpCode": "string" } } ], "customProperties": [ { "key": "string", "value": "string" } ] } -
404 Not Found - Pedido não encontrado. Valide os dados informados.
Corpo da Resposta (Exemplo):
"Mensagem de erro detalhada."