Appearance
Bookings
GET/bookings
One row per booking whose stay overlaps the date window. Cancelled bookings are included, and say so in status.
Parameters
| Parameter | Default | Notes |
|---|---|---|
from | 12 months ago | Stays that end after this date are included |
to | 6 months from today | Stays that start before this date are included |
updated_since | none | Only bookings changed at or after this moment. A cancellation counts as a change. See Pull only what changed |
format | json | or csv |
page, page_size | none | See 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
| Column | Type | Meaning |
|---|---|---|
booking_id | uuid | Host Port's id for the booking. Stays the same across calls |
property_id | uuid | The listing's id |
property_name | text | The listing's name |
timezone | text | The listing's time zone, such as Australia/Sydney. Use it to read timestamps in local time |
status | text | pending, confirmed, modified, cancelled or no_show |
channel | text | direct, manual, airbnb, booking, vrbo, expedia, hotels_com, agoda, google or other |
channel_name | text | The channel's own name for itself, where it sent one |
source | text | How 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_in | date | Local calendar date. Never shifted by time zone |
check_out | date | Local calendar date |
nights | integer | Number of nights |
stay_status | text | past once the check-in date has arrived in the listing's time zone, otherwise upcoming |
booked_at | timestamp | When the guest made the booking |
cancelled_at | timestamp | When it was cancelled. Empty unless cancelled |
guests | integer | Total guests |
adults | integer | |
children | integer | |
infants | integer | |
guest_name | text | Empty unless the connection includes guest details |
guest_email | text | Empty unless the connection includes guest details |
guest_phone | text | Empty unless the connection includes guest details |
guest_country | text | Empty unless the connection includes guest details |
currency | text | Three-letter code. Applies to every amount on the row |
total_amount | money | The booking total, as the channel reported it. Empty for bookings that came in by calendar link, because calendar links carry no prices |
host_payout_amount | money | What the channel says it pays you, where it reports it. Often empty |
platform_fee_amount | money | Host Port's fee on a direct booking. 0 for channel bookings |
amount_paid_amount | money | Paid through Host Port on a direct booking. Empty for channel bookings |
amount_refunded_amount | money | Refunded through Host Port on a direct booking. Empty for channel bookings |
payment_status | text | unpaid, 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_at | timestamp | When Host Port first saw the booking |
updated_at | timestamp | When Host Port last changed the row. Pair it with updated_since |
