Coupons are discounts codes that you can configure and apply to subscriptions.
{
"addon_constraint": "not_applicable",
"apply_discount_on": "not_applicable",
"apply_on": "invoice_amount",
"created_at": 1517498159,
"currency_code": "USD",
"discount_amount": 500,
"discount_type": "fixed_amount",
"duration_type": "forever",
"id": "sample_offer",
"name": "Sample Offer",
"object": "coupon",
"plan_constraint": "not_applicable",
"redemptions": 0,
"resource_version": 1517498159000,
"status": "active",
"updated_at": 1517498159
}Used to uniquely identify the coupon in your website/application and to integrate with Chargebee.
Note:
When the coupon ID contains a special character; for example: #, the API returns an error.
Make sure that you encode the coupon ID in the path parameter before making an API call.
The display name used in web interface for identifying the coupon.
Note:
When the name of the coupon set contains a special character; for example: #, the API returns an error.
Make sure that you encode the name of the coupon set in the path parameter before making an API call.
This API creates a new coupon for a specific promotion or offers.
Used to uniquely identify the coupon in your website/application and to integrate with Chargebee.
Note:
When the coupon ID contains a special character; for example: #, the API returns an error.
Make sure that you encode the coupon ID in the path parameter before making an API call.
The display name used in web interface for identifying the coupon.
Note:
When the name of the coupon set contains a special character; for example: #, the API returns an error.
Make sure that you encode the name of the coupon set in the path parameter before making an API call.
List all the available coupons that are created for a specific promotion or offers. You can find list of coupon codes that are currently active, expired, archived or deleted.
This API retrieves a specific coupon using the coupon ID.