Create Subscription
Creates a subscription in Assembly.com.
Query
Comma-separated response fields to include.
Body
The ID of the client this subscription is assigned to. Leave empty if assigning to a company.
The ID of the company this subscription is assigned to. This is required when assigning to a company.
Unique ID of the invoice template to use. If provided, template values will be used for line items and invoice metadata.
Array of line items. Required if templateId is not provided.
Quantity of the item (supports decimals).
Amount in cents. Required if priceId is not provided.
Unique ID of the price object. Required if amount is not provided.
Description of the item, ignored if priceId is provided.
Arbitrary string attached to the invoice, often used for display.
The number of days from when the subscription invoice is created until it is due. Max value is 30.
Tax percentage to apply to the invoice amount.
Billing frequency. Required if line items do not include a recurring price. Values: day, week, month, quarterly, yearly.
Number of intervals between billings. Default value is 1.
Array of preferences which specify which payment methods are allowed and how transaction fees are handled for each payment method.
Payment method type. Values are creditCard or bankAccount.
When true, the transaction fee is paid by the client, otherwise it is covered by your account.
Specify how to charge for an invoice. Values: sendInvoice or chargeAutomatically.