- Mock serverhttps://otm-api-spec.redocly.app/_mock/api/5.9/otm/api/v5/consignments/{UUID}
- https://example.comhttps://example.com/api/v5/consignments/{UUID}
curl -i -X GET \
'https://otm-api-spec.redocly.app/_mock/api/5.9/otm/api/v5/consignments/{UUID}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Returned the entity with the provided UUID
Uniquely identifies this entity. A URI can be assigned by the client to indicate where more information can be retrieved. Note that every entity always has a unique EntityId. However since, OTM5.2 it is not required to send it in the request. One can be generated for you by the server.
The last modified date of this entity. If none is given the creation date is used instead.
The context events provides some optional information about the events that can provide additional information on the current state of this entity.
For example: your system might send ETA information for the arrival of a vehicle on a location. To make it clear what caused this ETA to be updated, we can include some information about what caused this ETA update by including an event as context. If your ETA update was caused by a location update, this event can be included as context. If the ETA was caused by a traffic accident on the route of the vehicle, you can include that event in the context.
Standardized identifiers of this entity as known in external systems. Use this to exchange repeatable partner or system specific identifiers without overloading externalAttributes.
[ { "id": "AAA", "scheme": "CAS" } ]
General description of consignment in Free text. e.g 20 europallets fruit. Meant for human inspection, not for automating processes.
Status defines whether this entity (e.g. trip or consignment) is a draft, requested, confirmed, in transit, completed, closed, rejected or cancelled. Status closed is about administrative closure, while completed is about the realization of e.g. a trip or consignment. A trip or consignment can be completed but not closed yet, e.g. when the invoice has not been paid yet. The values accepted (replaced by confirmed) and modified (replaced the lastModified field on every entity) are deprecated since OTM5.1, but will be supported for the whole OTM5.X line.
Free text to describe type of consignment. Usually used to indicate the property types of the products being transported (e.g. frozen, fragile, etc.).
The various goods that need to be transported, together they are part of this consignment.
Documents that are relevant for this consignment. Such as an official agreement between consignee and consignor.
The actors associated with this consignment, for instance the shipper and carrier. One should inline the actors only on the top-level entity (such as the transportOrder or trip)
General description of actions related to the consignment f.e. loading, unloading, hand over, drop of.
{ "entityType": "consignment", "id": "string", "name": "string", "creationDate": "2019-08-24T14:15:22Z", "lastModified": "2019-08-24T14:15:22Z", "contextEvents": [ { … } ], "externalAttributes": { "property1": {}, "property2": {} }, "externalIdentifiers": [ { … } ], "description": "string", "status": "draft", "type": "string", "goods": [ { … } ], "transportOrder": { "associationType": "inline", "entity": { … }, "description": "string" }, "documents": [ { … } ], "remark": "string", "actors": [ { … } ], "actions": [ { … } ], "constraint": { "associationType": "inline", "entity": { … }, "description": "string" }, "relatedConsignments": [ { … } ] }