Create a subscription

Create a new subscription.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string

Comma-separated list of fields to expand in the response. Fields marked as Expandable in the response schema can be expanded. Supported fields: product, price, discount.

Body Params
customer
object
required

The customer to associate with this subscription.

product
object
required
price
object
required

Create a new price inline for this subscription (including cycle_details).

payment_methods
array of objects | null
payment_methods
date-time | null

Set a specific date for the trial to end.

transaction
object | null

Custom transaction data associated with the subscription. Passed through on each payment attempt.

payment
object | null

Payment configuration for the subscription.

string | null

URL for receiving status update callbacks when bill payment status changes.

string | null

Apply a coupon at creation time. The coupon must be active and, for fixed_amount discounts, its currency must match the price currency.

Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Choose an example:
application/json