Skip to main content

Query the posting result of a disbursement order

POST
URLhttps://open-api.tingee.vn/v1/direct-link/transaction-inquiry

Query the processing status of disbursement transactions in the automatic disbursement flow (VietinBank, BaoKim).

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)

Body Parameter​

FieldTypeRequiredDescription
bankBinstring✓Bank / e-wallet BIN. Pass 970415 (VietinBank) or BAOKIM (BaoKim).
inquiryTypestring~Inquiry type, required for BaoKim:
- TRANSFER_DETAIL: Query a single transaction by transactionId
- BATCH_DETAIL: Query the transactions of a payment order by batchId (supports filtering and pagination)
VietinBank does not use this field.
batchIdstring~Batch ID / payment order ID (the data.batchId value returned by the Create a disbursement order API).
Required for VietinBank, and for BaoKim when inquiryType = BATCH_DETAIL.
transactionIdstring~Transaction ID — the requestId the partner sent when creating the order.
Required for BaoKim when inquiryType = TRANSFER_DETAIL.
skipCountnumber✕Number of records to skip (default: 0).
Only applies to BaoKim BATCH_DETAIL.
maxResultCountnumber✕Maximum number of records returned per page (default: 10).
Only applies to BaoKim BATCH_DETAIL.
startDatestring✕Start of the transaction time filter (format yyyyMMddHHmmss). Must be sent together with endDate.
Only applies to BaoKim BATCH_DETAIL.
endDatestring✕End of the transaction time filter (format yyyyMMddHHmmss). Must be sent together with startDate.
Only applies to BaoKim BATCH_DETAIL.
statusstring✕Filter by processing status: SUCCESS, PENDING, FAILED.
Only applies to BaoKim BATCH_DETAIL.
debitAccountNumberstring✕Filter by debit wallet ID.
Only applies to BaoKim BATCH_DETAIL.
creditAccountNumberstring✕Filter by beneficiary account number / card number / wallet number.
Only applies to BaoKim BATCH_DETAIL.

Note (VietinBank): Single payment orders are processed by the bank as soon as they are created (no batchId), so this API is used to look up the results of batch payment orders.

Code samples​

curl --location --request POST 'https://open-api.tingee.vn/v1/direct-link/transaction-inquiry' \
--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": "970415",
"batchId": "7CB875795D6B2F3374D3B489B09CAA92"
}'

Sample Response​

{
"code": "00",
"message": "Success",
"data": {
"totalRecords": 2,
"batchId": "7CB875795D6B2F3374D3B489B09CAA92",
"records": [
{
"requestId": "TRANS_0611_A01",
"status": "PENDING",
"statusDesc": "Giao dich Pending cho hach toan",
"transactionId": null,
"feeAmount": null,
"feeVAT": null,
"currencyCode": "VND"
},
{
"requestId": "TRANS_0611_A02",
"status": "PENDING",
"statusDesc": "Giao dich Pending cho hach toan",
"transactionId": null,
"feeAmount": null,
"feeVAT": null,
"currencyCode": "VND"
}
]
}
}

Response data structure (VietinBank)​

FieldTypeDescription
totalRecordsnumberTotal number of transactions in the batch.
batchIdstringThe batch ID queried.
recordsarrayList of results for each transaction in the batch.
records[].requestIdstringTransaction reference sent in the request.
records[].statusstringTransaction status: SUCCESS, PENDING, FAILED.
records[].statusDescstringDetailed status description from the bank.
records[].transactionIdstringTransaction ID in the bank's system (null if not yet posted).
records[].feeAmountnumberTransaction fee amount.
records[].feeVATnumberVAT amount on the transaction fee.
records[].currencyCodestringCurrency.

Response data structure (BaoKim)​

FieldTypeDescription
totalnumberTotal number of transactions matching the filters (always 1 for TRANSFER_DETAIL).
itemsarrayList of transactions.
items[].transactionIdstringTransaction ID (equal to the requestId the partner sent when creating the order).
items[].statusstringTransaction status: SUCCESS, PENDING, FAILED.
items[].amountnumberTransaction amount.
items[].creditAccountNumberstringRecipient account number / card number / wallet number.
items[].creditAccountNamestringRecipient name (null if not provided when creating the order).
items[].transactionTypestringTransaction type (e.g. fast-out, withdrawal).
items[].errorobjectError information (only present when the transaction failed), containing code (error code) and message (error description).

Common error codes​

CodeDescriptionHow to handle
1021The bank is not supported for this APICheck bankBin; the automatic disbursement flow supports VietinBank (970415) and BAOKIM.
90, 91, 92, 97Request authentication error (timestamp, client-id, signature)See System error codes.
OthersOther errorsSee Error codes.