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

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

**This call is charged per check from the SalaryBox Wallet. You must send `confirm_charge: true`.** Without it you get `400` with the current fee and nothing is charged; Fetch Single Staff Bank Verification also returns it as `fee`.

Checks the bank account or UPI ID already saved on a staff member's profile with the bank. It takes no bank details: add or correct them in the SalaryBox app. Shared rules: see [Writing data](/conventions#writing-data).

- `salarybox_id` goes in the URL path, not the body.
- The call runs synchronously and can take several seconds.
- Only details that haven't been checked can be verified (`verification_status` `not_verified`). No saved details, details the bank couldn't verify, and details already checked are refused with `400`, so it never charges twice.
- After a check, `verification_status` is `pending_review`. Marking the details verified is done in the SalaryBox app, not in this API.
- If the wallet balance is too low you get `402`. If the wallet couldn't be charged, or the bank check didn't finish, you get `502`. A check that was paid for but didn't finish is not charged again: see `already_paid` in Fetch Single Staff Bank Verification, then send Verify Staff Bank Account again.
- The result is the same object Fetch Single Staff Bank Verification returns, without `already_paid` and `fee`.
- Needs the Bank Verification feature on your plan, else `403` with the plan upgrade message.


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

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

- `confirm_charge` (boolean, required) — Must be exactly `true`. Confirms that this check is paid for from the SalaryBox Wallet.

## Response

### 200

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

- `message` (string, required)
- `status` (boolean, required)
- `data` (StaffBankVerificationResult, required)

## Errors

### 400 Bad Request Error

Validation failed, the staff member is inactive, or the saved details are missing, couldn't be verified, or have already been checked.

- `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 (nothing was charged), or the bank check didn't finish (sending it again isn't charged again).

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

## Types

### StaffBankVerificationResult

- `salarybox_id` (string, optional)
- `name` (string, optional) — Name on the staff profile.
- `verification_status` (enum, optional)
  - Allowed values: `not_added`, `not_verified`, `pending_review`, `verified`
- `warning` (enum, optional, nullable) — `name_mismatch` when the name at the bank differs from the profile name; `issues_found` when the bank couldn't verify the details.
  - Allowed values: `name_mismatch`, `issues_found`
- `payment_mode` (enum, optional, nullable)
  - Allowed values: `bank`, `upi`
- `account_number` (string, optional, nullable) — Masked. All but the last 4 characters are `X`.
- `ifsc_code` (string, optional, nullable)
- `upi_id` (string, optional, nullable) — Masked. The part before `@` is hidden except its first and last character.
- `name_at_bank` (string, optional, nullable) — Name the bank returned. Set once the bank has answered.
- `bank_name` (string, optional, nullable)
- `branch` (string, optional, nullable)
- `city` (string, optional, nullable)
- `failure_reason` (string, optional, nullable) — Why the bank couldn't verify the details, when `warning` is `issues_found`.
- `verified_by` (string, optional, nullable) — Admin who marked the details verified in the app.
- `verified_on` (datetime, optional, nullable)
- `already_paid` (boolean, optional) — Fetch Single Staff Bank Verification only, when `verification_status` is `not_verified`: `true` if a check was paid for but didn't finish, so the next one isn't charged.
- `fee` (string, optional) — Fetch Single Staff Bank Verification only. What Verify Staff Bank Account costs right now, as a 2-decimal string.

## Examples

**Request**

```json
{
  "confirm_charge": true
}
```

**Response**

```json
{
  "message": "Bank verification done",
  "status": true,
  "data": {
    "salarybox_id": "SB1001",
    "name": "Ravi Kumar",
    "verification_status": "pending_review",
    "warning": "name_mismatch",
    "payment_mode": "bank",
    "account_number": "XXXXXXXX4321",
    "ifsc_code": "HDFC0001234",
    "upi_id": null,
    "name_at_bank": "RAVI K",
    "bank_name": "HDFC Bank",
    "branch": "Andheri East",
    "city": "Mumbai",
    "failure_reason": null,
    "verified_by": null,
    "verified_on": null
  }
}
```

**SDK Code**

```python Example
import requests

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

payload = { "confirm_charge": True }
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/bank/verify';
const options = {
  method: 'POST',
  headers: {Authorization: 'Api-Key  <apiKey>', 'Content-Type': 'application/json'},
  body: '{"confirm_charge":true}'
};

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/bank/verify"

	payload := strings.NewReader("{\n  \"confirm_charge\": true\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/bank/verify")

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

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/bank/verify")
  .header("Authorization", "Api-Key  <apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"confirm_charge\": true\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/bank/verify', [
  'body' => '{
  "confirm_charge": true
}',
  '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/bank/verify");
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}", 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] 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/bank/verify")! 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()
```