优惠券API / 查询优惠券列表
优惠券API / 查询优惠券列表
发布日期:2017-10-27
浏览次数:2765
1.1 说明
| 路径 | http://www.your_website_domain.com/FeiEditor/api_v1/shop/coupons |
| 方法 | GET/POST |
| 说明 | 根据查询条件,获得优惠券列表。 |
1.2 参数
| 名称 | 必须 | 类型 | 描述 |
| filter[] | No | array | 过滤器。使用方法请点这里。 |
| filter[limit] | No | int | 一次查询返回的优惠券的数量,默认是10。有效范围是1到1000。 |
| page | No | int | 当前查询的页数,和filter[limit]配合使用。用来实现分页查询。 |
1.3 返回结果
| 正确结果 |
| 返回格式: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": "" } ] } |
