Core resources


Administration


Booking flow

Services

Re-usable elements that can be included in the booking forms of units

The service object

Attributes

iduuid

Unique identifier

organization_iduuid

Identifier of the organization this service is defined in

parent_iduuid | null
services.id

Identifier of the parent service

created_attimestamp with time zone

Creation timestamp

updated_attimestamp with time zone

Last modification timestamp

depositjsonb | null

Deposit of the service

descriptionjsonb

Localized description

ftstsvector

Full text search index

labeljsonb

Localized label

metajsonb

Meta data of the service

ordersmallint

Identifier of the parent service. Only applicable for services with type 'multiple-choice-option'.

pricejsonb | null

Price of the service

typetext

Type of the service

The service object
{
"id": "00000000-0000-0000-0000-000000000000",
"organization_id": "00000000-0000-0000-0000-000000000000",
"parent_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-02-28T14:55:30.514Z",
"updated_at": "2024-02-28T14:55:30.514Z",
"deposit": {},
"description": {},
"label": {},
"meta": {},
"order": 0,
"price": {},
"type": ""
}

List services

Filters

idFilter<uuid>

Unique identifier

organization_idFilter<uuid>

Identifier of the organization this service is defined in

parent_idFilter<uuid>

Identifier of the parent service

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

depositFilter<jsonb>

Deposit of the service

descriptionFilter<jsonb>

Localized description

ftsFilter<tsvector>

Full text search index

labelFilter<jsonb>

Localized label

metaFilter<jsonb>

Meta data of the service

orderFilter<smallint>

Identifier of the parent service. Only applicable for services with type 'multiple-choice-option'.

priceFilter<jsonb>

Price of the service

typeFilter<text>

Type of the service

Responses

200

A list of services with the selected columns

206

Partial Content

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

Create services

Body

Partial<Service>
| Array<Partial<Service>>

Responses

201

The newly created services with the selected columns

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

Delete services

Filters

idFilter<uuid>

Unique identifier

organization_idFilter<uuid>

Identifier of the organization this service is defined in

parent_idFilter<uuid>

Identifier of the parent service

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

depositFilter<jsonb>

Deposit of the service

descriptionFilter<jsonb>

Localized description

ftsFilter<tsvector>

Full text search index

labelFilter<jsonb>

Localized label

metaFilter<jsonb>

Meta data of the service

orderFilter<smallint>

Identifier of the parent service. Only applicable for services with type 'multiple-choice-option'.

priceFilter<jsonb>

Price of the service

typeFilter<text>

Type of the service

Responses

204

The deleted services with the selected columns

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

Update services

Filters

idFilter<uuid>

Unique identifier

organization_idFilter<uuid>

Identifier of the organization this service is defined in

parent_idFilter<uuid>

Identifier of the parent service

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

depositFilter<jsonb>

Deposit of the service

descriptionFilter<jsonb>

Localized description

ftsFilter<tsvector>

Full text search index

labelFilter<jsonb>

Localized label

metaFilter<jsonb>

Meta data of the service

orderFilter<smallint>

Identifier of the parent service. Only applicable for services with type 'multiple-choice-option'.

priceFilter<jsonb>

Price of the service

typeFilter<text>

Type of the service

Body

Partial<Service>

Responses

204

The updated services with the selected columns

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