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

Add coupon codes to coupon set

Idempotency Supported

This API add coupon codes to an existing coupon set.

Sample Request

Sample Result[JSON]

URL Format

POST https://[site].chargebee.com/api/v2/coupon_sets/{coupon-set-id}/add_coupon_codes

Input Parameters

code
optional, string, max chars=50

You can pass up to 100 values per API call. You can also use the Chargebee UI to pass up to 1000 codes per operation. There is no limit on the total number of coupon codes that can be included in a coupon set.

Returns

Coupon set object
Resource object representing coupon_set