v1
latestSwagger 2.02026-08-06115129197.7 KBAppointment
Create an appointment
Returns the newly created appointment
post/appointments
Query parameters
partner_idstring
The appointments's id
client_partner_idstring
The client's id
client_mytime_idinteger
The client's mytime id
child_partner_idstring
The child's id
child_mytime_idinteger
The child's mytime id
location_partner_idstring
The location's id
location_mytime_idinteger
The location's mytime id
employee_partner_idstring
The employee's id
employee_mytime_idinteger
The employee's mytime id
begin_atstring required
The appointment's start time. e.g 2017-10-17T10:00:00Z
end_atstring required
The appointment's end time. e.g 2017-10-17T12:00:00Z
referrerstring
Referrer for appointment
address_idstring
Client address ID
employee_requestedboolean
Whether an employee was requested
check_conflictsboolean
Whether to check for appointment conflicts or not
skip_bundle_purchasesboolean
Whether to skip bundle purchases when creating the appointment
Headers
X-Subdomainstring
Merchant subdomain - Optional
Request body
Example request
{
"booked_by": "merchant",
"partner_name": "Partner API",
"variations": [
{
"variation_mytime_id": 309616,
"price": 100,
"segments": [
{
"position": 0,
"kind": "service",
"duration": 120,
"segment_template_id": 7272
}
]
}
]
}Response
Appointment response
Example response
{
"variations": [
{
"price": 120,
"multiplier_base_price": 40,
"price_multiplier": 3
}
]
}