Integration GuideAPI Reference
Integration Guide

VN: VietQR - Payments

📓

Please use the following paymentMethodName value when creating the Intent and when completing the payment object.
"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 MethodVietQR
CountryVietnam
Processing CurrenciesVND
PaymentsYes
-- Min per transaction amountVary, depends on your contract
-- Max per transaction amountVary, depends on your contract
DisbursementsYes
RefundsNo
ChargebacksNo

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).

NameSteps
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

RequestEndpointDescription
Intent CreationPOST /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 (CAPTURED or DECLINED) 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 Intent and a Payment for 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:
    • paymentMethodName must be set to VietQR
    • authCurrencyCode must be set to VND

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
ParameterTypeRequiredDescription
clientReferenceIdStringRequiredOrder number in the merchant system.
paymentsArray of ObjectsRequiredList of payment objects to be created within the Intent.
payment
ParameterTypeRequiredDescription
paymentInstrumentObjectRequiredPayment method and payment instrument details used to process the payment.
submittedAmountObjectRequiredAmount and currency submitted for the payment.
authCurrencyCodeStringRequiredAuthorisation currency code to be used for the payment. Always VND for this method.
If FX conversion is not required, it should match submittedAmount.currency.
descriptionStringOptionalPayment description.
webhookUrlStringRequiredURL to which payment status change webhooks will be sent.
paymentInstrument
ParameterTypeRequiredDescription
paymentMethodNameStringRequiredPayment method name.
For this scenario, use VietQR.
incomingDetailsObjectRequiredPayment method-specific data required to initiate the payment.
incomingDetails
ParameterTypeRequiredDescription
sessionTimeoutMinIntegerOptionalQR / 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
ParameterTypeRequiredDescription
valueNumberRequiredSubmitted 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.
currencyStringRequiredSubmitted order currency in ISO 4217 alpha-3 format.
May differ from the authorised currency if FX conversion is applied.


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 (CAPTURED or DECLINED), 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 Intent so 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.

AspectNative refundNAPAS disbursement used to return funds
Relationship to the paymentOperates against the original payment.A separate transaction. It can be grouped with the payment under one Intent.
AmountLimited 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 statusSubject 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 paymentProcesses 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 balances

Funds 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:

ApproachEndpointRelationship to the original payment
Create a standalone payoutPOST /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 returnsPOST /processing/api/v1/intents/{intentId}/transactionsCreates 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.

FieldDescriptionUse in the payout request
additionalData.accountNoOriginal payer's bank account number.Copy to payeePaymentInstrument.incomingDetails.number.
additionalData.accountTypeAlways account for this return flow.Copy to payeePaymentInstrument.incomingDetails.accountType.
additionalData.bankCodeBank 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

  1. Confirm that the original payment reached CAPTURED. This is your integration's responsibility; the payout endpoint does not enforce it.
  2. Determine the amount to return, accounting for previous completed returns and payouts still in progress.
  3. Obtain the payer's accountNo, accountType, and bankCode from the original payment status response.
  4. Submit the NAPAS disbursement using the original Intent ID and its settlement account.
  5. 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/232510340646563840

Response — 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.


Processing results and retries

Follow the disbursement's status updates through your webhook:

StatusMeaning
ACCEPTEDAccepted for processing.
DISBURSEMENT_REQUESTEDSubmitted for payout processing; completion is not yet confirmed.
PAID_OUTThe payout completed successfully.
DECLINEDThe payout was declined. Review the result before submitting another payout.
ERRORProcessing 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 statusMeaning
200The full Intent is returned. Inspect the transactions and disbursementCreationErrors.
400Invalid request, including an empty array or missing, blank, or repeated references within the request body.
404The Intent was not found within the caller's settlement account.
409A 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

CaseScenario Keyword
(intent.description)
Final Payment Status
  1. Successful payment
--CAPTURED
  1. QR Expired
--CANCELLED
  1. Payment Declined
DeclinedPaymentDECLINED
  1. Failure
LinkCreationErrorERROR

Case "Successful payment"

Steps:

  1. The client creates an intent via POST /processing/api/v1/intents.
  2. A synchronous response is returned with paymentStatus = AUTHORIZATION_REQUESTED.
  3. Open the link from payments.additionalData.qrBase64.
  4. A callback is received with paymentStatus = CAPTURED.

Did this page help you?