跳到导航

获取员工

按 ID 获取特定员工

路径参数

staff_idstring必需

员工 ID。创建时返回;可使用 GET /v1/reception/staff 列出。

请求头

xi-api-keystring可选
xi-workspace-idstring必需

经销商 API 密钥操作的客户工作区。

响应

成功响应

namestring

Internal/admin name of the staff member, shown in the dashboard and owner notifications.

idstring

员工 ID。

groupslist of objects可选

此项目的分组成员关系。每个条目包含分组标签及该项目在组内从 0 开始的排名。

ungrouped_rankinteger or null可选>=0

无分组项目中的显示位置;null 排在最后。可通过重新排序端点更改。

descriptionstring可选
Description or bio of the staff member.
is_activeboolean可选默认为 true

该员工是否可预约。停用员工会保留预约历史。

emailstring可选默认为

员工的邮箱地址。

phonestring可选

员工电话号码。未提供国家/地区代码时,默认使用 +1(美国)。

sms_notifications_opted_inboolean可选默认为 false

该员工当前是否接收 SMS 预约通知。默认不订阅——员工必须明确订阅;当其向工作区号码回复 STOP 时,会自动设为 False。

photo_urlstring or null可选格式: "uri"1-2083 characters

员工照片的 URL。

location_idstring or null可选

Location this staff member is assigned to; empty means available at all locations.

working_hoursobject or null可选

Custom working hours for this staff member. Null means follow the assigned location’s operating_hours (requires location_id).

display_on_booking_pageboolean可选默认为 true

客户是否可以在预约页面查看并按姓名选择该员工。设为 false 时,仍可预约该员工,但不会显示其姓名。

customer_facing_namestring可选

Optional public-facing label. When empty, name is shown to customers too. name stays the internal/admin label used in the dashboard and business-owner notifications.

created_at_unixinteger可选

创建时间,以秒为单位的 Unix 时间戳。

updated_at_unixinteger可选

上次更新时间,以秒为单位的 Unix 时间戳。

错误

422
Unprocessable Entity Error