# Confirm the BIDV personal link OTP

`POST /service/@id/tinopay/bank-links/bidv-personal/confirm` · TinoPay, service owner's sign-in token

Send `confirm_id` (from step 1 or the latest resend), the `bank_account_id` and `va_number` from step 1, and the `otp` the customer typed. Returns 200 `{bank_account, virtual_account}`: the account becomes `active` and its first VA is created. `bank_account_id` must belong to the merchant, otherwise 404 `BANK_ACCOUNT_NOT_FOUND`. Errors: 422 `OTP_INVALID`, `OTP_FAILED` (let the customer retype), 410 `OTP_EXPIRED` ([resend the code](/en/docs/api/tinopay-post-bank-links-bidv-personal-resend-otp)), 429 `OTP_LOCKED` (more than 5 wrong codes: resend to get a new `confirm_id`), 409 `BANK_ACCOUNT_EXISTS` (already linked: reload the list), 502 `BANK_GATEWAY_ERROR` (with `details.reference_id`). Not retried. Through `/v1` it needs the `tinopay:owner` scope.

## HTTP request

| Item | Value |
| --- | --- |
| URL | `https://api.tino.vn/service/@id/tinopay/bank-links/bidv-personal/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 |
| `confirm_id` | body | string | yes | Từ bước 1 hoặc resend-otp gần nhất |
| `bank_account_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 |

## Example request

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

`$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-links/bidv-personal/confirm")`.

## Example response

```json
{
 "data": {
  "bank_account": {
   "id": "9c1e6f2a-5b7d-4e1a-9f3c-2d8b6a4e0c11",
   "bank_code": "BIDV",
   "account_no": "96240000002",
   "account_holder_name": "NGUYEN VAN A",
   "hint_name": "Quầy chính",
   "is_business": false,
   "first_va_number": "963988",
   "service_id": "AP0013",
   "status": "active",
   "provision_status": "active",
   "provision_note": null,
   "activated_at": "2026-10-20T10:00:00+07:00",
   "virtual_accounts_count": 1,
   "created_at": "2026-10-20T09:55:00+07:00"
  },
  "virtual_account": {
   "id": 51,
   "bank_account_id": "9c1e6f2a-5b7d-4e1a-9f3c-2d8b6a4e0c11",
   "account_number": "963988SHOP1",
   "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.
