Menu
Appointment created
If the company's API is enabled, when creating a client appointment, a response in the form of POST will be received on the link you specified to receive a response (WebHook is specified in the API settings). You can process POST on your own site and work with the received data.
Example of received POST:
array
(
[type] => app_create
[cid] => 146
[service_ids] => [66]
[date] => 05/30/2022
[time] => 12:30
[unix_start] => 1653903000
[unix_end] => 1653910200
[client] => 130
[client_name] => Alex
[client_phones] => ["+16612556497"]
[emp_id] => 66
[emp_fullname] => 'Eric Atcheson'
)
`type` - (string) Request type (app_create - appointment created by client)
`cid` - (int) Your company's unique ID
`services_ids` - (Array) Unique service IDs provided by the company
`date` - (string) Appointment start date
`time` - (string) Appointment start time
`unix_start` - (int) UNIX start time of appointment
`unix_end` - (int) UNIX end time of appointment
`client` - (int) Unique user ID on the site
`client_name` - (string) Client name
`client_phones` - (Array) Array with client phone numbers
`emp_id` - (int) Unique performer ID
`emp_fullname` - (string) Performer name
Example of received POST:
array
(
[type] => app_create
[cid] => 146
[service_ids] => [66]
[date] => 05/30/2022
[time] => 12:30
[unix_start] => 1653903000
[unix_end] => 1653910200
[client] => 130
[client_name] => Alex
[client_phones] => ["+16612556497"]
[emp_id] => 66
[emp_fullname] => 'Eric Atcheson'
)
`type` - (string) Request type (app_create - appointment created by client)
`cid` - (int) Your company's unique ID
`services_ids` - (Array) Unique service IDs provided by the company
`date` - (string) Appointment start date
`time` - (string) Appointment start time
`unix_start` - (int) UNIX start time of appointment
`unix_end` - (int) UNIX end time of appointment
`client` - (int) Unique user ID on the site
`client_name` - (string) Client name
`client_phones` - (Array) Array with client phone numbers
`emp_id` - (int) Unique performer ID
`emp_fullname` - (string) Performer name