Approve or Reject New Joinee
Approves or rejects a pending join request. Approving adds the person as staff, as approving in the app does, so it counts towards your plan’s staff limit. Shared rules: see Writing data.
- The request is named by the joinee’s
name, as List New Joinee Requests shows it (matched ignoring case). When two pending requests share the name, the response is400onname; send the joinee’s fullphone_number(anddial_codewhen it isn’t 91) to pick one. actionisAPPROVEorREJECT.reasonis optional withREJECT, at max 500 characters.- Approving uses the joinee’s name and phone and the email, date of birth and address they entered. You can also send the fields Add Staff takes to set up the new staff member, for example
branch_names(default: the main branch),department_names,job_title,joining_date,employee_type,employee_idoremail. They are refused withREJECT. Add Staff’s checks apply: staff limit, phone number, Employee ID. - The joinee is notified either way. No pending request with that name:
404“New joinee request not found.” - Repeating the request after it succeeded returns
404, which is harmless.
Authentication
AuthorizationApi-Key
Format: “Api-Key {api-key}”
Request
This endpoint expects an object.
name
The joinee's name as List New Joinee Requests shows it, matched ignoring case.
action
Allowed values:
phone_number
The joinee's full phone number, only to pick between pending requests with the same name.
dial_code
With phone_number, when it isn’t 91.
reason
REJECT only.
branch_names
APPROVE only. Exact branch names; default the main branch.
department_names
APPROVE only. Exact department names.
job_title
APPROVE only.
joining_date
APPROVE only. YYYY-MM-DD.
Response
The decision was saved. When approved, salarybox_id is the new staff member’s.
message
status
data
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error
