Skip to content

Bookings ​

GET/bookings

One row per booking whose stay overlaps the date window. Cancelled bookings are included, and say so in status.

Parameters ​

ParameterDefaultNotes
from12 months agoStays that end after this date are included
to6 months from todayStays that start before this date are included
updated_sincenoneOnly bookings changed at or after this moment. A cancellation counts as a change. See Pull only what changed
formatjsonor csv
page, page_sizenoneSee Paging

Rows are in check-in order.

What's left out ​

These are calendar entries, not bookings, so they never appear here. They show as blocked in the calendar instead.

  • Your own blocks.
  • Nights blocked because a linked listing or another room is booked.
  • Booking.com's "closed" markers that arrive by calendar link.
  • Direct checkouts that haven't been paid yet. They appear once paid.

Example ​

sh
curl -H "Authorization: Bearer hpk_your_key_here" \
  "https://ntnzabbhtivotmfhwdnm.supabase.co/functions/v1/data-api/v1/bookings?from=2026-10-01&to=2026-11-01"
json
{
  "booking_id": "6f1c2a7e-0b4d-4c55-9e2a-31f0c8a9d4b1",
  "property_id": "0d7e5b0a-6c1f-4f3e-a2d9-8b7c6e5f4a3b",
  "property_name": "Beachside Cottage",
  "timezone": "Australia/Sydney",
  "status": "confirmed",
  "channel": "direct",
  "channel_name": "direct",
  "source": "manual",
  "check_in": "2026-10-03",
  "check_out": "2026-10-06",
  "nights": 3,
  "stay_status": "past",
  "booked_at": "2026-08-14T09:21:40+00:00",
  "cancelled_at": null,
  "guests": 2,
  "adults": 2,
  "children": 0,
  "infants": 0,
  "guest_name": null,
  "guest_email": null,
  "guest_phone": null,
  "guest_country": null,
  "currency": "AUD",
  "total_amount": 840.00,
  "host_payout_amount": null,
  "platform_fee_amount": 0.00,
  "amount_paid_amount": 840.00,
  "amount_refunded_amount": 0.00,
  "payment_status": "paid",
  "created_at": "2026-08-14T09:22:03+00:00",
  "updated_at": "2026-08-14T09:22:03+00:00"
}

Columns ​

ColumnTypeMeaning
booking_iduuidHost Port's id for the booking. Stays the same across calls
property_iduuidThe listing's id
property_nametextThe listing's name
timezonetextThe listing's time zone, such as Australia/Sydney. Use it to read timestamps in local time
statustextpending, confirmed, modified, cancelled or no_show
channeltextdirect, manual, airbnb, booking, vrbo, expedia, hotels_com, agoda, google or other
channel_nametextThe channel's own name for itself, where it sent one
sourcetextHow the booking reached Host Port: through a live channel connection, by calendar link (ical_import), or made in Host Port itself (manual: direct bookings and bookings you add by hand)
check_indateLocal calendar date. Never shifted by time zone
check_outdateLocal calendar date
nightsintegerNumber of nights
stay_statustextpast once the check-in date has arrived in the listing's time zone, otherwise upcoming
booked_attimestampWhen the guest made the booking
cancelled_attimestampWhen it was cancelled. Empty unless cancelled
guestsintegerTotal guests
adultsinteger
childreninteger
infantsinteger
guest_nametextEmpty unless the connection includes guest details
guest_emailtextEmpty unless the connection includes guest details
guest_phonetextEmpty unless the connection includes guest details
guest_countrytextEmpty unless the connection includes guest details
currencytextThree-letter code. Applies to every amount on the row
total_amountmoneyThe booking total, as the channel reported it. Empty for bookings that came in by calendar link, because calendar links carry no prices
host_payout_amountmoneyWhat the channel says it pays you, where it reports it. Often empty
platform_fee_amountmoneyHost Port's fee on a direct booking. 0 for channel bookings
amount_paid_amountmoneyPaid through Host Port on a direct booking. Empty for channel bookings
amount_refunded_amountmoneyRefunded through Host Port on a direct booking. Empty for channel bookings
payment_statustextunpaid, authorized, paid, failed, partially_refunded, refunded or voided. Only meaningful for direct bookings paid through Host Port. Channel bookings show unpaid, because the channel collects the money
created_attimestampWhen Host Port first saw the booking
updated_attimestampWhen Host Port last changed the row. Pair it with updated_since