Creating new transport order in Trans.eu Platform and sending it directly to chosen carrier.
Url parameters and connection settings
- URL: https://api.platform.trans.eu
- Endpoint: /ext/orders-api/v1/orders-created
- Method: POST
Headers:
- Content-type: application/json
- Accept: application/json
- Authorization: Bearer {access_token}
- Api-key: {unique_app_api-key}
Authorization
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.
Example
Sample Json for creating new order using required data only
{
"freight": {
"requirements": {
"is_ftl": true,
"required_truck_bodies": [
"curtainsider",
"box"
]
},
"carrier": {
"company_id": 1013865
},
"capacity": 20,
"loads": [],
"spots": [
{
"spot_order": 1,
"place": {
"address": {
"locality": "Kraków",
"postal_code": "31-001",
"country": "PL"
}
},
"operations": [
{
"operation_order": 1,
"loads": [],
"type": "loading",
"timespans": {
"begin": "2021-06-22T11:00:00+0200",
"end": "2021-06-22T12: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": "2021-06-23T11:00:00+0200",
"end": "2021-06-23T11:00:00+0200"
}
}
]
}
]
},
"payment": {
"days": 30,
"price": {
"type": "km",
"value": 1500,
"currency": "pln"
}
},
"monitoring": {
"required": true
}
}