Webhook

Event data

Parameter
Data Type
Description

payoutRequestId

String

Payout/Remitout request id

type

String

Webhook type: Default value "PAYOUT"

status

String

Payout/Remitout request status, Include: PENDING: Payout request is waiting for approval. APPROVED: Payout request was approved. REJECTED: Payout request was rejected.

bankSwiftCode

String

Payout/Remitout bank swift code.

bankAccountNumber

String

Payout/Remitout bank acount number.

bankAccountName

String

Payout/Remitout bank acount name.

amount

Number

Amount of payout/remitout request in VND

currency

Number

(Optional) Remitout request currency

remitedAmount

Number

(Optional) Amount of remitout request in currency

collectionTransactions

Array Object

(Optional) List of Collection transactions envolved to payout/remitout request. Object data:

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```javascript

{
  "payoutRequestId": "CASHOUT-443826686072",
  "type": "PAYOUT",
  "status": "PENDING",
  "bankSwiftCode": "SCBLSG22XXX",
  "bankAccountNumber": "0107201111",
  "bankAccountName": "STANDARD CHARTERED BANK TEST ACCOUNT",
  "amount": 150000,
  "currency": "USD",
  "destinationAmount": 5.91,
  "fxRate": 25380.71,
  "collectionTransactions": [{
    "virtualAccountId": "96988900021615",
    "reconcileCode": "TH-13122024-SUMTIN",
    "transId": "FT24323L4AAA",
    "amount": 100000,
    "transDate": "2024-12-12T02:47:05.409Z"
  }, {
    "virtualAccountId": "96988900021615",
    "reconcileCode": "TH-13122024-SUMTIN",
    "transId": "FT24323L4ZZZ",
    "amount": 50000,
    "transDate": "2024-12-09T02:47:05.409Z"
  }],
  "secureHash": "I/M2Y6rsb1x+hImL1fEBr4WHQpk6OJ8jUN4X2F3OM4Q="
}

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

150000STANDARD CHARTERED BANK TEST ACCOUNT0107201111SCBLSG22XXX100000TH-13122024-SUMTIN2024-12-12T02:47:05.409ZFT24323L4AAA9698890002161550000TH-13122024-SUMTIN2024-12-09T02:47:05.409ZFT24323L4ZZZ96988900021615USD5.9125380.71CASHOUT-443826686072PENDINGPAYOUTSUMTING

Last updated