Home Travel Policy How to send a hotel or flight booking for approval through the API

How to send a hotel or flight booking for approval through the API

Last updated on Nov 25, 2026

You can send a hotel or single-ticket flight booking for approval through POST /v1/orders when company rules require it. The request creates a separate trip for approval, with one hotel or flight item. It does not create an order or book the service yet.

Where to find it

Use POST /v1/orders in your integration. Approvers review the resulting trip in Left sidebar → Approval (/app/approvals).

See Trip approvals: send, review, discuss and change trips.

How to send a booking for approval

  1. Submit your hotel or flight booking request to POST /v1/orders. The hotel is checked against the travel policy after the price check, at the price being booked. The flight is checked at the selected fare.
  2. If the response is 422 with type: travel_policy_approval_required, repeat the same request with "submitForApproval": true. You can also include this flag in the initial request.
  3. Optionally add approvalComment, a note for the approvers of up to 500 characters.
  4. Read the 202 Accepted response:
{
  "type": "approval_requested",
  "tripId": 8044,
  "status": "pending_approval"
}
  1. After approval, book the trip from the traveller's cart, or have the approver use Approve and book on the Approval page.

Good to know

  • submitForApproval defaults to false. Without it, a hotel or flight that needs approval returns 422.
  • Approval can be required for an out-of-policy booking, every purchase, or a hotel or flight within policy that exceeds the company's approval price threshold. The last case returns scenario: price_threshold_approval, with an empty violations list.
  • For flights, the price threshold is compared with the client price including the service fee, in the site currency, as in the cart.
  • A response with type: travel_policy_violation means the booking is forbidden and has no approval route. submitForApproval does not override that rule.
  • The request goes to the same approvers as a submission from the cart. An out-of-policy booking that requires approval but has no policy approvers goes to the account owner.
  • Hotel travellers from the request stay assigned to their rooms. For flights, the trip keeps the passengers and documents from the request; the subsequent booking uses those passengers.
  • The new trip does not include services from your existing web cart draft.
  • If every required approval is granted by auto-approval rules, the response status is approved.
  • To avoid duplicate submissions on retries, send an Idempotency-Key header. Repeating it within 24 hours returns the same trip. The key applies separately to each user and is shared across hotel and flight approval submissions: use a different key for each new submission.
  • A flight offer assembled from several separate tickets cannot be sent for approval through the API. If it requires approval, the request is refused even with submitForApproval.
  • Before sending a flight for approval, fares are requested again from the supplier and the fare going into the trip is checked. If it no longer needs approval, the response is 409 Conflict with "Rate price changed since search": search again. If no fare is returned, the response is 400 with "Offer expired or unavailable". If the fare is forbidden with no approval route, the request is refused under the travel policy.

FAQ

Does a 202 response mean my booking is confirmed? No. A hotel or flight response with type: approval_requested means a trip has been submitted for approval, and no order has been created yet. After approval, book it from the traveller's cart or use Approve and book on the Approval page.

Why does a booking within policy still need approval? A hotel or flight within policy can exceed the company's approval price threshold. The API then returns 422 with type: travel_policy_approval_required and scenario: price_threshold_approval; resend the request with "submitForApproval": true. For flights, the threshold includes the service fee and uses the site currency.

Can I send a forbidden booking for approval? A hotel or flight response with type: travel_policy_violation has no approval route. Adding submitForApproval does not make that booking available.

How do I retry without creating another approval trip? Use the same Idempotency-Key header for the same user's approval submission. A retry within 24 hours returns the same trip. Hotel and flight approval submissions share the key, so use a different key for each new submission.

Can the API book the trip after it is approved? Booking an approved trip through the API is not available yet. Use the traveller's cart or the approver's Approve and book action.

Can I send a flight made up of separate tickets for approval through the API? No. A flight offer assembled from several separate tickets cannot be sent for approval through the API. If the booking requires approval, it is refused even when you send "submitForApproval": true.

Related articles

Related articles


Still have questions? Message us in the support chat or at support@travel-code.com.