Get route contracts list

Down­load­ing a list of con­tracts cre­at­ed in select­ed route.

The route-id iden­ti­fi­ca­tion num­ber in request can be tak­en by down­load­ing the routes list.

GET
/ext/contracts-api/v1/routes/{route-id}/contracts
Request Authorization

Every request MUST include a valid access token obtained dur­ing the user autho­riza­tion process, pro­vid­ed using the Bear­er token scheme in the Autho­riza­tion head­er.

Successful Response
Request Header
GET /ext/contracts-api/v1/routes/{route-id}/contracts HTTP/1.1 
Host: api.platform.trans.eu 
Content-Type: application/json
Accept: application/json
Authorization: Bearer {access_token) 
Api-key: {unique_app_api-key}
Request Parameters (Query)
Pagination

By default, 25 results are down­load. You can change the num­ber of results with the lim­it para­me­ter, and you can skip fetch­ing the ini­tial results with the off­set para­me­ter.

/ext/contracts-api/v1/routes/{route-id}/contracts?limit=15           // downloading first 15 results
/ext/contracts-api/v1/routes/{route-id}/contracts?limit=10&offset=10 // downloading the second page for pages of size 10
Response Fields
AttributeTypeExam­pleDescrip­tion
con­tractsArray of ObjectsList of con­tracts assigned to route
contracts.carrierObjectCar­ri­er assigned to the con­tract
contracts.carrier.companyObjectCar­ri­er com­pa­ny details
contracts.carrier.company.idInt567321Car­ri­er com­pa­ny Id
contracts.carrier.company.nameString“Eko­Trans­porter”Car­ri­er com­pa­ny name
contracts.carrier.contact_personsArray of ObjectsCar­ri­er con­tact per­sons
contracts.carrier.contact_persons.channelsArray of StringsCon­tact chan­nels
contracts.carrier.contact_persons.employeeObjectCon­tact per­son details
contracts.carrier.contact_persons.employee.account_idInt771476Con­tact per­son inter­nal Id
contracts.carrier.contact_persons.employee.family_nameStringMillerCon­tact per­son fam­i­ly name
contracts.carrier.contact_persons.employee.given_nameStringMichaelCon­tact per­son giv­en name
contracts.carrier.contact_persons.employee.trans_idString“1012334–1”Con­tact per­son Tran­sId
contracts.idString“23ba734b-5b1f-4be1-9b82-a91e4df­f6551”Con­tract id
contracts.order_termsObjectOrder terms
contracts.order_terms.additional_termsString“addi­tion­al terms text”Addi­tion­al terms for con­tract
contracts.order_terms.automatic_order_sendingBooleanTrueAuto­mat­ic cre­ation of a con­firmed order when the car­ri­er accepts the freight
contracts.order_terms.insuranceObjectInsur­ance require­ments
contracts.order_terms.insurance.loadObjectVal­ue of loads
contracts.order_terms.insurance.load.currencyString“eur”Loads val­ue cur­ren­cy
contracts.order_terms.insurance.load.valueInt12000Val­ue of loads
contracts.order_terms.insurance.third_partyObjectRequired insur­ance val­ue
contracts.order_terms.insurance.third_party.currencyString“eur”Insur­ance val­ue cur­ren­cy
contracts.order_terms.insurance.third_party.valueInt6000Insur­ance val­ue
contracts.order_terms.monitoringObjectGPS mon­i­tor­ing
contracts.order_terms.monitoring.requiredBooleanTrueIf True, required GPS mon­i­tor­ing if tech­ni­cal­ly pos­si­ble
contracts.order_terms.payment_periodObjectPay­ment peri­od
contracts.order_terms.payment_period.valueInt12Num­ber of days
contracts.order_terms.silent_confirmationObject
contracts.order_terms.silent_confirmation.enabledBoolean
contracts.order_terms.silent_confirmation.timeObject
contracts.order_terms.silent_confirmation.time.unit_codeString
contracts.order_terms.silent_confirmation.time.user_unit_codeString
contracts.order_terms.silent_confirmation.time.valueInt
contracts.periodObjectCoop­er­a­tion peri­od
contracts.period.fromString“2026–04-07T15:30:00+02:00”Start of coop­er­a­tion
contracts.period.toStringnullEnd of coop­er­a­tion. Pos­si­ble val­ue null for indef­i­nite­ly.
contracts.planned_shipmentsObjectPlanned ship­ments in the con­tract
contracts.planned_shipments.periodsArray of ObjectsPeri­ods list
contracts.planned_shipments.periods.fromString“2027–01-01T00:00:00.000Z”Start of peri­od
contracts.planned_shipments.periods.toString“2027–12-31T23:59:59.000Z”End of peri­od
contracts.planned_shipments.periods.valueIntNum­ber of ship­ments in peri­od
contracts.planned_shipments.typeString“expect­ed”Type of ship­ments. Avail­able val­ues: required, expected, no_more_than.
contracts.planned_shipments.unitString“km”Unit of ship­ments. Avail­able val­ues: shipment, ton, km.
contracts.planned_shipments.valueInt500Total num­ber of ship­ments in the con­tract
contracts.pricingObjectPric­ing for con­tract
contracts.pricing.negotiableBooleanTrueEnabling price nego­ti­a­tion with car­ri­er
contracts.pricing.priceObjectPrice. Object occurs in all pric­ing types except pallets.
contracts.pricing.price.currencyString“eur”Price cur­ren­cy
contracts.pricing.price.valueFloat3000Price val­ue
contracts.pricing.price_listArray of ObjectsPrice list. Object occurs only for pric­ing type pallets
contracts.pricing.price_list.priceObjectPrice
contracts.pricing.price_list.price.currencyString“eur”Price cur­ren­cy
contracts.pricing.price_list.price.valueFloat232Price val­ue
contracts.pricing.price_list.rangeObjectRange of pal­lets for con­tract
contracts.pricing.price_list.range.fromInt1Min val­ue of pal­lets
contracts.pricing.price_list.range.toint20Max val­ue of pal­lets
contracts.pricing.settlement_basisString“distance_from_gps”Sur­charge basis. Required in pric­ing types: “km”, “ton”.
Avail­able val­ues for “km”: distance_declared_in_order_terms, distance_declared_by_carrier, distance_from_gps
Avail­able val­ues for “ton”: loading, unloading
contracts.pricing.typeString“no_rate”Type of pric­ing. Avail­able val­ues: route, km, ton, pallets, linear, no_rate.
The no_rate val­ue appears in flex­i­ble con­tracts, the remain­ing val­ues ​​appear in fixed con­tracts.
contracts.reference_numberString“Kon­trakt 23/2”Exter­nal ref­er­ence num­ber
contracts.routeObjectRoute
contracts.route.idString“967dac7c-8812–41d9-8082–60ef1736d06c”Route id
contracts.surchargesArray of ObjectsSur­charges
contracts.surcharges.currencyString“eur”Sur­charges cur­ren­cy
contracts.surcharges.data
contracts.surcharges.descriptionString“addi­tion­al text”Sur­charge descrip­tion
contracts.surcharges.idString“a1eb­b289-e665-4b30-a580-d263552e­f88c”Sur­charge Id
contracts.surcharges.is_activeBooleanTrueSur­charge acti­va­tion sta­tus
contracts.surcharges.is_globalBooleanFalseIf True, sur­charge is from tem­plate
contracts.surcharges.kindString“grid”Kind of sur­charge.
Avail­able val­ues: grid, linear, value
contracts.surcharges.schedulesArray of ObjectsSur­charge sched­ules
contracts.surcharges.schedules.dataObjectSur­charge data
contracts.surcharges.schedules.data.matrixArray of ObjectsData object for additional_stop, baf, pallets_exchange sur­charge types.
contracts.surcharges.schedules.data.matrix.unitString“per­cent­age”Unit of data. Avail­able val­ues: percentage, value.
contracts.surcharges.schedules.data.matrix.valueInt5Data val­ue
contracts.surcharges.schedules.data.currencyString“eur”Cur­ren­cy for data
surcharges.schedules.data.unitString“per­cent­age”Unit of data for week_days sur­charge type. Avail­able val­ues: percentage, value.
surcharges.schedules.data.week_daysArray of ObjectsData object for week_days sur­charge types.
surcharges.schedules.data.week_days.idString“1_monday”Week day Id
surcharges.schedules.data.week_days.operationsArray of ObjectsList of oper­a­tions
surcharges.schedules.data.week_days.operations.typeString“load­ing”Oper­a­tion type. Avail­able val­ues: loading, unloading
surcharges.schedules.data.week_days.operations.valueInt5Data Val­ue
contracts.surcharges.schedules.timespanObjectSur­charge sched­ule peri­od
contracts.surcharges.schedules.timespan.fromString“2026–04-30T15:30:00+02:00”Start of sched­ule
contracts.surcharges.schedules.timespan.toString“2026–05-28T02:00:00+02:00”End of sched­ule
contracts.surcharges.typeString“baf”Sur­charge type.
Avail­able val­ues: additional_stop, baf, pallets_exchange, week_day
total_itemsInt3Num­ber of con­tracts in response
Response Body
{
    "contracts": [
        {
            "id": "0dfc855d-ae8d-4d08-a8d4-a3375f8b78f9",
            "route": {
                "id": "3a378345-1939-48c1-bc71-639e0add8048"
            },
            "surcharges": [],
            "period": {},
            "carrier": {
                "company": {
                    "id": 1013865,
                    "name": "Carrier IIT 2"
                },
                "contact_persons": [
                    {
                        "employee": {
                            "account_id": 771476,
                            "given_name": "Max",
                            "family_name": "Miller",
                            "trans_id": "1013865-3"
                        }
                    }
                ]
            },
            "order_terms": {
                "automatic_order_sending": false,
                "payment_period": {
                    "value": null
                },
                "additional_terms": null,
                "insurance": {
                    "load": {
                        "currency": null,
                        "value": null
                    },
                    "third_party": {
                        "currency": null,
                        "value": null
                    }
                },
                "monitoring": {
                    "required": false
                },
                "silent_confirmation": {
                    "enabled": false,
                    "time": {
                        "unit_code": null,
                        "user_unit_code": null,
                        "value": null
                    }
                }
            },
            "planned_shipments": {
                "periods": [],
                "type": null,
                "unit": null,
                "value": null
            },
            "pricing": {
                "negotiable": true,
                "type": "no_rate",
                "price": {
                    "value": null,
                    "currency": null
                }
            },
            "reference_number": null
        },
        {
            "id": "89418bb3-4fe3-4c78-b6bb-fcbcd61234d4",
            "route": {
                "id": "3a378345-1939-48c1-bc71-639e0add8048"
            },
            "surcharges": [],
            "period": {},
            "carrier": {
                "company": {
                    "id": 567347,
                    "name": "Carrier 3"
                },
                "contact_persons": [
                    {
                        "employee": {
                            "account_id": 717862,
                            "given_name": "Alex",
                            "family_name": "Born",
                            "trans_id": "567347-1"
                        }
                    }
                ]
            },
            "order_terms": {
                "automatic_order_sending": false,
                "payment_period": {
                    "value": null
                },
                "additional_terms": null,
                "insurance": {
                    "load": {
                        "currency": null,
                        "value": null
                    },
                    "third_party": {
                        "currency": null,
                        "value": null
                    }
                },
                "monitoring": {
                    "required": false
                },
                "silent_confirmation": {
                    "enabled": false,
                    "time": {
                        "unit_code": null,
                        "user_unit_code": null,
                        "value": null
                    }
                }
            },
            "planned_shipments": {
                "periods": [],
                "type": null,
                "unit": null,
                "value": null
            },
            "pricing": {
                "negotiable": true,
                "type": "no_rate",
                "price": {
                    "value": null,
                    "currency": null
                }
            },
            "reference_number": null
        },
        {
            "id": "d68d9762-9a03-4209-8a8c-2acc15b8c83d",
            "route": {
                "id": "3a378345-1939-48c1-bc71-639e0add8048"
            },
            "surcharges": [
                {
                    "id": "58275662-573a-4a3f-a908-d5d5a2b39ffc",
                    "currency": "eur",
                    "description": "opis",
                    "kind": "linear",
                    "type": "additional_stop",
                    "is_global": true,
                    "is_active": true,
                    "schedules": [
                        {
                            "timespan": {
                                "from": "2026-04-17T11:14:40+02:00",
                                "to": "2026-04-30T23:59:59+02:00"
                            },
                            "data": {
                                "matrix": [
                                    {
                                        "unit": "value",
                                        "value": 6
                                    }
                                ]
                            }
                        }
                    ]
                }
            ],
            "period": {},
            "carrier": {
                "company": {
                    "id": 567347,
                    "name": "Carrier 3"
                },
                "contact_persons": [
                    {
                        "employee": {
                            "account_id": 717862,
                            "given_name": "Alex",
                            "family_name": "Born",
                            "trans_id": "567347-1"
                        }
                    }
                ]
            },
            "order_terms": {
                "automatic_order_sending": false,
                "payment_period": {
                    "value": 13
                },
                "additional_terms": null,
                "insurance": {
                    "load": {
                        "currency": null,
                        "value": null
                    },
                    "third_party": {
                        "currency": null,
                        "value": null
                    }
                },
                "monitoring": {
                    "required": false
                },
                "silent_confirmation": {
                    "enabled": false,
                    "time": {
                        "unit_code": null,
                        "user_unit_code": null,
                        "value": null
                    }
                }
            },
            "planned_shipments": {
                "periods": [],
                "type": null,
                "unit": null,
                "value": null
            },
            "pricing": {
                "negotiable": true,
                "type": "route",
                "price": {
                    "value": 56,
                    "currency": "eur"
                }
            },
            "reference_number": null
        }
    ],
    "total_items": 3
}

Client errors (code 400)

HTTP 4xx sta­tus codes indi­cate client errors, mean­ing that the request could not be processed due to an issue on the client side.