Skip to main content

PayIn | QR code (Vietnam)

The payer pays via VietQR. The order amount is in RUB; the amount to pay is requisites.amount_local in VND.

To get requisites for the QR code (Vietnam) method, send a request (curl example):

curl -X POST https://api.bopay.io/v1/payments \
-H "Content-Type: application/json" \
-H "X-Identity: <API-key>" \
-H "X-Signature: <Signature>" \
-d '{
"ext_id": "order_12345",
"amount": 5000,
"currency": "RUB",
"method": "VIET_QR",
"notify_url": "https://merchant.example/webhook"
}'

POST /v1/payments — headers and signature: Authorization.

Parameters​

FieldTypeRequiredDescription
ext_idstringyesYour order ID, unique
amountnumberyesAmount in RUB
currencystringyesRUB. The terminal must work in RUB
methodstringyesVIET_QR
client_idstringnoPayer ID on your side
notify_urlstringnoURL for webhooks
notification_tokenstringnoReturned in the X-Notification-Token webhook header

The response contains the requisites:

{
"id": "550e8400-e29b-41d4-a716-446655440000",
"ext_id": "order_12345",
"amount": 5000,
"currency": "RUB",
"status": "PENDING",
"method": "VIET_QR",
"requisites": {
"type": "vietqr",
"value": "00020101021238570010A000000727...",
"country": "VN",
"currency": "VND",
"amount_local": 1450000
},
"payment_url": "https://pay.bopay.io/invoice?id=550e8400-e29b-41d4-a716-446655440000",
"valid_until": "2026-01-30T12:30:00Z",
"created_at": "2026-01-30T12:15:00Z"
}

Response fields​

FieldDescription
idPayment ID
requisites.valueWhere to pay: VietQR content
requisites.amount_localAmount to pay in requisites.currency
payment_urlPayment page
valid_untilPayment deadline

Show requisites to the payer or redirect them to payment_url. The payer transfers requisites.amount_local in requisites.currency.

Other fields and errors — see Create Payment. Status — webhook or GET /v1/payments/{id}.