# Hermoso: create_stripe_promotion_code · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/workspace/create_stripe_promotion_code/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Workspace & account](https://hermoso.ai/docs/reference/workspace/) / create_stripe_promotion_code

# `create_stripe_promotion_code`

create stripe promotion code

Area: Stripe promotion codes, payment-link edits and revenue per l… · [Workspace & account](https://hermoso.ai/docs/reference/workspace/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/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

Parameter Type Description

`couponId` required `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](https://hermoso.ai/docs/credits/).

## Related tools

- [list_stripe_coupons](https://hermoso.ai/docs/reference/workspace/list_stripe_coupons/) list stripe coupons
- [connect_connector](https://hermoso.ai/docs/reference/workspace/connect_connector/) Connect a paste-a-key account
- [list_stripe_promotion_codes](https://hermoso.ai/docs/reference/workspace/list_stripe_promotion_codes/) list stripe promotion codes
- [update_stripe_promotion_code](https://hermoso.ai/docs/reference/workspace/update_stripe_promotion_code/) update stripe promotion code
- [list_stripe_payment_links](https://hermoso.ai/docs/reference/workspace/list_stripe_payment_links/) list stripe payment links
- [update_stripe_payment_link](https://hermoso.ai/docs/reference/workspace/update_stripe_payment_link/) update stripe payment link
- [get_stripe_payment_link_revenue](https://hermoso.ai/docs/reference/workspace/get_stripe_payment_link_revenue/) stripe payment link revenue

[All 143 Workspace & account tools](https://hermoso.ai/docs/reference/workspace/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
