Skip to main content

Query transaction history

Use this API to query a customer's transaction history by time range or with pagination.

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

GET
URLhttps://open-api.tingee.vn/v1/direct-debit/get-paging-transactions

Get the list of completed payment transactions, with time filtering and pagination.

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
subscriptionIdstring✓ID of the linked bank account (UUID).
tokenRefstring✓Reference code of the customer's account.
startTimestring✕Start time (yyyy-MM-dd HH:mm:ss).
Default: 30 days before the API call. The system filters from the start of the startTime day.
endTimestring✕End time (yyyy-MM-dd HH:mm:ss).
Default: the time of the API call. The system filters up to the end of the endTime day.
The startTime – endTime range is at most 30 days.
skipCountnumber✕Number of transactions to skip (default: 0).
maxResultCountnumber✕Number of transactions to return (default: 10).

Code samples​

curl --location --request GET 'https://open-api.tingee.vn/v1/direct-debit/get-paging-transactions?subscriptionId=89188e53-eba3-40fa-9323-04422ced3637&tokenRef=TKN-12345678&startTime=2025-12-16%2012%3A20%3A49&endTime=2026-01-15%2012%3A20%3A49&skipCount=0&maxResultCount=10' \
--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": {
"totalCount": 1,
"items": [
{
"transactionId": "550760e0-1cc2-44b9-85ba-eb318e228b4f",
"code": "FT123372233",
"bankName": "VCB",
"bankBin": "970436",
"amount": "150000",
"content": "Thanh toan don hang #12345",
"accountNumber": "0123456789",
"transactionDate": "2026-01-15T05:20:49.000Z",
"subscriptionId": "89188e53-eba3-40fa-9323-04422ced3637",
"tokenRef": "TKN-12345678",
"status": "success",
"additionalData": {
"billNumber": "HD123456"
}
}
]
}
}
FieldTypeDescription
codestringResponse code (00 means success).
messagestringDetailed message.
data.totalCountnumberTotal number of transactions found.
data.itemsarrayList of successful transactions, sorted by transactionDate in descending order.
data.items[].transactionIdstringID of the debit transaction on TINGEE (the requestId you sent when calling Pay a bill).
data.items[].codestringTransaction code at the debit gateway.
data.items[].bankNamestringBank code (e.g. VCB).
data.items[].bankBinstringBank BIN.
data.items[].amountstringTransaction amount (VND).
data.items[].contentstringPayment description.
data.items[].accountNumberstringDebited account number.
data.items[].transactionDatestringTransaction time (ISO 8601).
data.items[].subscriptionIdstringID of the linked bank account.
data.items[].tokenRefstringReference code of the customer's account.
data.items[].statusstringTransaction status (the API only returns success transactions).
data.items[].additionalDataobjectAdditional data you sent when calling Pay a bill.

Common error codes​

CodeDescriptionHow to handle
1126The query time range is too large (more than 30 days)Keep startTime – endTime within 30 days; split the range and make several calls if needed.
90, 91, 92, 97Request authentication error (timestamp, client-id, signature)See System error codes.
OthersOther errorsSee Error codes.