Deletes a specific subcode from a coupon.
Given a coupon with an ID of 567, and a coupon subcode of 20OFF, the URL to DELETE this coupon subcode would be:
http://subdomain.chargify.com/coupons/567/codes/20OFF.<format>Note: If you are using any of the allowed special characters (“%”, “@”, “+”, “-”, “_”, and “.”), you must encode them for use in the URL.
| Special character | Encoding |
|---|---|
| % | %25 |
| @ | %40 |
| + | %2B |
| – | %2D |
| _ | %5F |
| . | %2E |
Or if the coupon subcode is 20%OFF, the URL to delete this coupon subcode would be: @https://.chargify.com/coupons/567/codes/20%25OFF..
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 coupon to which the subcode belongs
The subcode of the coupon
curl -X DELETE \ --url 'https://subdomain.chargify.com/coupons/1/codes/subcode.json' \ -H 'Authorization: Bearer ACCESS_TOKEN'