Description
This method allows you to to change the conditions in an accepted transport order. This is a key functionality for logistics and transport companies that often have to react to dynamic changes in transport plans – such as corrections to addresses, dates, loading/unloading times, or payment terms.
Conditions that we can change:
- loads (can be send as empty array)
- shipment_external_id
- operations
- spots
- payment
- requirements
After such operation carrier will be able to accept order terms.
Url parameters and connection settings
- URL: https://api.platform.trans.eu
- Endpoint: /ext/orders-api/v2/{OrderId}/amendment/draft
- Method: POST
Headers
- Content-type: application/json
- Accept: application/json
- Authorization: Bearer {access_token}
- Api-key: {unique_app_api-key}
Authorization and access
Authorization process is described here. Each API request must also consist of unique Api-key obtained during application registration together with client_id and client_secret.
Update order request
Example of request for changing terms.
{
"freight": {
"loads": [],
"requirements": {
"transport": {
"type": "ltl"
}
},
"shipment_external_id": "123",
"spots": [
{
"spot_order": 1,
"place": {
"address": {
"locality": "Kraków",
"postal_code": "31-001",
"country": "PL"
}
},
"operations": [
{
"operation_order": 1,
"loads": [],
"type": "loading",
"timespans": {
"begin": "2025-01-22T13:00:00+0200",
"end": "2025-01-22T14:00:00+0200"
}
}
]
},
{
"spot_order": 2,
"place": {
"address": {
"locality": "Dąbrowa Środkowa",
"postal_code": "59-330",
"country": "PL"
}
},
"operations": [
{
"type": "unloading",
"operation_order": 1,
"loads": [],
"timespans": {
"begin": "2025-01-23T11:00:00+0200",
"end": "2025-01-23T11:00:00+0200"
}
}
]
}
]
},
"additional_terms": "string",
"payment": {
"days": 12,
"price": {
"value": 999999,
"currency": "pln"
}
}
}Response
{
"_links": {
"self": {
"href": "https://service.freight-orders.query:80/api/rest/v1/orders/5f932ac1-6d3e-4cff-b3d4-2357df4e938a/amendment-drafts"
}
},
"id": "df256b9f-ff3c-46e5-8054-a0ded4e3503d"
}