Webhook

Configure the webhook

Sequence Diagram

Event data

ParameterData TypeDescription

transId

String

The ID of transaction.

type

String

TRANSACTION

merchantCode

String

Merchant Code

transDate

String

The time of transaction.

virtualAccountRequestId

String

The ID of seller/business is provided by merchant.

virtualAccountId

String

The ID of virtual account.

accountName

String

The account name.

amount

Number

The amount of collection transaction.

note

String

Note.

serviceInformation

Object

Extra data includes "code", "groupId", "desc"

secureHash

String

(Base64)

Use SHA256 to hash the above parameters (sort the key by Alphabet order) + Secret Key (configured on Merchant Portal, in the Collection service menu)

Sample data

{
  "transId": "FT246560944209",
  "type": "TRANSACTION",
  "merchantCode": "UFLIYL",
  "transDate": "2023-10-10T07:06:37.436Z",
  "virtualAccountRequestId": "54f35db9-553b-4078-8271-7863162903c0",
  "virtualAccountId": "NEO0001675",
  "accountName": "HIEP HOANG H",
  "amount": 20000,
  "note": "NEO1696918592059",
  "serviceInformation": {
    "code": "GRAB",
    "desc": "testtttt",
    "groupId": "DRIVER"
  },
  "secureHash": "C1xcCaAApFOgXduU6vaRkWAuseEZVDWDM7cpQTwrf7I="
}

With the secretKey "123", the string used to create secureHash will be:

HIEP HOANG H20000UFLIYLNEO1696918592059GRABtestttttDRIVER2023-10-10T07:06:37.436ZFT246560944209TRANSACTIONNEO000167554f35db9-553b-4078-8271-7863162903c0123

Last updated