Skip to main content

Cancel debit notification registration

Use this API to cancel a debit transaction notification registration created with the Register for debit notifications API. If the account is also registered for credit notifications, the credit registration is kept.

Process​

  1. Call this API to send the cancellation request. ACB sends an OTP to the account holder's phone number, and the result returns a confirmId.
  2. Call the Confirm account deletion API with the confirmId and otpNumber to complete it. The confirmId is valid for 4 minutes.
DELETE
URLhttps://open-api.tingee.vn/v1/delete-debit

Start a request to cancel debit notifications on an ACB account. The result returns a confirmId used for the OTP confirmation step.

Header Request​

HeaderRequiredDescription
x-client-id✓Partner identifier issued by TINGEE.
x-signature✓HMAC SHA512 authentication signature. The request has no body, so the string to sign is {x-request-timestamp}:{}. See How to generate the signature.
x-request-timestamp✓Time the request is sent (format: yyyyMMddHHmmssSSS, UTC+7)

Query Parameters​

FieldTypeRequiredDescription
bankBinstring✓Always 970416 (ACB).
vaAccountNumberstring✓ACB account number registered for debit notifications.
merchantIdnumber~Merchant ID
(required if you connect with a Master Merchant account).

Code samples​

curl --location --request DELETE 'https://open-api.tingee.vn/v1/delete-debit?bankBin=970416&vaAccountNumber=12345678' \
--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": "7f4c1e9a-2d3b-4c8e-b1a0-5e6f7a8b9c0d"
}
}
FieldTypeDescription
codestringResult code (00 = success).
messagestringResponse message.
data.confirmIdstringConfirmation ID, used to call the Confirm account deletion API within 4 minutes.

Common error codes​

CodeDescriptionHow to handle
1010Account number not foundThe account is not registered for debit notifications, or vaAccountNumber is wrong.
1095, 1096Master Merchant merchantId errorPass a merchantId that belongs to the Master Merchant calling the API.
400Invalid data or error from ACBmessage describes the error in detail.
90, 91, 92, 97Request authentication error (timestamp, client-id, signature)See System error codes.
OthersOther errorsSee Error codes.