> ## Client identification
>
> Requests to this API should include a `Client-Platform` header alongside
> `Authorization`, identifying the application, tool, or model making the
> request. This is used for integration support and analytics.
>
> Use your model or tool name, for example `claude-code` or `chatgpt`.
>
> Example:
>
> ```bash
> curl https://api.salaryboxapp.com/... \
>   -H "Authorization: Api-Key <api-key>" \
>   -H "Client-Platform: claude-code"
> ```

# Verify Staff Again

POST https://api.salaryboxapp.com/v2/customer/v1/verification/staff/{salarybox_id}/reverify
Content-Type: application/json

**This call is charged again every time from the SalaryBox Wallet. You must send `confirm_charge: true`.** Without it you get `400` with the current fee and nothing is charged. An earlier payment or a Verification Package does not cover it. Never retry it blindly: check Fetch Single Staff Verification first.

Starts a new check in which every ID you send is looked up afresh, plus the phone number, and a UAN found from the phone when no UAN is sent. The previous check is kept as history; the new one becomes current and pending review. Shared rules: see [Writing data](/conventions#writing-data).

- `salarybox_id` goes in the URL path, not the body.
- It is only offered when the current check has an invalid ID. Otherwise you get `400` "Verify again is only available when a government ID is invalid."
- An ID you leave out is **not** looked up, so send every ID that should be on the new check. Send `dob` for the driving license lookup; without one the license isn't looked up.
- ID values are trimmed and upper-cased, then checked against their format (see the request body), with errors under the field you sent.
- If the staff member hasn't been checked yet you get `400`: start with Verify Staff.
- If the current check hasn't finished you get `400`: send Verify Staff to finish it, which isn't charged again.
- 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 Single Staff Verification returns.
- Needs the Background Verification feature on your plan, else `403` with the plan upgrade message.


Reference: https://docs.salarybox.in/api-reference/staff-verification/verification-staff-reverify

## Authentication

- `Authorization` header (required) (prefixed with ` Api-Key   `) — Format: "Api-Key \{api-key}"

## Request

### Path parameters

- `salarybox_id` (string, required) — SalaryBox ID of the staff member.

### Body (application/json)

This endpoint expects a StaffVerificationReverifyRequest.

- `confirm_charge` (boolean, required) — Must be exactly `true`. Confirms that this new check is charged to the SalaryBox Wallet again.
- `pan` (string, optional) — PAN, trimmed and upper-cased, e.g. `ABCDE1234F` ("Must be a valid 10-character PAN, e.g. ABCDE1234F."). Errors are reported under `pan`.
- `driving_license` (string, optional) — Driving license number, 15 characters, trimmed and upper-cased, e.g. `MH1420110012345` ("Must be a valid 15-character driving license number, e.g. MH1420110012345."). Errors are reported under `driving_license`.
- `voter_id` (string, optional) — Voter ID, trimmed and upper-cased, e.g. `ABC1234567` ("Must be a valid voter ID, e.g. ABC1234567."). Errors are reported under `voter_id`.
- `uan` (string, optional) — UAN, 12 digits ("Must be a valid 12-digit UAN."). Errors are reported under `uan`.
- `dob` (date, optional) — Date of birth, `YYYY-MM-DD`, for the driving license lookup. Without one the license isn't looked up.

## Response

### 200

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

- `message` (string, required)
- `status` (boolean, required)
- `data` (StaffVerificationResult, required) — A staff member's verification result. Returned by Fetch Single Staff Verification and, as `data`, by every verification write.

## Errors

### 400 Bad Request Error

Validation failed, the staff member is inactive, or a new check isn't allowed right now.

- `message` (string, required)
- `status` (boolean, required)
- `errors` (map from string to any, optional, nullable)

### 402 Payment Required Error

The SalaryBox Wallet balance is too low for this check. Nothing was charged. `errors` shows the balance, the amount required and the shortfall.

- `message` (string, required)
- `status` (boolean, required)
- `errors` (map from string to any, optional, nullable)

### 403 Forbidden Error

Your company has no active subscription.

- `message` (string, required)
- `status` (boolean, required)
- `errors` (map from string to any, optional, nullable)

### 404 Not Found Error

No eligible active staff member with this `salarybox_id` exists in your company.

- `message` (string, required)
- `status` (boolean, required)
- `errors` (map from string to any, optional, nullable)

### 502 Bad Gateway Error

The wallet couldn't be charged right now. Nothing was charged; try again later.

- `message` (string, required)
- `status` (boolean, required)
- `errors` (map from string to any, optional, nullable)

## Types

### StaffVerificationResult

A staff member's verification result. Returned by Fetch Single Staff Verification and, as `data`, by every verification write.

- `salarybox_id` (string, required)
- `name` (string, required)
- `verification_status` (enum, required) — `not_verified` (never checked, or the check hasn't finished), `pending_review` (checked, waiting for an admin) or `verified` (an admin marked them verified in the app).
  - Allowed values: `not_verified`, `pending_review`, `verified`
- `ids` (list of StaffVerificationId, required) — One entry per government ID checked. Empty before the first check.
- `issues` (list of StaffVerificationIssue, required) — Problems for an admin to review. Empty before the first check.
- `warning` (enum, optional, nullable) — `null`, `issues_found`, `additional_details_needed`, or `details_changed` (their details changed after they were verified).
  - Allowed values: `issues_found`, `additional_details_needed`, `details_changed`
- `verified_by` (string, optional, nullable) — Name of the admin who marked them verified, when verified.
- `verified_on` (datetime, optional, nullable) — ISO timestamp of when they were marked verified.
- `remarks` (string, optional)
- `already_paid` (boolean, optional) — Only present when `verification_status` is `not_verified` with no check yet. `true` when a Verification Package bought in the Android app already covers the check.
- `next_step` (string, optional, nullable) — Verify Staff only. When neither the phone number nor the profile gave a government ID, is "No government ID was found from this staff member's phone number or profile. Continue verification in the SalaryBox app." Otherwise `null`.

### StaffVerificationId

- `id_type` (enum, optional)
  - Allowed values: `pan`, `driving_license`, `voter_id`, `uan`
- `number` (string, optional) — Masked: all but the last 4 characters are `X`.
- `status` (enum, optional) — `valid`, `invalid` (government records say the ID is wrong) or `not_fetched` (the lookup couldn't be completed).
  - Allowed values: `valid`, `invalid`, `not_fetched`
- `retry_available` (boolean, optional)
- `name` (string, optional, nullable) — Name on the ID, when the lookup returned one.
- `dob` (date, optional, nullable) — Date of birth on the ID, when the lookup returned one.

### StaffVerificationIssue

- `type` (enum, optional) — `invalid_id`; `name_mismatch` / `dob_mismatch` (the IDs disagree); `profile_name_mismatch` / `profile_dob_mismatch` (the profile differs from the IDs); `excel_name_mismatch` / `excel_dob_mismatch` / `excel_pan_mismatch` / `excel_uan_mismatch` (a bulk upload row differs).
  - Allowed values: `invalid_id`, `name_mismatch`, `dob_mismatch`, `profile_name_mismatch`, `profile_dob_mismatch`, `excel_name_mismatch`, `excel_dob_mismatch`, `excel_pan_mismatch`, `excel_uan_mismatch`
- `field` (string, optional)
- `id_types` (list of string, optional)
- `values` (map from string to string, optional) — Maps each source to what it shows (ID numbers masked).
- `resolved` (boolean, optional) — `true` once an admin settled it in the app.

## Examples

**Request**

```json
{
  "confirm_charge": true,
  "pan": "ABCDE1234F",
  "driving_license": "MH1420110012345",
  "dob": "1994-06-12"
}
```

**Response**

```json
{
  "message": "Staff verified again",
  "status": true,
  "data": {
    "salarybox_id": "SB1001",
    "name": "Ravi Kumar",
    "verification_status": "pending_review",
    "ids": [
      {
        "id_type": "pan",
        "number": "XXXXXX234F",
        "status": "valid",
        "retry_available": false,
        "name": "RAVI KUMAR",
        "dob": "1994-06-12"
      },
      {
        "id_type": "driving_license",
        "number": "XXXXXXXXXXX2345",
        "status": "valid",
        "retry_available": false,
        "name": "RAVI KUMAR",
        "dob": "1994-06-12"
      }
    ],
    "issues": [],
    "warning": null,
    "verified_by": null,
    "verified_on": null,
    "remarks": ""
  }
}
```

**SDK Code**

```python Example
import requests

url = "https://api.salaryboxapp.com/v2/customer/v1/verification/staff/ABCDEFGHIJ/reverify"

payload = {
    "confirm_charge": True,
    "pan": "ABCDE1234F",
    "driving_license": "MH1420110012345",
    "dob": "1994-06-12"
}
headers = {
    "Authorization": "Api-Key  <apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Example
const url = 'https://api.salaryboxapp.com/v2/customer/v1/verification/staff/ABCDEFGHIJ/reverify';
const options = {
  method: 'POST',
  headers: {Authorization: 'Api-Key  <apiKey>', 'Content-Type': 'application/json'},
  body: '{"confirm_charge":true,"pan":"ABCDE1234F","driving_license":"MH1420110012345","dob":"1994-06-12"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.salaryboxapp.com/v2/customer/v1/verification/staff/ABCDEFGHIJ/reverify"

	payload := strings.NewReader("{\n  \"confirm_charge\": true,\n  \"pan\": \"ABCDE1234F\",\n  \"driving_license\": \"MH1420110012345\",\n  \"dob\": \"1994-06-12\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Api-Key  <apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Example
require 'uri'
require 'net/http'

url = URI("https://api.salaryboxapp.com/v2/customer/v1/verification/staff/ABCDEFGHIJ/reverify")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Api-Key  <apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"confirm_charge\": true,\n  \"pan\": \"ABCDE1234F\",\n  \"driving_license\": \"MH1420110012345\",\n  \"dob\": \"1994-06-12\"\n}"

response = http.request(request)
puts response.read_body
```

```java Example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.salaryboxapp.com/v2/customer/v1/verification/staff/ABCDEFGHIJ/reverify")
  .header("Authorization", "Api-Key  <apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"confirm_charge\": true,\n  \"pan\": \"ABCDE1234F\",\n  \"driving_license\": \"MH1420110012345\",\n  \"dob\": \"1994-06-12\"\n}")
  .asString();
```

```php Example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.salaryboxapp.com/v2/customer/v1/verification/staff/ABCDEFGHIJ/reverify', [
  'body' => '{
  "confirm_charge": true,
  "pan": "ABCDE1234F",
  "driving_license": "MH1420110012345",
  "dob": "1994-06-12"
}',
  'headers' => [
    'Authorization' => 'Api-Key  <apiKey>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Example
using RestSharp;

var client = new RestClient("https://api.salaryboxapp.com/v2/customer/v1/verification/staff/ABCDEFGHIJ/reverify");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Api-Key  <apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"confirm_charge\": true,\n  \"pan\": \"ABCDE1234F\",\n  \"driving_license\": \"MH1420110012345\",\n  \"dob\": \"1994-06-12\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Example
import Foundation

let headers = [
  "Authorization": "Api-Key  <apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "confirm_charge": true,
  "pan": "ABCDE1234F",
  "driving_license": "MH1420110012345",
  "dob": "1994-06-12"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.salaryboxapp.com/v2/customer/v1/verification/staff/ABCDEFGHIJ/reverify")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```