Subscriptions
Columns
Name | Type | ReadOnly | References | Description |
Id [KEY] | String | True | The Id of the subscription. | |
CustomerId | String | False | Customers.Id | The Id of the customer who owns the subscription. |
PlanId | String | False | Plans.Id | The Id of the plan. |
ApplicationFeePercent | Decimal | False | A positive decimal that represents the fee percentage of the subscription invoice amount that will be transferred to the application of the Stripe account owner each billing period. | |
CancelAtPeriodEnd | Boolean | True | If the subscription has been canceled with the at_period_end flag set to true, cancel_at_period_end on the subscription will be true. You can use this attribute to determine whether a subscription that has a status of active is scheduled to be canceled at the end of the current period. | |
CanceledAt | Datetime | True | If the subscription has been canceled, the date of that cancellation. If the subscription was canceled with cancel_at_period_end, canceled_at will still reflect the date of the initial cancellation request, not the end of the subscription period when the subscription is automatically moved to a canceled state. | |
CreatedAt | Datetime | True | The creation date. | |
CurrentPeriodEnd | Datetime | True | End of the current period that the subscription has been invoiced for. At the end of this period, a new invoice will be created. | |
CurrentPeriodStart | Datetime | True | Start of the current period that the subscription has been invoiced for. | |
CouponId | String | False | SubscriptionDiscounts.CouponId | The id of the discount. |
EndedAt | Datetime | True | If the subscription has ended (either because it was canceled or because the customer was switched to a subscription to a new plan), the date the subscription ended. | |
Quantity | Double | False | The quantity of the plan to which the customer should be subscribed. For example, if your plan is $10/user/month, and your customer has 5 users, you could pass 5 as the quantity to have the customer charged $50 (5 x $10) monthly. | |
Start | Datetime | True | Date the most recent update to this subscription started. | |
Status | String | True | The status of the subscription The allowed values are active, past_due, unpaid, canceled, incomplete, incomplete_expired, trialing, all, ended. | |
TaxPercent | Decimal | False | If provided, each invoice created by this subscription will apply the tax rate, increasing the amount billed to the customer. | |
TrialEnd | Datetime | False | If the subscription has a trial, the end of that trial. | |
TrialStart | Datetime | True | If the subscription has a trial, the beginning of that trial. | |
MetadataAggregate | String | False | The set of key/value pairs that you can attach to a subscription object. |
Pseudo-Columns
Name | Type | Description |
IsProrate | Boolean | Flag indicating whether to prorate switching plans during a billing cycle. |
ProrationDate | Date | If set, the proration will be calculated as though the subscription was updated at the given time. It can also be used to implement custom proration logic, such as prorating by day instead of by second, by providing the time that you wish to use for proration calculations. |
TrialPeriodDays | Integer | The number of trial period days before the customer is charged for the first time. If set, trial_period_days overrides the default trial period days of the plan the customer is being subscribed to. |
AccountId | String | The Id of the connected account to get subscriptions for. |
Last updated