Home / Servers / Stripe API / post_customers_customer_subscriptions_subscription_exposed_i

Update a subscription on a customer

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

Update a subscription on a customer Updates an existing subscription on a customer to match the specified parameters. When changing plans or quantities, we will optionally prorate the price we charge next month to make up for any… [POST /v1/customers/{customer}/subscriptions/{subscription_exposed_id}]

Name on the gateway: stripe_api__post_customers_customer_subscriptions_subscription_exposed_i · may change things.

Parameters

NameTypeDescription
customer requiredstringcustomer parameter
subscription_exposed_id requiredstringsubscription_exposed_id parameter
add_invoice_itemsarrayA list of prices and quantities that will generate invoice items appended to…
application_fee_percentnumberA non-negative decimal between 0 and 100, with at most two decimal places.…
automatic_taxobjectAutomatic tax settings for this subscription. We recommend you only include…
billing_cycle_anchornow | unchangedEither now or unchanged. Setting the value to now resets the subscription's…
billing_thresholdsobjectDefine thresholds at which an invoice will be sent, and the subscription…
cancel_atintegerA timestamp at which the subscription should cancel. If set to a date before…
cancel_at_period_endbooleanIndicate whether this subscription should cancel at the end of the current…
cancellation_detailsobjectDetails about why this subscription was cancelled
collection_methodcharge_automatically | send_invoiceEither charge_automatically, or send_invoice. When charging automatically…
days_until_dueintegerNumber of days a customer has to pay invoices generated by this subscription.…
default_payment_methodstringID of the default payment method for the subscription. It must belong to the…
default_sourcestringID of the default payment source for the subscription. It must belong to the…
default_tax_ratesarrayThe tax rates that will apply to any subscription item that does not have…
discountsarrayThe coupons to redeem into discounts for the subscription. A populated array…
expandarraySpecifies which fields in the response should be expanded.
invoice_settingsobjectAll invoices will be billed using the specified settings.
itemsarrayA list of up to 20 subscription items, each with an attached price.
metadataobjectSet of key-value pairs that you can attach to an object. This can be useful…
off_sessionbooleanIndicates if a customer is on or off-session while an invoice payment is…
pause_collectionobjectIf specified, payment collection for this subscription will be paused. Note…
payment_behaviorallow_incomplete | default_incomplete | error_if_incomplete | pending_if_incompleteControls how Stripe handles payment when a subscription update requires…
payment_settingsobjectPayment settings to pass to invoices created by the subscription.
pending_invoice_item_intervalobjectSpecifies an interval for how often to bill for any pending invoice items. It…
proration_behavioralways_invoice | create_prorations | noneDetermines how to handle prorations when the billing cycle changes (e.g., when…
proration_dateintegerIf set, prorations will be calculated as though the subscription was updated…
transfer_dataobjectIf specified, the funds from the subscription's invoices will be transferred…
trial_endnowUnix timestamp representing the end of the trial period the customer will get…
trial_from_planbooleanIndicates if a plan's trial_period_days should be applied to the subscription.…
trial_settingsobjectSettings related to subscription trials.

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_customers_customer_subscriptions_subscription_exposed_i",
  "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 update a subscription on a customer tool with customer set to ….

More from Stripe API