Postpaid Bill Fetch API

Updated March 23, 2021

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/postpaid
The current API version is v1 for this endpoint

Parameters

Parameter

Sample

Description

Mandatory

apikey

YOUR_API_KEY

Your API key

TRUE

provider_code

VD

The two letter provider code. See the supported providers list above

TRUE

number

9000000000

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_NUMBER

Response

The API returns the following message if the request is successful.

{
    data: {
        success: true,
        bill_amount: 470.82
    }
}

Parameter

Type

success

bool

bill_amount

float

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]

Questions? Schedule a call

Schedule a call

Leave your number and a good time, and we will call you.

Start building for free

Create a free datayuge account, get your API key and make your first request.

Create free account