Flight Booking API: Holds and Ticketing — From Reservation to Issuance Proof
A travel agent has a flight offer, but the traveller needs approval before paying. The operational task is not simply to reserve a seat. It is to establish whether the offer supports a hold, record the supplier's deadline, refresh the price, obtain explicit approval for the current amount, submit payment once, and confirm that the airline has issued a ticket. A booking reference or a successful payment screen alone is not the final evidence.
The following workflow is a fully illustrative implementation scenario, not a live booking, a supplier promise, or a TravelTech365 product demonstration. All amounts, identifiers and timestamps are invented for testing. Duffel's official hold-and-pay-later guide provides a documented example of these supplier concepts; hold support and conditions must be checked for each actual offer.
| UTC time | Illustrative event | Required decision or evidence |
|---|---|---|
| 09:00 | Offer OFF-DEMO-225 priced at USD 480.00. | Check hold eligibility, offer expiry, passenger and itinerary data. |
| 09:03 | Hold order ORD-DEMO-225 returned; no supplier payment made. | Store supplier order ID, hold status and deadline of 11:00. |
| 09:05 | Agent requests traveller approval. | Explain that space is held, not ticketed; disclose the deadline. |
| 10:20 | Price guarantee expires, although the hold remains open. | Mark the old amount as requiring refresh; do not assume price protection. |
| 10:35 | Fresh order retrieval returns USD 492.00. | Obtain approval for USD 492.00, not the earlier USD 480.00. |
| 10:40 | Authorized payment is submitted using the current amount. | Save payment attempt ID and supplier response; prevent duplicate submission. |
| 10:41 | Payment outcome is recorded; order is retrieved independently. | Check payment status and issued ticket documents on the retrieved order. |
| 10:43 | Illustrative electronic-ticket evidence is present. | Match each traveller to applicable ticket documents before issuing confirmation. |
Exception Matrix: What Should Happen Instead of Guessing
| Exception | What it means | Safe operational response |
|---|---|---|
| Hold deadline passed | The supplier's payment window closed, even if the website still displays a hold. | Stop payment; retrieve status; search again and obtain a new order and approval. |
| Offer or quoted price expired | An unbooked offer may no longer be usable, or a held order's price guarantee has ended. | For an expired offer, request a new offer. For an existing hold, retrieve its latest price. |
| Price changed | The payment amount no longer matches the supplier's current order amount. | Pause payment, display the difference and request renewed customer authorization. |
| Void requested | A paid, issued booking may qualify for a supplier-specific cancellation or void window. | Obtain a current cancellation quote and confirm eligibility before any cancellation action. |
| Payment error or uncertain response | The supplier may have processed the payment even if the request timed out. | Reconcile order and payment records; escalate ambiguity instead of blindly retrying. |
| Payment accepted; no ticket proof | Money movement and issuance evidence disagree or are incomplete. | Keep the booking in an unresolved state, retrieve the order and investigate before confirming. |
| Schedule changed while held | The itinerary may no longer match the traveller's approval. | Stop; review replacement travel details and obtain fresh consent before a new booking. |
This separation matters because four clocks can coexist: an unbooked offer's expiry, the hold's payment deadline, the price-guarantee expiry and any post-payment void window. They are not interchangeable. The Duffel Offers reference, hold guide and Orders reference expose the relevant distinctions for that integration.
1. Check Hold Eligibility Before Collecting Payment
For the documented Duffel flow, a hold-eligible offer reports payment_requirements.requires_instant_payment as false. The returned payment requirements also identify whether a price guarantee applies and when payment is required. Duffel cautions that holding is not available for every airline. A platform should therefore evaluate the selected offer rather than treating an airline name or route as permanent proof of eligibility.
Check the offer's expires_at separately. That timestamp limits creation of a new order from an offer; it does not describe how long an already-created hold survives. If the selected offer expires before the hold is created, restart the search or obtain a fresh offer rather than reuse an invalid identifier. This follows Duffel's official explanation of offer expiry.
Create the Hold Without Pretending Payment Occurred
In Duffel's example, creating a hold uses an order of type hold and omits the payments key. The confirmed hold order has its own supplier order identifier and a payment_status object, including awaiting_payment and payment_required_by. The API can reject an ineligible hold or one whose deadline has passed; see Duffel's Create an order reference.
2. Treat the Hold Deadline as an Executable Stop Condition
For a Duffel hold, payment_required_by is the payment deadline. When it passes without payment, the airline releases the space and the order can no longer be completed in the same way. A local countdown can help an agent, but the supplier's timestamp and current order state govern the actual decision. The application clock is a display aid, not the source of truth.
Store deadlines in their returned time format and display an explicit timezone for staff. In the illustration, 11:00 UTC is the supplier deadline; the example application's 10:50 UTC internal cutoff is a chosen ten-minute safety buffer, not a Duffel requirement. Buffering reduces the chance that approval, processing and network delays consume the entire remaining window, but it cannot extend the airline's deadline.
Price Guarantee Expiry Is Not Hold Expiry
Duffel differentiates guaranteed space from guaranteed price. If price_guarantee_expires_at is null, the held space may remain reserved while its price changes before payment. If a non-null guarantee expires first, the order can still be payable until payment_required_by, but retrieving it can return a new total and a revised or null guarantee timestamp. The correct message is “hold still active; price requires confirmation,” not automatically “booking expired.”
The application should track both values as independent fields and refresh them from the returned order. If the supplier does not provide a guarantee, describe the quoted amount as provisional. Avoid inventing a fixed guarantee period or presenting any deadline as universal across airlines, distribution channels or commercial agreements.
3. Retrieve and Reprice the Actual Held Order
Before payment, retrieve the held order by its supplier ID and compare the current total_amount and total_currency with the traveller's approved amount. Duffel explicitly recommends retrieving the order for the latest price. If payment is attempted with an outdated amount, its create-payment operation can return price_changed; the documented recovery is to retrieve the order again, not keep resending the stale price.
For the illustrative order, the amount increases from USD 480.00 to USD 492.00. The change is USD 12.00. Do not hide it inside an existing approval record. Show the revised total, the difference and the deadline, then ask the traveller or authorized corporate approver to accept or reject the new amount. If authorization is declined, stop rather than issue a ticket at an unapproved price.
A supplier's latest amount is an input to the payment decision, not proof that a traveller authorized it. Preserve the original quote, refreshed quote and approval timestamps locally. Duffel notes that historical order prices are not currently available through its retrieval flow, so implement your own comparison history when the workflow needs one. Keep supplier currency and any separately disclosed agency charges distinct in internal records.
Reconfirm Travel Content, Not Only the Amount
Validate the current origin, destination, flights, dates, passenger identities and meaningful booking conditions against the approved itinerary. A fare difference might be acceptable while a changed departure would not be. Duffel documents a schedule_changed payment error for held orders that changed on the airline side. Its stated recovery is to create a new order, so do not treat a payment retry as consent to a different journey.
4. Separate Customer Authorization from Supplier Payment Submission
The phrase “authorized payment” needs precision. Customer or agency permission to proceed, an authorization or capture at a payment gateway, and a payment posted to an airline supplier are different events. A platform should record each one independently. A card-gateway authorization does not establish that the airline issued a ticket; a supplier payment record does not establish that the traveller approved a changed fare.
For a documented Duffel hold, the create-payment endpoint takes the held order_id, current amount and matching currency. Payment types depend on the account and applicable setup. The official payment reference describes validation and state errors, including amount mismatch, already_paid and past_payment_required_by_date. Do not assume that a successful customer charge automatically triggers this separate supplier operation.
Implement one controlled payment attempt per approved order version. Record an internal attempt key, approver, approved currency and amount, customer-payment reference when applicable, supplier request timestamp and response. If the interface is used by two agents simultaneously, a single server-side issuance lock is preferable to relying on disabled buttons. This is a recommended design guard, not a documented Duffel API feature.
For an error with uncertain completion, resolve the supplier's state before another attempt. Duffel warns that a 500 Internal Server Error during hold payment may still have created a payment on the airline side and advises contacting support before retrying. The conservative state is PAYMENT_RECONCILIATION_REQUIRED, not “payment failed, try again now.”
5. Obtain Independent Ticket Issuance Proof
After the payment request, retrieve the order again. For the Duffel example, the documented verification is that payment_status.awaiting_payment is false and the order includes issued documents. Its guide shows an electronic_ticket document with a unique_identifier. Those returned fields are stronger issuance evidence than a checkout page saying “success.”
Use the supplier's actual ticket-document representation rather than constructing a ticket number from a record locator. The Orders schema exposes booking_reference separately from issued documents. A booking reference helps identify the reservation, but it is not interchangeable with a ticket-document identifier.

