Version obsolète
Vous consultez la documentation de v2.x, obsolète et qui n’est plus mise à jour. Envisagez de passer à v3.x. Aller à v3.x
Cette page n’est pas encore disponible dans votre langue
Vous la lisez en English (UK).
List consignments
get
/consignmentslistConsignments
Returns a page of consignments, newest first.
Changed in 2.0. Paging is by cursor rather than by page number;
the value comes from the previous response's next field.
Autorisation
L’un de ceux-ci suffit
apiKeyapiKey · X-Api-Key · En-têteA key from the account page.
L’un de ceux-ci suffit
bearerhttp · bearerA token obtained from the authorisation server.
Paramètres
Requête
limitintegermin 1max 100How many consignments to return.
cursorstringWhere to continue from.
Réponses
200
A page of consignments.application/json
object
items*Obligatoirearray<object>Chaque élément
objectConsignmentConsignmentOne consignment, as 2.x sees it.id*ObligatoirestringLecture seulereference*Obligatoirestringlongueur min 1longueur max 120Called `label` in 1.x.status*Obligatoirestringbooked | sailing | landedCalled `state` in 1.x. `cancelled` is new in 3.x.createdAtstringLecture seule
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"
}
],
"next": "string"
}400
Something went wrong, described the same way every time.application/problem+json
objectProblem
title*Obligatoirestringstatus*Obligatoireintegermin 400max 599
json
{
"title": "string",
"status": 400
}Envoyer une requête
curl 'https://api.example.org/v2/consignments?limit=20&cursor=string'