Skip to main content

Delete a bank configuration

Use this API to delete a bank connection configuration that has been set up for a Merchant.

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

Delete a Merchant's bank integration configuration for the specified bank.

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
idnumber✓ID of the configuration record to delete (positive integer), from the Get configuration list API.
merchantIdnumber✕Merchant ID
(Required if you connect with a Master Merchant account).
otpNumberstring✕Confirmation OTP sent by the bank.
For ACB: pass it together with confirmId to confirm the configuration cancellation at the bank.
confirmIdstring✕Confirmation code received from the [ACB] Delete business account configuration API.
For ACB: pass it together with otpNumber.

Code samples​

curl --location --request POST 'https://open-api.tingee.vn/v1/merchant/delete-config' \
--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 '{
"id": 1
}'

Sample Response​

{
"code": "00",
"message": "Success",
"data": 1
}
FieldTypeDescription
codestringResult code (00 = Success).
messagestringResponse message.
datanumberID of the deleted configuration.

Common error codes​

CodeDescriptionHow to handle
1013Configuration does not existCheck that the configuration id (from Configuration list) belongs to the right Merchant and has not been deleted.
1065OTP has expiredA confirmId is only valid for about 4 minutes; call Delete business account configuration again to get a new confirmId.
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.