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-11-21T13:57:17.968Z","updated_at": "2024-11-21T13:57:17.968Z","definition": {},"name": {}}
id
Filter<>
Unique identifier
service_id
Filter<>
Identifier of the related service
created_at
Filter<>
Creation timestamp
updated_at
Filter<>
Last modification timestamp
definition
Filter<>
Definition of the discount
name
Filter<>
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<>
Unique identifier
service_id
Filter<>
Identifier of the related service
created_at
Filter<>
Creation timestamp
updated_at
Filter<>
Last modification timestamp
definition
Filter<>
Definition of the discount
name
Filter<>
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<>
Unique identifier
service_id
Filter<>
Identifier of the related service
created_at
Filter<>
Creation timestamp
updated_at
Filter<>
Last modification timestamp
definition
Filter<>
Definition of the discount
name
Filter<>
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 '{}'