post https://pay2new.in/apis/offer/v1/browsePlan
Header Request
Accept : application/json
Content-Type: application/json
secret : Unique secret key (Provided by Pay2New)
Request Parameters
Parameters | Type | Mandatory (M) , Optional(O) | Description |
---|---|---|---|
circle_code | String | M | Mobile Number Circle Code (Available in Oprator Code & Circle Code Link]) |
product_code | String | M | Mobile Number Operator Code (Available in Oprator Code & Circle Code Link]) |
request_id | String | M | Your Unique Transaction/Request Id (max lenth 20) |
Sample Request
curl --request POST \
--url https://pay2new.in/apis/offer/v1/browsePlan \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'secret: qwertyuQWERTY12345asdf' \
--data '
{
"circle_code": "13",
"product_code": "1",
"request_id": "P2N54544444545"
}'
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://pay2new.in/apis/offer/v1/browsePlan",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\"circle_code\":\"13\",\"product_code\":\"1\",\"request_id\":\"P2N1234567890\"}",
CURLOPT_HTTPHEADER => [
"Accept: application/json",
"Content-Type: application/json",
"secret: qwertyuQWERTY12345asdf"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
Response Parameters
Name | Type | Description |
---|---|---|
status | Integer | Transaction Status |
message | String | Message from API |
data | Array | Response Data (If Present) |
rs | String | Plan Amount |
desc | String | Plan details |
validity | String | Plan validity |
Sample Response
{
"status": 1,
"message": "Transaction Successful!",
"data": {
"International Roaming": [
{
"rs": "3998",
"desc": "Details: 500mins incoming 5GB 500mins local/India calls 100 sms.| Covered Countries : UAE Saudi Arabia Oman Kuwait Bahrain Qatar Iran Iraq Russia & more countries. Visit www.airtel.in/ir",
"validity": "30 Days"
},
{
"rs": "14997",
"desc": "Details: Unlimited incoming 7200 mins India calls 100 sms.| Covered Countries : Bangladesh Bhutan Myanmar Nepal Sri Lanka. Visit www.airtel.in/IR",
"validity": "365 Days"
},
{
"rs": "14998",
"desc": "Details: Unlimited incoming 7200 mins India calls 100 sms.| Covered Countries : Australia Canada China Friance Japan Singapore USA UK & more. Visit www.airtel.in/IR",
"validity": "365 Days"
},
{
"rs": "8998",
"desc": "Details: Unlimited incoming 3600 mins India calls 100 sms.| Covered Countries : Australia Canada China Friance Japan Singapore USA UK & more. Visit www.airtel.in/IR",
"validity": "180 Days"
}
],
"ISD Pack": [
{
"rs": "128",
"desc": "Enjoy Local & STD calls 2.5p/sec National Video Calls 5p/sec DATA 50p/MB; SMS Rs.1 Local Rs.1.5 STD Rs.5 ISD",
"validity": "28 Days"
},
{
"rs": "18",
"desc": "Enjoy ISD calling at discounted rates for 28 days. For country wise tariff visit www.airtel.in",
"validity": "28 Days"
}
],
"Unlimited Packs": [
{
"rs": "399",
"desc": "Enjoy unlimited Local STD & Roaming calls on any network 2.5GB/day data and 100 SMS.",
"validity": "28 Days"
},
{
"rs": "549",
"desc": "Enjoy unlimited Local STD & Roaming calls on any network daily 2GB data and 100 SMS.",
"validity": "56 Days"
},
{
"rs": "839",
"desc": "Enjoy unlimited Local STD & Roaming calls on any network 2GB/day data and 100 SMS.",
"validity": "84 Days"
},
{
"rs": "999",
"desc": "Enjoy unlimited Local STD & Roaming calls on any network 2.5GB/day data and 100 SMS/day.",
"validity": "84 Days"
}
],
"Data": [
{
"rs": "58",
"desc": "Enjoy 3GB data valid till your current pack validity",
"validity": "NA"
},
{
"rs": "118",
"desc": "Enjoy 12GB data valid till your current pack validity",
"validity": "NA"
},
{
"rs": "108",
"desc": "Enjoy 6GB valid till your current pack and Amazon Prime Video Mobile Edition for 28 days",
"validity": "Existing"
}
],
"Smart Recharge": [
{
"rs": "99",
"desc": "Enjoy talktime of Rs 99 valid for 28 days at 1p/sec local & STD calls with 200 MB data.",
"validity": "28 Days"
}
],
"Talktime": [
{
"rs": "20",
"desc": "You are enjoying talktime worth Rs.14.95",
"validity": "NA"
},
{
"rs": "500",
"desc": "Enjoy talktime of Rs 423.73",
"validity": "NA"
},
{
"rs": "100",
"desc": "You are enjoying talktime worth Rs.81.75",
"validity": "NA"
}
]
}
}