Skip to main content

Export transaction results to Excel

GET
URLhttps://open-api.tingee.vn/v1/direct-link/batch-result-download

Download the batch processing result file

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
batchIdstring✓Transaction batch ID — the data.batchId value returned by the Create payment order API when you create an INTERNAL_TRANSFER batch order.
bankBinstring✓Bank BIN. Currently only 970418 (BIDV) is supported. The API uses the BIDV authorization session of the Maker role.

Code samples​

curl --location --request GET 'https://open-api.tingee.vn/v1/direct-link/batch-result-download?batchId=YOUR_BATCH_ID&bankBin=970418' \
--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": {
"url": "https://storage.tingee.vn/downloads/batch_result_123.xlsx",
"name": "batch_result_123.xlsx"
}
}
FieldTypeDescription
codestringResult code (00 = Success).
messagestringResponse message.
dataobjectResult file information.
data.urlstringDownload URL of the Excel batch processing result file (provided by BIDV).
data.namestringFile name.

Common error codes​

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