API for managing employees in the Boya platform
API for managing employees in the Boya platform
curl -i -X GET \
'https://developer.boyahq.com/_mock/employee/employees?limit=50&page=1' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'
[ { "id": "string", "name": "string", "phone": "string", "team_code": "string", "organization_email": "string", "role": "string", "accno": "string", "balance": null, "status": "ACTIVE", "createdAt": "2019-08-24" } ]
curl -i -X POST \
https://developer.boyahq.com/_mock/employee/employees \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"name": "string",
"organization_email": "string",
"phone_number": "string",
"team_code": "string",
"role": "CARD USER"
}'
{ "id": "string", "name": "string", "phone": "string", "team_code": "string", "organization_email": "string", "role": "string", "accno": "string", "balance": null, "status": "ACTIVE", "createdAt": "2019-08-24" }
curl -i -X DELETE \
'https://developer.boyahq.com/_mock/employee/employees/suspend?employee_id=string' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'
curl -i -X PATCH \
'https://developer.boyahq.com/_mock/employee/employees/activate?employee_id=string' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'
curl -i -X POST \
https://developer.boyahq.com/_mock/employee/employees/addMoney \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"accountref": 1,
"amount": 0,
"description": "string",
"employee_id": "string"
}'
curl -i -X POST \
https://developer.boyahq.com/_mock/employee/employees/deductMoney \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"accountref": 1,
"amount": 0,
"description": "string",
"employee_id": "string"
}'
curl -i -X GET \
'https://developer.boyahq.com/_mock/employee/employees/?employee_id={employee_id}&org_wallet_ref=string' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'
{ "id": "string", "name": "string", "phone": "string", "team_code": "string", "organization_email": "string", "role": "string", "accno": "string", "balance": null, "status": "ACTIVE", "createdAt": "2019-08-24" }
curl -i -X GET \
'https://developer.boyahq.com/_mock/employee/employees/balances?from=2019-08-24T14%3A15%3A22Z&limit=50&page=1&to=2019-08-24T14%3A15%3A22Z' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'
{ "openingEmployeeWalletsTotal": 0, "closingEmployeeWalletsTotal": 0, "employees": { "docs": [ … ], "total": 0, "limit": "string", "page": "string", "pages": 0 } }