Staff
Your office users: contact details, status, profile, module permissions and the login record.
The staff object
Every staff record carries these fields in this order, after object, which is always "staff".
| Field | Type | Description |
|---|---|---|
id | integer | |
first_name | string, up to 50 characters | |
last_name | string, up to 50 characters | |
address1 | string, up to 100 characters, nullable | |
address2 | string, up to 100 characters, nullable | |
city | string, up to 50 characters, nullable | |
state | string, up to 50 characters, nullable | |
zipcode | string, up to 25 characters, nullable | |
country | string, up to 50 characters, nullable | |
p_phone | string, up to 100 characters, nullable | |
s_phone | string, up to 100 characters, nullable | |
text_phone | string, up to 510 characters, nullable | Mobile number(s) for text messages, comma-separated. |
status | string, up to 15 characters | "active", "inactive", "contactList" (Contact List) or "doNotHire" (Do Not Hire). Only active staff can log in and appear on your website's team cards. |
hire_date | string, up to 15 characters | Date the staff member was added, YYYY-MM-DD (account time zone). Set by the app; read-only. |
notes | text, nullable | Notes shown on the staff page (HTML). |
position | string, up to 100 characters | Job title shown on your website's team cards. & < > " ' come back as HTML entities. |
excerpt | text | Short biography shown on your website's team cards (basic HTML, no paragraph tags). |
linkedin_url | string, up to 255 characters, nullable | LinkedIn profile address shown on your website's team cards; null when none. |
headshot_url | string, up to 100 characters | File name of the photo uploaded on the staff page, not a web address; "blank.png" when there is none. Read-only. |
timezone | string, up to 256 characters | The staff member's own time zone (see Timezones): the app uses it for the current date and time while they are logged in. |
send_welcome_message | integer | 1 = Send Welcome Email is checked on the staff page, 0 = not. A stored setting: it does not show whether the e-mail was sent. |
s_practs | integer | 1 = can manage practitioners, 0 = cannot. |
s_staff | integer | Other staff members: 0 = no access, 1 = view only, 2 = view and edit, 3 = view, edit, add and delete. |
s_wages | integer | 1 = can use the wage manager (practitioner hours and wages), 0 = cannot. |
s_timesheets | integer | Timesheets: 0 = own timesheets only, 1 = view all timesheets, 2 = manage practitioner timesheets, 3 = staff timesheets, 4 = practitioner and staff timesheets, 5 = practitioners (see no wages), 6 = staff (see no wages), 7 = practitioners and staff (see no wages). |
s_deductions | integer | 1 = can manage deductions, 0 = cannot. |
s_skills | integer | 1 = can manage skills, 0 = cannot. |
s_clients | integer | 1 = can manage clients, 0 = cannot. |
s_assess | integer | 1 = can manage and moderate assessments, 0 = cannot. |
s_scheduling | integer | 1 = can use practitioner pairing, 0 = cannot. |
s_revenues | integer | 1 = can manage revenues and payments, 0 = cannot. |
s_balances | integer | 1 = can manage balances and reports, 0 = cannot. |
s_invoices | integer | 1 = can manage invoices, 0 = cannot. |
s_expenses | integer | 1 = can manage expenses, 0 = cannot. |
s_services | integer | 1 = can manage services, 0 = cannot. |
s_taxes | integer | 1 = can manage service taxes, 0 = cannot. |
s_session_control | integer | Sessions on the calendar: 0 = view only, 1 = view and edit, 2 = add, edit and delete, plus the calendar settings. |
s_reconcile_duration | integer | 1 = can change session start and end times, 0 = cannot. |
s_costs_wages | integer | 1 = can see session costs and wages, 0 = cannot. |
s_locations | integer | 1 = can manage locations, 0 = cannot. |
s_import | integer | 1 = can manage imports and exports, 0 = cannot. |
s_langtrans | integer | 1 = can manage language translation, 0 = cannot. |
s_notif | integer | 1 = can manage notifications, 0 = cannot. |
pract_mass_email | integer | 1 = can send mass e-mails to practitioners, 0 = cannot. |
client_mass_email | integer | 1 = can send mass e-mails to clients, 0 = cannot. |
staff_mass_email | integer | 1 = can send mass e-mails to staff, 0 = cannot. |
s_email_history | integer | 1 = can open the mass e-mail history, 0 = cannot. |
s_tasks | integer | 1 = can manage tasks, 0 = cannot. |
s_branding | integer | 1 = can manage branding (company name or logo) and the colour theme, 0 = cannot. |
s_permissions | integer | 1 = can review every user's permissions, 0 = cannot. |
s_leads | integer | 1 = can use the sales manager, 0 = cannot. |
s_products | integer | Product role: 0 = none, 1 = cashier, 2 = cashier manager, 3 = product manager. |
s_sms | integer | 1 = can send text messages, 0 = cannot. |
s_records | integer | Records manager: 0 = no access, 1 = view only, 2 = view, add and edit, 3 = view, add, edit and delete. |
s_breaks | integer | 1 = can manage breaks and closures, 0 = cannot. |
s_cancels | integer | 1 = can manage cancellations, 0 = cannot. |
s_conflicts | integer | 1 = can manage conflicts, 0 = cannot. |
s_custom_sessions | integer | 1 = can create custom session completion types in the calendar settings, 0 = cannot. |
s_docs | integer | 1 = can manage documents, 0 = cannot. |
s_security | integer | 1 = can open the security audit and AI log pages, 0 = cannot. |
s_packages | integer | 1 = can manage packages, 0 = cannot. |
s_gateways | integer | 1 = can take payments through the payment gateways (for example Stripe), 0 = cannot. |
s_vehicles | integer | 1 = can manage vehicles, 0 = cannot. |
s_smartlearn | integer | 1 = can manage Smart Learn (needs the Smart Learn module), 0 = cannot. |
s_website | integer | Website blog: 0 = no access, 1 = write drafts (add, edit and delete posts), 2 = write drafts and publish (also the blog's categories and tags). |
s_memberships | integer | 1 = can manage plans and members' plans, 0 = cannot. |
username | string, up to 50 characters, nullable | Login name, lower case and unique across every account. Empty or null when the staff member has no login. |
email | string, up to 510 characters, nullable | One e-mail address or several, comma-separated, lower case. |
Example
{
"object": "staff",
"id": 42,
"first_name": "Jane",
"last_name": "Doe",
"address1": "12 Main Street",
"address2": "Suite 4",
"city": "Toronto",
"state": "ON",
"zipcode": "M5V 2T6",
"country": "Canada",
"p_phone": "416-555-0100",
"s_phone": "416-555-0101",
"text_phone": "416-555-0102",
"status": "active",
"hire_date": "2026-01-15",
"notes": "Prefers afternoon appointments.",
"position": "Senior Tutor",
"excerpt": "A short biography.",
"linkedin_url": "https://www.example.com/",
"headshot_url": "https://www.example.com/",
"timezone": "America/Toronto",
"send_welcome_message": 1,
"s_practs": 1,
"s_staff": 1,
"s_wages": 1,
"s_timesheets": 1,
"s_deductions": 1,
"s_skills": 1,
"s_clients": 1,
"s_assess": 1,
"s_scheduling": 1,
"s_revenues": 1,
"s_balances": 1,
"s_invoices": 1,
"s_expenses": 1,
"s_services": 1,
"s_taxes": 1,
"s_session_control": 1,
"s_reconcile_duration": 1,
"s_costs_wages": 1,
"s_locations": 1,
"s_import": 1,
"s_langtrans": 1,
"s_notif": 1,
"pract_mass_email": 1,
"client_mass_email": 1,
"staff_mass_email": 1,
"s_email_history": 1,
"s_tasks": 1,
"s_branding": 1,
"s_permissions": 1,
"s_leads": 1,
"s_products": 1,
"s_sms": 1,
"s_records": 1,
"s_breaks": 1,
"s_cancels": 1,
"s_conflicts": 1,
"s_custom_sessions": 1,
"s_docs": 1,
"s_security": 1,
"s_packages": 1,
"s_gateways": 1,
"s_vehicles": 1,
"s_smartlearn": 1,
"s_website": 1,
"s_memberships": 1,
"username": "jane.doe",
"email": "jane.doe@example.com"
} List staff
Parameters
| Parameter | In | Description |
|---|---|---|
limit | query | Records per page, 1 to 1000 (default 100). |
offset | query | Records to skip (default 0). |
Returns
A list envelope of staff records (see Pagination).
Request
curl "https://www.bizstim.com/api/v1/staff" \
-H "X-API-KEY: YOUR_API_KEY" \
-H "Accept: application/json"<?php
$ch = curl_init('https://www.bizstim.com/api/v1/staff');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['X-API-KEY: YOUR_API_KEY', 'Accept: application/json'],
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);const response = await fetch('https://www.bizstim.com/api/v1/staff', {
headers: { 'X-API-KEY': 'YOUR_API_KEY', 'Accept': 'application/json' }
});
const data = await response.json();Response
{
"object": "list",
"total": 2,
"limit": 100,
"offset": 0,
"has_more": false,
"data": [
{
"object": "staff",
"id": 42,
"first_name": "Jane",
"last_name": "Doe",
"address1": "12 Main Street",
"address2": "Suite 4",
"city": "Toronto",
"state": "ON",
"zipcode": "M5V 2T6",
"country": "Canada",
"p_phone": "416-555-0100",
"s_phone": "416-555-0101",
"text_phone": "416-555-0102",
"status": "active",
"hire_date": "2026-01-15",
"notes": "Prefers afternoon appointments.",
"position": "Senior Tutor",
"excerpt": "A short biography.",
"linkedin_url": "https://www.example.com/",
"headshot_url": "https://www.example.com/",
"timezone": "America/Toronto",
"send_welcome_message": 1,
"s_practs": 1,
"s_staff": 1,
"s_wages": 1,
"s_timesheets": 1,
"s_deductions": 1,
"s_skills": 1,
"s_clients": 1,
"s_assess": 1,
"s_scheduling": 1,
"s_revenues": 1,
"s_balances": 1,
"s_invoices": 1,
"s_expenses": 1,
"s_services": 1,
"s_taxes": 1,
"s_session_control": 1,
"s_reconcile_duration": 1,
"s_costs_wages": 1,
"s_locations": 1,
"s_import": 1,
"s_langtrans": 1,
"s_notif": 1,
"pract_mass_email": 1,
"client_mass_email": 1,
"staff_mass_email": 1,
"s_email_history": 1,
"s_tasks": 1,
"s_branding": 1,
"s_permissions": 1,
"s_leads": 1,
"s_products": 1,
"s_sms": 1,
"s_records": 1,
"s_breaks": 1,
"s_cancels": 1,
"s_conflicts": 1,
"s_custom_sessions": 1,
"s_docs": 1,
"s_security": 1,
"s_packages": 1,
"s_gateways": 1,
"s_vehicles": 1,
"s_smartlearn": 1,
"s_website": 1,
"s_memberships": 1,
"username": "jane.doe",
"email": "jane.doe@example.com"
},
{
"object": "staff",
"id": 43,
"first_name": "Jane",
"last_name": "Doe",
"address1": "12 Main Street",
"address2": "Suite 4",
"city": "Toronto",
"state": "ON",
"zipcode": "M5V 2T6",
"country": "Canada",
"p_phone": "416-555-0100",
"s_phone": "416-555-0101",
"text_phone": "416-555-0102",
"status": "active",
"hire_date": "2026-01-15",
"notes": "Prefers afternoon appointments.",
"position": "Senior Tutor",
"excerpt": "A short biography.",
"linkedin_url": "https://www.example.com/",
"headshot_url": "https://www.example.com/",
"timezone": "America/Toronto",
"send_welcome_message": 1,
"s_practs": 1,
"s_staff": 1,
"s_wages": 1,
"s_timesheets": 1,
"s_deductions": 1,
"s_skills": 1,
"s_clients": 1,
"s_assess": 1,
"s_scheduling": 1,
"s_revenues": 1,
"s_balances": 1,
"s_invoices": 1,
"s_expenses": 1,
"s_services": 1,
"s_taxes": 1,
"s_session_control": 1,
"s_reconcile_duration": 1,
"s_costs_wages": 1,
"s_locations": 1,
"s_import": 1,
"s_langtrans": 1,
"s_notif": 1,
"pract_mass_email": 1,
"client_mass_email": 1,
"staff_mass_email": 1,
"s_email_history": 1,
"s_tasks": 1,
"s_branding": 1,
"s_permissions": 1,
"s_leads": 1,
"s_products": 1,
"s_sms": 1,
"s_records": 1,
"s_breaks": 1,
"s_cancels": 1,
"s_conflicts": 1,
"s_custom_sessions": 1,
"s_docs": 1,
"s_security": 1,
"s_packages": 1,
"s_gateways": 1,
"s_vehicles": 1,
"s_smartlearn": 1,
"s_website": 1,
"s_memberships": 1,
"username": "jane.doe",
"email": "jane.doe@example.com"
}
]
} Retrieve a staff member
Parameters
| Parameter | In | Description |
|---|---|---|
id | path | The record's id. |
Returns
One staff record, or 404 not_found when no record with that id exists on your account.
Request
curl "https://www.bizstim.com/api/v1/staff/42" \
-H "X-API-KEY: YOUR_API_KEY" \
-H "Accept: application/json"<?php
$ch = curl_init('https://www.bizstim.com/api/v1/staff/42');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['X-API-KEY: YOUR_API_KEY', 'Accept: application/json'],
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);const response = await fetch('https://www.bizstim.com/api/v1/staff/42', {
headers: { 'X-API-KEY': 'YOUR_API_KEY', 'Accept': 'application/json' }
});
const data = await response.json();Response
{
"object": "staff",
"id": 42,
"first_name": "Jane",
"last_name": "Doe",
"address1": "12 Main Street",
"address2": "Suite 4",
"city": "Toronto",
"state": "ON",
"zipcode": "M5V 2T6",
"country": "Canada",
"p_phone": "416-555-0100",
"s_phone": "416-555-0101",
"text_phone": "416-555-0102",
"status": "active",
"hire_date": "2026-01-15",
"notes": "Prefers afternoon appointments.",
"position": "Senior Tutor",
"excerpt": "A short biography.",
"linkedin_url": "https://www.example.com/",
"headshot_url": "https://www.example.com/",
"timezone": "America/Toronto",
"send_welcome_message": 1,
"s_practs": 1,
"s_staff": 1,
"s_wages": 1,
"s_timesheets": 1,
"s_deductions": 1,
"s_skills": 1,
"s_clients": 1,
"s_assess": 1,
"s_scheduling": 1,
"s_revenues": 1,
"s_balances": 1,
"s_invoices": 1,
"s_expenses": 1,
"s_services": 1,
"s_taxes": 1,
"s_session_control": 1,
"s_reconcile_duration": 1,
"s_costs_wages": 1,
"s_locations": 1,
"s_import": 1,
"s_langtrans": 1,
"s_notif": 1,
"pract_mass_email": 1,
"client_mass_email": 1,
"staff_mass_email": 1,
"s_email_history": 1,
"s_tasks": 1,
"s_branding": 1,
"s_permissions": 1,
"s_leads": 1,
"s_products": 1,
"s_sms": 1,
"s_records": 1,
"s_breaks": 1,
"s_cancels": 1,
"s_conflicts": 1,
"s_custom_sessions": 1,
"s_docs": 1,
"s_security": 1,
"s_packages": 1,
"s_gateways": 1,
"s_vehicles": 1,
"s_smartlearn": 1,
"s_website": 1,
"s_memberships": 1,
"username": "jane.doe",
"email": "jane.doe@example.com"
} Create a staff member
Request body
A JSON object (Content-Type: application/json) with these fields.
| Field | Type | Required | Description |
|---|---|---|---|
first_name | string, up to 50 characters | yes | First name. |
last_name | string, up to 50 characters | yes | Last name. |
status | string | yes | "active", "inactive", "contactList" or "doNotHire". Only active staff can log in. |
country | string, up to 50 characters | yes | Country. |
state | string, up to 50 characters | yes | State or province. |
city | string, up to 50 characters | no | City. |
address1 | string, up to 100 characters | no | Street address. |
address2 | string, up to 100 characters | no | Apartment, suite or unit. |
zipcode | string, up to 25 characters | no | Zip or postal code. |
p_phone | string, up to 100 characters | no | Primary phone. |
s_phone | string, up to 100 characters | no | Secondary phone. |
text_phone | string, up to 510 characters | no | Mobile number(s) for text messages, with the country code, comma separated. |
email | string, up to 510 characters | no | One e-mail address, or several separated by commas. Stored in lower case. |
notes | string | no | Notes shown on the staff page (HTML allowed). |
timezone | string | no | A time zone from GET /api/v1/timezones (default: the account time zone). |
position | string, up to 100 characters | no | Job title shown on your website's team cards. |
excerpt | string | no | Short biography shown on your website's team cards (basic HTML allowed, paragraph tags removed). |
linkedin_url | string, up to 255 characters | no | LinkedIn profile address (https://www.linkedin.com/in/...), shown on your website's team cards. |
username | string, 4 to 50 characters | no | Login name, stored in lower case; needs password. Without one the staff member has no login (see send_welcome_message). |
password | string, 4 to 72 characters | with username | Login password. Write only: it is never returned. |
send_welcome_message | boolean | no | true e-mails the welcome message with the login details, as the app's add page does: for an active staff member with an email address only (an active staff member without one answers 400). Without a username, one and a password are created and the e-mail carries them. Default false. |
s_practs | boolean | no | Manage practitioners. Default for this and every permission below: 0 (off, or the first level), as the app's add page. |
s_staff | integer, 0 to 3 | no | Manage staff: 0 no access, 1 view only, 2 view and edit, 3 view, edit, add and delete. |
s_wages | boolean | no | Manage the wage manager. |
s_timesheets | integer, 0 to 7 | no | Manage timesheets: 0 own timesheets only, 1 view all timesheets, 2 practitioners only, 3 staff only, 4 practitioners and staff, 5 practitioners (see no wages), 6 staff (see no wages), 7 practitioners and staff (see no wages). |
s_deductions | boolean | no | Manage deductions. |
s_skills | boolean | no | Manage skills. |
s_clients | boolean | no | Manage clients. |
s_assess | boolean | no | Manage assessments. |
s_scheduling | boolean | no | Use practitioner pairing. |
s_revenues | boolean | no | Manage revenues and payments. |
s_balances | boolean | no | Manage balances and reports. |
s_invoices | boolean | no | Manage invoices. |
s_expenses | boolean | no | Manage expenses. |
s_services | boolean | no | Manage services. |
s_taxes | boolean | no | Manage service taxes. |
s_session_control | integer, 0 to 2 | no | Sessions control: 0 view only, 1 edit only, 2 add, edit and delete. |
s_reconcile_duration | boolean | no | Change session start and end times. |
s_costs_wages | boolean | no | See session costs and wages. |
s_locations | boolean | no | Manage locations. |
s_import | boolean | no | Manage imports and exports. |
s_langtrans | boolean | no | Manage language translation. |
s_notif | boolean | no | Manage notifications. |
pract_mass_email | boolean | no | Send mass practitioner e-mails. |
client_mass_email | boolean | no | Send mass client e-mails. |
staff_mass_email | boolean | no | Send mass staff e-mails. |
s_email_history | boolean | no | Access the mass e-mail history. |
s_tasks | boolean | no | Manage tasks. |
s_branding | boolean | no | Manage branding and colours. |
s_permissions | boolean | no | Manage permissions. |
s_leads | boolean | no | Access the sales manager. |
s_products | integer, 0 to 3 | no | Product role: 0 none, 1 cashier, 2 cashier manager, 3 product manager. |
s_sms | boolean | no | Send text messages. |
s_records | integer, 0 to 3 | no | Records manager: 0 no access, 1 view only, 2 view, add and edit, 3 also delete. |
s_breaks | boolean | no | Manage breaks and closures. |
s_cancels | boolean | no | Manage cancellations. |
s_conflicts | boolean | no | Manage conflicts. |
s_custom_sessions | boolean | no | Set custom session types. |
s_docs | boolean | no | Manage documents. |
s_security | boolean | no | Manage security. |
s_packages | boolean | no | Manage packages. |
s_gateways | boolean | no | Use payment gateways. |
s_vehicles | boolean | no | Manage vehicles. |
s_smartlearn | boolean | no | Manage Smart Learn (needs the Smart Learn module). |
s_website | integer, 0 to 2 | no | Website blog: 0 no access, 1 write drafts, 2 write drafts and publish. |
s_memberships | boolean | no | Manage plans. |
Returns
201 with the new staff record: hire_date is today (account time zone), the wage type is salary hourly and the calendar colour blue; the timesheet rate is set in the app. 400 invalid_request names the field to fix; 409 conflict when the username is already taken (usernames are unique across every account; the check ignores case).
Request
curl -X POST "https://www.bizstim.com/api/v1/staff" \
-H "X-API-KEY: YOUR_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"first_name": "Alex",
"last_name": "Morgan",
"status": "active",
"country": "Canada",
"state": "Ontario",
"city": "Toronto",
"email": "alex.morgan@example.com"
}'<?php
$ch = curl_init('https://www.bizstim.com/api/v1/staff');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => '{
"first_name": "Alex",
"last_name": "Morgan",
"status": "active",
"country": "Canada",
"state": "Ontario",
"city": "Toronto",
"email": "alex.morgan@example.com"
}',
CURLOPT_HTTPHEADER => ['X-API-KEY: YOUR_API_KEY', 'Accept: application/json', 'Content-Type: application/json'],
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);const response = await fetch('https://www.bizstim.com/api/v1/staff', {
method: 'POST',
headers: { 'X-API-KEY': 'YOUR_API_KEY', 'Accept': 'application/json', 'Content-Type': 'application/json' },
body: JSON.stringify({
"first_name": "Alex",
"last_name": "Morgan",
"status": "active",
"country": "Canada",
"state": "Ontario",
"city": "Toronto",
"email": "alex.morgan@example.com"
})
});
const data = await response.json();Response (201)
{
"object": "staff",
"id": 42,
"first_name": "Jane",
"last_name": "Doe",
"address1": "12 Main Street",
"address2": "Suite 4",
"city": "Toronto",
"state": "ON",
"zipcode": "M5V 2T6",
"country": "Canada",
"p_phone": "416-555-0100",
"s_phone": "416-555-0101",
"text_phone": "416-555-0102",
"status": "active",
"hire_date": "2026-01-15",
"notes": "Prefers afternoon appointments.",
"position": "Senior Tutor",
"excerpt": "A short biography.",
"linkedin_url": "https://www.example.com/",
"headshot_url": "https://www.example.com/",
"timezone": "America/Toronto",
"send_welcome_message": 1,
"s_practs": 1,
"s_staff": 1,
"s_wages": 1,
"s_timesheets": 1,
"s_deductions": 1,
"s_skills": 1,
"s_clients": 1,
"s_assess": 1,
"s_scheduling": 1,
"s_revenues": 1,
"s_balances": 1,
"s_invoices": 1,
"s_expenses": 1,
"s_services": 1,
"s_taxes": 1,
"s_session_control": 1,
"s_reconcile_duration": 1,
"s_costs_wages": 1,
"s_locations": 1,
"s_import": 1,
"s_langtrans": 1,
"s_notif": 1,
"pract_mass_email": 1,
"client_mass_email": 1,
"staff_mass_email": 1,
"s_email_history": 1,
"s_tasks": 1,
"s_branding": 1,
"s_permissions": 1,
"s_leads": 1,
"s_products": 1,
"s_sms": 1,
"s_records": 1,
"s_breaks": 1,
"s_cancels": 1,
"s_conflicts": 1,
"s_custom_sessions": 1,
"s_docs": 1,
"s_security": 1,
"s_packages": 1,
"s_gateways": 1,
"s_vehicles": 1,
"s_smartlearn": 1,
"s_website": 1,
"s_memberships": 1,
"username": "jane.doe",
"email": "jane.doe@example.com"
} Update a staff member
Parameters
| Parameter | In | Description |
|---|---|---|
id | path | The record's id. |
Request body
A JSON object (Content-Type: application/json) with these fields.
| Field | Type | Required | Description |
|---|---|---|---|
first_name | string, up to 50 characters | no | First name (cannot be emptied). |
last_name | string, up to 50 characters | no | Last name (cannot be emptied). |
status | string | no | "active", "inactive", "contactList" or "doNotHire". |
country | string, up to 50 characters | no | Country. A staff member needs one: an update of a staff member that has none on file must send it. |
state | string, up to 50 characters | no | State or province, needed as country. |
city | string, up to 50 characters | no | City. |
address1 | string, up to 100 characters | no | Street address. |
address2 | string, up to 100 characters | no | Apartment, suite or unit. |
zipcode | string, up to 25 characters | no | Zip or postal code. |
p_phone | string, up to 100 characters | no | Primary phone. |
s_phone | string, up to 100 characters | no | Secondary phone. |
text_phone | string, up to 510 characters | no | Mobile number(s) for text messages, as on create. |
email | string, up to 510 characters | no | One e-mail address or several, comma separated; "" removes them. |
notes | string | no | Notes (HTML allowed), replaced as sent. |
timezone | string | no | A time zone from GET /api/v1/timezones. |
position | string, up to 100 characters | no | Job title for the website's team cards; "" removes it. |
excerpt | string | no | Short biography for the website's team cards; "" removes it. |
linkedin_url | string, up to 255 characters | no | LinkedIn profile address; "" removes it. |
username | string, 4 to 50 characters | no | Login name, stored in lower case. A staff member without a password needs password in the same request. "" removes the login (username and password). |
password | string, 4 to 72 characters | no | New login password (needs a username). Write only. |
send_welcome_message | boolean | no | Stored setting only: an update never sends the welcome e-mail. |
s_practs | boolean | no | Manage practitioners. This and every permission below: as on create. |
s_staff | integer, 0 to 3 | no | Manage staff. |
s_wages | boolean | no | Manage the wage manager. |
s_timesheets | integer, 0 to 7 | no | Manage timesheets. |
s_deductions | boolean | no | Manage deductions. |
s_skills | boolean | no | Manage skills. |
s_clients | boolean | no | Manage clients. |
s_assess | boolean | no | Manage assessments. |
s_scheduling | boolean | no | Use practitioner pairing. |
s_revenues | boolean | no | Manage revenues and payments. |
s_balances | boolean | no | Manage balances and reports. |
s_invoices | boolean | no | Manage invoices. |
s_expenses | boolean | no | Manage expenses. |
s_services | boolean | no | Manage services. |
s_taxes | boolean | no | Manage service taxes. |
s_session_control | integer, 0 to 2 | no | Sessions control. |
s_reconcile_duration | boolean | no | Change session start and end times. |
s_costs_wages | boolean | no | See session costs and wages. |
s_locations | boolean | no | Manage locations. |
s_import | boolean | no | Manage imports and exports. |
s_langtrans | boolean | no | Manage language translation. |
s_notif | boolean | no | Manage notifications. |
pract_mass_email | boolean | no | Send mass practitioner e-mails. |
client_mass_email | boolean | no | Send mass client e-mails. |
staff_mass_email | boolean | no | Send mass staff e-mails. |
s_email_history | boolean | no | Access the mass e-mail history. |
s_tasks | boolean | no | Manage tasks. |
s_branding | boolean | no | Manage branding and colours. |
s_permissions | boolean | no | Manage permissions. |
s_leads | boolean | no | Access the sales manager. |
s_products | integer, 0 to 3 | no | Product role. |
s_sms | boolean | no | Send text messages. |
s_records | integer, 0 to 3 | no | Records manager. |
s_breaks | boolean | no | Manage breaks and closures. |
s_cancels | boolean | no | Manage cancellations. |
s_conflicts | boolean | no | Manage conflicts. |
s_custom_sessions | boolean | no | Set custom session types. |
s_docs | boolean | no | Manage documents. |
s_security | boolean | no | Manage security. |
s_packages | boolean | no | Manage packages. |
s_gateways | boolean | no | Use payment gateways. |
s_vehicles | boolean | no | Manage vehicles. |
s_smartlearn | boolean | no | Manage Smart Learn (true needs the Smart Learn module; with the module off every update stores 0, as the app's edit page). |
s_website | integer, 0 to 2 | no | Website blog. |
s_memberships | boolean | no | Manage plans. |
Returns
200 with the updated staff record. Fields left out keep their values (the wage type, timesheet rate and calendar colour, which the API does not change, are kept too). hire_date and headshot_url are read-only. 400 invalid_request names the field to fix; 404 not_found; 409 conflict when the username is already taken (usernames are unique across every account; the check ignores case), or when the status would change while the staff member has open timesheets.
Request
curl -X PATCH "https://www.bizstim.com/api/v1/staff/42" \
-H "X-API-KEY: YOUR_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"status": "inactive",
"p_phone": "416-555-0100"
}'<?php
$ch = curl_init('https://www.bizstim.com/api/v1/staff/42');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_POSTFIELDS => '{
"status": "inactive",
"p_phone": "416-555-0100"
}',
CURLOPT_HTTPHEADER => ['X-API-KEY: YOUR_API_KEY', 'Accept: application/json', 'Content-Type: application/json'],
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);const response = await fetch('https://www.bizstim.com/api/v1/staff/42', {
method: 'PATCH',
headers: { 'X-API-KEY': 'YOUR_API_KEY', 'Accept': 'application/json', 'Content-Type': 'application/json' },
body: JSON.stringify({
"status": "inactive",
"p_phone": "416-555-0100"
})
});
const data = await response.json();Response
{
"object": "staff",
"id": 42,
"first_name": "Jane",
"last_name": "Doe",
"address1": "12 Main Street",
"address2": "Suite 4",
"city": "Toronto",
"state": "ON",
"zipcode": "M5V 2T6",
"country": "Canada",
"p_phone": "416-555-0100",
"s_phone": "416-555-0101",
"text_phone": "416-555-0102",
"status": "active",
"hire_date": "2026-01-15",
"notes": "Prefers afternoon appointments.",
"position": "Senior Tutor",
"excerpt": "A short biography.",
"linkedin_url": "https://www.example.com/",
"headshot_url": "https://www.example.com/",
"timezone": "America/Toronto",
"send_welcome_message": 1,
"s_practs": 1,
"s_staff": 1,
"s_wages": 1,
"s_timesheets": 1,
"s_deductions": 1,
"s_skills": 1,
"s_clients": 1,
"s_assess": 1,
"s_scheduling": 1,
"s_revenues": 1,
"s_balances": 1,
"s_invoices": 1,
"s_expenses": 1,
"s_services": 1,
"s_taxes": 1,
"s_session_control": 1,
"s_reconcile_duration": 1,
"s_costs_wages": 1,
"s_locations": 1,
"s_import": 1,
"s_langtrans": 1,
"s_notif": 1,
"pract_mass_email": 1,
"client_mass_email": 1,
"staff_mass_email": 1,
"s_email_history": 1,
"s_tasks": 1,
"s_branding": 1,
"s_permissions": 1,
"s_leads": 1,
"s_products": 1,
"s_sms": 1,
"s_records": 1,
"s_breaks": 1,
"s_cancels": 1,
"s_conflicts": 1,
"s_custom_sessions": 1,
"s_docs": 1,
"s_security": 1,
"s_packages": 1,
"s_gateways": 1,
"s_vehicles": 1,
"s_smartlearn": 1,
"s_website": 1,
"s_memberships": 1,
"username": "jane.doe",
"email": "jane.doe@example.com"
} Delete a staff member
Parameters
| Parameter | In | Description |
|---|---|---|
id | path | The record's id. |
Returns
200 with {"id", "object": "staff", "deleted": true}: the staff member, the login, the settings, tasks and the timesheet rate are removed for good. 404 not_found; 409 conflict when the staff member has timesheets or wages on file (set the status to inactive instead).
Request
curl -X DELETE "https://www.bizstim.com/api/v1/staff/42" \
-H "X-API-KEY: YOUR_API_KEY" \
-H "Accept: application/json"<?php
$ch = curl_init('https://www.bizstim.com/api/v1/staff/42');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => ['X-API-KEY: YOUR_API_KEY', 'Accept: application/json'],
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);const response = await fetch('https://www.bizstim.com/api/v1/staff/42', {
method: 'DELETE',
headers: { 'X-API-KEY': 'YOUR_API_KEY', 'Accept': 'application/json' }
});
const data = await response.json();Response
{
"id": 42,
"object": "staff",
"deleted": true
}