Bỏ qua để đến nội dung

Get Booking Detail

API cho đối tácAdd-on
GET
/properties/{tenant_id}/bookings/{booking_id}

Retrieve detailed information for a specific booking, including rooms and guests. Use this endpoint for online check-in flow to get all guest information.

Scope Required: bookings:read

URL Parameters:

  • booking_id (required): The booking code. Example: PR00123

Response includes:

  • Booking details: dates, status, amount, payment_collect (enum [property, ota, null]), etc.
  • Customer information (primary booker)
  • Booking rooms with room type and unit assignments
  • Guests attached to each room (for online check-in)
  • Payments history
  • Booking source information
  • Note: payment_collect is information about who should collect Payment. Can be ‘property’ if payment should be collected by property, ‘ota’ if guest already pay at OTA and null if value is not specified. Usually null mean that property will collect payment.
  • Note: meals is the detailed breakfast list per room (serve_date, adults, children) — empty array [] if the room has no breakfast recorded. Internal fields (price, notes, is_included, created_by) are intentionally NOT exposed. This field is shared with the Update Booking (Online Check-in) response since both use the same relation/resource pipeline.
  • Note: services is the list of services used per room: id (service code from the Services endpoint, still returned for a service deleted from the catalog; null for a line not linked to a catalog service, e.g. from an OTA), name, quantity, price_per_unit, discount, total_price, currency, service_used_date (YYYY-MM-DD). Internal staff notes are NOT exposed. Room totals: service_fee (sum of total_price), service_discount, service_charge (= fee − discount); the booking has the same three totals. Also returned by Get Bookings, Update Booking and the Booking Rooms endpoints.
tenant_id
required
string
booking_id
required
string
booking_id
required
string
object
success
required
boolean
data
required
object
id
required
string
code
required
string
status
required
string
checkin_date
required
string
checkout_date
required
string
arrival_hour
required
string
departure_hour
required
string
amount
required
number
currency
required
string
source_reservation_code
required
string | null
payment_collect
required
string | null
notes
required
string | null
service_fee
required
number
service_discount
required
number
service_charge
required
number
booking_rooms
required
Array<object>
object
id
required
string
checkin_status
required
string
room_type
required
string
room_unit
required
string | null
occupancy
required
object
adults
required
integer
children
required
integer
infants
required
integer
has_breakfast
required
boolean
meals
required
Array<object>
object
serve_date
required
string
adults
required
integer
children
required
integer
service_fee
required
number
service_discount
required
number
service_charge
required
number
services
required
Array<object>
object
id
required
string | null
name
required
string
quantity
required
number
price_per_unit
required
number
discount
required
number
total_price
required
number
currency
required
string | null
service_used_date
required
string | null
guests
required
Array<object>
object
id
required
string
name
required
string
email
required
string | null
phone
required
string | null
identity
required
string | null
id_type
required
string | null
identity_image_urls
required
Array<string>
is_primary_guest
required
boolean
customer
required
object
name
required
string
email
required
string | null
phone
required
string | null
payments
required
Array
booking_source
required
object
name
required
string
color
required
string

Validation error

object
message
required

Errors overview.

string
errors
required

A detailed description of each field that failed validation.

object
key
additional properties
Array<string>
Bài này có giúp được bạn không?