Create a booking service
POST
/api/v1/booking-services
const url = 'https://renotify.app/api/v1/booking-services';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"Haircut","description":"Wash, cut and style.","duration_minutes":45,"buffer_before_minutes":0,"buffer_after_minutes":10,"capacity":1,"price_micros":30000000,"currency":"EUR","is_active":true,"booking_page_visible":true,"staff_ids":[1]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://renotify.app/api/v1/booking-services \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "Haircut", "description": "Wash, cut and style.", "duration_minutes": 45, "buffer_before_minutes": 0, "buffer_after_minutes": 10, "capacity": 1, "price_micros": 30000000, "currency": "EUR", "is_active": true, "booking_page_visible": true, "staff_ids": [ 1 ] }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
What customers book.
string
Example
Haircutdescription
A short description.
string
Example
Wash, cut and style.duration_minutes
required
How long it takes, 5 to 720.
integer
Example
45buffer_before_minutes
Time kept free before.
integer
Example
0buffer_after_minutes
Time kept free after.
integer
Example
10capacity
How many customers at once.
integer
Example
1price_micros
Price in millionths of the currency unit.
integer
Example
30000000currency
Currency of the price.
string
Example
EURis_active
Whether it can be booked.
boolean
Example
truebooking_page_visible
Whether it shows on the booking page.
boolean
Example
truestaff_ids
Staff who do this service.
Array<integer>
Example
[ 1]