Authorization: Bearer <token> in the request header.
Request
POST /rides/cancel/{rideId}
The unique ID of the ride to cancel.
An optional explanation for the cancellation. Stored in
cancellationReason on the ride.Response
Unique ride identifier.
Always
CANCELLED after a successful cancellation.The reason provided in the request body, or an empty string if none was given.
Identifier indicating who initiated the cancellation (rider or driver).
Fee charged for the cancellation, or
null if no fee applies.ID of the rider.
ID of the assigned driver, or
null.Original fare for the ride.
Pickup address.
Drop-off address.
ISO 8601 timestamp of ride creation.
Example
You can send a cancellation request with no body — the
reason field is entirely optional. If you omit the body, the cancellationReason on the ride will be stored as an empty string.