API Booking Commit
Endpoint: bookings/commit
Declare payment collected; Gotadi debits the agency balance and confirms with the hotel.
Request
bookingNumber
string
✔
partnerTransId
string
✔
Partner-side payment transaction id, used for reconciliation
amount
int
✔
**Must equal totalAmount**
{ "bookingNumber": "HTL2611150001", "partnerTransId": "PAY-778899", "amount": 2400000 }Response
bookingNumber
string
status
enum
CONFIRMED | PENDING | FAILED
hotelConfirmationCode
string
Hotel confirmation code; may be absent
{ "bookingNumber": "HTL2611150001", "status": "CONFIRMED", "hotelConfirmationCode": "DN-55821" }status: PENDING(code09) — the hotel has not confirmed yet, or the outcome is unknown. Do not refund the guest; pollbookings/getevery minute untilCONFIRMEDorFAILED.CONFIRMEDmay lackhotelConfirmationCodewhen Gotadi could not re-read the booking; fetch it later viabookings/get.FAILED— the booking did not go through; money already collected is handled per the reconciliation agreement between the two parties.
Cập nhật lần cuối