Consultar entregas

Recuperar entrega por ID

Este endpoint permite que o vendedor (seller) recupere uma entrega utilizando o id como referência.

Escopo requerido

ValorDescrição
order-delivery:readPermite a leitura de entregas e dados relacionados.

Parâmetros da URL

CampoTipoDescriçãoObrigatório
idObjectIdID da entrega na plataforma.Sim

Chamada:

GET /v1.0/marketplace/orders/deliveries/{id} \
Host: apps.eupreciso.com.br \
Authorization: Bearer {access_token} \
Content-Type: application/json \

Resposta:

{
  "id": "671ac64594f71864cd8811b6",
  "status": "delivered",
  "items": [
    {
      "sequencial": 1,
      "amounts": {
        "currency": "BRL",
        "normalizer": 100,
        "total": 5000,
        "discount": {
          "currency": "BRL",
          "normalizer": 100,
          "total": 0,
          "shared": 0
        },
        "freight": {
          "currency": "BRL",
          "normalizer": 100,
          "total": 0,
          "shared": 0
        },
        "comission": {
          "normalizer": 100,
          "type": "value",
          "value": 500
        }
      },
      "info": {
        "sku": "example_sku",
        "id": "6702d9ee5c6008580b5e0e6a",
        "name": "Product Name",
        "description": "Product description",
        "images": ["https://example.com/image.jpg"],
        "attributes": [
          {
            "name": "color",
            "value": "black"
          }
        ],
        "extras": {},
        "dimensions": {
          "height": {
            "value": 3,
            "unit": "cm"
          },
          "width": {
            "value": 11,
            "unit": "cm"
          },
          "length": {
            "value": 17,
            "unit": "cm"
          },
          "weight": {
            "value": 220,
            "unit": "g"
          }
        }
      },
      "unit_price": {
        "currency": "BRL",
        "normalizer": 100,
        "value": 5000
      },
      "measure_unit": "PC",
      "quantity": 1
    }
  ],
  "shipping": {
    "posting_date": "2024-10-09T17:40:36.000Z",
    "delivery_date": "2024-10-17T02:04:11.000Z",
    "labels": {
      "requested_at": "2024-10-06T20:51:30.719Z",
      "generated_at": "2024-10-06T20:51:31.202Z",
      "url": "https://www.eupreciso.com.br/minhasvendas/pedido/6702ebb49359bd8347435a66/imprimir"
    },
    "tracking": {
      "number": "XXXXXXXXXXXXXXX",
      "label_id": "example-label-id-123",
      "url": "https://app.example.com/track"
    },
    "recipient": {
      "customer_type": "cpf|cnpj",
      "document_number": "XXXXXXXXXXX",
      "email": "[email protected]",
      "name": "Recipient Name",
      "phones": [
        {
          "area_code": "47",
          "country_code": "55",
          "number": "XXXXXXXXX"
        }
      ],
      "address": {
        "zipcode": "89203060",
        "street": "Example Street",
        "number": "1188",
        "district": "Example District",
        "city": "Example City",
        "state": "SC",
        "country": "BR",
        "complement": "Example Complement",
        "reference": ""
      }
    },
    "pickup_details": {
      "agency_id": "15",
      "agency_company": "JeT",
      "method": "Standard",
      "id": "16305",
      "company_name": "Company example",
      "email": "[email protected]",
      "postal_code": "89201270",
      "address": "Example Street",
      "number": "213",
      "complement": "Example Complement",
      "district": "Example District",
      "city": "Example City",
      "state": "SC",
      "phone": "47XXXXXXXX",
      "latitude": -26.2999739,
      "longitude": -48.844277
    },
    "handling_time": {
      "value": 7,
      "precision": "days",
      "workday": true,
      "limit_date": "2024-10-16T17:40:36.000Z"
    },
    "deadline": {
      "value": 8,
      "precision": "days",
      "workday": true,
      "limit_date": "2024-10-17T17:40:36.000Z"
    }
  }
}

Recuperar entregas por filtros

Este endpoint permite recuperar uma coleção de entregas utilizando filtros como referência.

Escopo requerido

ValorDescrição
order-delivery:readPermite a leitura de entregas e dados relacionados.

Filtros

CampoTipoDescriçãoObrigatório
statusStringStatus da entrega, pode ser os seguintes valores: pending, released, collected, posted, delivered, canceled, undelivered.Não
idStringId. da entrega.Não
label_idStringId. da Etiqueta.Não
tracking_numberStringNúmero de rastreio.Não

