Skip to main content

[ACB] Configure a business account

Note

This API applies to ACB only.

Use this API to link an ACB business bank account to a Merchant. Once the configuration succeeds, the system returns a confirmId for use in the confirmation step.

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

Link a business bank account and generate a confirmation code (confirmId) to complete the configuration.

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).
vaPrefixstring✕Virtual Account prefix.
accountNamestring✓Bank account holder name.
accountNumberstring✓Business bank account number.
mobilestring✓Phone number registered with the bank account.
acbUserIdstring✓User ID in the bank's system (issued by the bank).

Code samples​

curl --location --request POST 'https://open-api.tingee.vn/v1/merchant/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",
"vaPrefix": "TINGEE",
"accountName": "CONG TY TNHH ABC",
"accountNumber": "1234567890",
"mobile": "0901234567",
"acbUserId": "ACB_USER_001"
}'

Sample Response​

{
"code": "00",
"message": "Success",
"data": {
"confirmId": "CONFIRM_ABC123"
}
}
FieldTypeDescription
codestringResult code (00 = Success).
messagestringResponse message.
data.confirmIdstringConfirmation code used to complete the account configuration.
Pass this confirmId to the Account configuration API to complete the confirmation.

Common error codes​

CodeDescriptionHow to handle
1006Invalid information (returned by ACB)Check that the phone number, account number, vaPrefix and acbUserId match the information registered with ACB, then resend.
1057Account information not found (returned by ACB)Confirm that the business account number exists at ACB and matches the registered acbUserId / phone number.
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.