cURL
curl --request POST \ --url https://api.travomatrix.com/api/v1/flight/booking/cancel/confirm \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "booking_id": "<string>", "reason_code": "<string>", "cancellation_type": "VOLUNTARY" } '
{ "booking_id": "<string>", "status": "CANCELLED", "refund_amount_paise": 123, "airline_penalty_paise": 123, "ota_fee_paise": 123, "currency": "<string>" }
A unique string to identify this request. Retrying a request with the same key will return the cached response.
Unique correlation ID for tracing.
VOLUNTARY
INVOLUNTARY
Booking cancelled and refund credited.
CANCELLED
REFUNDED
PENDING_WITH_AIRLINE