Core resources


Administration


Booking flow

Product services

Services included in the booking form of a unit

The product service object

Attributes

iduuid

Unique identifier

product_iduuid
products.id

Identifier of the related unit

service_iduuid
services.id

Identifier of the related service

created_attimestamp with time zone

Creation timestamp

updated_attimestamp with time zone

Last modification timestamp

orderinteger

Order of the service in the booking form of the unit

The product service object
{
"id": "00000000-0000-0000-0000-000000000000",
"product_id": "00000000-0000-0000-0000-000000000000",
"service_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-05-11T07:54:52.097Z",
"updated_at": "2024-05-11T07:54:52.097Z",
"order": 0
}

List product services

Filters

idFilter<uuid>

Unique identifier

product_idFilter<uuid>

Identifier of the related unit

service_idFilter<uuid>

Identifier of the related service

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

orderFilter<integer>

Order of the service in the booking form of the unit

Responses

200

A list of product services with the selected columns

206

Partial Content

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

Create product services

Body

Partial<ProductService>
| Array<Partial<ProductService>>

Responses

201

The newly created product services with the selected columns

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

Delete product services

Filters

idFilter<uuid>

Unique identifier

product_idFilter<uuid>

Identifier of the related unit

service_idFilter<uuid>

Identifier of the related service

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

orderFilter<integer>

Order of the service in the booking form of the unit

Responses

204

The deleted product services with the selected columns

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

Update product services

Filters

idFilter<uuid>

Unique identifier

product_idFilter<uuid>

Identifier of the related unit

service_idFilter<uuid>

Identifier of the related service

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

orderFilter<integer>

Order of the service in the booking form of the unit

Body

Partial<ProductService>

Responses

204

The updated product services with the selected columns

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