Reference
/- Transfer employee ownership to a new person
List employees
Create new employee
Get employee wallet balances
View employee transaction statement
Get employee by employee_id
Delete employee
Remove employee from team reviewers
Move employee to a different team
Add employee as team reviewer
Update employee profile
Activate an employee
Suspend an employee
Allocate funds to employee wallet
Remove funds from employee wallet
Transfer employee ownersh...
Suspends (or deletes) the existing employee account and provisions a new employee in its place, inheriting the same team and supervisor. Requires the caller to have PEOPLE_EDIT permission.
Security
oauth2ClientCredentials(Required scopes: employees:write)
ID of the existing employee to transfer ownership from. Either employee_id or external_id is required.
Example:"abc123xyz"
External employee ID (alternative identifier). Either employee_id or external_id is required.
Example:"ext-456"
Email address of the new employee. Must not be in use by any active user.
Example:"john.mwangi@company.com"
Phone number of the new employee in international format. Must not be in use by any active user.
Example:"+254798765432"
- Mock serverhttps://developer.boyahq.com/_mock/v2/openapi/employees/transfer-ownership
- Productionhttps://api.boyahq.com/v2/employees/transfer-ownership
- Sandboxhttps://sandbox.api.boyahq.com/v2/employees/transfer-ownership
curl -i -X POST \
https://developer.boyahq.com/_mock/v2/openapi/employees/transfer-ownership \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'business_id: string' \
-H 'org_wallet_ref: string' \
-d '{
"employee_id": "abc123xyz",
"external_id": "ext-456",
"name": "John Mwangi",
"email": "john.mwangi@company.com",
"phone": "+254798765432",
"new_status": "SUSPENDED"
}'Ownership transferred successfully. Returns the new employee ID and the old employee's updated status.
Response
{ "new_employee_id": "xyz789abc123", "old_employee_status": "SUSPENDED" }