# Hermoso: update_stripe_promotion_code · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/workspace/update_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/) / update_stripe_promotion_code

# `update_stripe_promotion_code`

update stripe promotion code destructive

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

Switch a Stripe promotion code OFF (active:false) or back on (active:true), or change its metadata. Pass promotionCodeId (promo_…) or the code itself. Switching a code off ALWAYS needs confirm:true, test keys included, because anyone holding it from an ad is then refused at checkout. Read back; a code Stripe will not reactivate (its coupon is no longer valid) is reported, not claimed. Needs Stripe connected (Connectors > Stripe, or connect_connector).

## Parameters

Parameter Type Description

`promotionCodeId` `string` promotion code id, promo_...; give this or code

`code` `string` the customer-typable code text, if promotionCodeId is not given

`active` `boolean` false switches the code off; true switches it back on

`metadata` `object` key/value metadata to set on the code

`confirm` `boolean` true to switch a code off, as well as to confirm a live-key write

## 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/update_stripe_promotion_code`.

**MCP** (`tools/call`)

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"update_stripe_promotion_code","arguments":{}}}`
**CLI**

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

## Related tools

- [connect_connector](https://hermoso.ai/docs/reference/workspace/connect_connector/) Connect a paste-a-key account
- [create_stripe_promotion_code](https://hermoso.ai/docs/reference/workspace/create_stripe_promotion_code/) create stripe promotion code
- [list_stripe_payment_links](https://hermoso.ai/docs/reference/workspace/list_stripe_payment_links/) list stripe payment links
- [list_stripe_promotion_codes](https://hermoso.ai/docs/reference/workspace/list_stripe_promotion_codes/) list stripe promotion codes
- [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)
