For the complete documentation index, see llms.txt. This page is also available as Markdown.

API Generate QR data for virtual account

  • Purpose: This is the API used to generate QR data with a specified amount for a virtual account.

  • API:

    • Path: v2/col/virtual-accounts/qrData

    • Method: POST

    • Request: Content-Type: application/json

Request

Request Body Field Descriptions (JSON)

Field Name
Type
Required
Description

virtualAccountRequestId (*)

string

No

Virtual account request ID

bankAccountNumber (*)

string

No

Bank account number

amount

number

No

Amount of the transaction

remark

string

No

Remark for the transaction

extraInfo

object

No

Additional information (optional)

(*) At least one of virtualAccountRequestId or bankAccountNumber is required to identify the virtual account for which the QR data is being generated.

Request sample

{
  "virtualAccountRequestId": "e1b2c3d4-5678-1234-9abc-1234567890ab",
  "bankAccountNumber": "NEO0003044",
  "amount": 100000,
  "remark": "THANH TOAN DON HANG 1778577017037",
  "extraInfo": {}
}

Response

Response Field Descriptions

Field Name
Type
Description

code

number

Response code

state

number

State of the response

data

object

Details of the created virtual card

message

string

Response message

neoResponseId

string

Unique Neo response identifier

data object fields

Field Name
Type
Description

virtualAccountRequestId

string

Virtual account request ID

bankId

string

Bank ID

bankName

string

Bank name

bankAccountNumber

string

Bank account number

bankAccountName

string

Bank account name

amount

number

Amount of the transaction

remark

string

Remark for the transaction

qrText

string

QR code text

extraInfo

object

Additional information

createdAt

string

Creation timestamp (ISO 8601)

Response sample

Example cURL

Notes

  • Requires Bearer token in the Authorization header.

  • The Accept-Language header can be used to specify the response language (Support: "vi", "en").

  • The extraInfo field can be used to pass any additional information that may be required for processing the request, and it will be included in the response as well.

Last updated

Was this helpful?