Core resources
Administration
Booking flow
Discounts per service
id
uuid
Unique identifier
created_at
timestamp with time zone
Creation timestamp
updated_at
timestamp with time zone
Last modification timestamp
definition
jsonb
Definition of the discount
name
jsonb
Localized name
{"id": "00000000-0000-0000-0000-000000000000","service_id": "00000000-0000-0000-0000-000000000000","created_at": "2024-05-19T15:01:40.341Z","updated_at": "2024-05-19T15:01:40.341Z","definition": {},"name": {}}
id
Filter<uuid>
Unique identifier
service_id
Filter<uuid>
Identifier of the related service
created_at
Filter<timestamp with time zone>
Creation timestamp
updated_at
Filter<timestamp with time zone>
Last modification timestamp
definition
Filter<jsonb>
Definition of the discount
name
Filter<jsonb>
Localized name
200
A list of service discounts with the selected columns
206
Partial Content
GET
/service_discounts
curl -X GET "https://api.bookingmood.com/v1/service_discounts?select=*" \ -H "Authorization: Bearer YOUR_API_KEY"
Partial<ServiceDiscount>
| Array<Partial<ServiceDiscount>>
201
The newly created service discounts with the selected columns
POST
/service_discounts
curl -X POST "https://api.bookingmood.com/v1/service_discounts" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '[]'
id
Filter<uuid>
Unique identifier
service_id
Filter<uuid>
Identifier of the related service
created_at
Filter<timestamp with time zone>
Creation timestamp
updated_at
Filter<timestamp with time zone>
Last modification timestamp
definition
Filter<jsonb>
Definition of the discount
name
Filter<jsonb>
Localized name
204
The deleted service discounts with the selected columns
DELETE
/service_discounts
curl -X DELETE "https://api.bookingmood.com/v1/service_discounts" \ -H "Authorization: Bearer YOUR_API_KEY"
id
Filter<uuid>
Unique identifier
service_id
Filter<uuid>
Identifier of the related service
created_at
Filter<timestamp with time zone>
Creation timestamp
updated_at
Filter<timestamp with time zone>
Last modification timestamp
definition
Filter<jsonb>
Definition of the discount
name
Filter<jsonb>
Localized name
Partial<ServiceDiscount>
204
The updated service discounts with the selected columns
PATCH
/service_discounts
curl -X PATCH "https://api.bookingmood.com/v1/service_discounts" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{}'