Esta página ainda não está disponível no seu idioma
Você está lendo em 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.
Autorização
Qualquer um destes
apiKeyapiKey · X-Api-Key · CabeçalhoA key from the account page.
Qualquer um destes
bearerhttp · bearerA token obtained from the authorisation server.
Corpo do pedido
application/json
objectConsignmentOne consignment, as the API sees it.
idstringApenas leiturareference*Obrigatóriostringcomprimento mín 1comprimento máx 120status*ObrigatóriostringConsignmentStatusbooked | loading | sailing | landed | cancelledWhere a consignment has got to.createdAtstringApenas leituraparentanyConsignmentRefere-se a si próprio; expandido acima.tagsarray<string>únicosCada elemento
stringmetadataobjectQualquer outra propriedade
string
json
{
"reference": "string",
"status": "booked",
"parent": null,
"tags": [
"string"
],
"metadata": {}
}Respostas
200
Acknowledged.Sem corpo.
Enviar um pedido
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"
}'