Do Not Promote a Local Status to Supplier Truth
An internal state of TICKETED should require evidence from the supplier, not merely completion of a workflow job. A payment provider's success callback, a saved reservation number or an email queued for delivery are useful events, but they answer different questions. If ticket evidence appears after a delay, reconcile it to the existing order and payment rather than initiating an unrelated replacement booking.
The Duffel Orders reference describes the airline as the source of truth for orders and supplies a synced_at timestamp. An integration should retain the last checked time and make stale or inconclusive data visible to support staff. Exact freshness thresholds and escalation service levels should be set during implementation; they should not be portrayed as supplier guarantees.
Worked Example: An Approval Arrives After the Original Price Guarantee
Consider a fictional agency reservation for one adult, travelling from London to New York on a future date. The selected supplier offer supports a hold, the initial total is USD 480.00 and the created order shows a payment deadline of 11:00 UTC. The itinerary, currency, passenger information and eligibility are retained when the hold is created at 09:03 UTC.
The agency sends an approval request at 09:05 UTC. Its message states that the reservation is held but not ticketed, that the quoted price may change after the guarantee ends at 10:20 UTC, and that payment must be completed before the supplier's 11:00 UTC deadline. The 10:20 and 11:00 times are different constraints; the former changes price confidence, while the latter governs whether payment can still complete.
At 10:35 UTC, the approver responds. The agent retrieves the same order rather than searching for a similar flight. The returned total is USD 492.00. The platform displays “Original quote USD 480.00; current supplier total USD 492.00; increase USD 12.00.” The earlier approval cannot be reused because the payable amount has changed.
The traveller explicitly accepts USD 492.00 at 10:38 UTC. The agent checks the itinerary again and submits the supplier payment at 10:40 UTC. The returned response is logged, and a separate order retrieval at 10:41 UTC is used to verify the payment state. At 10:43 UTC, the example assumes that an electronic-ticket document is visible and matched to the traveller. Only then is the customer-facing status changed to “Ticket issued.”
Void, Cancellation, and Expiry Are Different Outcomes
Letting an unpaid hold expire is not a ticket void. The airline releases the held space after the payment deadline; no paid ticket needs to be reversed in that normal expiration branch. A void or cancellation, by contrast, concerns an existing order that may already have been paid and ticketed. Do not apply post-ticket refund assumptions to a reservation that was never issued.
Duffel's Orders reference includes a nullable, preview void_window_ends_at field for some paid orders. Its documentation notes that some orders may be eligible to void within a limited period, but that eligibility is not universal. Departure proximity and order conditions can matter. A generic “free 24-hour cancellation” promise is therefore not a safe rule for a flight booking API workflow.
For cancellation, Duffel's official Order Cancellations reference describes obtaining a pending cancellation with its refund amount, then explicitly confirming it. The refund may be zero or uncertain, and the original payment method and customer refund handling can be separate. Present the current cancellation quote and require permission before confirmation; never infer a full refund solely from the existence of a record locator or void field.
Failed Ticketing Is a Reconciliation Case, Not a Retry Button
When payment reports success but no electronic-ticket evidence is returned, distinguish an unresolved response from a definitively rejected issuance. Query the same order, inspect documented payment records and collect request IDs, timestamps and error messages for supplier support. A second charge or second order could create duplication if the first operation actually succeeded.
Reusable Issuance Gate: Evidence Checklist with Sample Values
This is an illustrative acceptance checklist for an integration team. The sample values are invented and are not live Duffel identifiers. “Pass” means the implementation has collected evidence for that scenario; it does not certify any real airline, gateway or TravelTech365 integration.
| Control | Illustrative value or evidence | Release rule |
|---|---|---|
| Held order exists | ORD-DEMO-225; state HELD_UNPAID | Pass for payment preparation, not ticket confirmation. |
| Hold deadline valid | 11:00 UTC; refreshed at 10:35 UTC | Pass only while supplier still permits payment. |
| Quote refreshed | USD 492.00 at 10:35 UTC | Pass if value matches the latest retrievable order. |
| Approval recorded | USD 492.00 accepted at 10:38 UTC | Pass when approver and itinerary version match. |
| Supplier payment outcome | PAY-DEMO-225; returned as successful | Necessary, but not sufficient for issuance. |
| Independent order retrieval | 10:41 UTC; awaiting_payment=false | Pass after supplier status verification. |
| Ticket document | electronic_ticket; mock ID ET-DEMO-225 | Pass only if the actual supplier issues a valid document. |
| Traveller reconciliation | One expected traveller; one matched document | Pass before customer ticket confirmation. |
| Audit record | Quote, approval, request, response, retrieval saved | Pass when support can reconstruct the decision. |
Run the gate against supplier response fields, never against hard-coded example values. For a booking with multiple passengers or segments, broaden reconciliation appropriately. If any decisive check is missing, the display should communicate the exact blocker instead of collapsing every exception into “processing.”
Implementation Tests for the Hold-to-Ticket Boundary
A useful sandbox or controlled test plan covers more than the happy path. Test a hold-eligible offer and an instant-payment-only offer. Confirm that the system blocks a hold when requires_instant_payment is true. Verify that expiry of an unbooked offer leads to refreshed shopping, while expiration of a held order leads to a new booking path.
Simulate a price guarantee ending before the payment deadline. Retrieve a changed order amount, require renewed approval, and verify that the outdated amount is not submitted. Also test an order whose guarantee is null from the beginning. These cases should produce different explanatory messages but the same rule: current price approval before supplier payment.
Exercise boundary times with UTC precision: just before the internal cutoff, after that cutoff, and after payment_required_by. Assert that the application cannot override supplier expiry by changing a local timer. Inject concurrent agents pressing “issue” and verify that only one controlled attempt proceeds until the first outcome is reconciled.
Test documented supplier exceptions: price_changed, schedule_changed, already_paid, past_payment_required_by_date and an ambiguous server error. Duffel's payment endpoint documentation supports these cases. If a sandbox cannot reproduce a particular airline-side event, use an isolated simulated response, label it as simulated and do not interpret that test as proof of real-world supplier behaviour.
Finally, verify three outcomes separately: payment pending with no documents, payment successful with documents, and payment status uncertain with missing documents. Confirmation must be blocked in the first and third cases. In the second, confirm that document identifiers are recorded against the expected passengers before the customer notification is generated.
Who Owns Each Decision in a B2B Ticketing Workflow?
For travel agencies designing approval queues, ticketing permissions and staff intervention, the related TravelTech365 B2B ticketing system page is the appropriate next topic. For the distribution background behind offer and order models, see the NDC airline distribution guide. This page deliberately stays focused on the operational passage from an unpaid hold to evidence-backed issuance, rather than repeating a broader distribution primer.
Frequently Asked Questions
Does a flight hold mean the ticket is issued?
No. In the documented Duffel hold flow, an order can exist with awaiting_payment=true. Payment is supplied later, before the deadline. Issuance should be verified independently through the updated order's documents. Describe an unpaid hold as reserved space subject to its conditions, not as an issued electronic ticket.
How long can an API flight hold last?
There is no safe universal duration. Read the actual payment_required_by returned for the held order. The provider, airline and selected offer can affect whether deferred payment is available. An internal reminder or safety buffer should be earlier than the supplier deadline, never a substitute for it.
Can a fare increase while the reservation is on hold?
Yes, in the documented Duffel model, held space does not always include a price guarantee. A guarantee may also end before the payment deadline. Retrieve the current order price and obtain authorization for any change. A held itinerary should not be sold as price-locked unless the returned terms establish that protection.
What if the offer expires before an order is created?
An expired offer is different from an existing held order. Duffel documents that offer identifiers have an expiry and an expired offer cannot be booked. Start a new offer request and check the new price and eligibility. Do not invent a hold from an offer that the supplier has already rejected.
Is a successful payment response enough to send an e-ticket?
Not for an evidence-based issuance gate. Retrieve the order again, confirm its payment state and verify the expected ticket documents. Duffel's hold guide explicitly combines awaiting_payment=false with issued documents for verification. Where proof is missing, state that ticket confirmation is pending investigation.
Can a paid ticket always be voided without a fee?
No such general guarantee follows from the API documentation. Duffel exposes a preview void-window field for eligible paid orders, and its cancellation process provides the applicable refund quotation. Inspect the live order and cancellation terms rather than assuming a universal cancellation window or full refund.
Should the system retry automatically after a ticketing or payment error?
Not when completion is unknown. Duffel specifically warns that a hold-payment request returning an internal server error may already have created payment on the airline side. Retrieve and reconcile the order, consult the documented error path and escalate to supplier support when required before another submission.
What must an agency approval record contain?
As an implementation recommendation, record who approved the transaction, the itinerary version, currency, amount, timestamp and the supplier order it concerns. When a refreshed amount differs, request fresh approval. This makes a price change visible and prevents a staff member from relying on an obsolete instruction.
The Release Rule for Ticket Confirmation
The operational sequence is straightforward but strict: validate the selected offer, create and record the hold, watch the supplier deadline, refresh the held order, secure approval for the latest itinerary and price, submit one controlled supplier payment, then retrieve the order for independent ticket proof. If payment, status or documents disagree, pause customer confirmation and reconcile instead of guessing.
