Properties
idstringThe unique identifier for this subscription template. object
stringThe object type of this resource. createdAt
stringThe date this template was created in RFC3339 format. updatedAt
stringThe date this template was last updated in RFC3339 format. name
stringThe name of the subscription template. memo
stringAn arbitrary string attached to the template, often useful for displaying to users. taxPercentage
numberThe percentage of tax to be applied to subscriptions created from this template. currency
stringThe 3 letter currency code representing the settlement currency for subscriptions created from this template. interval
stringThe billing frequency for subscriptions created from this template. 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. One of:
day- Daily billingweek- Weekly billingmonth- Monthly billingquarterly- Quarterly billingyearly- Yearly billing
integerThe number of intervals between subscription billings. For example,
interval=month and intervalCount=3 bills every 3 months. Used in conjunction with the interval field to determine billing frequency
lineItems array(object)Array of line items to be included in subscriptions created from this template:
- amount
integer
Amount in cents for one unit. Required if priceId not provided - description
string
Description of the line item. Optional for items with priceId where product name is used - quantity
number
Quantity of the item (can be decimal) - priceId
string
ID of the price object. Required if amount not provided - productId
string
ID of the associated product object
Example Subscription Template Object