Skip to content

Unbind Device Using PK, DK

Interface Address:/v2/binding/enduserapi/unbundlingDeviceDk

Request Method:DELETE

Request Data Type:application/x-www-form-urlencoded

Response Data Type:*/*

Interface Description:Unbind device using PK, DK

Request Parameters:

Parameter NameParameter DescriptionRequest TypeRequiredData Typeschema
dkDevice Keyquerytruestring
pkProduct Keyquerytruestring
isInitWhether to initialize, default falsequeryfalseboolean
pureBtResetCredentialsPure Bluetooth device reset credentials
Algorithm: BASE64_ENCODE(AES_128_CBC(PKCS5Padding(PK,DK,bindingSecret), key=PS, iv=random) ), PKCS5Padding content includes English comma ","
queryfalsestring
randomRandom used to decrypt reset credentialsqueryfalsestring

Response Status:

Status CodeDescriptionschema
200Device unbound successfullyRegistration code response data«UnbindRespDto»
5032Token verification failed
5050Device unbinding failed
5052Device not bound
5066Please enter Product Key
5067Please enter Device Key
5106Please enter token

Response Parameters:

Parameter NameParameter DescriptionTypeschema
codeResponse status codeinteger(int32)integer(int32)
dataResponse dataUnbindRespDtoUnbindRespDto
  bindingSumNumber of binding users of the device in the cloud after unbinding, including pseudo-bindinginteger(int32)
extMsgExtended messagestring
msgResponse messagestring

Response Example:

javascript
{
	"code": 0,
	"data": {
		"bindingSum": 0
	},
	"extMsg": "",
	"msg": ""
}