Saltar al contenido
duxt
Esta página aún no está disponible en tu idioma
La estás leyendo en English (UK).

Read a consignment

GET /consignments/{consignmentId}

get
/consignments/{consignmentId}

getConsignment

Autorización

  • Cualquiera de estos

    • apiKeyapiKey · X-Api-Key · Cabecera

      A key from the account page.

  • Cualquiera de estos

    • bearerhttp · bearer

      A token obtained from the authorisation server.

Parámetros

Ruta

  • consignmentId*Obligatoriostring

    The consignment's own identifier.

Respuestas

200
The consignment.

application/json

objectConsignmentOne consignment, as the API sees it.
  • id*ObligatoriostringSolo lectura
  • reference*Obligatoriostringlongitud mín 1longitud máx 120
  • status*ObligatoriostringConsignmentStatusbooked | loading | sailing | landed | cancelledWhere a consignment has got to.
  • createdAtstringSolo lectura
  • parentanyConsignmentSe refiere a sí mismo; desplegado arriba.
  • tagsarray<string>únicos

    Cada elemento

    string
  • metadataobject

    Cualquier otra propiedad

    string
json
{
  "id": "00000000-0000-4000-8000-000000000000",
  "reference": "string",
  "status": "booked",
  "createdAt": "2026-01-01T09:00:00Z",
  "parent": null,
  "tags": [
    "string"
  ],
  "metadata": {}
}
404
Something went wrong, described the same way every time.

application/problem+json

objectProblem
  • title*ObligatoriostringA short, human-readable summary.
  • status*Obligatoriointegermín 400máx 599
  • detailstring | null
json
{
  "title": "string",
  "status": 400,
  "detail": "string"
}

Enviar una solicitud

Autenticación

Lo que escriba aquí permanece en esta pestaña, no se guarda y solo se envía al servidor que eligió.

Parámetros

La solicitud la envía su navegador, directamente a ese servidor.

curl 'https://api.example.org/v3/consignments' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer demo-token' \
  -H 'X-Request-Id: 00000000-0000-4000-8000-000000000000' \
  -d '{
  "reference": "HB-1042",
  "status": "booked"
}'