251
All tools

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.

Updated Sep 27, 2026

create-coupon.md

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.

Ways in

RouteSourceCallRequiredDocs
APIOfficialPOST /coupons/create_for_itemsAPI key in $CHARGEBEE_API_KEYDocs

Workflows using Create a coupon

No workflows yet
No published workflow uses Create a coupon yet.