1.1 Description

 
pathhttp://www.your_website_domain.com/FeiEditor/api_v1/shop/coupons/{id}
methodGET/POST
illustrateAccording to the ID of the coupon, the detailed information of the coupon is obtained.
 
 

1.2 parameters

 
none. Just use the product ID at the end of the URL directly. For example: You need to get the detailed data of a product whose product ID is 12345. You just need to send a request to http://www.your_website_domain.com/FeiEditor/api_v1/shop/coupons/12345. Special reminder: http://www.your_website_domain.com/FeiEditor/api_v1/shop/ coupons ?id=12345 is illegal . 
 

1.3 return result

 
correct result
Return format: JSON
{
  "coupon":
    {
      "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": ""
    }
}