/service/@id/tinopay/bank-links/bidv-personal/confirmConfirm the BIDV personal link OTP
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), 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.
A TinoPay service route: call it with the service owner's sign-in token; the /v1 gateway (app tokens, personal tokens) does not expose TinoPay yet. See Getting started with TinoPay.
Authentication
Send the token in the header Authorization:
Authorization: Bearer <token>
Tokens that can call it: the TinoPay service owner's sign-in token (the tino.vn client area token).
Parameters
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | int | Required | TinoPay service ID |
Body (JSON)
| Name | Type | Required | Description |
|---|---|---|---|
confirm_id | string | Required | Từ bước 1 hoặc resend-otp gần nhất |
bank_account_id | string | Required | Từ bước 1 |
va_number | string | Required | Từ bước 1 |
otp | string | Required | Mã OTP BIDV gửi |
Response
Sample built from the TinoPay API v1 documentation (Tino relays TinoPay data as is); values are examples.
Error codes
| Error code | Description |
|---|---|
404 · service_not_found, invalid method | The service does not belong to the signed-in account, or is not TinoPay. |
403 · service_not_active | The service is neither Active nor Suspended. |
403 · MERCHANT_SUSPENDED | The merchant is suspended: writes are blocked, GET still works. |
404 · RESOURCE_NOT_FOUND | The resource does not exist or does not belong to the merchant. |
422 · VALIDATION_FAILED | Invalid data; details lists the fields. |
502 · NETWORK_ERROR…, 504 | The connection between Tino and the partner is interrupted (504: HTML body, request took too long): a Tino-side error, not a token problem. Keep the token, retry later. |
Errors look like {"error": ["<CODE>"], "message", "details", "request_id"}; every code is in Getting started with TinoPay.