Get Order
Obter um Pedido.
Realiza a busca de um pedido completo
Endpoint: GET /api/v1/store/{storeId}/order/{orderId}
Parâmetros de Requisição:
Headers:
Content-Type: application/json # Content Type da requisição (Obrigratorio)
Authorization: Bearer Token #Authorization gerado junto a plataforma Integradores Farmacias Digitais. (Obrigratorio)
Route:
storeId: "40666877-2321-455a-87ba-96a694a92ad8" #id da loja (Obrigratorio)
orderId : "abc66877-2321-455a-87ba-96a694a92ad8" #Id do Pedido (Obrigratorio)
Corpo da Resposta:
{
"Id": null,
"StoreId": null,
"ReferenceCode": "ASf1a3sdfasf65ads3d2fad1",
"IdExibition": "AA0-123456789",
"SalesChannel": "Venda App Y",
"OrderType": 0,
"Status": 1,
"AdditionalInformation": "Informação adicional",
"Customer": {
"Name": "Cliente X",
"Document": "99999999000191",
"PhoneNumber": "119999999001"
},
"Payment": {
"Pending": false,
"PrePaid": true,
"TotalPaid": 20,
"Method": 1,
"Amount": 20,
"ChangeFor": 0,
"AuthorizationCode": "dsfas56v1ds1s6va1f51v565v6avasdavds",
"AcquirerDocument": "99999999000191"
},
"Items": [
{
"Id": null,
"OrderId": null,
"ProductId": "00000000-0000-0000-0000-000000000000",
"Name": "soro fisiológico lbs frasco 100ml",
"UnitPrice": 10,
"Quantity": 1,
"ExternalCode": "d8d2055d-11ce-4211-98a7-896bc05d9e4d",
"TotalPrice": 10,
"TotalDiscount": 0,
"Index": 1,
"Unit": "PC",
"Ean": "7896830011001",
"Price": 10,
"Notes": "",
"ImageUrl": "",
"Type": "",
"OptionPrice": 0,
"Options": [
{
"Id": null,
"Name": "soro",
"GroupName": "Produto",
"ExternalCode": "2545a0be-ff38-4e29-8253-702bf67f26ce",
"Type": "",
"Quantity": 1,
"UnitPrice": 0,
"Additional": 0,
"Price": 0,
"Unit": "",
"Ean": "7896830011001",
"Index": 1,
"Customizations": [
{
"Id": "00000000-0000-0000-0000-000000000000",
"Name": null,
"GroupName": null,
"ExternalCode": null,
"Type": null,
"Quantity": 0,
"UnitPrice": 0,
"Additional": 0,
"Price": 0
}
]
}
]
}
],
"Delivery": {
"Reference": "Proximo ao centro",
"DeliveryType" :"Sedex",
"Country": "São Paulo",
"StreetName": "Rua teste",
"FormattedAddress": "Rua teste numero 123 apt 28 bloco 3 , São Paulo-SP Liberdade CEP 00000000",
"StreetNumber": "123",
"City": "SP",
"PostalCode": "00000000",
"Neighborhood": "Liberdade",
"State": "SP",
"AdditionalInfo": "Informacao adicional",
"Latitude": 100000,
"Longitude": 100000
},
"DeliveryFee": 10,
"OrderValue": 0,
"SubTotal": 20,
"AdditionalFees": 0,
"DiscountFees": 0,
"EstimatedDeliveryEnd": "2025-02-06T14:01:42.8947-03:00",
"EstimatedDeliveryStart": "2025-02-06T12:21:42.8947943-03:00",
"CreatedAt": "2025-02-06T11:41:42.8944333-03:00",
"DeliveredCompleted": "2025-02-06T14:41:42.895034Z",
"Canceled": "2025-02-06T11:41:42.8951789-03:00"
}