Skip to main content

Payment account details

GET
URLhttps://open-api.tingee.vn/v1/direct-link/account-statement/payment-account-detail

Query the information and balance of a payment account (BIDV, VietinBank)

Header Request​

HeaderRequiredDescription
Content-Type✓application/json
x-client-id✓Partner identifier issued by TINGEE.
x-signature✓HMAC SHA512 authentication signature.
x-request-timestamp✓Time the request is sent (format: yyyyMMddHHmmssSSS, UTC+7)

Query Parameters​

FieldTypeRequiredDescription
bankBinstring✓Bank BIN. Supports 970418 (BIDV) and 970415 (VietinBank).
rolestring~User role: Maker or Checker (uses the BIDV authorization session of that role).
Required for BIDV.
accountNumberstring✓Payment account number to query.

Code samples​

curl --location --request GET 'https://open-api.tingee.vn/v1/direct-link/account-statement/payment-account-detail?bankBin=970418&role=Maker&accountNumber=1234567890' \
--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": {
"accountNumber": "1234567890",
"accountName": "NGUYEN VAN A",
"status": "ACTIVE",
"currency": "VND",
"branchName": "CN Hà Nội",
"availableBalance": 10000000,
"balance": 10050000
}
}
FieldTypeDescription
codestringResult code (00 = Success).
messagestringResponse message.
data.accountNumberstringAccount number.
data.accountNamestringAccount holder name.
VietinBank: always an empty string.
data.statusstringAccount status (raw value returned by BIDV; TINGEE does not normalize it).
VietinBank: not returned.
data.currencystringCurrency code (VietinBank: defaults to VND if the bank does not return it).
data.branchNamestringBranch name.
VietinBank: not returned.
data.availableBalancenumberAvailable balance.
data.balancenumberBalance.
VietinBank: equal to availableBalance.

Common error codes​

CodeDescriptionHow to handle
1077The BIDV authorization session for the role has expired or has not been grantedCall Get the authorization URL with the correct role to re-authorize, then call again.
1021The bank is not supported for this APICheck bankBin; only BIDV and VietinBank are supported.
90, 91, 92, 97Request authentication error (timestamp, client-id, signature)See System error codes.
OthersOther errorsSee Error codes.