hermosodocs

create_stripe_promotion_code

create stripe promotion code

Area: Stripe promotion codes, payment-link edits and revenue per l… · Workspace & account. Generated from the running MCP server, like the rest of the tool reference.

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

ParameterTypeDescription
couponIdrequiredstringcoupon id to apply, from list_stripe_coupons
codestringcustomer-typable code, letters, digits and dashes; Stripe generates one if omitted
maxRedemptionsnumbermaximum uses of this code
expiresAtstringlast day the code works, YYYY-MM-DD
firstTimeOnlybooleantrue = valid only on a customer's first purchase
minimumAmountnumberMAJOR units
minimumAmountCurrencystring3-letter currency code for minimumAmount
customerIdstringrestrict the code to one customer (cus_…)
metadataobjectkey/value metadata stored on the code
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_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.

All 143 Workspace & account tools · tools.json