/v1/customers/{customer}/subscriptionsCreate a customer subscription
Creates a new subscription for an existing customer. Provide the subscription items and billing configuration needed for recurring charges, including a supported lowercase currency when required. The subscription can also include automatic tax, discounts, invoice items, payment settings, and cancellation settings.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Optional subscription configuration submitted as form data; omitted fields use the subscription's applicable defaults.
customer must identify an existing customer. collection_method must be charge_automatically or send_invoice, currency must be a supported lowercase three-letter ISO currency code, and automatic_tax must include enabled when supplied. application_fee_percent must be between 0 and 100 with at most two decimal places, and add_invoice_items accepts at most 20 items.