Archives a coupon, making it unavailable for future use while remaining active on existing subscriptions.
Archiving makes that Coupon unavailable for future use, but allows it to remain attached and functional on existing Subscriptions that are using it.
The archived_at date and time will be assigned.
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
application/json
curl -X DELETE \ --url 'https://subdomain.chargify.com/product_families/1/coupons/1.json' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer ACCESS_TOKEN'