Esta página aún no está disponible en tu idioma
La estás leyendo 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.
Autorización
Cualquiera de estos
apiKeyapiKey · X-Api-Key · CabeceraA key from the account page.
Cualquiera de estos
bearerhttp · bearerA token obtained from the authorisation server.
Cuerpo de la solicitud
application/json
objectConsignmentOne consignment, as the API sees it.
idstringSolo lecturareference*Obligatoriostringlongitud mín 1longitud máx 120status*ObligatoriostringConsignmentStatusbooked | loading | sailing | landed | cancelledWhere a consignment has got to.createdAtstringSolo lecturaparentanyConsignmentSe refiere a sí mismo; desplegado arriba.tagsarray<string>únicosCada elemento
stringmetadataobjectCualquier otra propiedad
string
json
{
"reference": "string",
"status": "booked",
"parent": null,
"tags": [
"string"
],
"metadata": {}
}Respuestas
200
Acknowledged.Sin cuerpo.
Enviar una solicitud
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"
}'