Authorizations
Body
The customer for the subscription.
The price to subscribe to. Used to determine whether the subscription is usage-based or not, and set other defaults such as trial period and billing intervals.
The quantity of the price purchased. If not provided, defaults to 1.
The time when the subscription starts. If not provided, defaults to current time.
The interval of the subscription. If not provided, defaults to the interval of the price provided by priceId
.
day
, week
, month
, year
The number of intervals that each billing period will last. If not provided, defaults to 1
Epoch time in milliseconds of when the trial ends. If not provided, defaults to startDate + the associated price's trialPeriodDays
JSON object
The name of the subscription. If not provided, defaults to the name of the product associated with the price provided by 'priceId'.
The default payment method to use when attempting to run charges for the subscription.If not provided, the customer's default payment method will be used. If no default payment method is present, charges will not run. If no default payment method is provided and there is a trial period for the subscription, the subscription will enter 'trial_ended' status at the end of the trial period.
The payment method to try if charges for the subscription fail with the default payment method.
Response
Successful response
- Option 1
- Option 2