For the complete documentation index, see llms.txt. This page is also available as Markdown.

API Booking Commit

Endpoint: bookings/commit

Declare payment collected; Gotadi debits the agency balance and confirms with the hotel.

Request

Field
Type
Required
Description

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

Field
Type
Description

bookingNumber

string

status

enum

CONFIRMED | PENDING | FAILED

hotelConfirmationCode

string

Hotel confirmation code; may be absent

{ "bookingNumber": "HTL2611150001", "status": "CONFIRMED", "hotelConfirmationCode": "DN-55821" }
  • status: PENDING (code 09) — the hotel has not confirmed yet, or the outcome is unknown. Do not refund the guest; poll bookings/get every minute until CONFIRMED or FAILED.

  • CONFIRMED may lack hotelConfirmationCode when Gotadi could not re-read the booking; fetch it later via bookings/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