INTRODUCTION
The RewardPay API enables developers to access a database of cash back offers across hundreds of advertisers.
The RewardPay can be accessed via a powerful API containing merchant names, cash back values including start date and expiry dates, titles, descriptions, categories, merchant id's, program id's, merchant logos, merchant urls and built deep links and tracking urls in the XML/CSV/JSON formats.
RewardPay issues an API Key after registration. A separate API Key is required to access data from specific countries.
Note: the RewardPay API Key is a unique token required to access the API feeds. It is our way of authenticating that the RewardPay client has access to the API.
- Only one API Key per country is allowed
- Every API request will contain a valid, active API Key and data format parameter
RESPONSE FORMAT
The cash back will be accessible from the RewardPay database via a secured API in XML/CSV/JSON format. The following data formats are available:
- JSON: JavaScript Object Notation (Recommended)
- XML: Extensible Mark-up Language
- CSV: Comma Separated Values
API REQUEST
Data feeds are accessible to clients via a web API with client id and API signature to make the API secured. We will issue the client id and API signature after client registration. The RewardPay API allows only the GET method.
https://api.rewardpay.com/{API Key}/{MethodName}/{DataFormat}
Where
API KEY
The API Key used for API request authentication and this is a mandatory parameter of the API request call. The API Key is issued by RewardPay after successful registration. The API Key is country specific, so if the client subscribes to multiple countries, then RewardPay will generate unique API Key for each country.
METHODNAME
This is also a mandatory parameter of the API request call. This parameter can be used to get specific data from the API, e.g. cash back, merchants, categories etc.
DATAFORMAT
This is also a mandatory parameter of the API request call. This parameter can be used to get data in a specific format, i.e. JSON, XML & CSV.
ACCESS CASH BACK
API Request URL Format: https://api.rewardpay.com/{API Key}/{MethodName}/{DataFormat}?SortBy={SortByValue}&MerchantName={ MerchantName}&Category={CategoryName}&OfferType={OfferType}&PageNo={PageNo}&PageSize={PageSize}
Parameter | Value | Type | Note |
---|---|---|---|
Parameter | ---- | Mandatory | Should have valid and active API Key |
MethodName | GetDeals | Mandatory | |
DataFormat | JSON | XML | CSV | Mandatory | Only one data type is allowed at a time. Please use JSON or XML or CSV |
SortBy | STARTDATE | ENDDATE | MERCHANTNAME | OFFERTYPE | Optional | Use this parameter if you want to get results sorted by specific fields. Only one field is allowed for sorting in API request. |
MerchantName | Optional | Pass merchant name if you want to get deals from specific merchant. | |
Category | Optional | Pass category name if you want to get deals from specific categories. | |
OfferType | All | Coupon | Discount | Optional | Pass OFFERTYPE if you want to filter deals by specific type, e.g. coupon, discount etc. |
PageNo | Optional | By default, API returns all data. But if the PageNo is being passed then the data will be shown accordingly. With this parameter, PageSize parameter is required. | |
PageSize | Optional | Pass the value if the data required in paging. This parameter used to set the number of records in a page. |
EXAMPLE
- Get coupon type deals from fashion category from Zalora merchant and in StartDate sorting order of page size 25. API Request URL: https://api.rewardpay.com/ef8f361d98222ca9de12814223aff0ac/GetDeals/Json?SortBy=STARTDATE &MerchantName=ZALORA&Category=Faishon&OfferType=Coupons&PageNo=1&PageSize=25
- Get all deals from fashion category from Zalora merchant and in StartDate sorting order of page size 25. API Request URL: https://api.rewardpay.com/ef8f361d98222ca9de12814223aff0ac/GetDeals/Json?SortBy=STARTDATE &MerchantName=ZALORA&Category=Faishon&PageNo=1&PageSize=25
- Get all deals from Zalora merchant and in StartDate sorting order of page size 25. API Request URL: https://api.rewardpay.com/ef8f361d98222ca9de12814223aff0ac/GetDeals/Json?SortBy=STARTDATE &MerchantName=ZALORA&PageNo=1&PageSize=25
- Get all deals from all subscribed merchants in StartDate sorting order of page size 25. API Request URL: https://api.rewardpay.com/ef8f361d98222ca9de12814223aff0ac/GetDeals/Json?SortBy=STARTDATE &MerchantName=ZALORA&PageNo=1&PageSize=25
- Get all deals from all subscribed merchants without paging and sorting API Request URL: https://api.rewardpay.com/ef8f361d98222ca9de12814223aff0ac/GetDeals/Json
Use same as above for XML and CSV format, only need to replace data format parameter values i.e. replaces json by xml or csv
ACCESS NETWORKS
API Request URL Format: https://api.rewardpay.com/{API Key}/{MethodName}/{DataFormat}?NetworkName ={ NetworkName }&RelationType={RelationType}&PageNo={PageNo}&PageSize={PageSize}
Parameter | Value | Type | Note |
---|---|---|---|
API KEY | ---- | Mandatory | Should have valid and active API Key |
MethodName | GetNetworks | Mandatory | |
DataFormat | JSON | XML | CSV | Mandatory | Only one data type is allowed at a time. Please use JSON or XML or CSV |
NetworkName | Optional | Use this filter parameter if you want to filer networks by network name. Pass few characters from beginning of network name. | |
RelationType | JOINED | ALL | Optional | Pass this, if you want to access the networks which you added to your RewardPay account. |
PageNo | Optional | By default, API returns all data. But if the PageNo is being passed then the data will be shown accordingly. With this parameter, PageSize parameter is required. | |
PageSize | Optional | Pass the value if the data required in paging. This parameter used to set the number of records in a page. |
EXAMPLE:
- Get all networks without paging. API Request URL: https://api.rewardpay.com/ef8f361d98222ca9de12814223aff0ac/GetNetworks/Json
- Get all networks of page size 25. API Request URL: https://api.rewardpay.com/ef8f361d98222ca9de12814223aff0ac/GetNetworks/Json?PageNo=1&PageSize=25
- Get all networks joined/added to the RewardPay account of page size 25. API Request URL: https://api.rewardpay.com/ef8f361d98222ca9de12814223aff0ac/GetNetworks/Json? RelationType=JOINED&PageNo=1&PageSize=25
- Search networks by network name start with Optimise in the RewardPay account, of page size 25. API Request URL: https://api.rewardpay.com/ef8f361d98222ca9de12814223aff0ac/GetNetworks/Json?NetworkName=Optimise &PageNo=1&PageSize=25
ACCESS MERCHANTS
API Request URL Format: https://api.rewardpay.com/{API Key}/{MethodName}/{DataFormat}?MerchantName={ MerchantName}&RelationType={RelationType}&PageNo={PageNo}&PageSize={PageSize}
Parameter | Value | Type | Note |
---|---|---|---|
API KEY | ---- | Mandatory | Should have valid and active API Key |
MethodName | GetNetworks | Mandatory | |
DataFormat | JSON | XML | CSV | Mandatory | Only one data type is allowed at a time. Please use JSON or XML or CSV |
MerchantName | Optional | Use this filter parameter if you want to filter merchants by merchant name. Pass few characters from beginning of merchant name. | |
RelationType | JOINED | ALL | Optional | Pass this, if you want to access the merchants which you added to your RewardPay account. |
PageNo | Optional | By default, API returns all data. But if the PageNo is being passed then the data will be shown accordingly. With this parameter, PageSize parameter is required. | |
PageSize | Optional | Pass the value if the data required in paging. This parameter used to set the number of records in a page. |
EXAMPLE:
- Get all merchants without paging. API Request URL: https://api.rewardpay.com/ef8f361d98222ca9de12814223aff0ac/GetMerchants/Json
- Get all merchants of page size 25. API Request URL: https://api.rewardpay.com/ef8f361d98222ca9de12814223aff0ac/GetMerchants /Json?PageNo=1&PageSize=25
- Get all merchants joined/added to the RewardPay account, of page size 25. API Request URL: https://api.rewardpay.com/ef8f361d98222ca9de12814223aff0ac/GetMerchants/Json? RelationType=JOINED&PageNo=1&PageSize=25
- Search merchants by merchant name. Start with Zal (for Zalora search) to the RewardPay account, of page size 25. API Request URL: https://api.rewardpay.com/ef8f361d98222ca9de12814223aff0ac/GetMerchants /Json?MerchantName=Zal &PageNo=1&PageSize=25
User same as above for XML and CSV format, only need to replace data format parameter values i.e.replaces json by xml or csv.
ACCESS CATEGORIES
API Request URL Format: https://api.rewardpay.com/{API Key}/{MethodName}/{DataFormat}?CategoryName={ CategoryName}&RelationType={RelationType}&PageNo={PageNo}&PageSize={PageSize}
Parameter | Value | Type | Note |
---|---|---|---|
API KEY | ---- | Mandatory | Should have valid and active API Key |
MethodName | GetCategories | Mandatory | |
DataFormat | JSON | XML | CSV | Mandatory | Only one data type is allowed at a time. Please use JSON or XML or CSV |
CategoryName | Optional | Use this filter parameter if you want to filter categories by category name. Pass few characters from beginning of the category name. | |
RelationType | JOINED | ALL | Optional | Pass this, if you want to access the categories which you added to your RewardPay account. |
PageNo | Optional | By default, API returns all data. But if the PageNo is being passed then the data will be shown accordingly. With this parameter, PageSize parameter is required. | |
PageSize | Optional | Pass the value if the data required in paging. This parameter used to set number of records in a page. |
EXAMPLE:
- Get all categories without paging. API Request URL: https://api.rewardpay.com/ef8f361d98222ca9de12814223aff0ac/GetCategories/Json
- Get all categories of page size 25. API Request URL: https://api.rewardpay.com/ef8f361d98222ca9de12814223aff0ac/GetCategories /Json?PageNo=1&PageSize=25
- Get all categories joined/added to the RewardPay account, of page size 25. API Request URL: https://api.rewardpay.com/ef8f361d98222ca9de12814223aff0ac/GetCategories/Json? RelationType=JOINED&PageNo=1&PageSize=25
- Search categories by category name start with Fash (for Fashion search) in the RewardPay account, of page size 25. API Request URL: https://api.rewardpay.com/ef8f361d98222ca9de12814223aff0ac/GetCategories/Json?CategoryName=fash &PageNo=1&PageSize=25
User same as above for XML and CSV format, only need to replace data format parameter values i.e.replaces json by xml or csv.
ACCESS SALES
This method is accessible to revenue share plan. You have subscribed revenue share plan then you can access the sale data via API.
API Request URL Format: https://api.rewardpay.com/{API Key}/{MethodName}/{DataFormat}?NetworkName={ NetworkName}&MerchantNam={MerchantName}&Status={Status}&PageNo={PageNo}&PageSize={PageSize}
Parameter | Value | Type | Note |
---|---|---|---|
API KEY | ---- | Mandatory | Should have valid and active API Key |
MethodName | GetSales | Mandatory | |
DataFormat | JSON | XML | CSV | Mandatory | Only one data type is allowed at a time. Please use JSON or XML or CSV |
NetworkName | Optional | If you want to get sale from specific network, then pass the network name in this parameter. | |
MerchantName | Optional | If you want to get sale from specific merchant, then pass the network name in this parameter. | |
Status | TRACKED | CONFIRMED | DECLINE | Optional | Use to filter sale by sale status. |
PageNo | Optional | By default, API returns all data. But if the PageNo is being passed then the data will be shown accordingly. With this parameter, PageSize parameter is required. | |
PageSize | Optional | Pass the value if the data required in paging. This parameter used to set the number of records in a page. |
EXAMPLE:
- Get all sales API Request URL: https://api.rewardpay.com/ef8f361d98222ca9de12814223aff0ac/GetSales/Json
- Get all sales of page size 25. API Request URL: https://api.rewardpay.com/ef8f361d98222ca9de12814223aff0ac/GetSales/Json?PageNo=1&PageSize=25
- Get all sales joined/added to the RewardPay account, of page size 25. API Request URL: https://api.rewardpay.com/ef8f361d98222ca9de12814223aff0ac/GetSales/Json? RelationType=JOINED&PageNo=1&PageSize=25
- Filter sales by network name and get results in page size of 25. API Request URL: https://api.rewardpay.com/ef8f361d98222ca9de12814223aff0ac/GetSales/Json?NetworkName=Optimize &PageNo=1&PageSize=25
- Filter sales by network name, merchant name and get results in page size of 25. API Request URL: https://api.rewardpay.com/ef8f361d98222ca9de12814223aff0ac/GetSales/Json?NetworkName=Optimize &MerchantName=Zalora&PageNo=1&PageSize=25
- Filter sales by network name, merchant name and status and get results in page size of 25. API Request URL: https://api.rewardpay.com/ef8f361d98222ca9de12814223aff0ac/GetSales/Json?NetworkName=Optimize &MerchantName=Zalora&Status=TRACKED&PageNo=1&PageSize=25
User same as above for XML and CSV format, only need to replace data format parameter values i.e.replace json by xml or csv.
ACCESS CLICKS
This method is accessible to Data Subcribers signed up to the revenue share plan.
API Request URL Format: https://api.rewardpay.com/{API Key}/{MethodName}/{DataFormat}? PageNo={PageNo}&PageSize={PageSize}
Parameter | Value | Type | Note |
---|---|---|---|
API KEY | ---- | Mandatory | Should have valid and active API Key |
MethodName | GetClicks | Mandatory | |
DataFormat | JSON | XML | CSV | Mandatory | Only one data type is allowed at a time. Please use JSON or XML or CSV |
PageNo | Optional | By default, API returns all data. But if the PageNo is being passed then the data will be shown accordingly. With this parameter, PageSize parameter is required. | |
PageSize | Optional | Pass the value if the data required in paging. This parameter used to set the number of records in a page. |
EXAMPLE:
- Get all clicks API Request URL: https://api.rewardpay.com/ef8f361d98222ca9de12814223aff0ac/GetClicks/Json
- Get all clicks of page size 25. API Request URL: https://api.rewardpay.com/ef8f361d98222ca9de12814223aff0ac/GetClicks/Json?PageNo=1&PageSize=25
User same as above for XML and CSV format, only need to replace data format parameter values i.e.replaces json by xml or csv.
Contact RewardPay to access our Developer API and sandbox.