hermosodocs

create_stripe_coupon

create stripe coupon

Area: Stripe, the full surface · Workspace & account. Generated from the running MCP server, like the rest of the tool reference.

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

ParameterTypeDescription
namestringdisplay name for the coupon, for your records
idstringcustom coupon id; Stripe generates one if omitted
percentOffnumberpercent discount, 1 to 100; use this or amountOff
amountOffnumberfixed discount in major units, e.g. 5 = 5.00; needs currency
currencystring3-letter currency code; required with amountOff
durationstringonce (default), repeating or forever
durationInMonthsnumbermonths the discount applies, with duration repeating
maxRedemptionsnumberuses of the COUPON across every code
codestringthe customer-typable promotion code, e.g. SUMMER20 — letters, digits and dashes only; refused (never altered) otherwise
codeMaxRedemptionsnumberuses of this CODE
expiresAtstringYYYY-MM-DD the code stops working
firstTimeOnlybooleanthe code works only on a customer's first purchase
minimumAmountnumberminimum order in MAJOR units for the code
minimumAmountCurrencystringcurrency for the code's minimumAmount, e.g. usd
confirmbooleantrue 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.

All 143 Workspace & account tools · tools.json