Skip to navigation

Verify New Staff

This call is charged from the SalaryBox Wallet on the FIRST call for a phone number. You must send confirm_charge: true. Without it you get 400 with the current fee and nothing is charged. Calling it again for the same phone number is not charged again.

Verifies someone who is not staff yet, before you add them. The flow has 3 steps, as in the app’s Add Staff with verification:

  1. Verify New Staff (this call) with the person’s phone number and IDs. The first call is charged and looks up the phone number and the IDs you sent.
  2. Read the result: ready_to_add, the ID statuses and issues, and the name and dob the government records show. Fetch New Staff Verification returns it again, free.
  3. Add Verified Staff to add them. Adding closes the check, and the staff member then shows in Staff Verification as pending review (an admin marks them verified in the SalaryBox app).

Shared rules: see Writing data.

  • confirm_charge must be exactly true, or you get 400 “Set confirm_charge to true: this check is paid for from the SalaryBox Wallet.”
  • phone_number is required, digits only. dial_code is digits only and defaults to 91. Indian numbers are 10 digits starting with 6, 7, 8 or 9. An Indian plan can’t verify numbers outside India.
  • pan, driving_license, voter_id and uan are optional and follow the same format rules as Verify Staff Again, with errors under the field you sent. Send dob for the driving license lookup.
  • Calling it again for the same phone number is not charged again: IDs that changed are looked up within the same check, and an interrupted check is finished. If ready_to_add is false, send it again.
  • A phone number that is already staff (or an admin) in your company is refused with 400: use Verify Staff for them.
  • If the plan’s staff limit is reached you get 400. This is checked before charging, so nobody is paid for who can’t be added.
  • The call runs synchronously and can take several seconds.
  • If the wallet balance is too low you get 402. If the wallet can’t be charged right now you get 502 and nothing is charged.
  • The result is the same object Fetch New Staff Verification returns. Marking them verified is done in the SalaryBox app, not in this API.
  • Needs the Background Verification feature on your plan, else 403 with the plan upgrade message.

Authentication

AuthorizationApi-Key

Format: “Api-Key {api-key}”

Request

This endpoint expects an object.
confirm_chargebooleanRequired

Must be exactly true. Confirms that this check is paid for from the SalaryBox Wallet (on the first call for a phone number).

phone_numberstringRequired
Digits only. Indian numbers are 10 digits starting with 6, 7, 8 or 9. An Indian plan can't verify numbers outside India.
dial_codestringOptional

Digits only. Defaults to 91.

panstringOptional

Format ABCDE1234F (upper-cased for you).

driving_licensestringOptional

2 letters then 13 digits, for example MH1420110012345 (upper-cased for you).

voter_idstringOptional

3 letters then 7 digits, for example ABC1234567 (upper-cased for you).

uanstringOptional

12 digits, starting with 1-9.

dobdateOptional

Date of birth, YYYY-MM-DD, for the driving license lookup.

Response

The check was done. data is the new staff verification result.

messagestring
statusboolean
dataobject
The verification result for a phone number that is not staff yet. Returned by Fetch New Staff Verification and Verify New Staff.

Errors

400
Bad Request Error
402
Payment Required Error
403
Forbidden Error
502
Bad Gateway Error