Saltar al contenido
duxt
Versión futura
Está consultando la documentación de una versión futura. Su documentación y sus funcionalidades pueden cambiar.
Esta página aún no está disponible en tu idioma
La estás leyendo en English (UK).

List consignments

get
/consignments

listConsignments

Returns a page of consignments, newest first.

Paging is by cursor; the value comes from the previous response's next field and is opaque.

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

Consulta

  • limitintegermín 1máx 100

    How many consignments to return.

  • cursorstring

    Where to continue from.

  • statusarray<string>únicos

    Cada elemento

    stringConsignmentStatusbooked | loading | sailing | landed | cancelledWhere a consignment has got to.

    Only consignments in these states.

    style=form explode=false
  • sessionstring

    The same session, for callers that cannot set the cookie — a page cannot, because `Cookie` is a header the browser refuses to let a script write. Deliberately the same *name* in a second location: OpenAPI identifies a parameter by the pair `(name, in)`, so these are two parameters, and a reference that keyed its try-it form on the name alone would send one box's answer to both.

Cabecera

  • X-Request-Idstring

    An identifier echoed back on every response.

Cookie

  • sessionstring

    An optional session, for a personalised order.

Respuestas

200
A page of consignments.

Cabeceras

  • X-Request-Id*Obligatoriostring
object
  • items*Obligatorioarray<object>7

    Cada elemento

    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
  • nextstring | nullThe cursor for the following page, if any.
json
{
  "items": [
    {
      "id": "00000000-0000-4000-8000-000000000000",
      "reference": "string",
      "status": "booked",
      "createdAt": "2026-01-01T09:00:00Z",
      "parent": null,
      "tags": [
        "string"
      ],
      "metadata": {}
    }
  ],
  "next": "string"
}

Qué hacer después

  • NextPagelistConsignments

    The same call again, with `cursor` set from `next`.

400
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"
}
default
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

session

Su navegador no permite que una página fije una cookie, así que esto no se puede enviar desde aquí.

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

curl 'https://api.example.org/v3/consignments?limit=20&cursor=string&status=%5B%0A++%22booked%22%0A%5D&session=string' \
  -H 'Authorization: Bearer demo-token' \
  -H 'X-Request-Id: 00000000-0000-4000-8000-000000000000'