Synchronous request to unclaim a single device from a customer.
Method signature
public void unclaimDevice(UnclaimDeviceRequest request) throws CommonException;
UnclaimDeviceRequest
Property name | Value | Required | Description |
---|---|---|---|
unclaim |
object(DeviceUnclaim) |
Yes | The device unclaim to be processed. |
DeviceUnclaim
You must specify deviceId
or deviceIdentifier
.
Property name | Value | Required | Description |
---|---|---|---|
deviceId |
string |
No | The device ID. |
deviceIdentifier |
object( DeviceIdentifier ) |
No | The device identifier. |
vendorParams |
map |
No | Extra fields, vendor specified key-value pair. |
Error behavior
If an error occurs, the library throws a CommonException
containing one of the
following error codes:
Error code |
---|
AUTHORIZATION_FAIL |
INVALID_DEVICE_IMEI |
INVALID_DEVICE_MEID |
INVALID_DEVICE_SERIAL |
INVALID_IDENTIFIER_SET |
NOT_IMPLEMENTED |