hermosodocs

update_stripe_promotion_code

update stripe promotion code destructive

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

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

ParameterTypeDescription
promotionCodeIdstringpromotion code id, promo_...; give this or code
codestringthe customer-typable code text, if promotionCodeId is not given
activebooleanfalse switches the code off; true switches it back on
metadataobjectkey/value metadata to set on the code
confirmbooleantrue 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.

All 143 Workspace & account tools · tools.json