This API will give the special offers available to the customer based on the mobile number. The offers are normally only available when the user dial 121 from the device.
Note: These are specific recharges available to the mobile number. Try this offer on a different mobile number even within the same region might fail.
If you are an existing user of the API, the providers includingVodafoneandIdeais removed and updated with the combined providerVi
Supported Providers
AirtelViBSNLJio
API Endpoint
https://api.datayuge.comResources
GET List Special Plans
This resource list the available set of recharge plans.
/v1/plansByNumber/{operator}Input Parameters
Parameter/Path | Value | Required | Description |
|---|---|---|---|
{operator} | Vi | true | The operator name should be same as the operators provided below. Please note that the value is “case sensitive” |
number | 9000000000 | true | The mobile number which the offer has to be checked against. Please make sure that you pass the correct “provider” name corresponding to the mobile number. |
apikey | APIKEY | true | Pass your API key here. |
Error Messages
Message | Reason |
|---|---|
“Invalid phone number. Please refer to documentation." | The mobile number parameter is empty or the mobile number validation fails. The number should be 10 digits. |
Error Model
{
"status": false,
"msg": "Incorrect number. Please check the mobile number"
}{
"status": false,
"msg": "No plans available at the moment."
}Sample API URL
https://api.datayuge.com/v1/plansByNumber/Airtel?number=9000000000&apikey=YOUR_API_KEY