Bookings

Bookings

Retrieve bookings in a given date range. Results are scoped to your permitted units and ordered by reservation_start (asc), then booking_date (asc).

  • Method: GET

  • Endpoint: https://api.okup.ai/data/bookings

  • Auth: header X-API-Key: YOUR_API_KEY (required)

Query parameters

  • from (string, optional): inclusive start date filter on reservation_start (format YYYY-MM-DD)

  • to (string, optional): inclusive end date filter on reservation_start (format YYYY-MM-DD)

  • unit (string, optional): case-insensitive substring match on the unit’s friendly_name

  • limit (integer, optional): page size; default 100, max 1000

  • offset (integer, optional): items to skip; default 0

Booking item fields

All fields may be null if unknown. Dates are ISO strings; monetary values are numbers (floats).

Field
Type
Example
Description

internal_booking_id

string

Internal immutable identifier (UUID-like).

null

booking_id

string

Channel/source booking identifier.

null

platform

string

Source platform.

null

friendly_name

string

Human-readable unit name.

null

listing_id

string

Listing identifier on the platform.

null

booking_date

string

When the booking was made (ISO date/datetime).

null

reservation_start

string

Check-in date (ISO date).

null

reservation_end

string

Check-out date (ISO date).

null

status

string

Current booking status.

null

guest_name

string

Guest full name.

null

email

string

Guest email.

null

phone

string

Guest phone (as provided).

null

guest_origin

string

Raw channel/source label if present.

null

guest_origin_gpt

string

Normalized/derived origin categorization.

null

adults

number

Number of adult guests.

null

children

number

Number of child guests.

null

nights_price

number

Accommodation subtotal for nights.

null

cleaning

number

Cleaning fee component.

null

city_tax_platform

number

City/tourist tax as reported by platform.

null

commission_host

number

Host commission/fee amount.

null

currency

string

ISO currency code.

null

fx_rate_to_eur

number

FX rate applied to convert to EUR.

null

fx_fixed_at

string

Timestamp when FX rate was fixed (ISO datetime).

null

fx_source

string

FX source/provider label.

null

Notes:

  • Dates and timestamps are returned as ISO strings.

  • Decimal amounts are returned as JSON numbers (floats).

  • Fields may be null if not applicable or unknown.

Basic example

Example response (truncated):

Filtering by unit name

Use unit to match friendly_name (case-insensitive substring).

Error codes

  • 401 Unauthorized — missing X-API-Key header

  • 403 Forbidden — invalid key or verification failed

  • Ensure your API key is valid and sent on every request.

Last updated