KEMBAR78
APIs for Affiliate Marketers | PDF | Computing
0% found this document useful (0 votes)
73 views23 pages

APIs for Affiliate Marketers

Inr deal documentation
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
73 views23 pages

APIs for Affiliate Marketers

Inr deal documentation
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

About INRDeals API's

Since 2016, INRDeals has been serving as an innovative ad-network that has been bridging the
gap in the affiliate industry by introducing fully managed affiliate services along with a super
simple tracking system that is built inhouse & is bundled with an innovative set of tools which
enables bloggers, influencers, website owner or anyone with an active social media profile to run
ad campaigns with zero technical knowledge and instantly earn & monetize from their existing
network & traffic!

INRDeals offers different API that enables its publishers to unleash their creativity and design
innovative products that can drive them million-dollar revenues! These API's enable users to
design website & apps like:

 Deals Website/App
 Niche Specific Blog
 Coupon Website/App
 Cashback Website/App
 Product Review Website/App
 Best Selling Product Website/App
 Price Comparison Website/App
 Product Discovery Website/App
 All in One Shopping App
 All in One Browser
 Employee incentive Program
 Gift Card Website & the list goes on and on…

INRDeals has already empowered over 16,000+ Publishers who have crafted awesome products,
integration of these API's is very easy just go through the list of available API & see which one
fits your needs!

In case you have any question or doubt you can connect directly with our support team by
emailing on info@inrdeals.com or calling on: +91 9018077255

INRDeals Affiliate Tracking URL Structure:

https://inr.deals/track?id={inrdealsusername}&src=api&campaign={campaigntype}&url={enco
ded_url}&subid={subid}
Available Parameters:
Parameter Description

id* This parameter is the username at INRDeals, it is a mandatory parameter required


for tracking a transaction against a particular user. The id is an alpha numeric value
available under user’s account settings.

src This parameter is meant to track the source from where the user has generated the
tracking link. Although this parameter is not mandatory but is highly
recommended.

campaign This parameter is used to separate different campaigns offered by same advertiser,
if the advertiser has multiple campaigns running (eg: CPS (Cost per Sale) and CPV
(Cost per Visit)) both can be filtered out by passing the appropriate values in the
campaign type. The various values accepted for campaign parameter are: cpl, cps,
cpv, cpr, cpc, cpm, cpa.

url* This parameter is the used to pass the url for which the affiliate tracking link has to
be generated. The url passed can be deeplink or link to the advertiser’s homepage.
URL parameter works with both urls, with or without http/https. The destination
URL has to be encoded.

subid SubID parameter allows you to pass additional information when a user click on
the affiliate link further if a transaction take place you also receive a subid in your
transaction reports. By default the system allows 1 subid however addition subid
can be requested from your account manager.

Protip: To generate link of all the stores at once you can go the store page on INRDeals &
download the CSV/Excel file.
Coupons API
Get Store wise & Category wise Latest Coupons & Offers

Link: https://inrdeals.com/api/v1/coupon-feed

Method:- GET

Parameter Type Description

store_id number INRDeals Merchant ID eg: 65 for Flipkart

search string Store Name eg: Swiggy, Flipkart

category string Store Category eg: Food, Recharge

token* string INRDeals API Token

id* String INRDeals Username

end_date date Start of Date Range within which coupons where added

start_date date End of Date Range within which coupons where added

This API is used to show latest coupon codes along with the detailed information about the offer,
it's terms & conditions, expiry date of the coupons along with the your own affiliate tracking link
for the merchant's offer page. The Output of the API is structured in such a way the it can be
instantly integrated with any existing web application.The API also features a search by store
and search by category feature which can be used to output the corresponding result.

List of Popular Store with their Store ID:

Store Name Store ID

Paytm 228
Amazon 1

Bookmyshow 252

Cleartrip 33

Dominos 46

Flipkart 65

Freecharge 74

Freshmenu 75

Zoomcar 80

Zivame 84

Godaddy 86

Jabong 119

Koovs 129

Swiggy 167

Makemytrip 173

Mobikwik 180
Myntra 193

Shopclues 195

Phonepe 1545

Nearbuy 200

Printvenue 242

Fernsnpetals 247

Pizza Hut 266

Bigrock 253

Foodpanda 268

Uber 278

Ola 297

Zomato 298

Grofers 325

Yatra 328

Cafe Coffee Day 388


Paytm Movies 595

Paytm Bus 599

Paytm Recharge 596

Goibibo 603

Nykaa 206

Sample Response:

