> ## 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"
> ```

# Fetch Single Staff Verification

GET https://api.salaryboxapp.com/v2/customer/v1/verification/staff/{salarybox_id}

Returns a staff member's verification result, as shown in My Team, Staff Verification in the app: the status of each government ID (PAN, driving license, voter ID, UAN) and any issues for an admin to review. Reading is free.

- `verification_status` is `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).
- `warning` is `null`, `issues_found`, `additional_details_needed` or `details_changed` (their details changed after they were verified).
- ID numbers are masked: all but the last 4 characters are `X`.
- Before the first check, `verification_status` is `not_verified`, `ids` and `issues` are empty, and `already_paid` says whether a Verification Package bought in the Android app already covers the check.
- `fee` is what Verify Staff or Verify Staff Again costs right now, as a 2-decimal string. It is returned only by this endpoint.
- Use Verify Staff to start a check.
- Not available through the API: marking a staff member verified, settling name or date-of-birth mismatches, removing an ID and the verification report PDF. Do these in the SalaryBox app.
- 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-retrieve

## 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.

## Response

### 200

The staff member's 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

### 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)

## 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

### Example

**Response**

```json
{
  "message": "Success",
  "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": "invalid",
        "retry_available": false,
        "name": null,
        "dob": null
      }
    ],
    "issues": [
      {
        "type": "invalid_id",
        "field": "driving_license",
        "id_types": [
          "driving_license"
        ],
        "values": {
          "driving_license": "XXXXXXXXXXX2345"
        },
        "resolved": false
      }
    ],
    "warning": "issues_found",
    "verified_by": null,
    "verified_on": null,
    "remarks": ""
  }
}
```

**SDK Code**

```python Example
import requests

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

headers = {"Authorization": "Api-Key  <apiKey>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Example
const url = 'https://api.salaryboxapp.com/v2/customer/v1/verification/staff/ABCDEFGHIJ';
const options = {method: 'GET', headers: {Authorization: 'Api-Key  <apiKey>'}};

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"
	"net/http"
	"io"
)

func main() {

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

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Api-Key  <apiKey>")

	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")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Api-Key  <apiKey>'

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.get("https://api.salaryboxapp.com/v2/customer/v1/verification/staff/ABCDEFGHIJ")
  .header("Authorization", "Api-Key  <apiKey>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.salaryboxapp.com/v2/customer/v1/verification/staff/ABCDEFGHIJ', [
  'headers' => [
    'Authorization' => 'Api-Key  <apiKey>',
  ],
]);

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

```csharp Example
using RestSharp;

var client = new RestClient("https://api.salaryboxapp.com/v2/customer/v1/verification/staff/ABCDEFGHIJ");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Api-Key  <apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Example
import Foundation

let headers = ["Authorization": "Api-Key  <apiKey>"]

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

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()
```

### Never checked

**Response**

```json
{
  "message": "Success",
  "status": true,
  "data": {
    "salarybox_id": "SB1001",
    "name": "Ravi Kumar",
    "verification_status": "not_verified",
    "ids": [],
    "issues": [],
    "warning": null,
    "verified_by": null,
    "verified_on": null,
    "remarks": "",
    "already_paid": false
  }
}
```

**SDK Code**

```python Never checked
import requests

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

headers = {"Authorization": "Api-Key  <apiKey>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Never checked
const url = 'https://api.salaryboxapp.com/v2/customer/v1/verification/staff/ABCDEFGHIJ';
const options = {method: 'GET', headers: {Authorization: 'Api-Key  <apiKey>'}};

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

```go Never checked
package main

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

func main() {

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

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Api-Key  <apiKey>")

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

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

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

}
```

```ruby Never checked
require 'uri'
require 'net/http'

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

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Api-Key  <apiKey>'

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

```java Never checked
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.salaryboxapp.com/v2/customer/v1/verification/staff/ABCDEFGHIJ")
  .header("Authorization", "Api-Key  <apiKey>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.salaryboxapp.com/v2/customer/v1/verification/staff/ABCDEFGHIJ', [
  'headers' => [
    'Authorization' => 'Api-Key  <apiKey>',
  ],
]);

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

```csharp Never checked
using RestSharp;

var client = new RestClient("https://api.salaryboxapp.com/v2/customer/v1/verification/staff/ABCDEFGHIJ");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Api-Key  <apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Never checked
import Foundation

let headers = ["Authorization": "Api-Key  <apiKey>"]

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

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()
```