1.1 Description

 
pathhttp://www.your_website_domain.com/FeiEditor/api_v1/shop/coupons
methodGET/POST
illustrateObtain a list of coupons based on query conditions.
  

1.2 parameters

 
namemusttypedescribe
filter[]noarrayfilter. Click here for how to use .
filter[limit]nointThe number of coupons returned by a query, the default is 10. The valid range is 1 to 1000.
pagenointThe number of pages currently queried, used in conjunction with filter[limit]. Used to implement paging queries.
  

1.3 return result

 
correct result
Return format: JSON
{
  "coupons": [
    {
      "id": 1,
      "code": "new-coupon",
      "type": "percent",
      "created_at": "2017-01-01T19:05:27Z",
      "updated_at" : "2017-01-01T19:05:27Z",
      "amount": "10.00",
      "individual_use": true,
      "product_ids": [],
      "exclude_product_ids": [],
      "usage_limit": null,
      "usage_limit_per_user" : null,
      "limit_usage_to_x_items": 0,
      "usage_count": 0,
      "expiry_date": null,
      "enable_free_shipping": false,
      "product_category_ids": [],
      "exclude_product_category_ids": [],
      "exclude_sale_items": true,
      "minimum_amount": "100.00",
      "customer_emails": [],
      "description": ""
    }
  ]
}