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>",
  "refund_amount_paise": 123,
  "airline_penalty_paise": 123,
  "ota_fee_paise": 123,
  "currency": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.travomatrix.com/llms.txt

Use this file to discover all available pages before exploring further.

Confirm the cancellation. This triggers the Refund Engine, which automatically credits the refund amount back to your B2B wallet.

Request Setup

Idempotency-Key
string
required
Generate a random string.
booking_id
string
required
Paste the booking_id.

Instructions

  1. Review the requirements and set up the request payload.
  2. Hit the Send button.
Requirement: The booking status is now CANCELLED. Your wallet has been credited.

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