Core resources


Administration


Booking flow

Widget listings

Units listed in a widget

The widget listing object

Attributes

iduuid

Unique identifier

product_iduuid
products.id

Identifier of the related unit

widget_iduuid
widgets.id

Identifier of the related widget

created_attimestamp with time zone

Creation timestamp

updated_attimestamp with time zone

Last modification timestamp

ordersmallint

Order of the listing as displayed in the widget

urljsonb

URL of the listing. Only applies when widget.interaction is forward

The widget listing object
{
"id": "00000000-0000-0000-0000-000000000000",
"product_id": "00000000-0000-0000-0000-000000000000",
"widget_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-04-20T03:08:58.342Z",
"updated_at": "2024-04-20T03:08:58.342Z",
"order": 0,
"url": {}
}

List widget listings

Filters

idFilter<uuid>

Unique identifier

product_idFilter<uuid>

Identifier of the related unit

widget_idFilter<uuid>

Identifier of the related widget

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

orderFilter<smallint>

Order of the listing as displayed in the widget

urlFilter<jsonb>

URL of the listing. Only applies when widget.interaction is forward

Responses

200

A list of widget listings with the selected columns

206

Partial Content

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

Create widget listings

Body

Partial<WidgetListing>
| Array<Partial<WidgetListing>>

Responses

201

The newly created widget listings with the selected columns

POST/widget_listings
curl -X POST "https://api.bookingmood.com/v1/widget_listings" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '[]'

Delete widget listings

Filters

idFilter<uuid>

Unique identifier

product_idFilter<uuid>

Identifier of the related unit

widget_idFilter<uuid>

Identifier of the related widget

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

orderFilter<smallint>

Order of the listing as displayed in the widget

urlFilter<jsonb>

URL of the listing. Only applies when widget.interaction is forward

Responses

204

The deleted widget listings with the selected columns

DELETE/widget_listings
curl -X DELETE "https://api.bookingmood.com/v1/widget_listings" \
  -H "Authorization: Bearer YOUR_API_KEY"

Update widget listings

Filters

idFilter<uuid>

Unique identifier

product_idFilter<uuid>

Identifier of the related unit

widget_idFilter<uuid>

Identifier of the related widget

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

orderFilter<smallint>

Order of the listing as displayed in the widget

urlFilter<jsonb>

URL of the listing. Only applies when widget.interaction is forward

Body

Partial<WidgetListing>

Responses

204

The updated widget listings with the selected columns

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