Create / Update Currency Prices
Creates and/or updates currency prices for an existing coupon. Multiple prices can be created or updated in a single request but each of the currencies must be defined on the site level already and the coupon must be an amount-based coupon, not percentage.
Currency pricing for coupons must mirror the setup of the primary coupon pricing - if the primary coupon is percentage based, you will not be able to define pricing in non-primary currencies.
Authorization
BasicAuth The username is a Maxio Chargify API key. The password is x.
In: header
Path Parameters
The Advanced Billing id of the coupon
Request Body
application/json
Response Body
application/json
application/json
curl -X PUT "https://example.com/coupons/0/currency_prices.json" \ -H "Content-Type: application/json" \ -d '{ "currency_prices": [ { "currency": "EUR", "price": 10 }, { "currency": "GBP", "price": 9 } ] }'{ "currency_prices": [ { "id": 0, "currency": "string", "price": 0, "coupon_id": 0 } ]}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> ```
List Coupon Subcodes GET
Lists the subcodes attached to a coupon.