Aller au contenu
duxt
Cette page n’est pas encore disponible dans votre langue
Vous la lisez en English (UK).

Read a consignment

GET /consignments/{consignmentId}

get
/consignments/{consignmentId}

getConsignment

Autorisation

  • L’un de ceux-ci suffit

    • apiKeyapiKey · X-Api-Key · En-tête

      A key from the account page.

  • L’un de ceux-ci suffit

    • bearerhttp · bearer

      A token obtained from the authorisation server.

Paramètres

Chemin

  • consignmentId*Obligatoirestring

    The consignment's own identifier.

Réponses

200
The consignment.

application/json

objectConsignmentOne consignment, as the API sees it.
  • id*ObligatoirestringLecture seule
  • reference*Obligatoirestringlongueur min 1longueur max 120
  • status*ObligatoirestringConsignmentStatusbooked | loading | sailing | landed | cancelledWhere a consignment has got to.
  • createdAtstringLecture seule
  • parentanyConsignmentSe référence lui-même ; déplié plus haut.
  • tagsarray<string>uniques

    Chaque élément

    string
  • metadataobject

    Toute autre propriété

    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*ObligatoirestringA short, human-readable summary.
  • status*Obligatoireintegermin 400max 599
  • detailstring | null
json
{
  "title": "string",
  "status": 400,
  "detail": "string"
}

Envoyer une requête

Authentification

Ce que vous saisissez ici reste dans cet onglet, n’est jamais conservé et n’est envoyé qu’au serveur que vous avez choisi.

Paramètres

La requête est envoyée par votre navigateur, directement à ce serveur.

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