Create a Subscription

Creates a new subscription for a customer and initiates the billing cycle.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
date-time
required

The date the subscription starts. This should be a string in YYYY-MM-DD format of the date in UTC time.

date-time

The date the subscription ends. This should be a string in YYYY-MM-DD format of the date in UTC time. If you don’t set it (recommended), we will use the information in the billing plan to automatically calculate this.

boolean

Whether the subscription automatically renews. Defaults to true.

boolean
subscription_filters
array of objects

Add filter key, value pairs that define which events will be applied to this plan subscription.

subscription_filters
string | null
required

The id provided when creating the customer

uuid | null

The Lotus plan_id, found in the billing plan object. We will make a best-effort attempt to find the correct plan version (matching preferred currencies, prioritizing custom plans), but if more than one plan version or no plan version matches these criteria this will return an error.

component_fixed_charges_initial_units
array of objects

The initial units for the plan components' prepaid fixed charges. This is only required if the plan has plan components where you did not specify the initial units.

component_fixed_charges_initial_units
metadata
object

A JSON object containing additional information about the subscription.

Headers
string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Response

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json