Trips›Update a trip
Update a trip
Change date, places, vehicle, or notes before a driver is assigned.
curl -X PATCH https://trustcoldeg.com/api/v1/b2b/trips/10025 \
-H "Authorization: Bearer CLIENT_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"to_governorate":"الجيزة","to_area":"الدقي","to_address":"Dokki, Giza"}'Updated trip (same shape as Retrieve)
{
"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"
}
}A driver is assigned, or the trip is en route, completed or cancelled
{
"message": "This trip can no longer be changed."
}Empty body
{
"message": "No fields to update."
}Key points
- When — Only while unassigned. After assignment, en_route, completed, or cancelled → 409.
- Places — Same fields as create, including optional address / Maps URL.
- Fare — Changing place or vehicle recalculates revenue on TrustCold’s side.
Change date, pickup, drop-off, vehicle type, or notes. Place fields match create. If pickup, drop-off, or vehicle type change, TrustCold recalculates revenue.
Allowed only before a driver or vehicle is assigned. After assignment, or once the trip is en route, completed, or cancelled, the response is 409. Send only the fields that change.