Home / Servers / Stripe API / delete_customers_customer_subscriptions_subscription_exposed

Cancel a subscription

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

Cancel a subscription Cancels a customer’s subscription. If you set the at_period_end parameter to true , the subscription will remain active until the end of the period, at which point it will be canceled and not… [DELETE /v1/customers/{customer}/subscriptions/{subscription_exposed_id}]

Name on the gateway: stripe_api__delete_customers_customer_subscriptions_subscription_exposed · may change things.

Parameters

NameTypeDescription
customer requiredstringcustomer parameter
subscription_exposed_id requiredstringsubscription_exposed_id parameter
expandarraySpecifies which fields in the response should be expanded.
invoice_nowbooleanCan be set to true if at_period_end is not set to true. Will generate a final…
proratebooleanCan be set to true if at_period_end is not set to true. Will generate a…

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__delete_customers_customer_subscriptions_subscription_exposed",
  "arguments": {
    "customer": "…",
    "subscription_exposed_id": "…"
  }
}

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 cancel a subscription tool with customer set to ….

More from Stripe API