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>"
}
Finalize the partial cancellation of specific passengers or flight segments.

Provider Integration Details (GDS/NDC/LCC)

Under the hood, Travomatrix orchestrates the complex logic of PNR modification across all providers.
  • PNR Splitting (Partial Pax): For traditional GDS carriers (Amadeus, Travelport), we issue a DivideReservation command to split the cancelled passengers into a new PNR, which is then cancelled. The remaining passengers stay in the original BOOKED or TICKETED PNR.
  • Segment Removal (Partial Segment): For LCCs and NDCs, we execute a direct segment removal and request the partial refund using the cached Cancel Quote rules.

Prerequisite

A successful POST /flight/booking/partial-cancel/quote must be generated right before confirmation. Travomatrix pulls the target passengers and segments directly from your latest cached quote event to ensure atomic processing.

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