Get Coupons

From KartRocket API
Jump to: navigation, search

Get Coupons

Request

User can get all Coupons information by making a HTTP GET Request on the following URL.


YOUR_STORE_URL_ON_KARTROCKET.'index.php?route=feed/web_api/coupons&key='.WEB_API_KEY.
'&code='.COUPON_CODE.'&date_from='.UNIX_DATETIME.'&date_to='.UNIX_DATETIME.'&page='.PAGE_NO;

Example

e.g.; http://api.kartrocket.co/index.php?route=feed/web_api/products &key=API&code=1111&date_from=13344342&date_to=13432432&page=1;

Response

You will get the following response to the above GET request.


[
   {
      "coupon_id":"6",
      "name":"-10.00 Discount",
      "code":"1111",
      "discount":"10.0000",
      "date_start":"1970-11-01",
      "date_end":"2020-11-01",
      "status":"1"
   }
]



Parameters Description

key : API Key provided by KartRocket.(Required)


Filters

code : Coupon Code in KartRocket system.

date_from : Coupon added date (Min). UNIX Time Stamp e.g. 1388998982.

date_to : Coupon added date (Max). UNIX Time Stamp e.g. 1388998982.