Returns a coupon by its Advanced Billing-assigned ID. You must identify the Coupon in this call by the ID parameter that Advanced Billing assigns. If instead you would like to find a Coupon using a Coupon code, see the Coupon Find method.
If the coupon is set to use_site_exchange_rate: true, it will return pricing based on the current exchange rate. If the flag is set to false, it will return all of the defined prices for each currency.
The username is a Maxio Chargify API key and the password is x. Basic authentication works only with the US and EU environments, which connect to chargify.com directly. The Maxio API Gateway environment does not accept Basic authentication.
In: header
The Advanced Billing id of the product family to which the coupon belongs
The Advanced Billing id of the coupon
(Optional) If you have defined multiple currencies at the site level, you can pass ?currency_prices=true to include an array of currency price data in the response.
application/json
curl -X GET -G \ --url 'https://subdomain.chargify.com/product_families/1/coupons/1.json' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer ACCESS_TOKEN'