Allows to access list of created transport orders.
Url parameters and connection settings
- URL: https://api.platform.trans.eu
- Endpoint: /ext/orders-api/v1/orders-created
- Method: GET
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.
Order
Details of order parameters, data range and description can be found here.
Available filters
List of available filters
- status (?filter={“status”:“proposal-rejected”})
- has_attachments (?filter={“has_attachments”: true})
- has_invoice (?filter={“has_invoice”:true})
- vat_id (?filter={“vat_id”:“1111111111”})
- created at: ?filter={“created_at”:{“$gt”: “2023–09-04T13:24:00.000Z”, “$lt”: “2023–11-03T13:24:00.000Z”}}
Filter example
https://api.platform.trans.eu/ext/orders-api/v1/orders-created?filter={"created_at":{"$gt": "2023-09-04T13:24:00.000Z", "$lt": "2023-11-03T13:24:00.000Z"}}
Sort by
- number (?sortBy=number&order=asc)
- loading date (?sortBy=freight.first_loading_place.date&order=desc)
- unloading date (?sortBy=freight.last_unloading_place.date&order=asc)
- creation date (?sortBy=created_at&order=asc)
- status (?sortBy=status.value&order=desc)
Paging
When calling GET method, page should be added as parameter in the URL, for example:
https://api.platform.trans.eu/ext/orders-api/v1/orders-created?page=4
Search
- shipment external id (?search={“shipment_external_id”: “1/1/1235”})
- reference_number (?search={“reference_number”:“FR/2024/06/12/2HSBC”})
Json example
List of orders containing one entity, each additional entity will repeat similar payload structure
[
{
"attachments": [
{
"description": "description",
"media_id": "5425ef8b-6bd6-47e5-bd8a-f452f5af6fa7",
"media_name": "9c2f2f2fac7ddef2c23be429e8f8862a.png",
"type_id": "2_transport_order"
}
],
"created_at": "2021-07-01T08:54:07.008Z",
"driver": {
"account_id": 771476,
"contact_phone": {
"number": "11111111111",
"prefix": "0048"
},
"family_name": "Driver",
"full_name": "Jan Driver",
"given_name": "Jan"
},
"freight": {
"carrier": {
"assignee": null,
"legal_name": "Test company",
"vat_id": "11111111111"
},
"reference_number": null,
"shipper": {
"assignee": {
"account_id": 749989,
"family_name": "Kowalski",
"given_name": "Krzysztof",
"trans_id": "1007374-1"
},
"legal_name": "Test spedition company",
"vat_id": "22222222222"
},
"spots": [
{
"description": "Example description",
"name": "Magazine 1",
"operations": [
{
"loads": [],
"operation_order": 1,
"time_window": null,
"time_window_reason": null,
"timespans": {
"begin": "2021-06-22T09:00:00.000Z",
"end": "2021-06-22T10:00:00.000Z"
},
"type": "loading"
}
],
"place": {
"address": {
"country": "pl",
"description": null,
"locality": "Kraków",
"number": "5",
"postal_code": "31-001",
"street": "Wawel"
},
"coordinates": {
"latitude": 50.06143,
"longitude": 19.93658
}
},
"spot_order": 1
},
{
"description": null,
"name": null,
"operations": [
{
"loads": [],
"operation_order": 1,
"time_window": null,
"time_window_reason": null,
"timespans": {
"begin": "2021-06-23T09:00:00.000Z",
"end": "2021-06-23T09:00:00.000Z"
},
"type": "unloading"
}
],
"place": {
"address": {
"country": "pl",
"description": null,
"locality": "Dąbrowa Środkowa",
"number": "34",
"postal_code": "59-330",
"street": "Średnia"
},
"coordinates": {
"latitude": 51.41828,
"longitude": 16.33485
}
},
"spot_order": 2
}
]
},
"id": "da012de9-faca-4b14-b380-9b94aadff6fa",
"invoice": null,
"legacy_freight_id": null,
"monitoring": {
"providers": [
"trans_task",
"external_telematics"
],
"required": true
},
"number": "2021/07/01/1",
"payment": {
"days": 30,
"price": {
"currency": "pln",
"protected": false,
"type": "km",
"value": 1500
}
},
"source": null,
"status": {
"comment": null,
"value": "waiting-for-confirmation"
},
"vehicle": {
"semi_trailer": {
"dispatcher_id": 54083,
"id": 501737,
"kind": "4_semi_trailer",
"registration_plate_number": "PL11111111",
"type": "5_tent"
},
"truck": {
"dispatcher_id": 41483,
"id": 236503,
"kind": "5_truck",
"registration_plate_number": "DW1111111",
"revision": 1,
"type": null
}
}
},
{
"next_order": "next_order"
}
]