GetDenomination
This API is used to get the available topups/addons available for a subscriber to purchase.
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>Vcarecorporation</VENDORID> <USERNAME>Vcarecorporation</USERNAME> <PASSWORD>Vcarecorporation</PASSWORD> <PIN>Vcarecorporation</PIN> <REFERENCENUMBER>11111</REFERENCENUMBER> </CREDENTIALS> <VCAREOSS> <GETDENOMINATION> <COMPANYID></COMPANYID> <STATE></STATE> <CARRIER></CARRIER> <PAYMENTTYPE></PAYMENTTYPE> <TYPE></TYPE> <AMOUNT></AMOUNT> <TOPUPCATEGORY></TOPUPCATEGORY> <AGENTID></AGENTID> <AGENTPASSWORD></AGENTPASSWORD> <SOURCE></SOURCE> </GETDENOMINATION> </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. |
118 | State is required. | State cannot be blank. You should enter a valid State. |
169 | Company ID is required. | Please provide company ID. |
219 | Payment type is required. | Please provide Payment type. |
243 | Record(s) not found. | Please provide valid value as Record(s) not found. |
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. |
667 | Type should be TOPUP, DATA, and UPGRADE. | Provide correct Type. Type should be Topup or DATA or UPGRADE. |
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> <GetDenomination> <statusCode>00</statusCode> <description>SUCCESS</description> <errorDescription>SUCCESS</errorDescription> <carrier> <info> <carriercode></carriercode> <planid></planid> <reloadid></reloadid> <amount></amount> <type></type> <voice></voice> <sms></sms> <data></data> <carriername></carriername> <details></details> <topupcategory>premium</topupcategory> </info> <info> <carriercode></carriercode> <planid></planid> <reloadid></reloadid> <amount></amount> <type></type> <voice></voice> <sms></sms> <data></data> <carriername></carriername> <details></details> <topupcategory>premium</topupcategory> </info> <info> <carriercode></carriercode> <planid></planid> <reloadid></reloadid> <amount></amount> <type></type> <voice></voice> <sms></sms> <data></data> <carriername></carriername> <details></details> <topupcategory>premium</topupcategory> </info> </carrier> </GetDenomination> </VcareOssApi>
SUCCESS
<carriercode>
This is the actual plan code which is setup at the carrier for the given topup/addon.<planid>
This is ID which is setup in VCare for the given topup/addon, this Plan Id needs to be passed in the AddBalance API to apply add on to the subscriber's account.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> <GetDenomination> <statusCode>13</statusCode> <description>FAIL</description> <errorDescription>Password is invalid.</errorDescription> </GetDenomination> </VcareOssApi>
Error Description: Password is invalid.
How to Resolve?: Provide a valid Password.
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> <GetDenomination> <statusCode>16</statusCode> <description>FAIL</description> <errorDescription>Vendor not found. Wrong credentials.</errorDescription> </GetDenomination> </VcareOssApi>
Error Description: Vendor not found. Wrong credentials.
How to Resolve?: Please enter valid vendor credentials.
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> <GetDenomination> <statusCode>118</statusCode> <description>FAIL</description> <errorDescription>State is required.</errorDescription> </GetDenomination> </VcareOssApi>
Error Description: State is required.
How to Resolve?: State cannot be blank. You should enter a valid State.
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> <GetDenomination> <statusCode>169</statusCode> <description>FAIL</description> <errorDescription>Company ID is required.</errorDescription> </GetDenomination> </VcareOssApi>
Error Description: Company ID is required.
How to Resolve?: Please provide company ID.
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> <GetDenomination> <statusCode>219</statusCode> <description>FAIL</description> <errorDescription>Payment type is required.</errorDescription> </GetDenomination> </VcareOssApi>
Error Description: Payment type is required.
How to Resolve?: Please provide Payment type.
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> <GetDenomination> <statusCode>243</statusCode> <description>FAIL</description> <errorDescription>Record(s) not found.</errorDescription> </GetDenomination> </VcareOssApi>
Error Description: Record(s) not found.
How to Resolve?: Please provide valid value as Record(s) not found.
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> <GetDenomination> <statusCode>356</statusCode> <description>FAIL</description> <errorDescription>Agent ID cannot be blank.</errorDescription> </GetDenomination> </VcareOssApi>
Error Description: Agent ID cannot be blank.
How to Resolve?: Please provide Agent ID as it cannot be blank.
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> <GetDenomination> <statusCode>457</statusCode> <description>FAIL</description> <errorDescription>Invalid Source.</errorDescription> </GetDenomination> </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> <GetDenomination> <statusCode>667</statusCode> <description>FAIL</description> <errorDescription>Type should be TOPUP, DATA, and UPGRADE.</errorDescription> </GetDenomination> </VcareOssApi>
Error Description: Type should be TOPUP, DATA, and UPGRADE.
How to Resolve?: Provide correct Type. Type should be Topup or DATA or UPGRADE.
All the status codes are listed under the status code sections. Please click here to go to the status code.