Home / Servers / Stripe API / post_customers_customer_subscriptions

Create a subscription

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

Create a subscription Creates a new subscription on an existing customer. [POST /v1/customers/{customer}/subscriptions]

Name on the gateway: stripe_api__post_customers_customer_subscriptions · may change things.

Parameters

NameTypeDescription
customer requiredstringcustomer 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.
backdate_start_dateintegerA past timestamp to backdate the subscription's start date to. If set, the…
billing_cycle_anchorintegerA future timestamp in UTC format to anchor the subscription's billing cycle.…
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…
collection_methodcharge_automatically | send_invoiceEither charge_automatically, or send_invoice. When charging automatically…
currencystringThree-letter ISO currency code, in lowercase. Must be a supported currency.
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. If not specified or…
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…
payment_behaviorallow_incomplete | default_incomplete | error_if_incomplete | pending_if_incompleteControls how Stripe handles the first invoice when payment is required and…
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 resulting from the billing_cycle_anchor.…
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_period_daysintegerInteger representing the number of trial period days before the customer is…
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",
  "arguments": {
    "customer": "…"
  }
}

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

More from Stripe API