DeviceLookup
This XML API returns the status of the SIM/ESN, if the given SIM/ESN 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 SIM/ESN 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 SIM/ESN along with the Model and the selling price of the SIM/ESN where 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> <DEVICELOOKUP> <ESN></ESN> <GETDEVICEDETAILS></GETDEVICEDETAILS> <AGENTID></AGENTID> <AGENTPASSWORD></AGENTPASSWORD> <SOURCE></SOURCE> </DEVICELOOKUP> </VCAREOSS> </VCAREOSSAPI>
List of status code, description and resolution. | ||
---|---|---|
Status Code | Description | How to Resolve? |
00 | SUCCESS | SUCCESS |
04 | ESN does not exist in system. | Provide a valid ESN that exists in the system. |
13 | Password is invalid. | Provide a valid Password. |
16 | Vendor not found. Wrong credentials. | Please enter valid vendor credentials. |
54 | Device look-up not found. | Please provide valid Device look-up. Device look-up is not found. |
67 | ESN is not assigned to given agent. | Please provide ESN assigned to given agent. |
194 | ESN should not be blank. | Please provide ESN. ESN cannot be left blank. |
351 | ESN must be greater than 8 and less than 26 characters. | Please provide a valid ESN 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. |
385 | ESN/SIM is attached with the customer. | ESN/SIM is attached with the customer. |
386 | ESN is found in system as Bad status. | ESN is found in system as Bad status. |
387 | ESN is found in system as Removed status. | ESN is found in system as Removed status. |
388 | ESN is not assigned to given agent OR Master/Distributor/Retailer. | Please assign ESN to given agent OR Master/Distributor/Retailer. |
457 | Invalid Source. | Please provide a valid Source. Given value is invalid for Source. |
Sample Response 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> <referenceNumber></referenceNumber> </credentials> <DeviceLookup> <statusCode>00</statusCode> <description>SUCCESS</description> <errorDescription>SUCCESS</errorDescription> <LookupData> <esn></esn> <uiccid></uiccid> <mdn></mdn> <status></status> <carrier></carrier> <model_id></model_id> <model_name></model_name> <selling_price></selling_price> <carrier_code></carrier_code> </LookupData> </DeviceLookup> </VcareOssApi>
SUCCESS
List of all the status codes will be shared separately.
<esn> This is the same ESN/SIM which was passed in the request.
<mdn>If the ESN/SIM is preactivated we also return the MDN which is associated with the ESN/SIM. If the ESN/SIM is not preactivated then this field shall be blank.
<status> This can have two possible values. 'Provision Success' this means that the ESN/SIM is preactivated and you will be required to pass the same mdn and esn which is returned in this API in the createcustomer too.'Not Provisioned' this means that the ESN/SIM is non-active and will be activated at the time createcustomer, you will only need to pass the correct SIM/ESN and it will be activated on the plan which you send in the createcustomer
API
<carrier> This is the carrier to which the given ESN/SIM belongs to.
<model> This is the make and model of the ESN/SIM it will be returned where 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> <DeviceLookup> <statusCode>04</statusCode> <description>FAIL</description> <errorDescription>ESN does not exist in system.</errorDescription> </DeviceLookup> </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> <DeviceLookup> <statusCode>13</statusCode> <description>FAIL</description> <errorDescription>Password is invalid.</errorDescription> </DeviceLookup> </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> <DeviceLookup> <statusCode>16</statusCode> <description>FAIL</description> <errorDescription>Vendor not found. Wrong credentials.</errorDescription> </DeviceLookup> </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> <DeviceLookup> <statusCode>54</statusCode> <description>FAIL</description> <errorDescription>Device look-up not found.</errorDescription> </DeviceLookup> </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> <DeviceLookup> <statusCode>67</statusCode> <description>FAIL</description> <errorDescription>ESN is not assigned to given agent.</errorDescription> </DeviceLookup> </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> <DeviceLookup> <statusCode>194</statusCode> <description>FAIL</description> <errorDescription>ESN should not be blank.</errorDescription> </DeviceLookup> </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> <DeviceLookup> <statusCode>351</statusCode> <description>FAIL</description> <errorDescription>ESN must be greater than 8 and less than 26 characters.</errorDescription> </DeviceLookup> </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> <DeviceLookup> <statusCode>356</statusCode> <description>FAIL</description> <errorDescription>Agent ID cannot be blank.</errorDescription> </DeviceLookup> </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> <DeviceLookup> <statusCode>385</statusCode> <description>FAIL</description> <errorDescription>ESN/SIM is attached with the customer.</errorDescription> </DeviceLookup> </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> <DeviceLookup> <statusCode>386</statusCode> <description>FAIL</description> <errorDescription>ESN is found in system as Bad status.</errorDescription> </DeviceLookup> </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> <DeviceLookup> <statusCode>387</statusCode> <description>FAIL</description> <errorDescription>ESN is found in system as Removed status.</errorDescription> </DeviceLookup> </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> <DeviceLookup> <statusCode>388</statusCode> <description>FAIL</description> <errorDescription>ESN is not assigned to given agent OR Master/Distributor/Retailer.</errorDescription> </DeviceLookup> </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> <DeviceLookup> <statusCode>457</statusCode> <description>FAIL</description> <errorDescription>Invalid Source.</errorDescription> </DeviceLookup> </VcareOssApi>
All the status codes are listed under the status code sections. Please click here to go to the status code.