post https://api.copilot.app/v1/subscriptions
This API endpoint creates a subscription. A subscription is used to bill clients on a recurring basis.
Notes:
Template Usage
When creating a subscription using a template (by specifying templateId
), certain fields will be automatically populated from the template unless its not explicitly overridden in request:
lineItems
memo
taxPercentage
currency
interval
Interval Configuration
The interval
field is only required if any of the line items doesn't have a recurring price. When line items include a recurring price, the interval is automatically determined from that price.