Get Plan Service
This XML API returns the list of the available plans for the enrollment on the basis of the Zip Code, State and Tribal status of the Zip Code. This api can also be used to check whether service is available for a specific Zip Code. Plans will be displayed on the basis of the Source selected in "Plan Permission" while creating it, and if no plan exists for a source then it will display all active plans for all the sources by default.
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> <GETPLANSERVICE> <STATE></STATE> <TYPE></TYPE> <TRANSACTIONTYPE></TRANSACTIONTYPE> <SERVICETYPE></SERVICETYPE> <AGENTID></AGENTID> <AGENTPASSWORD></AGENTPASSWORD> <SOURCE></SOURCE> </GETPLANSERVICE> <CHECKSERVICEAVAILABILITY> <TRIBAL></TRIBAL> <ZIPCODE></ZIPCODE> </CHECKSERVICEAVAILABILITY> </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. |
15 | Zip code is invalid. | Please enter valid zip code. |
16 | Vendor not found. Wrong credentials. | Please enter valid vendor credentials. |
19 | Service is not available for this Zip Code. | No service for the provided Zip Code. Please enter the right Zip code. |
22 | Plan not found. | Provide a valid plan available in system |
113 | Zip Code is required. | Zip code cannot be blank. You should enter a valid Zip code. |
356 | Agent ID cannot be blank. | Please provide Agent ID as it cannot be blank. |
457 | Invalid Source. | Please provide a valid Source. Given value is invalid for Source. |
517 | State Code is required. | Provide correct State Code. A valid State code is required. |
731 | Type should be lifeline OR nonlifeline OR traditional. | Provide a correct Type. Type should be lifeline or nonlifeline or traditional. |
751 | Custom message. | This is dynamic message. |
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> <GetPlanService> <statusCode>00</statusCode> <description>SUCCESS</description> <errorDescription>SUCCESS</errorDescription> <plan> <planDetail> <planName></planName> <planID></planID> <planPrice></planPrice> <talk></talk> <text></text> <data></data> <PlanServiceType></PlanServiceType> <is_unlimited_plan>Y</is_unlimited_plan> <data_unlimited>Y</data_unlimited> <text_unlimited>N</text_unlimited> <minute_unlimited>N</minute_unlimited> </planDetail> </plan> </GetPlanService> </VcareOssApi>
SUCCESS
This API also checks the service availability on the provided zip code.
If the response returned by this API is SUCCESS however it does not return a list of the plans that means that there are no plans set up for the given state and zip code.
If the response is failure then the error description will be returned.
We need
<planName> This is the plan name.
<planID> This is the plan id to the corresponding plan and this plan id needs to be passed in the createcustomer API for the plan customer chooses.
<planPrice> This is the price of the plan which needs to be paid be the customer.
<talk> This is the number of talk minutes subscriber gets in the plan.
<text> This is the number of texts which are given in the plan.
<data> This is the amount of data (MB) provided on the plan.
<PlanServiceType> These are the NLAD service types for the corresponding plans.
V for Voice, BD for Broadband, BV for Bundled Voice, BBD for Bundled Broadband, BVBD for Bundled Voice and Broadband
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> <GetPlanService> <statusCode>13</statusCode> <description>FAIL</description> <errorDescription>Password is invalid.</errorDescription> </GetPlanService> </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> <GetPlanService> <statusCode>15</statusCode> <description>FAIL</description> <errorDescription>Zip code is invalid.</errorDescription> </GetPlanService> </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> <GetPlanService> <statusCode>16</statusCode> <description>FAIL</description> <errorDescription>Vendor not found. Wrong credentials.</errorDescription> </GetPlanService> </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> <GetPlanService> <statusCode>19</statusCode> <description>FAIL</description> <errorDescription>Service is not available for this Zip Code.</errorDescription> </GetPlanService> </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> <GetPlanService> <statusCode>22</statusCode> <description>FAIL</description> <errorDescription>Plan not found.</errorDescription> </GetPlanService> </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> <GetPlanService> <statusCode>113</statusCode> <description>FAIL</description> <errorDescription>Zip Code is required.</errorDescription> </GetPlanService> </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> <GetPlanService> <statusCode>356</statusCode> <description>FAIL</description> <errorDescription>Agent ID cannot be blank.</errorDescription> </GetPlanService> </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> <GetPlanService> <statusCode>457</statusCode> <description>FAIL</description> <errorDescription>Invalid Source.</errorDescription> </GetPlanService> </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> <GetPlanService> <statusCode>517</statusCode> <description>FAIL</description> <errorDescription>State Code is required.</errorDescription> </GetPlanService> </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> <GetPlanService> <statusCode>731</statusCode> <description>FAIL</description> <errorDescription>Type should be lifeline OR nonlifeline OR traditional.</errorDescription> </GetPlanService> </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> <GetPlanService> <statusCode>751</statusCode> <description>FAIL</description> <errorDescription>Custom message.</errorDescription> </GetPlanService> </VcareOssApi>
All the status codes are listed under the status code sections. Please click here to go to the status code.