update_stripe_promotion_code
update stripe promotion code destructive
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.
Related tools
connect_connectorConnect a paste-a-key accountcreate_stripe_promotion_codecreate stripe promotion codelist_stripe_payment_linkslist stripe payment linkslist_stripe_promotion_codeslist stripe promotion codesupdate_stripe_payment_linkupdate stripe payment linkget_stripe_payment_link_revenuestripe payment link revenue