# Link a BIDV personal account

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

Individuals and household businesses with a BIDV current account: linked automatically and confirmed with the OTP BIDV sends to the phone number registered at the bank. `account_no` up to 20 characters (spaces and hyphens are removed); `account_holder_name` exactly as at BIDV, up to 70 characters, diacritics allowed; `identity` is the ID card, passport or business registration number stored at BIDV, up to 20 characters `[A-Za-z0-9 ]`; `phone` as `0…` or `+84…`, up to 12 characters; `va_number` is the suffix of the first VA (A–Z, 0–9, up to 19 minus the VA prefix length); `hint_name` optional, up to 50 characters. Returns **202** `{confirm_id, bank_account_id, va_number, account_number, account_name, phone_masked, otp_resend_after}`: keep `confirm_id`, `bank_account_id`, `va_number` for the [confirm step](/en/docs/api/tinopay-post-bank-links-bidv-personal-confirm) (TinoPay keeps no session). The account appears in the list right away with `status` `inactive` until confirmed; call again with the same `account_no` to start over. Errors: 422 `VALIDATION_FAILED` (`details.fields.<field>` names the field that does not match BIDV), 422 `BANK_REJECTED` (the bank refused the account: show `message` as is), 409 `BANK_ACCOUNT_EXISTS`, 409 `VA_NUMBER_EXISTS`, 429 `RATE_LIMITED` (another OTP within 60 seconds), 403 `FEATURE_DISABLED`, 502 `BANK_GATEWAY_ERROR`. Not retried: every call sends an OTP, so block double clicks. Through `/v1` it needs the `tinopay:owner` scope.

## HTTP request

| Item | Value |
| --- | --- |
| URL | `https://api.tino.vn/service/@id/tinopay/bank-links/bidv-personal` |
| 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 |
| `account_no` | body | string | yes | Số tài khoản BIDV, ≤ 20 ký tự (khoảng trắng / gạch nối tự bỏ) |
| `account_holder_name` | body | string | yes | Tên chủ tài khoản đúng như tại BIDV, ≤ 70 ký tự (có dấu cũng được) |
| `identity` | body | string | yes | Số CCCD / CMND / hộ chiếu / ĐKKD đang lưu tại BIDV, ≤ 20 ký tự [A-Za-z0-9 ] |
| `phone` | body | string | yes | SĐT nhận OTP đăng ký tại BIDV, 0… hoặc +84…, ≤ 12 ký tự |
| `va_number` | body | string | yes | Phần đuôi VA (= terminal code), A–Z 0–9, tối đa 19 − độ dài mã đầu ký tự |
| `hint_name` | body | string | — | Tên gợi nhớ của VA, ≤ 50 ký tự, không gửi sang BIDV |

## Example request

```bash
curl -X POST "https://api.tino.vn/service/100001/tinopay/bank-links/bidv-personal" \
  -H "Authorization: Bearer $TINO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "account_no": "96240000002",
  "account_holder_name": "Nguyễn Văn A",
  "identity": "001199012345",
  "phone": "0900000000",
  "va_number": "SHOP1",
  "hint_name": "Quầy chính"
}'
```

`$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")`.

## Example response

```json
{
 "data": {
  "confirm_id": "20261130100000123456",
  "bank_account_id": "9c1e6f2a-5b7d-4e1a-9f3c-2d8b6a4e0c11",
  "va_number": "SHOP1",
  "account_number": "963988SHOP1",
  "account_name": "NGUYEN VAN A",
  "phone_masked": "090****567",
  "otp_resend_after": 60
 }
}
```

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