Skip to navigation

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 is 400 on name; send the joinee’s full phone_number (and dial_code when it isn’t 91) to pick one.
  • action is APPROVE or REJECT. reason is optional with REJECT, 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_id or email. They are refused with REJECT. 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.
namestringRequired
The joinee's name as List New Joinee Requests shows it, matched ignoring case.
actionenumRequired
Allowed values:
phone_numberstringOptional
The joinee's full phone number, only to pick between pending requests with the same name.
dial_codestringOptional

With phone_number, when it isn’t 91.

reasonstringOptional1-500 characters

REJECT only.

branch_nameslist of stringsOptional

APPROVE only. Exact branch names; default the main branch.

department_nameslist of stringsOptional

APPROVE only. Exact department names.

job_titlestringOptional

APPROVE only.

joining_datedateOptional

APPROVE only. YYYY-MM-DD.

Response

The decision was saved. When approved, salarybox_id is the new staff member’s.

messagestring
statusboolean
dataobject

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error