Buscar entrega por chave de cartão
Request
ENDPOINT
/card/CARD_KEY/trackingMÉTODO
GETPath params
| Campo | Tipo | Descrição | Caracteres |
|---|---|---|---|
CARD_KEY * | string | Chave de identificação do cartão. | uuid |
Response
STATUS
200Response Body
{
"card_key": "92b4e2bd-4a6f-4c56-859e-17c729e1f0c8",
"tracking_code": "4F68A72B902317",
"status": "posted",
"recipient": "João Silva",
"address": {
"zip_code": "1234567",
"street": "Rua das Flores",
"number": 123,
"complement": "Bloco A",
"neighborhood": "Centro",
"city": "Cidade Exemplo",
"state": "SP"
},
"event": [
{
"created_at": "2024-02-27T08:30:00Z",
"old_status": "pending",
"new_status": "posted",
"description": "Pedido recebido e postado",
"place": "SAO PAULO"
}
]
}
Enumeradores DeliveryStatus
| Enumerador | Tradução |
|---|---|
| pending | Pendente |
| posted | Postado |
| prepared | Preparado |
| in_transfer | Em transferência |
| in_delivery_unit | Na unidade de entrega |
| on_route | Em rota |
| attempt_failed | Tentativa falhou |
| awaiting_withdrawal | Aguardando retirada |
| returning | Retornando |
| delivered | Entregue |
| returned | Devolvido |
| canceled | Cancelado |
| failed | Falhou |
| resend | Reenviado |
Erros
STATUS
4XXResponse Body
{
"title": "Not Found",
"description": "It was not possible to fetch the Tracking for the card_key f6bf148a-30b6-4a07-8c5b-3383a98ea32b.",
"translation": "Not Found",
"code": "TRACK000011"
}
| Code | Status code | Descrição |
|---|---|---|
| TRACK000011 | 404 | It was not possible to fetch the Tracking for the card_key {card_key}. |
| TRACK000016 | 400 | We're sorry, but the tracking could not be fetch. Please try again later. |