Skip to main content

Reset a device

Use this API as a Master Merchant to send a factory-reset command to an active TingeeBox device under your management.

DELETE
URLhttps://open-api.tingee.vn/v1/device/reset

Send a command that resets a TingeeBox device to its initial state and removes its link to the merchant.

Header Request​

HeaderRequiredDescription
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​

ParameterTypeRequiredDescription
uuidstring✓UUID of the device to reset. The device must be assigned to the Master Merchant calling the API.

Code samples​

curl --location --request DELETE 'https://open-api.tingee.vn/v1/device/reset?uuid=DEVICE_UUID' \
--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": "DEVICE_UUID"
}
FieldTypeDescription
codestringResult code (00 = Success).
messagestringResponse message.
datastringUUID of the device that was reset.

Common error codes​

CodeDescriptionHow to handle
1129Device is not assigned to the Master MerchantCheck that the uuid is in the Master Merchant's device list (see Device list).
1028Device not foundCheck the uuid parameter in the query string.
1133Permission deniedThis API is for Master Merchant accounts only.
90, 91, 92, 97Request authentication error (timestamp, client-id, signature)See System error codes.
OthersOther errorsSee Error codes.