/api/v1/freights
POST
https://api-test.spotgo.eu/api/v1/freights
Freight
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-test.spotgo.eu/api/v1/freights' \
--header 'Content-Type: application/json; x-api-version=1.0' \
--data-raw '{
"externalNumber": "TEST01",
"owner": "daniel@spotgo.eu",
"sources": [
"1",
"2",
"3"
],
"useAlternativeLocations": true,
"locations": [
{
"sequence": 1,
"type": "Loading",
"address": {
"countryCode": "LT",
"postalCode": "01001",
"city": "Vilnius",
"coordinates": {
"lattitude": 54.6842,
"longitude": 25.2724
}
},
"period": {
"startDate": "2023-06-25T08:00:00",
"endDate": "2023-06-25T17:00:00"
}
},
{
"sequence": 2,
"type": "Unloading",
"address": {
"countryCode": "DE",
"postalCode": "10115",
"city": "Berlin"
},
"period": {
"startDate": "2023-06-28T08:00:00",
"endDate": "2023-06-28T17:00:00"
}
}
],
"requirements": {
"trailerTypes": [
1,
3
],
"loadingSide": "All",
"capacity": 8,
"pallets": 5,
"palletsExchange": false,
"ldm": 5,
"ftl": false,
"temperature": {
"max": 5,
"min": -5,
"regime": "Continuous"
}
},
"payment": {
"from": 500,
"growTo": 800,
"term": 30,
"until": "2023-07-25T19:00:00+00:00",
"updateRangeInHours": "01:00:00"
},
"comments": "Some comments for additional information [public]"
}'
Response Response Example
200 - Example 1
{}
Request
Body Params application/json; x-api-version=1.0
Responses
Modified at 2025-05-06 04:57:57