Introducing the Better Auth Chargebee plugin: Use it to handle subscriptions, billing, and auth seamlessly.
Chargebeechargebee API

Archive a coupon code

Idempotency Supported

Archives a coupon code thereby making it inactive. The archived coupon code cannot be applied to any subscription.

Sample Request

Sample Result[JSON]

URL Format

POST https://[site].chargebee.com/api/v2/coupon_codes/{coupon-code-code}/archive

Returns

Coupon code object
Resource object representing coupon_code