Skip to main content

Register for balance notifications (VA Notify)

Use this API to register for balance notifications for a virtual account (VA), especially with banks that require a separate webhook registration step, such as ACB. Once registration succeeds, Tingee sends a callback every time a transaction occurs on the VA.

POST
URLhttps://open-api.tingee.vn/v1/register-notify

Start a balance notification registration request. For some banks, the result includes a confirmId for the next verification step.

Header Request​

HeaderRequiredDescription
Content-Type✓application/json
x-client-id✓Partner identifier issued by TINGEE.
x-signature✓HMAC SHA512 authentication signature. See How to generate the signature.
x-request-timestamp✓Time the request is sent (format: yyyyMMddHHmmssSSS, UTC+7)

Body Parameter​

FieldTypeRequiredDescription
merchantIdnumber✕Merchant ID
(required if you connect with a Master Merchant account).
vaAccountNumberstring✓Virtual account number to receive notifications for (must belong to the Merchant calling the API).
bankBinstring✓Bank BIN. Currently only ACB (970416) is supported.

Code samples​

curl --location --request POST 'https://open-api.tingee.vn/v1/register-notify' \
--header 'accept: application/json' \
--header 'x-client-id: YOUR_CLIENT_ID' \
--header 'x-request-timestamp: 20240509154004003' \
--header 'x-signature: YOUR_SIGNATURE' \
--header 'Content-Type: application/json' \
--data '{
"vaAccountNumber": "V1T199988811",
"bankBin": "970416"
}'

Sample Response​

{
"code": "00",
"message": "Success",
"data": {
"confirmId": "72496bf2-ba25-4397-bd38-b9c04baedfd7"
}
}
FieldTypeDescription
codestringResult code (00 = success).
messagestringResponse message.
data.confirmIdstringConfirmation ID for the Confirm balance notification registration API, valid for 4 minutes.

Common error codes​

CodeDescriptionHow to handle
1047Virtual account number not foundCheck that vaAccountNumber and bankBin were created successfully.
1059The bank does not support this operationThis API only applies to ACB.
90, 91, 92, 97Request authentication error (timestamp, client-id, signature)See System error codes.
OthersOther errorsSee Error codes.