DeviceStatusChange
This XML API is used to change the status of Device in the inventory
Sample Request XML
<?xml version="1.0" encoding="utf-8"?> <VCAREOSSAPI xmlns="http://www.oss.vcarecorporation.com/oss" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <CREDENTIALS> <VENDORID></VENDORID> <USERNAME></USERNAME> <PASSWORD></PASSWORD> <PIN></PIN> <REFERENCENUMBER></REFERENCENUMBER> </CREDENTIALS> <VCAREOSS> <DEVICESTATUSCHANGE> <DEVICEID></DEVICEID> <AGENTACCOUNT></AGENTACCOUNT> <STATUS></STATUS> <AGENTID></AGENTID> <AGENTPASSWORD></AGENTPASSWORD> <SOURCE></SOURCE> </DEVICESTATUSCHANGE> </VCAREOSS> </VCAREOSSAPI>
List of status code, description and resolution. | ||
---|---|---|
Status Code | Description | How to Resolve? |
00 | SUCCESS | SUCCESS |
01 | Error Received from Carrier. | Please try again with valid data. |
13 | Password is invalid. | Provide a valid Password. |
16 | Vendor not found. Wrong credentials. | Please enter valid vendor credentials. |
206 | Device ID cannot be blank. | Please provide valid value as Device ID cannot be blank. |
348 | Device ID must be greater than 8 and less than 26 characters. | Please provide a valid Device ID and it must be greater than 8 and less than 26 characters. |
356 | Agent ID cannot be blank. | Please provide Agent ID as it cannot be blank. |
411 | Device ID is not available in our system. | This Device ID is not available in system. |
457 | Invalid Source. | Please provide a valid Source. Given value is invalid for Source. |
585 | Device status should be FREE, USED, BAD, REMOVED. | Choose anyone among FREE or USED or BAD or REMOVED for Device Status. |
586 | Device status required. | Provide a Device status. Device status is mandatory. |
Sample Response
<?xml version="1.0" encoding="utf-8"?> <VcareOssApi xmlns="http://www.oss.vcarecorporation.com/oss" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <credentials> <vendorId>Vcarecorporation</vendorId> <referenceNumber>1111111111</referenceNumber> </credentials> <DeviceStatusChange> <statusCode>00</statusCode> <description>SUCCESS</description> <errorDescription>SUCCESS</errorDescription> </DeviceStatusChange> </VcareOssApi>
SUCCESS
Sample Fail Response: 1
<?xml version="1.0" encoding="utf-8"?> <VcareOssApi xmlns="http://www.oss.vcarecorporation.com/oss" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <credentials> <vendorId>Vcarecorporation</vendorId> <referenceNumber>11111</referenceNumber> </credentials> <DeviceStatusChange> <statusCode>01</statusCode> <description>FAIL</description> <errorDescription>Error Received from Carrier.</errorDescription> </DeviceStatusChange> </VcareOssApi>
Error Description: Error Received from Carrier.
How to Resolve?: Please try again with valid data.
Sample Fail Response: 2
<?xml version="1.0" encoding="utf-8"?> <VcareOssApi xmlns="http://www.oss.vcarecorporation.com/oss" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <credentials> <vendorId>Vcarecorporation</vendorId> <referenceNumber>11111</referenceNumber> </credentials> <DeviceStatusChange> <statusCode>13</statusCode> <description>FAIL</description> <errorDescription>Password is invalid.</errorDescription> </DeviceStatusChange> </VcareOssApi>
Error Description: Password is invalid.
How to Resolve?: Provide a valid Password.
Sample Fail Response: 3
<?xml version="1.0" encoding="utf-8"?> <VcareOssApi xmlns="http://www.oss.vcarecorporation.com/oss" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <credentials> <vendorId>Vcarecorporation</vendorId> <referenceNumber>11111</referenceNumber> </credentials> <DeviceStatusChange> <statusCode>16</statusCode> <description>FAIL</description> <errorDescription>Vendor not found. Wrong credentials.</errorDescription> </DeviceStatusChange> </VcareOssApi>
Error Description: Vendor not found. Wrong credentials.
How to Resolve?: Please enter valid vendor credentials.
Sample Fail Response: 4
<?xml version="1.0" encoding="utf-8"?> <VcareOssApi xmlns="http://www.oss.vcarecorporation.com/oss" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <credentials> <vendorId>Vcarecorporation</vendorId> <referenceNumber>11111</referenceNumber> </credentials> <DeviceStatusChange> <statusCode>206</statusCode> <description>FAIL</description> <errorDescription>Device ID cannot be blank.</errorDescription> </DeviceStatusChange> </VcareOssApi>
Error Description: Device ID cannot be blank.
How to Resolve?: Please provide valid value as Device ID cannot be blank.
Sample Fail Response: 5
<?xml version="1.0" encoding="utf-8"?> <VcareOssApi xmlns="http://www.oss.vcarecorporation.com/oss" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <credentials> <vendorId>Vcarecorporation</vendorId> <referenceNumber>11111</referenceNumber> </credentials> <DeviceStatusChange> <statusCode>348</statusCode> <description>FAIL</description> <errorDescription>Device ID must be greater than 8 and less than 26 characters.</errorDescription> </DeviceStatusChange> </VcareOssApi>
Error Description: Device ID must be greater than 8 and less than 26 characters.
How to Resolve?: Please provide a valid Device ID and it must be greater than 8 and less than 26 characters.
Sample Fail Response: 6
<?xml version="1.0" encoding="utf-8"?> <VcareOssApi xmlns="http://www.oss.vcarecorporation.com/oss" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <credentials> <vendorId>Vcarecorporation</vendorId> <referenceNumber>11111</referenceNumber> </credentials> <DeviceStatusChange> <statusCode>356</statusCode> <description>FAIL</description> <errorDescription>Agent ID cannot be blank.</errorDescription> </DeviceStatusChange> </VcareOssApi>
Error Description: Agent ID cannot be blank.
How to Resolve?: Please provide Agent ID as it cannot be blank.
Sample Fail Response: 7
<?xml version="1.0" encoding="utf-8"?> <VcareOssApi xmlns="http://www.oss.vcarecorporation.com/oss" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <credentials> <vendorId>Vcarecorporation</vendorId> <referenceNumber>11111</referenceNumber> </credentials> <DeviceStatusChange> <statusCode>411</statusCode> <description>FAIL</description> <errorDescription>Device ID is not available in our system.</errorDescription> </DeviceStatusChange> </VcareOssApi>
Error Description: Device ID is not available in our system.
How to Resolve?: This Device ID is not available in system.
Sample Fail Response: 8
<?xml version="1.0" encoding="utf-8"?> <VcareOssApi xmlns="http://www.oss.vcarecorporation.com/oss" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <credentials> <vendorId>Vcarecorporation</vendorId> <referenceNumber>11111</referenceNumber> </credentials> <DeviceStatusChange> <statusCode>457</statusCode> <description>FAIL</description> <errorDescription>Invalid Source.</errorDescription> </DeviceStatusChange> </VcareOssApi>
Error Description: Invalid Source.
How to Resolve?: Please provide a valid Source. Given value is invalid for Source.
Sample Fail Response: 9
<?xml version="1.0" encoding="utf-8"?> <VcareOssApi xmlns="http://www.oss.vcarecorporation.com/oss" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <credentials> <vendorId>Vcarecorporation</vendorId> <referenceNumber>11111</referenceNumber> </credentials> <DeviceStatusChange> <statusCode>585</statusCode> <description>FAIL</description> <errorDescription>Device status should be FREE, USED, BAD, REMOVED.</errorDescription> </DeviceStatusChange> </VcareOssApi>
Error Description: Device status should be FREE, USED, BAD, REMOVED.
How to Resolve?: Choose anyone among FREE or USED or BAD or REMOVED for Device Status.
Sample Fail Response: 10
<?xml version="1.0" encoding="utf-8"?> <VcareOssApi xmlns="http://www.oss.vcarecorporation.com/oss" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <credentials> <vendorId>Vcarecorporation</vendorId> <referenceNumber>11111</referenceNumber> </credentials> <DeviceStatusChange> <statusCode>586</statusCode> <description>FAIL</description> <errorDescription>Device status required.</errorDescription> </DeviceStatusChange> </VcareOssApi>
Error Description: Device status required.
How to Resolve?: Provide a Device status. Device status is mandatory.
All the status codes are listed under the status code sections. Please click here to go to the status code.