Skip to main content

[ACB] Delete a business account configuration

Note

This API applies to ACB only.

Use this API to delete an ACB business account configuration for a Merchant. Once the cancellation request is registered, the system returns a confirmId for use in the confirmation step.

POST
URLhttps://open-api.tingee.vn/v1/merchant/delete-config-account-business

Delete an ACB business account configuration for a Merchant.

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).
bankBinstring~Bank BIN; pass 970416 (ACB). Required if you do not pass bankName.
bankNamestring~Bank code; pass ACB. Required if you do not pass bankBin.
accountTypestring✓Account type of the configuration to delete: business-account or business-household-account.
configRemoveobject✓Details of the ACB account to remove from the configuration (accountNumber, accountName, vaPrefix, mobile, acbUserId).
The system identifies the configuration to delete by accountType and configRemove.vaPrefix, so configRemove.vaPrefix is required.

Code samples​

curl --location --request POST 'https://open-api.tingee.vn/v1/merchant/delete-config-account-business' \
--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 '{
"bankBin": "970416",
"accountType": "business-account",
"configRemove": {
"accountNumber": "1234567890",
"accountName": "CONG TY TNHH ABC",
"vaPrefix": "TINGEE",
"mobile": "0901234567",
"acbUserId": "ACB_USER_001"
}
}'

Sample Response​

When the bank requires OTP confirmation:

{
"code": "00",
"message": "Success",
"data": {
"confirmId": "CONFIRM_ABC123"
}
}

When the bank does not require confirmation:

{
"code": "00",
"message": "Success",
"data": true
}
FieldTypeDescription
codestringResult code (00 = Success).
messagestringResponse message.
dataobject | booleanAn object containing confirmId when the bank requires OTP confirmation, or true when the bank does not require confirmation.
data.confirmIdstringConfirmation code used to complete the configuration cancellation (valid for 4 minutes).
Pass this confirmId together with otpNumber to the Delete configuration API to complete the confirmation.

Common error codes​

CodeDescriptionHow to handle
1013Configuration does not existCheck that accountType and configRemove.vaPrefix match an existing configuration (see Configuration list).
1059The bank does not support this feature yetThis API currently supports ACB only (bankBin = 970416).
1006Invalid information (returned by ACB)Check the configuration details (vaPrefix, account) with ACB and try again.
1057Account information not found (returned by ACB)Confirm that the business account still exists at ACB; contact TINGEE if the error persists.
1095, 1096Master Merchant merchantId errorPass the merchantId of a sub-Merchant that belongs to the Master Merchant calling the API.
90, 91, 92, 97Request authentication error (timestamp, client-id, signature)See System error codes.
OthersOther errorsSee Error codes.