Skip to main content
POST
/
flight
/
booking
/
partial-cancel
/
quote
Get Partial Cancellation Quote
curl --request POST \
  --url https://api.travomatrix.com/api/v1/flight/booking/partial-cancel/quote \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "booking_id": "<string>",
  "passengers_to_cancel": [
    "<string>"
  ],
  "segments_to_cancel": [
    123
  ]
}
'
{
  "booking_id": "<string>",
  "processing_mode": "AUTO",
  "airline_penalty_paise": 123,
  "ota_fee_paise": 123,
  "refund_amount_paise": 123,
  "currency": "<string>",
  "quote_valid_until": "2023-11-07T05:31:56Z"
}
Provide a booking_id that has multiple passengers. Add the target passenger’s ID (e.g., ADT2) to the passengers_to_cancel array to get a quote.

Request Setup

booking_id
string
required
Paste the booking_id.
passengers_to_cancel
array
required
Array of passenger IDs (e.g., ["ADT2"]). Leave empty [] if cancelling segments.
segments_to_cancel
array
required
Array of segment indices (e.g., [] if cancelling passengers, or [1] to cancel the return segment).

Instructions

  1. Choose to cancel either specific passengers OR specific segments. Mixed mode is not permitted to maintain PNR sync across GDS/NDC.
  2. Ensure you adhere to backend business rules (e.g., don’t cancel an infant alone, don’t break chronological segment sequences).
  3. Hit the Send button.
Requirement: Review the response payload carefully.

Authorizations

X-API-Key
string
header
required

Body

application/json
booking_id
string
required
passengers_to_cancel
string[]
required
segments_to_cancel
integer[]
required

Response

200 - application/json

Partial cancellation quote.

booking_id
string
processing_mode
enum<string>
Available options:
AUTO,
MANUAL
airline_penalty_paise
integer
ota_fee_paise
integer
refund_amount_paise
integer
currency
string
quote_valid_until
string<date-time>