# Confirm the virtual account OTP

`POST /service/@id/tinopay/bank-accounts/@bank/virtual-accounts/confirm` · TinoPay, service owner's sign-in token

Step 2 when [creating a virtual account](/en/docs/api/tinopay-post-bank-accounts-bank-virtual-accounts) for a BIDV personal account returned 202. Send `confirm_id` and `va_number` from step 1, the `otp` the customer typed as a string of 6 digits (keeps a leading `0`); `hint_name` (up to 50 characters) can be left out if sent in step 1. Returns 201 with the `active` VA. A `confirm_id` lives up to 10 minutes and takes up to 5 attempts; expired or mismatched (account, VA number) returns 410 `OTP_EXPIRED`, too many attempts returns 429 `OTP_LOCKED`. OTP and bank errors as in the [link confirm step](/en/docs/api/tinopay-post-bank-links-bidv-personal-confirm): 422 `OTP_INVALID`, `OTP_FAILED`, 410 `OTP_EXPIRED`, 429 `OTP_LOCKED`, 502 `BANK_GATEWAY_ERROR`; for a new code call step 1 again (at least 60 seconds apart). Not retried. Through `/v1` it needs the `tinopay:write` scope.

## HTTP request

| Item | Value |
| --- | --- |
| URL | `https://api.tino.vn/service/@id/tinopay/bank-accounts/@bank/virtual-accounts/confirm` |
| Method | `POST` |
| Authentication | the TinoPay service owner's sign-in token (`Authorization: Bearer <token>`); the `/v1` gateway does not expose TinoPay yet |
| Content-Type | `application/json` |

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | int | yes | TinoPay service ID |
| `bank` | path | string | yes | Bank account ID (`id` in the bank account list) |
| `confirm_id` | body | string | yes | Từ bước 1 |
| `va_number` | body | string | yes | Từ bước 1 |
| `otp` | body | string | yes | Mã OTP BIDV gửi |
| `hint_name` | body | string | — | Tên gợi nhớ của VA, ≤ 50 ký tự |

## Example request

```bash
curl -X POST "https://api.tino.vn/service/100001/tinopay/bank-accounts/9c1e6f2a-5b7d-4e1a-9f3c-2d8b6a4e0c11/virtual-accounts/confirm" \
  -H "Authorization: Bearer $TINO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "confirm_id": "20261130100000123456",
  "va_number": "QUAY2",
  "otp": "123456",
  "hint_name": "Quầy 2"
}'
```

`$TINO_TOKEN` is the TinoPay service owner's sign-in token. Path parameters in the example are sample values.

SDK ([SDK & examples](/en/docs/sdk)): no dedicated function yet, use `client.request("POST", "/service/@id/tinopay/bank-accounts/@bank/virtual-accounts/confirm")`.

## Example response

```json
{
 "data": {
  "id": 52,
  "bank_account_id": "9c1e6f2a-5b7d-4e1a-9f3c-2d8b6a4e0c11",
  "account_number": "963988QUAY2",
  "account_name": "NGUYEN VAN A",
  "status": "active",
  "created_at": "2026-10-20T10:05:00+07:00"
 }
}
```

Sample built from the TinoPay API v1 documentation (Tino relays TinoPay data as is); values are examples.
