Webhook

Event data

Parameter
Data Type
Description

refundRequestId

String

Refund/Remitout request id

type

String

Webhook type: Default value "REFUND"

collectionTransId

String

Collection's TransactionId of current refund request

status

String

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

bankSwiftCode

String

Refund/Remitout bank swift code.

bankAccountNumber

String

Refund to bank acount number

bankAccountName

String

Refund to bank acount name.

amount

Number

Amount of refund request in VND

note

String

Note for refund request

secureHash

String

(Base64)

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

Sample data

{
  "requestId": "REFUND-443826686072",
  "type": "REFUND",
  "collectionTransId": "FT24323L4AAA",
  "amount": "150000",
  "bankSwiftCode": "SCBLSG22XXX",
  "bankAccountNumber": "0107201111",
  "bankAccountName": "STANDARD CHARTERED BANK TEST ACCOUNT",
  "status": "PENDING",
  "note": "Waiting for approval",
  "secureHash": "1CBpykYjBbeMKj7qQwEsuXH7Ekj8g726/BMNcLN5eIs="
}

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

150000STANDARD CHARTERED BANK TEST ACCOUNT0107201111SCBLSG22XXXFT24323L4AAAWaiting for approvalREFUND-443826686072PENDINGREFUNDSUMTING

Last updated

Was this helpful?