Pular para o conteúdo
duxt
Esta página ainda não está disponível no seu idioma
Você está lendo em 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.

Autorização

  • Qualquer um destes

    • apiKeyapiKey · X-Api-Key · Cabeçalho

      A key from the account page.

  • Qualquer um destes

    • 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.

Cabeçalho

  • X-Request-Idstring

    An identifier echoed back on every response.

Cookie

  • sessionstring

    An optional session, for a personalised order.

Respostas

200
A page of consignments.

Cabeçalhos

  • X-Request-Id*Obrigatóriostring
object
  • items*Obrigatórioarray<object>7

    Cada elemento

    objectConsignmentOne consignment, as the API sees it.
    • id*ObrigatóriostringApenas leitura
    • reference*Obrigatóriostringcomprimento mín 1comprimento máx 120
    • status*ObrigatóriostringConsignmentStatusbooked | loading | sailing | landed | cancelledWhere a consignment has got to.
    • createdAtstringApenas leitura
    • parentanyConsignmentRefere-se a si próprio; expandido acima.
    • tagsarray<string>únicos

      Cada elemento

      string
    • metadataobject

      Qualquer outra propriedade

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

O que fazer a seguir

  • 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*ObrigatóriostringA short, human-readable summary.
  • status*Obrigatóriointegermí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*ObrigatóriostringA short, human-readable summary.
  • status*Obrigatóriointegermín 400máx 599
  • detailstring | null
json
{
  "title": "string",
  "status": 400,
  "detail": "string"
}

Enviar um pedido

Autenticação

O que escrever aqui fica neste separador, nunca é guardado e só é enviado para o servidor que escolheu.

Parâmetros

session

O seu navegador não permite que uma página defina um cookie, por isso isto não pode ser enviado a partir daqui.

O pedido é enviado pelo seu navegador, diretamente para esse 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"
}'