Cette page n’est pas encore disponible dans votre langue
Vous la lisez en English (UK).
A consignment changed
post
consignmentChangedWebhook
Sent to the address registered for your account whenever a consignment you can see changes. Answer with any 2xx.
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.
Corps de la requête
application/json
objectConsignmentOne consignment, as the API sees it.
idstringLecture seulereference*Obligatoirestringlongueur min 1longueur max 120status*ObligatoirestringConsignmentStatusbooked | loading | sailing | landed | cancelledWhere a consignment has got to.createdAtstringLecture seuleparentanyConsignmentSe référence lui-même ; déplié plus haut.tagsarray<string>uniquesChaque élément
stringmetadataobjectToute autre propriété
string
json
{
"reference": "string",
"status": "booked",
"parent": null,
"tags": [
"string"
],
"metadata": {}
}Réponses
200
Acknowledged.Aucun corps.
Envoyer une requête
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"
}'