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:
- 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.
- Read the result:
ready_to_add, the ID statuses and issues, and thenameanddobthe government records show. Fetch New Staff Verification returns it again, free. - 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_chargemust be exactlytrue, or you get400“Set confirm_charge to true: this check is paid for from the SalaryBox Wallet.”phone_numberis required, digits only.dial_codeis digits only and defaults to91. 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_idanduanare optional and follow the same format rules as Verify Staff Again, with errors under the field you sent. Senddobfor 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_addisfalse, 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 get502and 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
403with the plan upgrade message.
Authentication
Format: “Api-Key {api-key}”
Request
Must be exactly true. Confirms that this check is paid for from the SalaryBox Wallet (on the first call for a phone number).
Digits only. Defaults to 91.
Format ABCDE1234F (upper-cased for you).
2 letters then 13 digits, for example MH1420110012345 (upper-cased for you).
3 letters then 7 digits, for example ABC1234567 (upper-cased for you).
12 digits, starting with 1-9.
Date of birth, YYYY-MM-DD, for the driving license lookup.
Response
The check was done. data is the new staff verification result.
