Core resources


Administration


Booking flow

Sites

Websites, either single-unit or catalog sites.

The site object

Attributes

iduuid

Unique identifier

organization_iduuid

Identifier of the organization this site is defined in

created_attimestamp with time zone

Creation timestamp

updated_attimestamp with time zone

Last modification timestamp

autocomplete_date_selectionboolean

Whether to autocomplete the date selection when only one date is available

color_backgroundtext

Background color of the site

color_bookedtext
color_closedtext
color_errortext

Error color of the site

color_headertext
color_infotext
color_primarytext

Primary color of the site

color_texttext

Text color of the site

color_unavailabletext
color_warningtext
covertext | null

URL of the cover image

currencytext

Currency of the site

custom_domaintext | null

Custom domain of the site

date_visibilitytext

Visible dates in the calendar. Either all or available

filterstext[]

Filters to show in the search bar

first_week_contains_datesmallint | null

First week of the year. Either 1 (first week with a Thursday) or 4 (first week with a Monday)

fonttext | null

Font of the site

icontext | null

URL of the icon image

initial_datetext

Initial date shown in the calendar

interval_wrap_styletext

Style of the interval when wrapping weeks

logotext | null

URL of the logo image

logo_alttext | null

Alt text of the logo image

namejsonb

Localized name

password_hashtext | null

Hash of the password required to access the site

pricing_versiontext
rate_locationtext

Location where rates are shown in the calendar. Either inline or tooltip

rate_visibilitytext

Visibility of rates in the calendar. Either all, available or none

related_listingsinteger | null

Number of related listings to show on detail pages

show_booked_astext
show_brandingboolean

Whether to show the Bookingmood branding

show_closed_astext
show_legendboolean

Whether to show a legend in the calendar

show_organization_description_sectionboolean

Whether to show the organization description section

show_pending_as"CANCELLED" | "TENTATIVE" | "CONFIRMED"
show_pricingboolean
show_totalsboolean

Whether to show totals in the calendar

show_unavailable_resultsboolean
subdomaintext

Subdomain of the site

typetext

Type of the site, either single-unit-site or listing-site

week_starts_onsmallint | null

First day of the week. Either 1 or 0

The site object
{
"id": "00000000-0000-0000-0000-000000000000",
"organization_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-04-17T12:39:22.885Z",
"updated_at": "2024-04-17T12:39:22.885Z",
"autocomplete_date_selection": false,
"color_background": "#fff",
"color_booked": "#faa5a5",
"color_closed": "#f5f5f5",
"color_error": "#faa5a5",
"color_header": "#000",
"color_info": "#2463eb",
"color_primary": "#22c55e",
"color_text": "#000",
"color_unavailable": "#faa5a5",
"color_warning": "#a75c03",
"cover": "",
"currency": "USD",
"custom_domain": "",
"date_visibility": "all",
"filters": [
""
],
"first_week_contains_date": 0,
"font": "",
"icon": "",
"initial_date": "today",
"interval_wrap_style": "square",
"logo": "",
"logo_alt": "",
"name": {},
"password_hash": "",
"pricing_version": "V0",
"rate_location": "inline",
"rate_visibility": "available",
"related_listings": 6,
"show_booked_as": "unavailable",
"show_branding": true,
"show_closed_as": "closed",
"show_legend": true,
"show_organization_description_section": true,
"show_pending_as": "TENTATIVE",
"show_pricing": true,
"show_totals": true,
"show_unavailable_results": true,
"subdomain": "",
"type": "listing-site",
"week_starts_on": 0
}

List sites

Filters

idFilter<uuid>

Unique identifier

organization_idFilter<uuid>

Identifier of the organization this site is defined in

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

autocomplete_date_selectionFilter<boolean>

Whether to autocomplete the date selection when only one date is available

color_backgroundFilter<text>

Background color of the site

color_bookedFilter<text>
color_closedFilter<text>
color_errorFilter<text>

Error color of the site

color_headerFilter<text>
color_infoFilter<text>
color_primaryFilter<text>

Primary color of the site

color_textFilter<text>

Text color of the site

color_unavailableFilter<text>
color_warningFilter<text>
coverFilter<text>

URL of the cover image

currencyFilter<text>

Currency of the site

custom_domainFilter<text>

Custom domain of the site

date_visibilityFilter<text>

Visible dates in the calendar. Either all or available

filtersFilter<text[]>

