getStaffMember( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Retrieves a staff member.

Permissions
Manage Bookings - all permissions
Read Bookings - all read permissions
Manage Bookings
Read Bookings - Public Data
Read Bookings - Including Participants
Learn more about app permissions.
Method Declaration
Copy
function getStaffMember(
  staffMemberId: string,
  options: GetStaffMemberOptions,
): Promise<StaffMember>;
Method Parameters
staffMemberIdstringRequired

ID of the staff member to retrieve.


optionsGetStaffMemberOptions

Option for retrieving the staff member.

Returns
Return Type:Promise<StaffMember>
JavaScript
import { staffMembers } from "@wix/bookings"; async function getStaffMember(staffMemberId, options) { const response = await staffMembers.getStaffMember(staffMemberId, options); }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?