create_stripe_promotion_code
create stripe promotion code
Description
Create a customer-typable promotion code (e.g. SUMMER20) for an existing Stripe coupon — the thing a "use code X" ad needs, since a coupon alone has no code. couponId (from list_stripe_coupons); optional code (letters, digits and dashes; Stripe generates one if omitted — a code with spaces or symbols is refused, never altered), maxRedemptions, expiresAt (YYYY-MM-DD), firstTimeOnly, minimumAmount + minimumAmountCurrency (major units), customerId. Read back. LIVE key: confirm:true after showing the preview. Use it on a payment link with allowPromotionCodes. Needs Stripe connected (Connectors > Stripe, or connect_connector).
Parameters
| Parameter | Type | Description |
|---|---|---|
couponIdrequired | string | coupon id to apply, from list_stripe_coupons |
code | string | customer-typable code, letters, digits and dashes; Stripe generates one if omitted |
maxRedemptions | number | maximum uses of this code |
expiresAt | string | last day the code works, YYYY-MM-DD |
firstTimeOnly | boolean | true = valid only on a customer's first purchase |
minimumAmount | number | MAJOR units |
minimumAmountCurrency | string | 3-letter currency code for minimumAmount |
customerId | string | restrict the code to one customer (cus_…) |
metadata | object | key/value metadata stored on the code |
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_promotion_code.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_stripe_promotion_code","arguments":{"couponId":"<string>"}}}
CLI
hermoso call create_stripe_promotion_code --json '{"couponId":"<string>"}'
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
list_stripe_couponslist stripe couponsconnect_connectorConnect a paste-a-key accountlist_stripe_promotion_codeslist stripe promotion codesupdate_stripe_promotion_codeupdate stripe promotion codelist_stripe_payment_linkslist stripe payment linksupdate_stripe_payment_linkupdate stripe payment linkget_stripe_payment_link_revenuestripe payment link revenue