Skip to main content

Delete payment order

DELETE
URLhttps://open-api.tingee.vn/v1/direct-link/delete-transfer

Delete a disbursement payment order you created (Maker)

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 BIN. Currently only 970418 (BIDV) is supported. The API uses the BIDV authorization session of the Maker role.
actionTypestring✓Disbursement order type
- INTERNAL_TRANSFER: Domestic transfer
- SALARY: Salary payment
- BILL_PAYMENT: Bill / statement payment
idsarray✓List of transaction IDs to delete.
- INTERNAL_TRANSFER: the records[].transactionId values returned by Create payment order; every ID must be a transaction created through TINGEE — if any ID is not found, the whole request is rejected.
- SALARY / BILL_PAYMENT: the data.transactionId value (batch-level transaction ID).

Code samples​

curl --location --request DELETE 'https://open-api.tingee.vn/v1/direct-link/delete-transfer' \
--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": "970418",
"actionType": "INTERNAL_TRANSFER",
"ids": [
"PM0226061000074420"
]
}'

Sample Response​

{
"code": "00",
"message": "Success",
"data": {
"listIdSuccess": [
"PM0226061000074420"
]
}
}
FieldTypeDescription
codestringResult code (00 = Success).
messagestringResponse message.
dataobjectObject containing the deletion result.
data.listIdSuccessarrayTransaction IDs deleted successfully. IDs not in this list failed to delete.

Common error codes​

CodeDescriptionHow to handle
1111The list of transaction IDs to delete is emptyPass at least one transaction ID to delete.
1077The BIDV authorization session has expired or has not been grantedCall Get authorization URL (role = Maker) to re-authorize, then delete 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.