Versión futura
Está consultando la documentación de una versión futura. Su documentación y sus funcionalidades pueden cambiar.
Esta página aún no está disponible en tu idioma
La estás leyendo en English (UK).
Follow a consignment
get
/consignments/{consignmentId}/eventsstreamConsignmentEvents
Holds the connection open and writes one event per line as the
consignment moves, in the text/event-stream format.
The response is not a document, which is the interesting part for a reference: there is a schema for one event, and none for the body as a whole.
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.
Parámetros
Ruta
consignmentId*Obligatoriostring
Cabecera
Last-Event-IDstringResume after the event you last saw.
Respuestas
200
The stream, until you close it.text/event-stream
objectConsignmentEventOne thing that happened to a consignment.
id*ObligatoriostringThe value to send back as `Last-Event-ID`.at*Obligatoriostringstatus*ObligatoriostringConsignmentStatusbooked | loading | sailing | landed | cancelledWhere a consignment has got to.berthstring | nullWhere it is, once it is anywhere.
json
{
"id": "string",
"at": "2026-01-01T09:00:00Z",
"status": "booked",
"berth": "string"
}404
Something went wrong, described the same way every time.application/problem+json
objectProblem
title*ObligatoriostringA short, human-readable summary.status*Obligatoriointegermín 400máx 599detailstring | null
json
{
"title": "string",
"status": 400,
"detail": "string"
}Enviar una solicitud
curl 'https://api.example.org/v3/consignments?limit=20&cursor=string&status=%5B%0A++%22booked%22%0A%5D&session=string' \
-H 'Authorization: Bearer demo-token' \
-H 'X-Request-Id: 00000000-0000-4000-8000-000000000000'