create_stripe_subscription
create stripe subscription destructive
Description
Subscribe a Stripe customer (cus_…) to a price (price_…), optional quantity and trialDays. THIS CHARGES THE CUSTOMER'S SAVED PAYMENT METHOD when there is no trial, so it ALWAYS needs confirm:true (test keys included) after you show the user exactly what will be created. Read back; an INCOMPLETE status means no chargeable card is on file. Needs Stripe connected (Connectors > Stripe, or connect_connector).
Parameters
| Parameter | Type | Description |
|---|---|---|
customerIdrequired | string | customer id, cus_... |
priceIdrequired | string | recurring price id, price_... |
quantity | number | quantity of the price, e.g. number of seats |
trialDays | number | free trial length in days before the first charge |
metadata | object | key/value metadata stored on the subscription |
confirm | boolean | true to charge the saved card; always required, test keys included |
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/create_stripe_subscription.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_stripe_subscription","arguments":{"customerId":"<string>","priceId":"<string>"}}}
CLI
hermoso call create_stripe_subscription --json '{"customerId":"<string>","priceId":"<string>"}'
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.
Related tools
connect_connectorConnect a paste-a-key accountcreate_stripe_customercreate stripe customercancel_stripe_subscriptioncancel stripe subscriptioncreate_stripe_couponcreate stripe couponrefund_stripe_chargerefund stripe chargecreate_stripe_payment_linkcreate stripe payment linkcreate_stripe_pricecreate stripe pricecreate_stripe_productcreate stripe productlist_stripe_couponslist stripe couponslist_stripe_refundslist stripe refunds