Skip to main content
Use stripe.createSubscription to create a recurring Stripe subscription for a customer.

Example

automations/stripe-create-subscription.automation.ts

Inputs

customer and at least one item are typical. Payment behavior, trials, proration, and collection settings follow Stripe’s subscription contract. idempotencyKey is optional. Inputs use camel case and accept compatible signals. Automate.ax converts provider fields to Stripe’s wire format. Metadata keys remain unchanged.

Output

Returns the created Stripe Subscription. Output fields use camel case. Nested Stripe decimal fields such as unitAmountDecimal are lossless strings.