Skip to main content

Query account status

Use this API to query the link status of an account.

Use it when you want to query the status of registered customer accounts and sync it with the data on Tingee.

GET
URLhttps://open-api.tingee.vn/v1/direct-debit/get-subscription-status

Get the details and current status (active/inactive) of a linked account.

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)

Query Parameter​

FieldTypeRequiredDescription
requestIdstring~ID of the request used when registering (UUID).
Send requestId, or the subscriptionId + tokenRef pair.
subscriptionIdstring~ID of the linked bank account (UUID).
Required when requestId is not sent.
tokenRefstring~Reference code of the customer's account.
Required when requestId is not sent.

Code samples​

curl --location --request GET 'https://open-api.tingee.vn/v1/direct-debit/get-subscription-status?requestId=550760e0-1cc2-44b9-85ba-eb318e228b4f&subscriptionId=89188e53-eba3-40fa-9323-04422ced3637&tokenRef=TKN-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": {
"tokenRef": "TKN-12345678",
"bankName": "VCB",
"bankBin": "970436",
"accountName": "NGUYEN VAN A",
"accountNumber": "0123456789",
"phone": "0974444479",
"email": "nguyenvana@example.com",
"confirmPaymentByEmail": true,
"confirmEmail": "nguyenvana@example.com",
"confirmPaymentByZalo": false,
"confirmPhoneNumber": null,
"customerKey": null,
"status": "active",
"lastModificationTime": "2026-01-15T05:20:49.000Z",
"lastModifierUserId": null
}
}
FieldTypeDescription
codestringResponse code (00 means success).
messagestringDetailed message.
data.tokenRefstringReference code of the customer's account.
data.bankNamestringBank code of the linked account (e.g. VCB).
data.bankBinstringBank BIN.
data.accountNamestringAccount holder name.
data.accountNumberstringLinked account number.
data.phonestringRegistered phone number.
data.emailstringCustomer's email (if any).
data.confirmPaymentByEmailbooleantrue if the customer requires payment confirmation by Email.
data.confirmEmailstringEmail that receives payment confirmation requests.
data.confirmPaymentByZalobooleantrue if the customer requires payment confirmation via Zalo.
data.confirmPhoneNumberstringPhone number that receives payment confirmation requests via Zalo.
data.customerKeystringCustomer identifier key on TINGEE (if any).
data.statusstringLink status: active (active), inactive (inactive).
data.lastModificationTimestringLast update time (ISO 8601).
data.lastModifierUserIdnumberID of the user who last updated it (if any).

Common error codes​

CodeDescriptionHow to handle
1067Subscription not foundCheck the requestId used when registering, or the subscriptionId + tokenRef pair.
90, 91, 92, 97Request authentication error (timestamp, client-id, signature)See System error codes.
OthersOther errorsSee Error codes.