All the Endpoints requires the X-API-Key set in the header before calling.
Submit one or many orchestration requests.
- Mock serverhttps://developer.cargosprint.com/_mock/sprintpasspro/sprintpassproapi/v1/orchestrations
{ "order": [ { … } ] }
If multiple orchestrations are submitted, HTTP 202 will be returned if at least one orchestration is accepted. Each orchestration request status will be provided in the data array. HTTP 412 will be returned if all orchestrations in the request fail.
{
"data": [
{
"success": "boolean",
"unit_nbr": "string",
"messages": [
{
"message_cd": "string",
"message_txt": "string",
"message_severity_cd": "string",
}
]
}
]
}
Every call to the orchestration API is authenticated by a subscription key (See authentication). The subscription key represents a company within the system. BCO company types can request an appointment and assign to a trucking company later. This needs to be executed before the appointment time or the slot will be missed.
The following request will create an orchestration for trace only (not appointment or payment).
- https://developer.cargosprint.com/v1/orchestrations
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://developer.cargosprint.com/v1/orchestrations \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-d '{
"order": [
{
"trade_type": "I",
"billoflading": "BOL12345",
"unit": {
"unit_nbr": "ABCD1234567"
},
"locations": [
{
"port_cd": "PORTA"
}
]
}
]
}'The following request will create an orchestration for payment (but not appointment). Trace information will also be provided (trace is part of the "Base Orchestration").
- Guarantee through date for payments is provided
- Reservation preferences are not provided
- https://developer.cargosprint.com/v1/orchestrations
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://developer.cargosprint.com/v1/orchestrations \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-d '{
"order": [
{
"trade_type": "I",
"billoflading": "BOL12345",
"unit": {
"unit_nbr": "ABCD1234567"
},
"locations": [
{
"port_cd": "PORTA",
"guarantee_through_date": "2024-08-30"
}
]
}
]
}'