Home / Servers / Stripe API / post_promotion_codes_promotion_code

Update a promotion code

An MCP tool from the Stripe API server, hosted on mcp.hjlabs.in.

Update a promotion code Updates the specified promotion code by setting the values of the parameters passed. Most fields are, by design, not editable. [POST /v1/promotion_codes/{promotion_code}]

Name on the gateway: stripe_api__post_promotion_codes_promotion_code · may change things.

Parameters

NameTypeDescription
promotion_code requiredstringpromotion_code parameter
activebooleanWhether the promotion code is currently active. A promotion code can only be…
expandarraySpecifies which fields in the response should be expanded.
metadataobjectSet of key-value pairs that you can attach to an object. This can be useful…
restrictionsobjectSettings that restrict the redemption of the promotion code.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "stripe_api__post_promotion_codes_promotion_code",
  "arguments": {
    "promotion_code": "…"
  }
}

Or connect the Stripe API server directly, which lists 606 tools including this one:

Run in your terminal
claude mcp add --transport http hj-stripe-api https://mcp.hjlabs.in/mcp/stripe-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the update a promotion code tool with promotion_code set to ….

More from Stripe API