MQTT Response to Transaction Information Inquiry

Receive a response after sending a transaction status inquiry request

MQTT Response Check Transaction

mqtt://<vietqr-port>/vietqr/response-status/{terminalCode}

Message

ParamTypeDescription

referenceNumber

String

Transaction reference number.

orderId

String

Order ID.

amount

Long

Transaction amount.

content

String

Transaction content.

transType

String

Transaction type.

status

int

Status of transaction .

type

int

Type of inquiry.

timeCreated

Long

Transaction creation time.

timePaid

Long

Transaction payment time.

terminalCode

String

Terminal code or store code.

note

String

Notes.

refundCount

int

Number of refunds.

amountRefunded

int

Amount refunded.

Note

Status:

  • 0: Transaction pending payment

  • 1: Transaction successful

  • 2: Transaction canceled

Type:

  • 0: Check by Order ID

  • 1: Check by transaction reference number

Transaction Type:

  • "C": Incoming transaction

  • "D": Outgoing transaction

Sample

{
  "referenceNumber": "TXN123456789012",
  "orderId": "ORD98765XYZ",
  "amount": 25000,
  "content": "SampleProductPurchase",
  "transType": "C",
  "status": 1,
  "type": 0,
  "timeCreated": 1623039658,
  "timePaid": 1623039685,
  "terminalCode": "",
  "note": "",
  "refundCount": 0,
  "amountRefunded": 0
}

Last updated