Skip to main content

Delete a dynamic QR code (Dynamic QR)

Use this API to delete or deactivate a dynamic QR code you have created. It is typically used when an order is cancelled or the customer changes payment method.

POST
URLhttps://open-api.tingee.vn/v1/delete-dynamic-qr

Deactivate a dynamic QR code. After deletion, customers can no longer pay with this QR code.

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)

Body Parameter​

FieldTypeRequiredDescription
merchantIdnumber✕Merchant ID
(Required if you connect with a Master Merchant account).
qrAccountstring✓QR account (data.qrAccount) returned by the Create dynamic QR API.
billIdstring✓Dynamic QR ID (data.billId) returned by the Create dynamic QR API.
note

Only dynamic QR codes from MB, BIDV and VietinBank can be deleted. If the QR code is no longer active (already paid, cancelled...), the API returns success but makes no changes.

Code samples​

curl --location --request POST 'https://open-api.tingee.vn/v1/delete-dynamic-qr' \
--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 '{
"qrAccount": "V1TQRD7F3A9C1B2E4",
"billId": "V1TQRD7F3A9C1B2E4"
}'

Sample Response​

{
"code": "00",
"message": "Success",
"data": null
}
FieldTypeDescription
codestringResult code (00 = Success).
messagestringResponse message.
datanullThe API returns no data.

Common error codes​

CodeDescriptionHow to handle
1076Dynamic QR not foundCheck the billId and qrAccount from the Create dynamic QR result.
1041This QR code's bank does not support deleting dynamic QR codes yetOnly dynamic QR codes from MB, BIDV and VietinBank can be deleted; for other banks, let the QR code expire on its own.
1095, 1096Master Merchant merchantId errorPass the merchantId of a sub-Merchant that belongs to the Master Merchant calling the API.
90, 91, 92, 97Request authentication error (timestamp, client-id, signature)See System error codes.
OthersOther errorsSee Error codes.