VN: VietQR - Payments
Please use the following
paymentMethodNamevalue when creating theIntentand when completing thepaymentobject.
"paymentMethodName": "VietQR"
VietQR is a QR-based push payment method for Vietnam. You create an
Intent, receive a QR (and a payment URL) in the synchronous response, and display it to the payer. The payer completes the payment in their banking app, and we notify you of the final status via a webhook.
Payment Method Features
| Payment Method | VietQR |
|---|---|
| Country | Vietnam |
| Processing Currencies | VND |
| Payments | Yes |
| -- Min per transaction amount | Vary, depends on your contract |
| -- Max per transaction amount | Vary, depends on your contract |
| Disbursements | Yes |
| Refunds | No |
| Chargebacks | No |
Workflow: Payment

Download in high resolution
Possible Payment Scenarios
VietQR has a single integration flow: you generate a QR at Intent creation, then wait for the final status via webhook. The QR resolves to one of two terminal outcomes — Successful Payment (CAPTURED) or Expired QR (DECLINED).
| Name | Steps |
|---|---|
| QR Generation | [1.1] The payer initiates a payment on your side. [1.2] You send an Intent creation request via the API ( POST /processing/api/v1/intents), including a Payment transaction for VietQR.[1.3] Our platform validates the incoming data, creates the Intent, and creates a separate Payment.[1.4] Our platform requests a QR from the processor. [1.5–1.6] The processor returns the created QR; our platform returns it to you in the synchronous response to the Intent creation request ( payments[].additionalData.details.qrBase64 and url).[1.7] You render the QR (or redirect the payer to url) so the payer can complete the payment. |
| Successful Payment | [2.1] The payer scans the QR and completes the payment. [2.2] The processor returns the payment result to our platform. [2.3: SC] Our platform changes the payment status to CAPTURED.[2.4: SC] Our platform sends a webhook with the latest status update. |
| Expired QR | [2.1] The payer does not complete the payment before the QR expires. [2.3: EQ] Our platform changes the payment status to DECLINED (expiration).[2.4: EQ] Our platform sends a webhook with the latest status update. |
Failed payment attempts
The processor does not register unsuccessful payment attempts.
You will receive only a success (CAPTURED) or an expiration (DECLINED) notification.
List of used API Requests
| Request | Endpoint | Description |
|---|---|---|
| Intent Creation | POST /processing/api/v1/intents | • Creates a new Intent with a VietQR Payment transaction.• The platform validates the request, creates the internal payment record, requests a QR from the processor, and returns the QR in the synchronous response. |
The final transaction status (
CAPTUREDorDECLINED) is always delivered asynchronously via a webhook. More on the dedicated page.
Intent Creation Request/Response
Request specifics
- Endpoint:
POST /processing/api/v1/intents- Purpose: Creates an
Intentand aPaymentfor the VietQR payment method.- Structure: A unified request structure is used for all supported payment methods, but some fields are method-specific.
- For this method:
paymentMethodNamemust be set toVietQRauthCurrencyCodemust be set toVND
Intent Request: Example
{
"clientReferenceId": "1234",
"payments": [
{
"paymentInstrument": {
"paymentMethodName": "VietQR",
"incomingDetails": {
"sessionTimeoutMin": 20
}
},
"submittedAmount": {
"value": 500000,
"currency": "VND"
},
"authCurrencyCode": "VND",
"description": "Purchase description",
"webhookUrl": "https://merchant.example.com/webhooks/payments"
}
]
}Intent Request: Fields Description
Top-Level Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
clientReferenceId | String | Required | Order number in the merchant system. |
payments | Array of Objects | Required | List of payment objects to be created within the Intent. |
payment
| Parameter | Type | Required | Description |
|---|---|---|---|
paymentInstrument | Object | Required | Payment method and payment instrument details used to process the payment. |
submittedAmount | Object | Required | Amount and currency submitted for the payment. |
authCurrencyCode | String | Required | Authorisation currency code to be used for the payment. Always VND for this method. If FX conversion is not required, it should match submittedAmount.currency. |
description | String | Optional | Payment description. |
webhookUrl | String | Required | URL to which payment status change webhooks will be sent. |
paymentInstrument
| Parameter | Type | Required | Description |
|---|---|---|---|
paymentMethodName | String | Required | Payment method name. For this scenario, use VietQR. |
incomingDetails | Object | Required | Payment method-specific data required to initiate the payment. |
incomingDetails
| Parameter | Type | Required | Description |
|---|---|---|---|
sessionTimeoutMin | Integer | Optional | QR / order lifetime in minutes. If not provided, the default of 20 minutes is applied. Min: 1 minute. Max: not limited. A value of 0 is not allowed. |
submittedAmount
| Parameter | Type | Required | Description |
|---|---|---|---|
value | Number | Required | Submitted order amount. VND is a zero-decimal currency, so amounts are typically whole numbers (e.g. 500000). May differ from the authorised amount if FX conversion is applied. |
currency | String | Required | Submitted order currency in ISO 4217 alpha-3 format. May differ from the authorised currency if FX conversion is applied. |
Response specifics
- The Intent creation response is generally consistent across all supported payment methods.
- Common fields describe the
Intent, thePayment, and the current transaction status.- Method-specific data is returned in
payments[].additionalData.details:
qrBase64— the VietQR code encoded in Base64 (PNG). Render it and display it to the payer.- Payer account details (
accountNo,accountType) — can be shown as a manual bank-transfer fallback.
Intent Response: Example
{
"intentId": "232510340021612544",
"payments": [
{
"id": "232510340646563840",
"submittedAmount": {
"value": 500000,
"currency": "VND"
},
"authAmount": {
"value": 500000,
"currency": "VND"
},
"paymentInstrument": {
"id": "PI204264628196626432",
"paymentMethodId": "PM199507277233246209",
"paymentMethodName": "VietQR",
"storedDetails": {
"sessionTimeoutMin": 20
}
},
"status": "ACCEPTED",
"additionalData": {
"details": {
"qrBase64": "iVBORw0KGgoAAAANSUhEUgAA... (Base64-encoded QR image)"
}
}
}
],
"disbursements": [],
"clientReferenceIntentId": "1234",
"paymentCreationErrors": [],
"disbursementCreationErrors": [],
"intentStatus": "IN_PROGRESS"
}Response Description
Top-Level Response Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
intentId | String | Required | Unique identifier of the Intent in our platform. |
payments | Array of Objects | Required | List of Payment objects created within the Intent. |
disbursements | Array | Optional | List of disbursement objects created within the Intent. Empty if no disbursements were created. |
clientReferenceIntentId | String | Required | Order number in the merchant system. Returned from the request. |
paymentCreationErrors | Array | Required | List of payment creation errors, if any. Empty if no errors occurred. |
disbursementCreationErrors | Array | Required | List of disbursement creation errors, if any. Empty if no errors occurred. |
intentStatus | String | Required | Current Intent status. See the dedicated section of this API guide for possible values and the status model. |
payment
| Parameter | Type | Required | Description |
|---|---|---|---|
id | String | Required | Unique identifier of the Payment in our platform. |
submittedAmount | Object | Required | Submitted payment amount and currency. Returned from the request. |
authAmount | Object | Required | Authorised amount and currency used for the payment. |
paymentInstrument | Object | Required | Payment method information associated with the payment. |
status | String | Required | Current payment status. See the dedicated section of this API guide for possible values and the status model. |
additionalData | Object | Optional | Method-specific data required to continue or complete the payment flow. |
submittedAmount
| Parameter | Type | Required | Description |
|---|---|---|---|
value | Number | Required | Submitted order amount. Returned from the request. May differ from the authorised amount if FX conversion is applied. |
currency | String | Required | Submitted order currency. Returned from the request. May differ from the authorised currency if FX conversion is applied. |
authAmount
| Parameter | Type | Required | Description |
|---|---|---|---|
value | Number | Required | Authorised amount used for the payment. May differ from the submitted amount if FX conversion is applied. |
currency | String | Required | Authorisation currency used for the payment. Always VND for this method. |
paymentInstrument
| Parameter | Type | Required | Description |
|---|---|---|---|
id | String | Optional | Unique identifier of the payment instrument in our platform. |
paymentMethodId | String | Optional | Unique identifier of the payment method in our platform. |
paymentMethodName | String | Optional | Payment method name. Returned from the request. |
storedDetails | Object | Optional | Stored payment instrument details. Returned when applicable. |
storedDetails
| Parameter | Type | Required | Description |
|---|---|---|---|
sessionTimeoutMin | Integer | Optional | QR / order lifetime in minutes. Returned from the request. |
additionalData
| Parameter | Type | Required | Description |
|---|---|---|---|
details | Object | Required | Method-specific details required to continue or complete the payment flow. |
details
| Parameter | Type | Required | Description |
|---|---|---|---|
qrBase64 | String | Required | VietQR code encoded in Base64 (PNG). Render it and display it to the payer. |
Webhooks
More about Payment Webhooks on the dedicated page.
You will receive a webhook on each status change of any transaction you created.
- After the transaction is processed and reaches its final status (
CAPTUREDorDECLINED), the platform notifies you of the latest status change via the webhook. - In some cases the acquirer may return extra information about the transaction. In that case we include additional data in the webhook.
Refunds
VietQR does not support native refunds.
To return funds, initiate a separate NAPAS disbursement to the same bank account used for the original payment.
We recommend adding this disbursement to the original
Intentso the payment and the return are grouped together for tracking, reconciliation, and investigation.
Refunds and disbursements: important differences
A refund is an operation linked to an original payment. Its eligibility and available amount depend on that payment: the total refunded amount cannot exceed the amount paid.
A disbursement is a new, independent outgoing transfer. It is not a reversal of the original payment and does not inherit refund restrictions.
| Aspect | Native refund | NAPAS disbursement used to return funds |
|---|---|---|
| Relationship to the payment | Operates against the original payment. | A separate transaction. It can be grouped with the payment under one Intent. |
| Amount | Limited by the amount available to refund from the original payment. | Not capped by the original payment amount. Normal payout limits, balance requirements, and processing rules still apply. |
| Original payment status | Subject to the original payment's refund eligibility. | The payout API does not require the original payment to have reached a successful final status. |
| Effect on the payment | Processes a refund against that payment. | Does not reverse or change the original payment. |
Treat a payout as an irreversible transfer.NAPAS disbursements have no cancellation, refund, or chargeback mechanism through this integration. You cannot dispute a payout through a chargeback to recover funds sent by mistake.
The platform can accept a payout even if the original payment has not succeeded, and the payout amount can exceed the original payment amount. Acceptance of the payout does not confirm that the customer originally paid or that the return amount is correct.
You are responsible for verifying the original payment, recipient, and amount before submitting the payout. Grouping transactions within one Intent does not apply refund eligibility or refund amount checks.
Payments and payouts use separate balancesFunds received from incoming payments are kept separate from funds allocated for disbursements. A successful payment does not automatically fund the payout balance.
Ensure that your payout balance has sufficient funds before initiating a disbursement. This applies during sandbox testing and production processing, even when the original payment and the payout belong to the same Intent.
Choose how to create the disbursement
You can create a NAPAS payout in either of two ways:
| Approach | Endpoint | Relationship to the original payment |
|---|---|---|
| Create a standalone payout | POST /processing/api/v1/intents, with a NAPAS transaction in disbursements. | Creates a new Intent. The original payment and the payout remain independent records without a shared Intent linking them. |
| Add the payout to the original Intent — recommended for returns | POST /processing/api/v1/intents/{intentId}/transactions | Creates the payout within the existing Intent, grouping it with the original payment. |
Using Create transactions under an existing Intent lets the platform record that the transactions belong together. This makes it easier to locate the original payment and related payouts, reconcile their outcomes, and investigate problems.
The relationship is for tracking and reconciliation. The payout remains an independent financial transaction with its own ID and status.
Obtain the original payer's account details
Before returning funds, independently confirm that the original payment succeeded:
GET /processing/api/v1/payments/{paymentId}
The payment response contains the payer's account details directly inside additionalData, alongside qrBase64. There is no intermediate details or clientDetails object in this endpoint's response.
| Field | Description | Use in the payout request |
|---|---|---|
additionalData.accountNo | Original payer's bank account number. | Copy to payeePaymentInstrument.incomingDetails.number. |
additionalData.accountType | Always account for this return flow. | Copy to payeePaymentInstrument.incomingDetails.accountType. |
additionalData.bankCode | Bank code associated with the payer's account. | Copy to payeePaymentInstrument.incomingDetails.bankCode. |
If you retrieve the payment through GET Intent instead, the same fields are nested under payments[].additionalData.clientDetails, alongside qrBase64.
Use the original payer's account details returned with the successful payment status. Do not substitute another recipient or use the receiving account displayed during QR creation.
If any required account detail is missing, resolve it before submitting the payout.
Create the return under the original Intent
- Confirm that the original payment reached
CAPTURED. This is your integration's responsibility; the payout endpoint does not enforce it. - Determine the amount to return, accounting for previous completed returns and payouts still in progress.
- Obtain the payer's
accountNo,accountType, andbankCodefrom the original payment status response. - Submit the NAPAS disbursement using the original Intent ID and its settlement account.
- Track the disbursement's own status. Record the return as successful only when it reaches
PAID_OUT.
Request and response examples
These examples return 500,000 VND to the original payer's account. Identifiers and account details are illustrative; the QR image is shortened for readability.
Endpoint
GET /processing/api/v1/payments/232510340646563840Response — relevant fields
{
"id": "232510340646563840",
"status": "CAPTURED",
"additionalData": {
"qrBase64": "iVBORw0KGgoAAAANSUhEUgAA...",
"accountNo": "106003079463",
"accountType": "account",
"bankCode": "VCB"
}
}Copy accountNo, accountType, and bankCode into the payout request as shown in the next tab.
Endpoint and headers
POST /processing/api/v1/intents/232510340021612544/transactions
Authorization: Bearer <access_token>
settlement-account-id: <settlement_account_id>
Content-Type: application/jsonRequest body
{
"disbursements": [
{
"clientReferenceId": "1234-return-001",
"payeePaymentInstrument": {
"paymentMethodName": "Napas",
"incomingDetails": {
"accountType": "account",
"number": "106003079463",
"bankCode": "VCB"
}
},
"submittedAmount": {
"value": 500000,
"currency": "VND"
},
"authAmount": {
"currency": "VND"
},
"description": "Return for order 1234",
"webhookUrl": "https://merchant.example.com/webhooks/disbursements"
}
]
}Request specifics
paymentMethodNamemust beNapas.- Use
accountType: "account"and copy the recipient account number and bank code from the original payment. - Every disbursement must have its own nonblank
clientReferenceId, unique among disbursements within the settlement account. - Provide three amount fields: both currency codes and one amount value. This example supplies
submittedAmount.valueand omitsauthAmount.value; the platform calculates the missing value. With both currencies set toVND, no currency conversion is involved. See Amount Fields: submittedAmount and authAmount. - Send only the new disbursement. Do not resend the original payment.
HTTP status: 200
This endpoint returns the entire existing Intent, including the original payment, previous disbursements, and creation errors—not only the newly created payout.
The example below shows relevant fields for an Intent whose original payment had already completed.
{
"id": "232510340021612544",
"payments": [
{
"id": "232510340646563840",
"submittedAmount": {
"value": 500000,
"currency": "VND"
},
"authAmount": {
"value": 500000,
"currency": "VND"
},
"status": "CAPTURED"
}
],
"disbursements": [
{
"id": "232510341271515136",
"submittedAmount": {
"value": 500000,
"currency": "VND"
},
"authAmount": {
"value": 500000,
"currency": "VND"
},
"payeePaymentInstrument": {
"paymentMethodName": "Napas",
"storedDetails": {
"accountType": "account",
"maskedNumber": "106003******9463",
"bankCode": "VCB"
}
},
"status": "ACCEPTED",
"clientReferenceId": "1234",
"clientReferenceTransactionId": "1234-return-001"
}
],
"clientReferenceIntentId": "1234",
"paymentCreationErrors": [],
"disbursementCreationErrors": [],
"intentStatus": "FINALIZED"
}Response specifics
ididentifies the original Intent.- Both amount values are populated in the response, including the value omitted from the request.
clientReferenceIntentIdand the disbursement'sclientReferenceIdcontain the original Intent reference.clientReferenceTransactionIdcontains the individual payout reference supplied in the request.ACCEPTEDmeans the payout has been accepted for processing. It does not confirm receipt of funds by the customer.- Adding a payout does not reopen a finalized Intent. Track completion using the disbursement's status, even when
intentStatusremainsFINALIZED. - Creation error arrays can include historical errors. Reconcile them with the returned transactions before deciding the outcome of the latest request.
Processing results and retries
Follow the disbursement's status updates through your webhook:
| Status | Meaning |
|---|---|
ACCEPTED | Accepted for processing. |
DISBURSEMENT_REQUESTED | Submitted for payout processing; completion is not yet confirmed. |
PAID_OUT | The payout completed successfully. |
DECLINED | The payout was declined. Review the result before submitting another payout. |
ERROR | Processing ended with an error. Investigate and reconcile the outcome before retrying. |
Before creation, the endpoint checks that the disbursement array is nonempty and that the required transaction references are valid and unique. Subsequent checks and creation happen individually, so a request containing multiple payouts can partially succeed.
| HTTP status | Meaning |
|---|---|
200 | The full Intent is returned. Inspect the transactions and disbursementCreationErrors. |
400 | Invalid request, including an empty array or missing, blank, or repeated references within the request body. |
404 | The Intent was not found within the caller's settlement account. |
409 | A supplied reference is already used by another disbursement in this settlement account. This does not confirm completion of that payout. |
A concurrent reference conflict detected after another item has already been created may appear in disbursementCreationErrors within a 200 response.
Never retry a payout blindly.
If the request times out or its outcome is unclear, retrieve the Intent and reconcile existing payouts by their IDs, references, and statuses before sending another request. A new reference can create another transfer.
A failure in one item does not roll back other accepted payouts. An incorrect recipient, excessive amount, or duplicate submission can cause an irreversible financial loss.
Testing in Sandbox
Our system allows emulating different test cases in the sandbox environment.
To simulate specific scenarios and receive different results, use the intent.description parameter.
VietQR Payment Test flow
High-resolution image is available on the link
List of Supported Cases
| Case | Scenario Keyword (intent.description) | Final Payment Status |
|---|---|---|
| -- | CAPTURED |
| -- | CANCELLED |
| DeclinedPayment | DECLINED |
| LinkCreationError | ERROR |
Case "Successful payment"
Steps:
- The client creates an intent via
POST /processing/api/v1/intents. - A synchronous response is returned with
paymentStatus = AUTHORIZATION_REQUESTED. - Open the link from
payments.additionalData.qrBase64. - A callback is received with
paymentStatus = CAPTURED.
Case "QR Expired"
Steps:
- The client creates an intent via
POST /processing/api/v1/intents. (you can usesessionTimeoutMinparameter to adjust the expiration time - A synchronous response is returned with
paymentStatus = AUTHORIZATION_REQUESTED. - Wait for the expiration time
- A callback is received with
paymentStatus = CANCELLED.
Case "Payment Declined"
Steps:
- The client creates an intent via
POST /processing/api/v1/intentsusing theintent.descriptionparameter with the value"DeclinedPayment". - A synchronous response is returned with
paymentStatus = AUTHORIZATION_REQUESTED. - Open the link from
payments.additionalData.qrBase64. - A callback is received with
paymentStatus = DECLINED.
Case "Failure"
Steps:
- The client creates an intent via
POST /processing/api/v1/intentsusing theintent.descriptionparameter with the value"LinkCreationError". - A synchronous response is returned with
paymentStatus = ERROR.
Updated 28 days ago