"result": {

"current_page": 1,

"data": [

“id”: 4567

"url": "https://inr.deals/track?id=inr_username&src=coupon-feed-
api&url=https://www.swiggy.com/",

"label": "30% OFF",

"offer": "Flat 30% OFF From Swiggy Via HDFC PayZapp Card",

"coupon_code": "PAYZAPP100",

"steps": "0",

"description": " <li>Use code PAYZAPP100 & get 30% discount up


to Rs.100 on your orders above Rs.199.</li> <li>Offer valid twice
per user per month</li>",

"expire_date": "2020-01-31 00:00:00",


"storelogo_id": 167,

"categories": "food",

"logo": {

"id": 167,

"store_name": "Swiggy"

},

“id”: 345689

"url": "https://inr.deals/track?id=inr_username&src=coupon-feed-
api&url=https://www.swiggy.com/",

"label": "25% OFF",

"offer": "Flat 25% OFF On Food Order Via AU Bank Debit Card",

"coupon_code": "AUBANK125",

"steps": "0",

"description": "0",

"expire_date": "2020-01-31 00:00:00",

"storelogo_id": 167,

"categories": "food",

"logo": {

"id": 167,

"store_name": "Swiggy"

}
},

“id”: 9065432

"url": "https://inr.deals/track?id=inr_username&src=coupon-feed-
api&url=https://www.swiggy.com/",

"label": "50% OFF",

"offer": "Flat 50% OFF On First 5 Orders (Web & App, Valid In Select Cities)",

"coupon_code": "WELCOME50",

"steps": "0",

"description": " <li>Order delicious food with the latest Swiggy


Coupons.</li> <li>Get flat 50% off on your first 5 orders from the website
& app.</li> <li>You can save up to Rs 100 per order using this new
user offer, on a minimum order value of Rs 99.</li> <li>Valid in selected cities
across India.</li> <li>This is valid for online payments like net-banking, credit
& debit cards, or mobile wallets (viz. Paytm, Mobikwik, etc.) including
COD.</li>",

"expire_date": "2020-04-01",

"storelogo_id": 167,

"categories": "food",

"logo": {

"id": 167,

"store_name": "Swiggy"

},

“id”: 567788
"url": "https://inr.deals/track?id=inr_username&src=coupon-feed-
api&url=https://www.swiggy.com/",

"label": "60% OFF",

"offer": "Flat 60% OFF On First Order (Web & App - Select Cities &
Restaurants)",

"coupon_code": "WELCOME60",

"steps": "0",

"description": " <li>Avail Flat 60% OFF on your first order from


website and app.</li> <li>You can save up to Rs 120 per order on the new
user order </li> <li>Minimum cart value - Rs 99</li>
<li>Valid only in selective cities and restaurants across India.</li>",

"expire_date": "2020-04-01",

"storelogo_id": 167,

"categories": "food",

"logo": {

"id": 167,

"store_name": "Swiggy"

},

"url": "https://inr.deals/track?id=inr_username&src=coupon-feed-
api&url=https://www.zomato.com",

"label": "50% OFF",

"offer": "Zomato Hello 2020 Offer - Get 50% OFF",

"coupon_code": "HELLO2020",
"steps": "0",

"description": "0",

"expire_date": "2020-04-03",

"storelogo_id": 298,

"categories": "food",

"logo": {

"id": 298,

"store_name": "Zomato"

},

“id”: 567904

"url": "https://inr.deals/track?id=inr_username&src=coupon-feed-
api&url=https://pizzaonline.dominos.co.in",

"label": "Upto 40% OFF",

"offer": "Saturday Special Offer - Up To 40% Off On All Pizzas",

"coupon_code": "SATURDAY100",

"steps": "0",

"description": "0",

"expire_date": "2020-04-03",

"storelogo_id": 46,

"categories": "food",

"logo": {
"id": 46,

"store_name": "Dominos"

},

“id”: 8906543

"url": "https://inr.deals/track?id=inr_username&src=coupon-feed-
api&url=https://www.makemytrip.com/flights",

"label": "Rs.10000 OFF",

"offer": "Christmas Sale On Malaysia Airlines - Get Up To Rs 10000 OFF",

"coupon_code": "MMTMH",

"steps": "0",

"description": " <li>Great ticket fares on <span class=\"ner-16 ner-


m\">Malaysia Airlines.</span></li> <li>Get <span class=\"ner-
12\"> up </span> <span class=\"ner-12\"> to </span> <span
class=\"ner-11\"> Rs </span> <span class=\"ner-11\"> 10000 </span>
<span class=\"ner-11\"> off. </span></li>

<li>Offer is valid on Malaysia Airlines only</li> <li><span class=\"ner-10


ner-m\">Booking period: </span>2nd Jan - 20th Jan'20</li>
<li><span class=\"ner-1 ner-m\">Travel Period:</span> 2nd
Jan - 31st Dec'20</li> <li>Use the given MMT <span> discount
</span> code for availing the discount.</li>",

"expire_date": "2020-01-20 00:00:00",

"storelogo_id": 173,

"categories": "travel",

"logo": {

"id": 173,
"store_name": "Makemytrip(Domestic Flights)"

},

“id”: 56789900

"url": "https://inr.deals/track?id=inr_username&src=coupon-feed-
api&url=https://www.swiggy.com/",

"label": "Hot Deal",

"offer": "Order Shawarmas @ Best Price",

"coupon_code": "",

"steps": "0",

"description": "0",

"expire_date": "2020-03-25",

"storelogo_id": 167,

"categories": "food",

"logo": {

"id": 167,

"store_name": "Swiggy"

],

"first_page_url": "http://inrdeals.com/api/v1/coupon-feed?page=1",

"from": 1,
"last_page": 2,

