---
ref: tool:chargebee/create-coupon
name: Create a coupon
company: company:chargebee
workflows: []
access: [api]
tags: [capability:collect-payments, category:payments, has:api]
docs: https://apidocs.chargebee.com/docs/api/coupons/create-a-coupon-for-items
updated: 2026-09-27
---

# Create a coupon

Creates a percentage, fixed-amount or free-quantity coupon that applies to an invoice or to specific items, and returns the coupon.

## Set up

Use the first option your agent supports.

### API (official)

- Base URL: https://{site}.chargebee.com/api/v2
- Endpoint: `POST /coupons/create_for_items`
- Auth: send the header `Authorization: Basic $CHARGEBEE_API_KEY`
- Docs: https://apidocs.chargebee.com/docs/api

Note: `{site}` is your Chargebee site name, such as `acme-test`. `CHARGEBEE_API_KEY` holds the base64 of `<api key>:`, and test and live sites have different keys.

Before anything else, confirm access with the cheapest read-only call, like a list or a search. Never send or change anything to test access.

## Rules

- Ask the user before anything that sends messages, costs money, or changes data, and say how many records it touches. One approval covers a batch the user has seen.
- Never print API keys.