Filters to show in the search bar

first_week_contains_dateFilter<smallint>

First week of the year. Either 1 (first week with a Thursday) or 4 (first week with a Monday)

fontFilter<text>

Font of the site

iconFilter<text>

URL of the icon image

initial_dateFilter<text>

Initial date shown in the calendar

interval_wrap_styleFilter<text>

Style of the interval when wrapping weeks

logoFilter<text>

URL of the logo image

logo_altFilter<text>

Alt text of the logo image

nameFilter<jsonb>

Localized name

password_hashFilter<text>

Hash of the password required to access the site

pricing_versionFilter<text>
rate_locationFilter<text>

Location where rates are shown in the calendar. Either inline or tooltip

rate_visibilityFilter<text>

Visibility of rates in the calendar. Either all, available or none

related_listingsFilter<integer>

Number of related listings to show on detail pages

show_booked_asFilter<text>
show_brandingFilter<boolean>

Whether to show the Bookingmood branding

show_closed_asFilter<text>
show_legendFilter<boolean>

Whether to show a legend in the calendar

show_organization_description_sectionFilter<boolean>

Whether to show the organization description section

show_pending_asFilter<"CANCELLED" | "TENTATIVE" | "CONFIRMED">
show_pricingFilter<boolean>
show_totalsFilter<boolean>

Whether to show totals in the calendar

show_unavailable_resultsFilter<boolean>
subdomainFilter<text>

Subdomain of the site

typeFilter<text>

Type of the site, either single-unit-site or listing-site

week_starts_onFilter<smallint>

First day of the week. Either 1 or 0

Responses

200

A list of sites with the selected columns

206

Partial Content

GET/sites
curl -X GET "https://api.bookingmood.com/v1/sites?select=*" \
  -H "Authorization: Bearer YOUR_API_KEY"

Update sites

Filters

idFilter<uuid>

Unique identifier

organization_idFilter<uuid>

Identifier of the organization this site is defined in

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

autocomplete_date_selectionFilter<boolean>

Whether to autocomplete the date selection when only one date is available

color_backgroundFilter<text>

Background color of the site

color_bookedFilter<text>
color_closedFilter<text>
color_errorFilter<text>

Error color of the site

color_headerFilter<text>
color_infoFilter<text>
color_primaryFilter<text>

Primary color of the site

color_textFilter<text>

Text color of the site

color_unavailableFilter<text>
color_warningFilter<text>
coverFilter<text>

URL of the cover image

currencyFilter<text>

Currency of the site

custom_domainFilter<text>

Custom domain of the site

date_visibilityFilter<text>

Visible dates in the calendar. Either all or available

filtersFilter<text[]>

Filters to show in the search bar

first_week_contains_dateFilter<smallint>

First week of the year. Either 1 (first week with a Thursday) or 4 (first week with a Monday)

fontFilter<text>

Font of the site

iconFilter<text>

URL of the icon image

initial_dateFilter<text>

Initial date shown in the calendar

interval_wrap_styleFilter<text>

Style of the interval when wrapping weeks

logoFilter<text>

URL of the logo image

logo_altFilter<text>

Alt text of the logo image

nameFilter<jsonb>

Localized name

password_hashFilter<text>

Hash of the password required to access the site

pricing_versionFilter<text>
rate_locationFilter<text>

Location where rates are shown in the calendar. Either inline or tooltip

rate_visibilityFilter<text>

Visibility of rates in the calendar. Either all, available or none

related_listingsFilter<integer>

Number of related listings to show on detail pages

show_booked_asFilter<text>
show_brandingFilter<boolean>

Whether to show the Bookingmood branding

show_closed_asFilter<text>
show_legendFilter<boolean>

Whether to show a legend in the calendar

show_organization_description_sectionFilter<boolean>

Whether to show the organization description section

show_pending_asFilter<"CANCELLED" | "TENTATIVE" | "CONFIRMED">
show_pricingFilter<boolean>
show_totalsFilter<boolean>

Whether to show totals in the calendar

show_unavailable_resultsFilter<boolean>
subdomainFilter<text>

Subdomain of the site

typeFilter<text>

Type of the site, either single-unit-site or listing-site

week_starts_onFilter<smallint>

First day of the week. Either 1 or 0

Body

Partial<Site>

Responses

204

The updated sites with the selected columns

PATCH/sites
curl -X PATCH "https://api.bookingmood.com/v1/sites" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{}'