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.
Order
Json example:
{ "freight": { "carrier": { "company_id": 317210 }, "capacity": 20, "loading_meters": 3, "requirements": { "is_ftl": true, "other_requirements": null, "required_adr_classes": null, "required_ways_of_loading": null, "shipping_remarks": null, "required_truck_bodies": [ "41_bde" ] }, "publish": "smartmatch", "loads": [], "spots": [ { "name": null, "spot_order": 1, "place": { "address": { "locality": "Дн?про", "postal_code": "49000", "country": "UA", "street": "Каштановая", "number": "35" } }, "coordinates": { "latitude": 48.4977774, "longitude": 35.0896543 }, "operations": [ { "type": "loading", "operation_order": 1, "loads": [], "timespans": { "begin": "2020-04-10T00:00:00", "end": "2020-04-10T00:00:00" } } ] }, { "name": null, "spot_order": 2, "place": { "address": { "locality": "Дн?про", "postal_code": "49000", "country": "UA", "street": "Писаржевкого", "number": "1" } }, "coordinates": { "latitude": 48.4548583, "longitude": 35.0549241 }, "operations": [ { "type": "unloading", "operation_order": 1, "loads": [], "timespans": { "begin": "2020-04-11T00:00:00", "end": "2020-04-11T00:00:00" } } ] } ] }, "additional_terms": "My additional terms", "number": "ORDER/123/2019", "payment": { "days": 365, "price": { "type": "km", "value": 100, "currency": "1_eur" } }, "monitoring": { "required": true, "providers": [] }, "insurance": { "load": { "value": 100, "currency": "1_eur" }, "third_party": { "value": 150, "currency": "1_eur" } } }