Skip to main content

API docs

Build on Breeze with our JSON and NDC/XML APIs.

Split order

POST /json/{version}/orders/{orderId}/split moves the named passengers to a new order. Both orders keep the same itinerary; payments divide proportionally. The new order gets its own record locator.

orderId is the order ID or record locator (PNR). The NDC equivalent is an IATA_OrderChangeRQ with UpdatePax/PaxSharingPref.

Authorization​

Split order requires full transaction (book) permissions on the API key.

Request​

ParameterLocationDescription
orderIdpathOrder ID or record locator (PNR).
ownerCodequeryOptional airline owner code. Defaults to MX.
passengerIdsbodyNon-empty array of OrderView passenger reference IDs (for example ADT-2, CHD-1) to move to the new order.

Lap infants are not listed — they follow their associated adult automatically.

Validation rules​

RuleError
passengerIds is emptyERR-1005
A passenger reference is not found on the orderERR-1004
A lap infant ID is listed directlyERR-1004
All seated passengers would move (none stay)ERR-1005
Either resulting order would have no adultERR-7009
Any journey has already departedERR-4007

Response​

data contains two full OrderView projections:

FieldDescription
orderThe original order, now containing the passengers who stayed. The warnings field on the order header identifies the new order ID and record locator.
childOrderThe new order containing the passengers that were moved.

Both fields have the same structure as the order retrieve response.

Split order errors​

CodeHTTP statusCause
ERR-1002404Unsupported version segment in the path.
ERR-1004400A passenger reference is unknown on this order, or a lap infant was named directly.
ERR-1005422passengerIds is empty, or a passenger constraint would be violated.
ERR-4000404Order not found.
ERR-4007400One or more journeys have already departed.
ERR-7009422The split would leave a child without an adult on either resulting order.
ERR-8000401Missing or invalid API key or bearer token.
ERR-8001403API key lacks full transaction permissions.
ERR-8002503Authentication store unavailable.
ERR-9003500Booking split failed upstream.