Create a subscriptionCopy Pagepost https://api.piriod.com/subscriptions/Creates a new Subscription object.Body ParamscustomerstringrequiredID of related Customer object.collection_schemestringDefaults to send_invoiceDefines 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_invoicebilling_cyclesint32The number of billing cycles this subscription must have. If it is empty the subscription will not be terminated automatically.date_startdaterequiredDate for the start of the subscription.documentstringrequiredThe ID of the document type this subscription should create.expiration_daysint32Defaults to 10Limit days to wait for subscription payment before starting to send payment reminders.linesarray of objectsrequiredA list of Subscription Line objects.lines*ADD objectaddonsarrayA list of Subscription Addon objects.addonscouponstringID of related Coupon object. Must be compatible with apply_on=subscription.notestringA simple text with a 100 characters as max length.referencesarray of objectsReference documents that must be added to the invoices created by this subscription.referencesADD objecttest_modebooleanDefaults to falseTrue or false if the subscription is to be created to account test environment.truefalseResponse 201201Updated over 2 years ago