The postpaid bill fetch API will gives you the ability to fetch the due amounts of supported valid postpaid mobile numbers. This helps the developer to easily create better UX flow in the whole application. The API flow is similar to our Electricity bill fetch API which supports the majority of providers accross the country.
Supported Providers
- Vodafone -
VD - BSNL -
BL - Airtel -
AT
Note: These are the currently supported operators, additional support of other operators will be available when the provider do so. The provider_code in the API is denoted by the two letter codes as above
API Endpoint
https://api.datayuge.com/Resource
/api/{version}/bill/postpaidThe current API version is v1 for this endpoint
Parameters
Parameter | Sample | Description | Mandatory |
|---|---|---|---|
|
| Your API key | TRUE |
|
| The two letter provider code. See the supported providers list above | TRUE |
|
| A valid 10 digit postpaid number which belongs to the operator | TRUE |
Sample URL
https://api.datayuge.com/api/v1/bill/postpaid?apikey=API_KEY&provider_code=PROVIDER_CODE&number=MOBILE_NUMBERResponse
The API returns the following message if the request is successful.
{
data: {
success: true,
bill_amount: 470.82
}
}Parameter | Type |
|---|---|
|
|
|
|
Errors
The following are the error messages the API returns with.
Invalid Key
{
"error": "Invalid API Key or the Resource is not active for this Key. Please contact support. ##[email protected]##"
}Invalid provider code
{
"data": {
"success": false,
"msg": "Incorrect provider code"
}
}Invalid mobile number
{
"data": {
"success": false,
"msg": "Incorrect mobile number"
}
}Error retriving data from provider
{
"data": {
"success": false,
"msg": "Something went wrong. Please try again!"
}
}Support
For techincal supports, please write to [email protected]