POST
/bookings/company/{companySlug}/book
curl \
-X POST https://widget.easyweek.io/api/v1/bookings/company/{companySlug}/book \
-H "Authorization: string" \
-d '{"user_id":42.0,"reserved_on":"2021-01-16T11:15:00.000","branch_id":42.0,"product_id":42.0,"related_ids":[],"customer_phone":"string","customer_first_name":"string","customer_email":"hello@example.com","booking_comment":"string","booking_callback":true}'
Request example
# Headers
Authorization: string
# Payload
{
"user_id": 42.0,
"reserved_on": "2021-01-16T11:15:00.000",
"branch_id": 42.0,
"product_id": 42.0,
"related_ids": [],
"customer_phone": "string",
"customer_first_name": "string",
"customer_email": "hello@example.com",
"booking_comment": "string",
"booking_callback": true
}
Request examples
# Headers
Authorization: string
# Payload
{
"user_id": 42.0,
"reserved_on": "2021-01-16T11:15:00.000",
"branch_id": 42.0,
"product_id": 42.0,
"related_ids": [],
"customer_phone": "string",
"customer_first_name": "string",
"customer_email": "hello@example.com",
"booking_comment": "string",
"booking_callback": true
}
Response examples (200)
{
"hashid": "string",
"ical": "https://example.com"
}
Response examples (200)
{
"hashid": "string",
"ical": "https://example.com"
}