CreateSubscriptionDto
- amountType: numbermin:0.01required
What to bill each cycle, in USD.
- customerType: string
_id requiredWho to bill. Our customer id, or the
external_refyou gave them. They need an email address on file — that is where invoices go. - intervalType: stringenumrequiredvaluesweeklymonthlyquarterlyyearly
- referenceType: stringmax length:255required
Your own handle for this agreement, unique among your subscriptions. Each invoice is referenced
<reference>-<n>, so it reconciles against your books without a lookup. - allowedType: array of "crypto" or "fiat"enum
_rails Restrict how each invoice may be paid. Omit to offer all.
- currencyType: string
Display currency. Settlement is always USD.
- cyclesType: numbermin:1
How many cycles to bill. Omit to run until you cancel — the difference between a year's subscription and an open-ended one.
- descriptionType: stringmax length:500
- dueType: number
_days min:1max:90How long the customer has to pay each invoice before we start reminding them.
- metadataType: object
Arbitrary key/value data you control.
- startType: string
_at When the first invoice goes out, ISO-8601. Omit to bill immediately.
- titleType: stringmax length:140
Shown to the customer on the invoice and the payment page.