hotel-bookings
Payment Initiated
Called by the client immediately BEFORE it mounts the payment element.
This is what stops a re-prebook from stranding a payment. LiteAPI cannot return a transactionId once a new prebook has replaced it, and a booking stays prebooked right through payment — so without this stamp the backend has no way to distinguish "the user is still choosing" from "the user has paid and we must not touch the transaction id". A browser refresh on the checkout URL is enough to lose the money otherwise.
Deliberately idempotent and deliberately not a state machine: it only ever moves payment_status from unset to processing. The real payment status arrives later from LiteAPI at /book and must win.
post/hotel-bookings/{booking_id}/payment-initiated
Path parameters
booking_idstring uuid required
Response
Successful Response