Coupons

List Coupon Usages

GET
/product_families/{product_family_id}/coupons/{coupon_id}/usage.json

Lists coupon usage details, one entry per product.

Authorization

BasicAuth
AuthorizationBasic <token>

The username is a Maxio Chargify API key. The password is x.

In: header

Path Parameters

product_family_id*integer

The Advanced Billing id of the product family to which the coupon belongs.

coupon_id*integer

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  }]