Create Subscription

This API endpoint creates a subscription. A subscription is used to bill clients on a recurring basis.

Body Params
string

Unique ID of the invoice template to use. If provided, template values will be used for lineItems, memo, taxPercentage, and currency

string

Deprecated in favor of clientId and companyId.

lineItems
array of objects

Array of line items. Required if templateId is not provided.

lineItems
string

Arbitrary string attached to the invoice, often used for display

int32
required

The number of days from when the subscription invoice is created until it is due. Max value is 30.

float

Tax percentage to apply to the invoice amount

string

Billing frequency. Required if line items don't include a recurring price. Values: day, week, month, quarterly, yearly

int32
Defaults to 1

Number of intervals between billings. Default value = 1

paymentMethodPreferences
array of objects
required

Array of preferences which specify which payment methods are allowed and how transaction fees are handled for each payment method

paymentMethodPreferences*
string
required

Specify how to charge for an invoice values: sendInvoice , chargeAutomatically

string

The ID of the client this subscription is assigned to. Leave empty if assigning to a company.

string

The ID of the company this subscription is assigned to. This is required when assigning to a client with more than one company.

Responses

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