List Coupon Usages
Lists coupon usage details, one entry per product.
Authorization
BasicAuth The username is a Maxio Chargify API key. The password is x.
In: header
Path Parameters
The Advanced Billing id of the product family to which the coupon belongs.
The Advanced Billing id of the coupon.
Response Body
application/json
curl -X GET "https://example.com/product_families/0/coupons/0/usage.json"[ { "name": "No cost product", "id": 3903594, "signups": 0, "savings": 0, "savings_in_cents": 0, "revenue": 0, "revenue_in_cents": 0 }, { "name": "Product that expires", "id": 3853680, "signups": 0, "savings": 0, "savings_in_cents": 0, "revenue": 0, "revenue_in_cents": 0 }, { "name": "Trial Product", "id": 3861800, "signups": 1, "savings": 30, "savings_in_cents": 3000, "revenue": 20, "revenue_in_cents": 2000 }]List Coupons GET
Lists coupons for a site.
Validate Coupon GET
Verifies whether a specific coupon code is valid. This method is useful for validating coupon codes that are entered by a customer. If you have more than one product family and if the coupon you are validating does not belong to the first product family in your site, you need to specify the product family, either in the URL or as a query string param. This can be done by supplying the id or the handle in the `handle:my-family` format. Supplying the `product_family_handle` in the URL: ``` https://<subdomain>.chargify.com/product_families/handle:<product_family_handle>/coupons/validate.<format>?code=<coupon_code> ``` Supplying the `product_family_id` as a query parameter: ``` https://<subdomain>.chargify.com/coupons/validate.<format>?code=<coupon_code>&product_family_id=<id> ```