Delete QR code

https://api.sciener.com/v3/qrCode/delete

Deleting a QR code from the cloud will render the QR code link unusable, and you will no longer be able to retrieve or refresh the QR code data. However, previously displayed QR codes will remain valid for 10 minutes.

Locks that support custom QR code feature values can delete cloud-generated QR codes via the app's Bluetooth or a gateway.

When deleteType=0, the QR code is deleted using the cloud method. In this case, the QR code is only deleted from the cloud; the link will be unusable, and you will no longer be able to retrieve or refresh the QR code data.

When deleteType=1, you need to first use the app SDK to delete the QR code from the lock via Bluetooth, and then call this interface.

When deleteType=2, calling this interface will directly delete the QR code from the lock via the gateway.

1 Request example

POST, ContentType:application/x-www-form-urlencoded

2 Request parameters

NameTypeRequiredDescription
clientIdStringYclient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
lockIdIntYLock ID, generated by Lock init
qrCodeIdIntYQR code ID, generated by Add QR code
deleteTypeIntYDeletion methods:
1- Delete via APP Bluetooth. You must delete via APP Bluetooth first before calling this interface.
2- Delete remotely via gateway or WiFi lock. If it is a WiFi lock or connected to a gateway, you can send to 2 and directly call this interface to delete from the lock.
0- Cloud method. If left blank, the default is 0, which deletes from the cloud.
dateLongYCurrent time (timestamp in millisecond)

3 Response and example

ParameterTypeDescription
errcodeIntError code
errmsgStringError message
descriptionStringError description