Skip to main content
POST
/
flight
/
booking
/
cancel
/
confirm
Confirm Cancellation
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>"
}
Finalize the cancellation and initiate the automated refund process for B2B wallets.

Authorizations

X-API-Key
string
header
required

Headers

Idempotency-Key
string

A unique string to identify this request. Retrying a request with the same key will return the cached response.

X-Request-ID
string

Unique correlation ID for tracing.

Body

application/json
booking_id
string
required
reason_code
string
cancellation_type
enum<string>
default:VOLUNTARY
Available options:
VOLUNTARY,
INVOLUNTARY

Response

200 - application/json

Booking cancelled and refund credited.

booking_id
string
status
enum<string>
Available options:
CANCELLED,
REFUNDED,
PENDING_WITH_AIRLINE
refund_amount_paise
integer
airline_penalty_paise
integer
ota_fee_paise
integer
currency
string