"last_page_url": "http://inrdeals.com/api/v1/coupon-feed?page=2",

"next_page_url": "http://inrdeals.com/api/v1/coupon-feed?page=2",

"path": "http://inrdeals.com/api/v1/coupon-feed",

"per_page": 50,

"prev_page_url": null,

"to": 50,

"total": 81

Response codes
Code Description

500 internal server error

404 not found

400 bad request

302 found

204 no content

202 accepted
Code Description

200 ok
Transaction API
This API can be used to fetch the date wise transaction reports of your account, this also includes
information about of any subid that has been passed. Further you can store this data and show the
same to your users. You can also filter data based on your Transaction ID & Sub ID.

Link: https://inrdeals.com/fetch/reports

Method:- GET

Parameter Type Description

token* string As given by your Account Manager

id* string use Your INRDeals Username.

startdate* date The Date from which you want the Transactions Report.
Only Accepted date format is YYYY-mm-dd

Page Number Page Number of the records to be fetched. Useful in pagination

sub_id string Sub ID passed in the tracking link

enddate* date The Date till which you want the Transactions Report.
Only Accepted date format is YYYY-mm-dd

txn_id string Transaction ID at INRDeals Panel for an Order Recorded

The Get Transactions API helps you fetch all the Transactions in a specific date range along with
subids with maximum time period of 4 months.

Supported Format JSON.

Return value The JSON object returned by the system will provide an array of transactions.
Rate Limit As a fair usage policy the API hits is limited to 10,000 hits/month, It is
recommended to store the data in your own database & then show it to your users

Sample Response

"result": {

"current_page": 1,

"data": [

“id”: 45677889990

"transaction_id": "102700ee2f1eea520409efc727cbb5",

"sale_amount": "126.000000",

"status": "pending",

"store_name": "Swiggy",

"sale_date": "2019-03-14 17:43:09",

"click_id": "11261461",

"user_commission": "28.8",

"sub_id1": null

},

“id”: 45677889991

"transaction_id": "118950198",

"sale_amount": "4999",

"status": "verified",
"store_name": "Flipkart",

"sale_date": "2019-08-30 00:04:49",

"click_id": "23475406",

"user_commission": "45.4965",

"sub_id1": "297162"

},

],

"first_page_url": "http://inrdeals.com/fetch/reports?page=1",

"from": 1,

"last_page": 1,

"last_page_url": "http://inrdeals.com/fetch/reports?page=1",

"next_page_url": null,

"path": "http://inrdeals.com/fetch/reports",

"per_page": 100,

"prev_page_url": null,

"to": 1,

"total": 1

Response codes:
Code Description

500 Internal Server Error

404 Not Found

400 Bad Request

302 Found

204 no content

202 accepted

200 ok
Short URL API:
Convert Long inr.deals tracking link into short inr.deals link

Link: https://inrdeals.com/api/v1/shortlink/generator

Method:- GET

Parameter Type Description

offer_url* string Encoded INRDeals Tracking Link

src string Source

campaign string Type of Campagin

subid string Subid Parameter

token* string API Token

user_id* string INRDeals Username

This API is used to generate the inr.deals short URL for any long inr.deals tracking link.

Sample Response

{"url":"https:\/\/inr.deals\/vDf9L"}

Response codes
Code Description

500 internal server error


Code Description

404 Not found

400 Bad Request

302 Found

204 No content

202 accepted

200 ok
Stores Campaign List API
This API can be used to show the list of all the Available Campaigns. You can also filter data
based on your category.

Link: https://inrdeals.com/fetch/stores

Method:- GET

Parameter Type Description

token* string API Token

id* string INRDeals Username

merchant string Name of the Merchant on INRDeals

type string Type of Campaign (eg: CPS, CPL etc)

category string Category of the Campaign

This API can be used to show the list of all the Available Campaigns. You can also filter data
based on your Transaction

Sample Response

"url": "https://inr.deals/track?src=stores-
api&campaign=cps&url=https://www.flipkart.com/&id=dis65187126&
subid=",

"id": "65",

"logo":
"https://inrdeals.sgp1.cdn.digitaloceanspaces.com/production/2201/9a2165a9-2cd4-
4c9a-8f75-e83422611a07.png",
"merchant": "Flipkart",

"category": "Baby Care and Toys,Electronics,Fashion and Apparels,Home Decor


and Furnishing,Kitchen and Appliances,Personal Care and Health",

"type": "cps",

"payout": "11%",

"status": "active"

},

"url": "https://inr.deals/track?src=stores-
api&campaign=cpa&url=https://www.1mg.com/&id=dis65187126&s
ubid=",

"id": "2",

"logo": "https://inrdeals.sgp1.cdn.digitaloceanspaces.com/production/56/0f1cd7e2-
f004-4b2f-9d89-eaf83ce11d36.png",

"merchant": "1mg",

"category": "Personal Care and Health",

"type": "cpa",

"payout": "₹275",

"status": "inactive"

Response codes
Code Description

500 internal server error


Code Description

404 Not found

400 Bad request

302 Found

204 No content

202 accepted

200 ok

You might also like