Skip to main content

Delete a virtual account (VA)

Use this API to delete a previously created virtual account (VA). It is typically used when a Merchant wants to cancel VAs that are no longer in use.

POST
URLhttps://open-api.tingee.vn/v1/delete-va

Send a VA deletion request. The bankBin and vaAccountNumber parameters are passed as Query Parameters.

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)

Query Parameter​

FieldTypeRequiredDescription
merchantIdnumber✕Merchant ID
(required if you connect with a Master Merchant account).
bankBinstring✓Bank BIN. See Supported banks.
vaAccountNumberstring✓Virtual account number to delete.

Code samples​

curl --location --request POST 'https://open-api.tingee.vn/v1/delete-va?bankBin=970422&vaAccountNumber=VQRs23GG4' \
--header 'accept: application/json' \
--header 'x-client-id: YOUR_CLIENT_ID' \
--header 'x-request-timestamp: 20240509154004003' \
--header 'x-signature: YOUR_SIGNATURE'

Sample Response​

{
"code": "00",
"message": "Success",
"data": {
"confirmId": "DEL_CONFIRM_123456"
}
}
FieldTypeDescription
codestringResult code (00 = success).
messagestringResponse message.
data.confirmIdstringConfirmation ID to use with the Confirm account number deletion API.
Only returned when the bank requires OTP verification to cancel (ACB, OCB, PGBank, VietinBank, Sacombank, VIB).
data.authorizeLinkstringTPBank BIZ web login link where the customer verifies the unlinking
(only for TPBank business / household business accounts; the result is sent via webhook).
note

If the bank does not require a confirmation step, the account is deleted immediately and data is an empty object ({}).


Common error codes​

CodeDescriptionHow to handle
1010Account number not foundCheck the VA number, bankBin and transactionType.
1013Business account not configuredCheck the Business account configuration.
1086Bảo Kim not configuredContact TINGEE to check the Bảo Kim wallet configuration.
90, 91, 92, 97Request authentication error (timestamp, client-id, signature)See System error codes.
OthersOther errorsSee Error codes.