Reference · step 9 of 9

POST/flights/booking/release

{{base_url}}/flights/booking/release

Give up a held booking: the PNR is released at the airline and the order becomes PNR_RELEASED. A ticketed booking cannot be released.

Headers

Content-Typeapplication/json
AuthorizationBearer {{token}}
Reply (1 notes)
  • success is false when every provider release failed; status then stays as it was.
Keys and what they mean
Request
keytypewhen presentimportancemeaning
booking_idstringrequiredmust readA booking on hold. A booking that is not on hold answers an error.
Total: 1 keys
Reply
keytypewhen presentimportancemeaning
statusstringalwaysmust readPNR_RELEASED when the airline freed the seats. A release the airline refuses answers 409 (code 3105): the PNR is still held, try again later.
pnrstringalwaysusefulThe record locator that was released.
booking_idstringalwaysinformationalThe booking released.
Total: 3 keys
Errors this call answers with (5)
HTTPcodemessagedetailwhen
4019001Authentication requiredInvalid token
4039002You do not have permission for this actionRole without bookings.cancel.
4003000Invalid requestBooking_id is required
4049005Not foundBooking not found
4093102Booking is not pendingTicketed or already released.
Questions developers ask (1)
Release answered 409 3105. Is the booking released?
No. The airline did not give the PNR back; it stays held until pay_till. Try again later.