優惠券API / 獲取某優惠券的詳細信息
優惠券API / 獲取某優惠券的詳細信息
發布日期:2018-10-27
瀏覽次數:2500
1.1 說明
路徑 | //www.your_web🔯site_domain.com/FeiEditor/api_v1/shop/coupons/{id} |
方法 | GET/POST |
說明 | 根據優惠券的ID,獲得優惠券的詳細信息。 |
1.2 參數
1.3 返回結果
正確結果 |
返回格式:JSON |
{ "coupon": { "id": 1, "code": "new-coupon", "type": "percent", "created_at": "2018-01-01T19:05:27Z", "updated_at": "2018-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": "" } } |