Skip to main content

Query transaction status

Use this API to query the status of a transaction.

Use it when you want to query and sync transaction details for customer accounts registered for the Direct Debit service.

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

Get the detailed status of a specific transaction by transactionId (the transaction ID on the TINGEE system).

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
transactionIdstring✓ID of the debit transaction on the TINGEE system (UUID), taken from the transactionId field of the Transaction history API.
subscriptionIdstring✓ID of the linked bank account (UUID).
tokenRefstring✓Reference code of the customer's account.

Code samples​

curl --location --request GET 'https://open-api.tingee.vn/v1/direct-debit/get-transaction-status?transactionId=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": {
"transactionId": "550760e0-1cc2-44b9-85ba-eb318e228b4f",
"subscriptionId": "89188e53-eba3-40fa-9323-04422ced3637",
"tokenRef": "TKN-12345678",
"bankBin": "970436",
"customer": {
"name": "NGUYEN VAN A",
"phone": "0974444479",
"email": "nguyenvana@example.com"
},
"accountNumber": "0123456789",
"accountName": "NGUYEN VAN A",
"code": "DD-20260113001",
"amount": "200000",
"currency": "VND",
"content": "THANH TOAN HOA DON DV HD123456",
"transactionDate": "2026-01-13T09:30:00.000Z",
"status": "success"
}
}
FieldTypeDescription
codestringResponse code (00 means success).
messagestringDetailed message.
data.transactionIdstringID of the debit transaction on TINGEE (the requestId you sent when calling Pay a bill).
data.subscriptionIdstringID of the linked bank account.
data.tokenRefstringReference code of the customer's account.
data.bankBinstringBank BIN.
data.customerobjectCustomer details: name (account holder name), phone (phone number), email (email, if any).
data.accountNumberstringLinked account number.
data.accountNamestringAccount holder name.
data.codestringTransaction code at the debit gateway (may be empty if the transaction has not been processed yet).
data.amountstringTransaction amount (VND).
data.currencystringCurrency (e.g. VND).
data.contentstringPayment description.
data.transactionDatestringTransaction time (ISO 8601).
data.statusstringTransaction status:
- success: Successful.
- failed: Not successful (includes failed, pending verification / processing, or refunded).

Common error codes​

CodeDescriptionHow to handle
1067Subscription not foundCheck that subscriptionId and tokenRef are correct and belong to the Merchant calling the API.
1118Debit transaction not foundCheck that transactionId belongs to the given subscriptionId / tokenRef.
90, 91, 92, 97Request authentication error (timestamp, client-id, signature)See System error codes.
OthersOther errorsSee Error codes.