Trips›List trips
List trips
Page through this client’s trips. Filter by status, dates, or updated_after.
curl "https://trustcoldeg.com/api/v1/b2b/trips?status=en_route&per_page=20" \
-H "Authorization: Bearer CLIENT_KEY" \
-H "Accept: application/json"{
"data": [
{
"id": 10025,
"code": "TRUST10025",
"status": "pending",
"status_label": "Pending",
"deleted": false,
"deleted_at": null,
"from": "القاهرة / مدينة نصر",
"to": "الإسكندرية / سموحة",
"from_lat": 30.0561,
"from_lng": 31.3301,
"to_lat": 31.2156,
"to_lng": 29.9553,
"trip_date": "2026-12-20",
"vehicle_type": "reefer_tank",
"vehicle_type_name": "Refrigerated tank truck",
"vehicle_type_name_ar": "سيارة دبابة مبردة",
"vehicle_type_name_en": "Refrigerated tank truck",
"notes": null,
"revenue": 4800.0,
"deposit_status": "pending",
"deposit_amount": 480.0,
"payment_url": "https://trustcoldeg.com/book/pay/TOKEN",
"collected": false,
"driver_name": null,
"tracking_url": "https://trustcoldeg.com/track/trip/TOKEN",
"created_at": "2026-12-18T09:12:44+02:00",
"updated_at": "2026-12-18T09:12:44+02:00"
}
],
"meta": {
"current_page": 1,
"last_page": 1,
"total": 1,
"per_page": 20
}
}Key points
- status — pending, en_route, completed, cancelled, deleted — paint cancelled/deleted in the partner UI.
- Paging — per_page max 100, default 20. page is 1-based.
- Deltas — updated_after (ISO-8601) for “what changed” without a full reload.
Trips for the client that owns the key.
| Query | Description |
|---|---|
status | One of pending, en_route, completed, cancelled, deleted |
from_date | YYYY-MM-DD |
to_date | YYYY-MM-DD |
updated_after | ISO-8601. Only trips changed after this time |
per_page | Page size, max 100, default 20 |
page | Page number |