create_stripe_coupon
create stripe coupon
Description
Create a Stripe coupon: exactly one of percentOff (1–100) or amountOff (major units) + currency; duration once (default), repeating (with durationInMonths) or forever; optional name, id and maxRedemptions. A coupon alone has NO code a customer can type: pass `code` (letters, digits, dashes) to also mint the customer-typable promotion code in the same call, with optional codeMaxRedemptions, expiresAt, firstTimeOnly and minimumAmount. Read back. LIVE key: confirm:true after showing the preview. Needs Stripe connected (Connectors > Stripe, or connect_connector).
Parameters
| Parameter | Type | Description |
|---|---|---|
name | string | display name for the coupon, for your records |
id | string | custom coupon id; Stripe generates one if omitted |
percentOff | number | percent discount, 1 to 100; use this or amountOff |
amountOff | number | fixed discount in major units, e.g. 5 = 5.00; needs currency |
currency | string | 3-letter currency code; required with amountOff |
duration | string | once (default), repeating or forever |
durationInMonths | number | months the discount applies, with duration repeating |
maxRedemptions | number | uses of the COUPON across every code |
code | string | the customer-typable promotion code, e.g. SUMMER20 — letters, digits and dashes only; refused (never altered) otherwise |
codeMaxRedemptions | number | uses of this CODE |
expiresAt | string | YYYY-MM-DD the code stops working |
firstTimeOnly | boolean | the code works only on a customer's first purchase |
minimumAmount | number | minimum order in MAJOR units for the code |
minimumAmountCurrency | string | currency for the code's minimumAmount, e.g. usd |
confirm | boolean | true on a live key, after the user approves the preview |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/create_stripe_coupon.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_stripe_coupon","arguments":{}}}
CLI
hermoso call create_stripe_coupon --json '{}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
connect_connectorConnect a paste-a-key accountcreate_stripe_payment_linkcreate stripe payment linkcreate_stripe_customercreate stripe customercreate_stripe_pricecreate stripe pricecreate_stripe_subscriptioncreate stripe subscriptioncreate_stripe_productcreate stripe productcancel_stripe_subscriptioncancel stripe subscriptionlist_stripe_couponslist stripe couponsrefund_stripe_chargerefund stripe chargelist_stripe_refundslist stripe refunds