TrustColdDevelopers
Trips›Cancel a trip

Cancel a trip

Cancel before departure. The client and partner UIs must show the trip as Cancelled.

Run this from your browser — add your free test keys.
curl -X POST https://trustcoldeg.com/api/v1/b2b/trips/10025/cancel \
  -H "Authorization: Bearer CLIENT_KEY" \
  -H "Accept: application/json"

Trip cancelled

{
  "data": {
    "id": 10025,
    "code": "TRUST10025",
    "status": "cancelled",
    "status_label": "Cancelled",
    "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"
  }
}

Already departed

{
  "message": "The trip is already on the road."
}

Already completed, cancelled or deleted

{
  "message": "This trip can no longer be cancelled."
}

Key points

  • Result — tracking status becomes cancelled. Live poll and webhooks both emit that status.
  • Blocked — Already departed, completed, or deleted → 409.

Cancels a trip that has not departed and is not completed. Status becomes cancelled.