Reference · step 8 of 9
POST/flights/booking/confirm-hold
{{base_url}}/flights/booking/confirm-hold
Pay a held booking from the wallet and ticket it, before pay_till.
Headers
| Content-Type | application/json |
| Authorization | Bearer {{token}} |
Keys and what they mean
Request
| key | type | when present | importance | meaning |
|---|---|---|---|---|
| booking_id | string | required | must read | A booking on hold (status ONHOLD), before its pay_till. |
| Total: 1 keys | ||||
Reply
| key | type | when present | importance | meaning |
|---|---|---|---|---|
| status | string | always | must read | SUCCESS when paid and ticketed; read the booking details for the tickets. |
| amount | number | always | must read | What was taken from your balance or credit (INR). |
| booking_id | string | always | informational | The booking confirmed. |
| itinerary_id | string | always | informational | Its itinerary. |
| Total: 4 keys | ||||
Errors this call answers with (6)
| HTTP | code | message | detail | when |
|---|---|---|---|---|
| 401 | 9001 | Authentication required | Invalid token | |
| 403 | 9002 | You do not have permission for this action | Role without bookings.hold. | |
| 400 | 3000 | Invalid request | Booking_id is required | |
| 404 | 9005 | Not found | Booking not found | |
| 409 | 3102 | Booking is not pending | Not a held booking, or already confirmed. | |
| 500 | 9000 | Something went wrong | Insufficient wallet or payment faults that no translator knows. |
Real captures of this call
- Hold, then confirm (pay) the hold · HTTP 200 · reply in the viewer