Create a subscription

Creates a new Subscription object.

Body Params
string
required

ID of related Customer object.

string
Defaults to send_invoice

Defines how the subscription should be processed, whether it should first create the invoice or first attempt to charge the customer's card. One of charge_payment, send_invoice

int32

The number of billing cycles this subscription must have. If it is empty the subscription will not be terminated automatically.

date
required

Date for the start of the subscription.

string
required

The ID of the document type this subscription should create.

int32
Defaults to 10

Limit days to wait for subscription payment before starting to send payment reminders.

lines
array of objects
required

A list of Subscription Line objects.

lines*
addons
array

A list of Subscription Addon objects.

addons
string

ID of related Coupon object. Must be compatible with apply_on=subscription.

string

A simple text with a 100 characters as max length.

references
array of objects

Reference documents that must be added to the invoices created by this subscription.

references
boolean
Defaults to false

True or false if the subscription is to be created to account test environment.

Response

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