GET Trips
Use this endpoint to retrieve trips.
User level: Advanced
Endpoint
GET /v1/{branchId}/trips| Property | Value |
|---|---|
| Method | GET |
| Scope ID | Branch UUID |
| Authentication | Authorization: Bearer <access_token> |
Query parameters
| Parameter | Type | Default | Max | Description |
|---|---|---|---|---|
limit | integer | 50 | 1000 | Number of records per page. |
offset | integer | 0 | - | Pagination offset. |
sort | string | - | Sort expression in the format field:asc or field:desc. | |
filter | string | - | Filter expression in the format field:operator:value. Repeat filter to combine multiple filters. |
Filtering and sorting
Syntax
sort=field:asc
sort=field:desc
filter=field:operator:valueYou can repeat filter in the same request.
Supported operators
| Operator | Meaning |
|---|---|
eq | Exact match |
ne | Not equal |
in | Value is part of a list |
gt | Greater than |
gte | Greater than or equal |
lt | Less than |
lte | Less than or equal |
like | Case-sensitive text match |
ilike | Case-insensitive text match |
isnull | Null check |
Resource rules
- Filtering and sorting are whitelisted per resource.
organization_idandbranch_idare reserved for server-side scoping and cannot be filtered by clients.- Tenant scope remains server-controlled.
- Use a branch UUID in
{scopeId}for this resource.
Example filters for trips
?filter=status:eq:planned
?filter=trip_number:ilike:%TRP%
?sort=trip_date:descExample request
curl -X GET "https://api.routix.com/v1/550e8400-e29b-41d4-a716-446655440000/trips?limit=25&offset=0&sort=trip_date:desc&filter=status:eq:planned" \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..."Example response for v1
{
"data": [
{
"id": "8c6f6b38-c46c-486d-9ee6-0b2ec458f3f1",
"trip_number": "TRP-2026-0018",
"trip_date": "2026-07-05",
"vehicle_id": "91eb2f55-bc74-4ebb-a118-8d996a96f2f4",
"driver_id": "e70d3a6a-799d-4a7d-88bd-0ad13f5211b4",
"status": "planned",
"planned_distance_km": 185,
"is_charter": false,
"carrier_account_id": "7ecf4b8d-8d1f-4a0f-8e57-6d8f14c6a221"
}
],
"pagination": {
"limit": 10,
"offset": 0,
"total": 1
},
"version": "v1"
}Fields
| Field | Description |
|---|---|
id | Trip UUID. |
trip_number | Trip number. |
trip_date | Planned trip date. |
vehicle_id | Vehicle UUID. |
driver_id | Driver UUID. |
status | Current trip status. |
planned_distance_km | Planned distance in kilometers. |
is_charter | Indicates whether this is a charter trip. |
carrier_account_id | Carrier account UUID. |
Response format
Success: list response
{
"data": [],
"pagination": { "limit": 50, "offset": 0, "total": 123 },
"version": "v1"
}Error response
{
"error": "insufficient_scope",
"error_description": "Token does not contain the required scope for trips"
}Related pages
- API integration
- API calls & examples
- Setup guide
Last updated on

