IMEILookup
This XML API returns the status of the IMEI/GSM device, if the given IMEI/GSM device is assigned to the Master agent/Distributor/Retailer of the agent who is making the API call or it is assigned to the agent itself or not. If the IMEI/GSM device is not assigned to the agent or its master/distributor/retailer then the API call will fail. The API also returns the status of the IMEI/GSM device along with the Model and the selling price of the IMEI/GSM device wherever applicable
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> <IMEILOOKUP> <IMEI></IMEI> <GETIMEIDETAILS></GETIMEIDETAILS> <AGENTID></AGENTID> <AGENTPASSWORD></AGENTPASSWORD> <SOURCE>API</SOURCE> </IMEILOOKUP> </VCAREOSS> </VCAREOSSAPI>
List of status code, description and resolution. | ||
---|---|---|
Status Code | Description | How to Resolve? |
00 | SUCCESS | SUCCESS |
13 | Password is invalid. | Provide a valid Password. |
16 | Vendor not found. Wrong credentials. | Please enter valid vendor credentials. |
55 | Invalid agent login. | Please provide valid agent login. |
88 | IMEI Invalid. | Please provide valid IMEI. |
91 | IMEI is not assigned to given agent. | Please provide IMEI assigned to the given agent. |
356 | Agent ID cannot be blank. | Please provide Agent ID as it cannot be blank. |
406 | Device does not exist in system. | Device does not exist in system. |
407 | Device is not assigned to given agent OR Master/Distributor/Retailer. | Device is not assigned to the agent you have given. |
408 | Device attached with the enrollment ID. | Device is assigned to different customer. |
409 | Device is found in system as Bad status. | Device id has BAD as status in database. |
410 | Device is found in system as Removed status. | Device id has Removed as status in database. |
457 | Invalid Source. | Please provide a valid Source. Given value is invalid for Source. |
493 | IMEI should not be blank. | Provide correct IMEI. IMEI should not be blank. |
495 | IMEI must be greater than 8 and less than 20 characters. | Provide correct IMEI which must be greater than 8 and less than 20 characters. |
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></vendorId> <referenceNumber></referenceNumber> </credentials> <IMEILookup> <statusCode>00</statusCode> <description>SUCCESS</description> <errorDescription>IMEI Free to be used.</errorDescription> <model_id></model_id> <model_name></model_name> <selling_price></selling_price> </IMEILookup> </VcareOssApi>
SUCCESS
List of all the status codes will be shared separately.
<model> This is the make and model of the ESN/SIM it will be returned wherever applicable.
<sellingprice>This is the selling price of the SIM/ESN
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> <IMEILookup> <statusCode>13</statusCode> <description>FAIL</description> <errorDescription>Password is invalid.</errorDescription> </IMEILookup> </VcareOssApi>
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> <IMEILookup> <statusCode>16</statusCode> <description>FAIL</description> <errorDescription>Vendor not found. Wrong credentials.</errorDescription> </IMEILookup> </VcareOssApi>
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> <IMEILookup> <statusCode>55</statusCode> <description>FAIL</description> <errorDescription>Invalid agent login.</errorDescription> </IMEILookup> </VcareOssApi>
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> <IMEILookup> <statusCode>88</statusCode> <description>FAIL</description> <errorDescription>IMEI Invalid.</errorDescription> </IMEILookup> </VcareOssApi>
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> <IMEILookup> <statusCode>91</statusCode> <description>FAIL</description> <errorDescription>IMEI is not assigned to given agent.</errorDescription> </IMEILookup> </VcareOssApi>
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> <IMEILookup> <statusCode>356</statusCode> <description>FAIL</description> <errorDescription>Agent ID cannot be blank.</errorDescription> </IMEILookup> </VcareOssApi>
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> <IMEILookup> <statusCode>406</statusCode> <description>FAIL</description> <errorDescription>Device does not exist in system.</errorDescription> </IMEILookup> </VcareOssApi>
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> <IMEILookup> <statusCode>407</statusCode> <description>FAIL</description> <errorDescription>Device is not assigned to given agent OR Master/Distributor/Retailer.</errorDescription> </IMEILookup> </VcareOssApi>
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> <IMEILookup> <statusCode>408</statusCode> <description>FAIL</description> <errorDescription>Device attached with the enrollment ID.</errorDescription> </IMEILookup> </VcareOssApi>
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> <IMEILookup> <statusCode>409</statusCode> <description>FAIL</description> <errorDescription>Device is found in system as Bad status.</errorDescription> </IMEILookup> </VcareOssApi>
Sample Fail Response: 11
<?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> <IMEILookup> <statusCode>410</statusCode> <description>FAIL</description> <errorDescription>Device is found in system as Removed status.</errorDescription> </IMEILookup> </VcareOssApi>
Sample Fail Response: 12
<?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> <IMEILookup> <statusCode>457</statusCode> <description>FAIL</description> <errorDescription>Invalid Source.</errorDescription> </IMEILookup> </VcareOssApi>
Sample Fail Response: 13
<?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> <IMEILookup> <statusCode>493</statusCode> <description>FAIL</description> <errorDescription>IMEI should not be blank.</errorDescription> </IMEILookup> </VcareOssApi>
Sample Fail Response: 14
<?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> <IMEILookup> <statusCode>495</statusCode> <description>FAIL</description> <errorDescription>IMEI must be greater than 8 and less than 20 characters.</errorDescription> </IMEILookup> </VcareOssApi>
All the status codes are listed under the status code sections. Please click here to go to the status code.