Unassign Device To User Account

WCF


Method
public AuthServerResponse UnassignDevice(string authServerPartnerLoginName, 
                 string authServerPartnerLoginPassword, 
                 string authServerPartnerUserLoginName, 
                 string printedSerialNumber)
             
WCF parameterdata typedescription
authServerPartnerLoginNamestringSurePassID account login name
authServerPartnerLoginPasswordstringSurePassID account login key
authServerPartnerUserLoginNamestringUser account name
printedSerialNumberstringSerial number of the device
Sample WCF C# Method
AuthServerResponse  resp = UnassignDevice("accountLogin",             
            "accountKey", 
            "Mandy", 
            "OATH_1234567");         
Sample WCF C# Repsonse
 if (resp.ErrorCode != 0)  {      
       message.Text = resp.ErrorMsg;
       return false;
 }


REST


REST parameterdata typedescription
spAccountLoginNamestringSurePassID account login name
spAccountLoginKeystringSurePassID account login key
usernamestringuser account login name
typestringunassign_device
psnstringSerial number of the device
Sample REST/Json Method
 {  
  "username": "Mandy",
  "spAccountLoginName": "accountLogin",
  "spAccountLoginKey": "accountKey",
  "type": "unassign_device",
  "psn": "OATH_1234567"
 }
Sample REST/Json Response
 {
  "errorCode": 0,
  "errorMessage": "OK",
  "type": "unassign_device"
}