Paginação e Ordenação

CampoTipoDescriçãoObrigatório
_limitInteiroDetermina a quantidade de registros a serem retornados. Valor padrão 50.Não
_offsetInteiroPosição de registro de referência, a partir dele serão retornados os próximos N registros.Não
_sortStringOrdenação, sendo permitido os seguintes valores:Não
- created_at:asc
- created_at:desc
- updated_at:asc
- updated_at:desc

Chamada:

GET /v1.0/marketplace/orders/deliveries?_limit=20&_offset=150&status=delivered \
Host: apps.eupreciso.com.br \
Authorization: Bearer {access_token} \
Content-Type: application/json \

Resposta:

{
  "meta": {
    "page": {
      "limit": 20,
      "offset": 150,
      "count": 10,
      "max_limit": 100
    },
    "links": {
      "previous": "?_offset=130&_limit=20",
      "next": "?_offset=170&_limit=20",
      "self": "?_offset=150&_limit=20"
    }
  },
  "results": [
    {
      "id": "671ac64594f71864cd8811b6",
      "status": "delivered",
      "items": [
        {
          "sequencial": 1,
          "amounts": {
            "currency": "BRL",
            "normalizer": 100,
            "total": 5000,
            "discount": {
              "currency": "BRL",
              "normalizer": 100,
              "total": 0,
              "shared": 0
            },
            "freight": {
              "currency": "BRL",
              "normalizer": 100,
              "total": 0,
              "shared": 0
            },
            "comission": {
              "normalizer": 100,
              "type": "value",
              "value": 500
            }
          },
          "info": {
            "sku": "example_sku",
            "id": "6702d9ee5c6008580b5e0e6a",
            "name": "Product Name",
            "description": "Product description",
            "images": ["https://example.com/image.jpg"],
            "attributes": [
              {
                "name": "color",
                "value": "black"
              }
            ],
            "extras": {},
            "dimensions": {
              "height": {
                "value": 3,
                "unit": "cm"
              },
              "width": {
                "value": 11,
                "unit": "cm"
              },
              "length": {
                "value": 17,
                "unit": "cm"
              },
              "weight": {
                "value": 220,
                "unit": "g"
              }
            }
          },
          "unit_price": {
            "currency": "BRL",
            "normalizer": 100,
            "value": 5000
          },
          "measure_unit": "PC",
          "quantity": 1
        }
      ],
      "shipping": {
        "posting_date": "2024-10-09T17:40:36.000Z",
        "delivery_date": "2024-10-17T02:04:11.000Z",
        "labels": {
          "requested_at": "2024-10-06T20:51:30.719Z",
          "generated_at": "2024-10-06T20:51:31.202Z",
          "url": "https://www.eupreciso.com.br/minhasvendas/pedido/6702ebb49359bd8347435a66/imprimir"
        },
        "tracking": {
          "number": "XXXXXXXXXXXXXXX",
          "label_id": "example-label-id-123",
          "url": "https://app.example.com/track"
        },
        "recipient": {
          "customer_type": "cpf|cnpj",
          "document_number": "XXXXXXXXXXX",
          "email": "[email protected]",
          "name": "Recipient Name",
          "phones": [
            {
              "area_code": "47",
              "country_code": "55",
              "number": "XXXXXXXXX"
            }
          ],
          "address": {
            "zipcode": "89203060",
            "street": "Example Street",
            "number": "1188",
            "district": "Example District",
            "city": "Example City",
            "state": "SC",
            "country": "BR",
            "complement": "Example Complement",
            "reference": ""
          }
        },
        "pickup_details": {
          "agency_id": "15",
          "agency_company": "JeT",
          "method": "Standard",
          "id": "16305",
          "company_name": "Company example",
          "email": "[email protected]",
          "postal_code": "89201270",
          "address": "Example Street",
          "number": "213",
          "complement": "Example Complement",
          "district": "Example District",
          "city": "Example City",
          "state": "SC",
          "phone": "47XXXXXXXX",
          "latitude": -26.2999739,
          "longitude": -48.844277
        },
        "handling_time": {
          "value": 7,
          "precision": "days",
          "workday": true,
          "limit_date": "2024-10-16T17:40:36.000Z"
        },
        "deadline": {
          "value": 8,
          "precision": "days",
          "workday": true,
          "limit_date": "2024-10-17T17:40:36.000Z"
        }
      }
    }
  ]
}