Subscriptions
In a nutshell
A subscription connects a customer to a plan and tracks when the customer should be billed next.What a subscription tracks
| Field | Description |
|---|---|
code | Public subscription code, such as SUB_a1b2c3d4. |
customerId | Customer being billed. |
planId | Plan used for billing. |
paymentSourceId | Saved payment source, when available. |
amount | Subscription amount in minor units. |
currency | Subscription currency. |
interval | Billing interval. |
trialStartDate | Trial start date, if the plan has a trial. |
trialEndDate | Trial end date, if the plan has a trial. |
currentBillingCycleStart | Current billing period start. |
currentBillingCycleEnd | Current billing period end. |
status | Subscription lifecycle status. |
