Skip to main content
POST
/
flight
/
booking
/
partial-cancel
/
confirm
Confirm Partial Cancellation
curl --request POST \
  --url https://api.travomatrix.com/api/v1/flight/booking/partial-cancel/confirm \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "booking_id": "<string>",
  "passengers_to_cancel": [
    "<string>"
  ],
  "segments_to_cancel": [
    123
  ],
  "reason_code": "<string>"
}
'
{
  "booking_id": "<string>",
  "status": "CANCELLED",
  "refund_amount_paise": 123,
  "airline_penalty_paise": 123,
  "ota_fee_paise": 123,
  "currency": "<string>"
}
Confirm the cancellation. The B2B system abstracts the provider integration:
  • GDS Carriers (Amadeus/Travelport): The system handles DivideReservation logic to split the PNR.
  • NDC/LCC Carriers: The system handles direct segment removal.

Request Setup

Idempotency-Key
string
required
Generate a random string.
booking_id
string
required
Paste the booking_id.
passengers_to_cancel
array
required
Array of passenger IDs (e.g., ["ADT2"]). Pass what you passed in the quote.
segments_to_cancel
array
required
Array of segment indices. Pass what you passed in the quote.

Instructions

  1. Hit Send to trigger the background atomic wallet debit and provider cancellation.
  2. The remaining passengers stay in the original TICKETED PNR, and you will receive a partial refund.
Requirement: Review the response payload carefully.

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
passengers_to_cancel
string[]
required
segments_to_cancel
integer[]
required
reason_code
string

Response

200 - application/json

Partial cancellation confirmed.

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