Core resources


Administration


Booking flow

Seasons

Season definitions. Useful for making re-usable pricing definitions

The season object

Attributes

iduuid

Unique identifier

organization_iduuid

Identifier of the organization this season is defined in

created_attimestamp with time zone

Creation timestamp

updated_attimestamp with time zone

Last modification timestamp

namejsonb

Localized name

valuejsonb | null

List of intervals defining the season

The season object
{
"id": "00000000-0000-0000-0000-000000000000",
"organization_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-12-21T14:39:30.769Z",
"updated_at": "2024-12-21T14:39:30.769Z",
"name": {},
"value": {}
}

List seasons

Filters

idFilter<>

Unique identifier

organization_idFilter<>

Identifier of the organization this season is defined in

created_atFilter<>

Creation timestamp

updated_atFilter<>

Last modification timestamp

nameFilter<>

Localized name

valueFilter<>

List of intervals defining the season

Responses

200

A list of seasons with the selected columns

206

Partial Content

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

Create seasons

Body

Partial<Season>
| Array<Partial<Season>>

Responses

201

The newly created seasons with the selected columns

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

Delete seasons

Filters

idFilter<>

Unique identifier

organization_idFilter<>

Identifier of the organization this season is defined in

created_atFilter<>

Creation timestamp

updated_atFilter<>

Last modification timestamp

nameFilter<>

Localized name

valueFilter<>

List of intervals defining the season

Responses

204

The deleted seasons with the selected columns

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

Update seasons

Filters

idFilter<>

Unique identifier

organization_idFilter<>

Identifier of the organization this season is defined in

created_atFilter<>

Creation timestamp

updated_atFilter<>

Last modification timestamp

nameFilter<>

Localized name

valueFilter<>

List of intervals defining the season

Body

Partial<Season>

Responses

204

The updated seasons with the selected columns

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