Attributes
- idstring
Unique identifier for the object.
- automatic_
taxobject Automatic tax settings for this subscription.
- automatic_tax.
disabled_ reasonnullable enum If Stripe disabled automatic tax, this enum describes why.
Possible enum valuesrequires_location_ inputs Stripe’s systems automatically turned off Tax for this subscription when finalizing one of its invoices with a missing or incomplete location for your customer.
- automatic_tax.
enabledboolean Whether Stripe automatically computes tax on this subscription.
- automatic_tax.
liabilitynullable objectConnect only The account that’s liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
- automatic_tax.
liability. accountnullable stringExpandable The connected account being referenced when
typeisaccount. - automatic_tax.
liability. typeenum Type of the account referenced.
Possible enum valuesaccountIndicates that the account being referenced is a connected account which is different from the account making the API request but related to it.
selfIndicates that the account being referenced is the account making the API request.
- currencyenum
Three-letter ISO currency code, in lowercase. Must be a supported currency.
- customerstringExpandable
ID of the customer who owns the subscription.
- default_
payment_ methodnullable stringExpandable ID of the default payment method for the subscription. It must belong to the customer associated with the subscription. This takes precedence over
default_. If neither are set, invoices will use the customer’s invoice_settings.default_payment_method or default_source.source - descriptionnullable string
The subscription’s description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
- itemsobject
List of subscription items, each with an attached price.
- items.
objectstring String representing the object’s type. Objects of the same type share the same value. Always has the value
list. - items.
dataarray of objects Details about each object.
- items.
data. idstring Unique identifier for the object.
- items.
data. objectstring String representing the object’s type. Objects of the same type share the same value.
- items.
data. billing_ thresholdsnullable object Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period
- items.
data. billing_thresholds. usage_ gtenullable integer Usage threshold that triggers the subscription to create an invoice
- items.
data. createdinteger Time at which the object was created. Measured in seconds since the Unix epoch.
- items.
data. current_ period_ endtimestamp The end time of this subscription item’s current billing period.
- items.
data. current_ period_ starttimestamp The start time of this subscription item’s current billing period.
- items.
data. discountsarray of stringsExpandable The discounts applied to the subscription item. Subscription item discounts are applied before subscription discounts. Use
expand[]=discountsto expand each discount. - items.
data. metadataobject Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- items.
data. priceobject The price the customer is subscribed to.
- items.
data. price. idstring Unique identifier for the object.
- items.
data. price. objectstring String representing the object’s type. Objects of the same type share the same value.
- items.
data. price. activeboolean Whether the price can be used for new purchases.
- items.
data. price. billing_ schemeenum Describes how to compute the price per period. Either
per_orunit tiered.per_indicates that the fixed amount (specified inunit unit_oramount unit_) will be charged per unit inamount_ decimal quantity(for prices withusage_), or per unit of total usage (for prices withtype=licensed usage_).type=metered tieredindicates that the unit pricing will be computed using a tiering strategy as defined using thetiersandtiers_attributes.mode Possible enum valuesper_unit tiered - items.
data. price. createdtimestamp Time at which the object was created. Measured in seconds since the Unix epoch.
- items.
data. price. currencyenum Three-letter ISO currency code, in lowercase. Must be a supported currency.
- items.
data. price. currency_ optionsnullable objectExpandable Prices defined in each available currency option. Each key must be a three-letter ISO currency code and a supported currency.
- items.
data. price. currency_options. <currency>. custom_ unit_ amountnullable object When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.
- items.
data. price. currency_options. <currency>.custom_unit_amount. maximumnullable integer The maximum unit amount the customer can specify for this item.
- items.
data. price. currency_options. <currency>.custom_unit_amount. minimumnullable integer The minimum unit amount the customer can specify for this item. Must be at least the minimum charge amount.
- items.
data. price. currency_options. <currency>.custom_unit_amount. presetnullable integer The starting unit amount which can be updated by the customer.
- items.
data. price. currency_options. <currency>. tax_ behaviornullable enum Only required if a default tax behavior was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of
inclusive,exclusive, orunspecified. Once specified as eitherinclusiveorexclusive, it cannot be changed.Possible enum valuesexclusiveinclusiveunspecified - items.
data. price. currency_options. <currency>. tiersnullable array of objectsExpandable Each element represents a pricing tier. This parameter requires
billing_to be set toscheme tiered. See also the documentation forbilling_.scheme - items.
data. price. currency_options. <currency>.tiers. flat_ amountnullable integer Price for the entire tier.
- items.
data. price. currency_options. <currency>.tiers. flat_ amount_ decimalnullable decimal string Same as
flat_, but contains a decimal value with at most 12 decimal places.amount - items.
data. price. currency_options. <currency>.tiers. unit_ amountnullable integer Per unit price for units relevant to the tier.
- items.
data. price. currency_options. <currency>.tiers. unit_ amount_ decimalnullable decimal string Same as
unit_, but contains a decimal value with at most 12 decimal places.amount - items.
data. price. currency_options. <currency>.tiers. up_ tonullable integer Up to and including to this quantity will be contained in the tier.
- items.
data. price. currency_options. <currency>. unit_ amountnullable integer The unit amount in cents to be charged, represented as a whole integer if possible. Only set if
billing_.scheme=per_ unit - items.
data. price. currency_options. <currency>. unit_ amount_ decimalnullable decimal string The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places. Only set if
billing_.scheme=per_ unit
- items.
data. price. custom_ unit_ amountnullable object When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.
- items.
data. price. custom_unit_amount. maximumnullable integer The maximum unit amount the customer can specify for this item.
- items.
data. price. custom_unit_amount. minimumnullable integer The minimum unit amount the customer can specify for this item. Must be at least the minimum charge amount.
- items.
data. price. custom_unit_amount. presetnullable integer The starting unit amount which can be updated by the customer.
- items.
data. price. livemodeboolean Has the value
trueif the object exists in live mode or the valuefalseif the object exists in test mode. - items.
data. price. lookup_ keynullable string A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters.
- items.
data. price. metadataobject Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- items.
data. price. nicknamenullable string A brief description of the price, hidden from customers.
- items.
data. price. productstringExpandable The ID of the product this price is associated with.
- items.
data. price. recurringnullable object The recurring components of a price such as
intervalandusage_.type - items.
data. price. recurring. intervalenum The frequency at which a subscription is billed. One of
day,week,monthoryear. - items.
data. price. recurring. interval_ countinteger The number of intervals (specified in the
intervalattribute) between subscription billings. For example,interval=monthandinterval_bills every 3 months.count=3 - items.
data. price. recurring. meternullable string The meter tracking the usage of a metered price
- items.
data. price. recurring. usage_ typeenum Configures how the quantity per period should be determined. Can be either
meteredorlicensed.licensedautomatically bills thequantityset when adding it to a subscription.meteredaggregates the total usage based on usage records. Defaults tolicensed.
- items.
data. price. tax_ behaviornullable enum Only required if a default tax behavior was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of
inclusive,exclusive, orunspecified. Once specified as eitherinclusiveorexclusive, it cannot be changed.Possible enum valuesexclusiveinclusiveunspecified - items.
data. price. tiersnullable array of objectsExpandable Each element represents a pricing tier. This parameter requires
billing_to be set toscheme tiered. See also the documentation forbilling_.scheme - items.
data. price. tiers. flat_ amountnullable integer Price for the entire tier.
- items.
data. price. tiers. flat_ amount_ decimalnullable decimal string Same as
flat_, but contains a decimal value with at most 12 decimal places.amount - items.
data. price. tiers. unit_ amountnullable integer Per unit price for units relevant to the tier.
- items.
data. price. tiers. unit_ amount_ decimalnullable decimal string Same as
unit_, but contains a decimal value with at most 12 decimal places.amount - items.
data. price. tiers. up_ tonullable integer Up to and including to this quantity will be contained in the tier.
- items.
data. price. tiers_ modenullable enum Defines if the tiering price should be
graduatedorvolumebased. Involume-based tiering, the maximum quantity within a period determines the per unit price. Ingraduatedtiering, pricing can change as the quantity grows.Possible enum valuesgraduatedvolume - items.
data. price. transform_ quantitynullable object Apply a transformation to the reported usage or set quantity before computing the amount billed. Cannot be combined with
tiers.- items.
data. price. transform_quantity. divide_ byinteger Divide usage by this number.
- items.
data. price. transform_quantity. roundenum After division, either round the result
upordown.
- items.
data. price. typeenum One of
one_ortime recurringdepending on whether the price is for a one-time purchase or a recurring (subscription) purchase.Possible enum valuesone_time recurring - items.
data. price. unit_ amountnullable integer The unit amount in cents to be charged, represented as a whole integer if possible. Only set if
billing_.scheme=per_ unit - items.
data. price. unit_ amount_ decimalnullable decimal string The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places. Only set if
billing_.scheme=per_ unit
- items.
data. quantitynullable integer The quantity of the plan to which the customer should be subscribed.
- items.
data. subscriptionstring The
subscriptionthissubscription_belongs to.item - items.
data. tax_ ratesnullable array of objects The tax rates which apply to this
subscription_. When set, theitem default_on the subscription do not apply to thistax_ rates subscription_.item - items.
data. tax_rates. idstring Unique identifier for the object.
- items.
data. tax_rates. objectstring String representing the object’s type. Objects of the same type share the same value.
- items.
data. tax_rates. activeboolean Defaults to
true. When set tofalse, this tax rate cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set. - items.
data. tax_rates. countrynullable string Two-letter country code (ISO 3166-1 alpha-2).
- items.
data. tax_rates. createdtimestamp Time at which the object was created. Measured in seconds since the Unix epoch.
- items.
data. tax_rates. descriptionnullable string An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers.
- items.
data. tax_rates. display_ namestring The display name of the tax rates as it will appear to your customer on their receipt email, PDF, and the hosted invoice page.
- items.
data. tax_rates. effective_ percentagenullable float Actual/effective tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage reflects the rate actually used to calculate tax based on the product’s taxability and whether the user is registered to collect taxes in the corresponding jurisdiction.
- items.
data. tax_rates. flat_ amountnullable object The amount of the tax rate when the
rate_istype flat_. Tax rates withamount rate_type percentagecan vary based on the transaction, resulting in this field beingnull. This field exposes the amount and currency of the flat tax rate.- items.
data. tax_rates. flat_amount. amountinteger Amount of the tax when the
rate_istype flat_. This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).amount - items.
data. tax_rates. flat_amount. currencystring Three-letter ISO currency code, in lowercase.
- items.
data. tax_rates. inclusiveboolean This specifies if the tax rate is inclusive or exclusive.
- items.
data. tax_rates. jurisdictionnullable string The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice.
- items.
data. tax_rates. jurisdiction_ levelnullable enum The level of the jurisdiction that imposes this tax rate. Will be
nullfor manually defined tax rates.Possible enum valuescitycountrycountydistrictmultiplestate - items.
data. tax_rates. livemodeboolean Has the value
trueif the object exists in live mode or the valuefalseif the object exists in test mode. - items.
data. tax_rates. metadatanullable object Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- items.
data. tax_rates. percentagefloat Tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage includes the statutory tax rate of non-taxable jurisdictions.
- items.
data. tax_rates. rate_ typenullable enum Indicates the type of tax rate applied to the taxable amount. This value can be
nullwhen no tax applies to the location. This field is only present for TaxRates created by Stripe Tax.Possible enum valuesflat_amount A fixed amount applied as tax, regardless of the taxable amount, such as a retail delivery fee.
percentageA tax rate expressed as a percentage of the taxable amount, such as the sales tax rate in California.
- items.
data. tax_rates. statenullable string ISO 3166-2 subdivision code, without country prefix. For example, “NY” for New York, United States.
- items.
data. tax_rates. tax_ typenullable enum The high-level tax type, such as
vatorsales_.tax Possible enum valuesamusement_tax Amusement Tax
communications_tax Communications Tax
gstGoods and Services Tax
hstHarmonized Sales Tax
igstIntegrated Goods and Services Tax
jctJapanese Consumption Tax
lease_tax Chicago Lease Tax
pstProvincial Sales Tax
qstQuebec Sales Tax
retail_delivery_ fee Retail Delivery Fee
Show 4 more
- items.
has_ moreboolean True if this list has another page of items after this one that can be fetched.
- items.
urlstring The URL where this list can be accessed.
- latest_
invoicenullable stringExpandable The most recent invoice this subscription has generated.
- metadataobject
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- pending_
setup_ intentnullable stringExpandable You can use this SetupIntent to collect user authentication when creating a subscription without immediate payment or updating a subscription’s payment method, allowing you to optimize for off-session payments. Learn more in the SCA Migration Guide.
- pending_
updatenullable object If specified, pending updates that will be applied to the subscription once the
latest_has been paid.invoice - pending_update.
billing_ cycle_ anchornullable timestamp If the update is applied, determines the date of the first full invoice, and, for plans with
monthoryearintervals, the day of the month for subsequent invoices. The timestamp is in UTC format. - pending_update.
expires_ attimestamp The point after which the changes reflected by this update will be discarded and no longer applied.
- pending_update.
subscription_ itemsnullable array of objects List of subscription items, each with an attached plan, that will be set if the update is applied.
- pending_update.
subscription_items. idstring Unique identifier for the object.
- pending_update.
subscription_items. objectstring String representing the object’s type. Objects of the same type share the same value.
- pending_update.
subscription_items. billing_ thresholdsnullable object Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period
- pending_update.
subscription_items. billing_thresholds. usage_ gtenullable integer Usage threshold that triggers the subscription to create an invoice
- pending_update.
subscription_items. createdinteger Time at which the object was created. Measured in seconds since the Unix epoch.
- pending_update.
subscription_items. current_ period_ endtimestamp The end time of this subscription item’s current billing period.
- pending_update.
subscription_items. current_ period_ starttimestamp The start time of this subscription item’s current billing period.
- pending_update.
subscription_items. discountsarray of stringsExpandable The discounts applied to the subscription item. Subscription item discounts are applied before subscription discounts. Use
expand[]=discountsto expand each discount. - pending_update.
subscription_items. metadataobject Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- pending_update.
subscription_items. priceobject The price the customer is subscribed to.
- pending_update.
subscription_items. price. idstring Unique identifier for the object.
- pending_update.
subscription_items. price. objectstring String representing the object’s type. Objects of the same type share the same value.
- pending_update.
subscription_items. price. activeboolean Whether the price can be used for new purchases.
- pending_update.
subscription_items. price. billing_ schemeenum Describes how to compute the price per period. Either
per_orunit tiered.per_indicates that the fixed amount (specified inunit unit_oramount unit_) will be charged per unit inamount_ decimal quantity(for prices withusage_), or per unit of total usage (for prices withtype=licensed usage_).type=metered tieredindicates that the unit pricing will be computed using a tiering strategy as defined using thetiersandtiers_attributes.mode Possible enum valuesper_unit tiered - pending_update.
subscription_items. price. createdtimestamp Time at which the object was created. Measured in seconds since the Unix epoch.
- pending_update.
subscription_items. price. currencyenum Three-letter ISO currency code, in lowercase. Must be a supported currency.
- pending_update.
subscription_items. price. currency_ optionsnullable objectExpandable Prices defined in each available currency option. Each key must be a three-letter ISO currency code and a supported currency.
- pending_update.
subscription_items. price. currency_options. <currency>. custom_ unit_ amountnullable object When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.
- pending_update.
subscription_items. price. currency_options. <currency>.custom_unit_amount. maximumnullable integer The maximum unit amount the customer can specify for this item.
- pending_update.
subscription_items. price. currency_options. <currency>.custom_unit_amount. minimumnullable integer The minimum unit amount the customer can specify for this item. Must be at least the minimum charge amount.
- pending_update.
subscription_items. price. currency_options. <currency>.custom_unit_amount. presetnullable integer The starting unit amount which can be updated by the customer.
- pending_update.
subscription_items. price. currency_options. <currency>. tax_ behaviornullable enum Only required if a default tax behavior was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of
inclusive,exclusive, orunspecified. Once specified as eitherinclusiveorexclusive, it cannot be changed.Possible enum valuesexclusiveinclusiveunspecified - pending_update.
subscription_items. price. currency_options. <currency>. tiersnullable array of objectsExpandable Each element represents a pricing tier. This parameter requires
billing_to be set toscheme tiered. See also the documentation forbilling_.scheme - pending_update.
subscription_items. price. currency_options. <currency>.tiers. flat_ amountnullable integer Price for the entire tier.
- pending_update.
subscription_items. price. currency_options. <currency>.tiers. flat_ amount_ decimalnullable decimal string Same as
flat_, but contains a decimal value with at most 12 decimal places.amount - pending_update.
subscription_items. price. currency_options. <currency>.tiers. unit_ amountnullable integer Per unit price for units relevant to the tier.
- pending_update.
subscription_items. price. currency_options. <currency>.tiers. unit_ amount_ decimalnullable decimal string Same as
unit_, but contains a decimal value with at most 12 decimal places.amount - pending_update.
subscription_items. price. currency_options. <currency>.tiers. up_ tonullable integer Up to and including to this quantity will be contained in the tier.
- pending_update.
subscription_items. price. currency_options. <currency>. unit_ amountnullable integer The unit amount in cents to be charged, represented as a whole integer if possible. Only set if
billing_.scheme=per_ unit - pending_update.
subscription_items. price. currency_options. <currency>. unit_ amount_ decimalnullable decimal string The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places. Only set if
billing_.scheme=per_ unit
- pending_update.
subscription_items. price. custom_ unit_ amountnullable object When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.
- pending_update.
subscription_items. price. custom_unit_amount. maximumnullable integer The maximum unit amount the customer can specify for this item.
- pending_update.
subscription_items. price. custom_unit_amount. minimumnullable integer The minimum unit amount the customer can specify for this item. Must be at least the minimum charge amount.
- pending_update.
subscription_items. price. custom_unit_amount. presetnullable integer The starting unit amount which can be updated by the customer.
- pending_update.
subscription_items. price. livemodeboolean Has the value
trueif the object exists in live mode or the valuefalseif the object exists in test mode. - pending_update.
subscription_items. price. lookup_ keynullable string A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters.
- pending_update.
subscription_items. price. metadataobject Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- pending_update.
subscription_items. price. nicknamenullable string A brief description of the price, hidden from customers.
- pending_update.
subscription_items. price. productstringExpandable The ID of the product this price is associated with.
- pending_update.
subscription_items. price. recurringnullable object The recurring components of a price such as
intervalandusage_.type - pending_update.
subscription_items. price. recurring. intervalenum The frequency at which a subscription is billed. One of
day,week,monthoryear. - pending_update.
subscription_items. price. recurring. interval_ countinteger The number of intervals (specified in the
intervalattribute) between subscription billings. For example,interval=monthandinterval_bills every 3 months.count=3 - pending_update.
subscription_items. price. recurring. meternullable string The meter tracking the usage of a metered price
- pending_update.
subscription_items. price. recurring. usage_ typeenum Configures how the quantity per period should be determined. Can be either
meteredorlicensed.licensedautomatically bills thequantityset when adding it to a subscription.meteredaggregates the total usage based on usage records. Defaults tolicensed.
- pending_update.
subscription_items. price. tax_ behaviornullable enum Only required if a default tax behavior was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of
inclusive,exclusive, orunspecified. Once specified as eitherinclusiveorexclusive, it cannot be changed.Possible enum valuesexclusiveinclusiveunspecified - pending_update.
subscription_items. price. tiersnullable array of objectsExpandable Each element represents a pricing tier. This parameter requires
billing_to be set toscheme tiered. See also the documentation forbilling_.scheme - pending_update.
subscription_items. price. tiers. flat_ amountnullable integer Price for the entire tier.
- pending_update.
subscription_items. price. tiers. flat_ amount_ decimalnullable decimal string Same as
flat_, but contains a decimal value with at most 12 decimal places.amount - pending_update.
subscription_items. price. tiers. unit_ amountnullable integer Per unit price for units relevant to the tier.
- pending_update.
subscription_items. price. tiers. unit_ amount_ decimalnullable decimal string Same as
unit_, but contains a decimal value with at most 12 decimal places.amount - pending_update.
subscription_items. price. tiers. up_ tonullable integer Up to and including to this quantity will be contained in the tier.
- pending_update.
subscription_items. price. tiers_ modenullable enum Defines if the tiering price should be
graduatedorvolumebased. Involume-based tiering, the maximum quantity within a period determines the per unit price. Ingraduatedtiering, pricing can change as the quantity grows.Possible enum valuesgraduatedvolume - pending_update.
subscription_items. price. transform_ quantitynullable object Apply a transformation to the reported usage or set quantity before computing the amount billed. Cannot be combined with
tiers.- pending_update.
subscription_items. price. transform_quantity. divide_ byinteger Divide usage by this number.
- pending_update.
subscription_items. price. transform_quantity. roundenum After division, either round the result
upordown.
- pending_update.
subscription_items. price. typeenum One of
one_ortime recurringdepending on whether the price is for a one-time purchase or a recurring (subscription) purchase.Possible enum valuesone_time recurring - pending_update.
subscription_items. price. unit_ amountnullable integer The unit amount in cents to be charged, represented as a whole integer if possible. Only set if
billing_.scheme=per_ unit - pending_update.
subscription_items. price. unit_ amount_ decimalnullable decimal string The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places. Only set if
billing_.scheme=per_ unit
- pending_update.
subscription_items. quantitynullable integer The quantity of the plan to which the customer should be subscribed.
- pending_update.
subscription_items. subscriptionstring The
subscriptionthissubscription_belongs to.item - pending_update.
subscription_items. tax_ ratesnullable array of objects The tax rates which apply to this
subscription_. When set, theitem default_on the subscription do not apply to thistax_ rates subscription_.item - pending_update.
subscription_items. tax_rates. idstring Unique identifier for the object.
- pending_update.
subscription_items. tax_rates. objectstring String representing the object’s type. Objects of the same type share the same value.
- pending_update.
subscription_items. tax_rates. activeboolean Defaults to
true. When set tofalse, this tax rate cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set. - pending_update.
subscription_items. tax_rates. countrynullable string Two-letter country code (ISO 3166-1 alpha-2).
- pending_update.
subscription_items. tax_rates. createdtimestamp Time at which the object was created. Measured in seconds since the Unix epoch.
- pending_update.
subscription_items. tax_rates. descriptionnullable string An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers.
- pending_update.
subscription_items. tax_rates. display_ namestring The display name of the tax rates as it will appear to your customer on their receipt email, PDF, and the hosted invoice page.
- pending_update.
subscription_items. tax_rates. effective_ percentagenullable float Actual/effective tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage reflects the rate actually used to calculate tax based on the product’s taxability and whether the user is registered to collect taxes in the corresponding jurisdiction.
- pending_update.
subscription_items. tax_rates. flat_ amountnullable object The amount of the tax rate when the
rate_istype flat_. Tax rates withamount rate_type percentagecan vary based on the transaction, resulting in this field beingnull. This field exposes the amount and currency of the flat tax rate.- pending_update.
subscription_items. tax_rates. flat_amount. amountinteger Amount of the tax when the
rate_istype flat_. This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).amount - pending_update.
subscription_items. tax_rates. flat_amount. currencystring Three-letter ISO currency code, in lowercase.
- pending_update.
subscription_items. tax_rates. inclusiveboolean This specifies if the tax rate is inclusive or exclusive.
- pending_update.
subscription_items. tax_rates. jurisdictionnullable string The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice.
- pending_update.
subscription_items. tax_rates. jurisdiction_ levelnullable enum The level of the jurisdiction that imposes this tax rate. Will be
nullfor manually defined tax rates.Possible enum valuescitycountrycountydistrictmultiplestate - pending_update.
subscription_items. tax_rates. livemodeboolean Has the value
trueif the object exists in live mode or the valuefalseif the object exists in test mode. - pending_update.
subscription_items. tax_rates. metadatanullable object Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- pending_update.
subscription_items. tax_rates. percentagefloat Tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage includes the statutory tax rate of non-taxable jurisdictions.
- pending_update.
subscription_items. tax_rates. rate_ typenullable enum Indicates the type of tax rate applied to the taxable amount. This value can be
nullwhen no tax applies to the location. This field is only present for TaxRates created by Stripe Tax.Possible enum valuesflat_amount A fixed amount applied as tax, regardless of the taxable amount, such as a retail delivery fee.
percentageA tax rate expressed as a percentage of the taxable amount, such as the sales tax rate in California.
- pending_update.
subscription_items. tax_rates. statenullable string ISO 3166-2 subdivision code, without country prefix. For example, “NY” for New York, United States.
- pending_update.
subscription_items. tax_rates. tax_ typenullable enum The high-level tax type, such as
vatorsales_.tax Possible enum valuesamusement_tax Amusement Tax
communications_tax Communications Tax
gstGoods and Services Tax
hstHarmonized Sales Tax
igstIntegrated Goods and Services Tax
jctJapanese Consumption Tax
lease_tax Chicago Lease Tax
pstProvincial Sales Tax
qstQuebec Sales Tax
retail_delivery_ fee Retail Delivery Fee
Show 4 more
- pending_update.
trial_ endnullable timestamp Unix timestamp representing the end of the trial period the customer will get before being charged for the first time, if the update is applied.
- pending_update.
trial_ from_ plannullable boolean Indicates if a plan’s
trial_should be applied to the subscription. Settingperiod_ days trial_per subscription is preferred, and this defaults toend false. Setting this flag totruetogether withtrial_is not allowed. See Using trial periods on subscriptions to learn more.end
- statusenum
Possible values are
incomplete,incomplete_,expired trialing,active,past_,due canceled,unpaid, orpaused.For
collection_a subscription moves intomethod=charge_ automatically incompleteif the initial payment attempt fails. A subscription in this status can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into anactivestatus. If the first invoice is not paid within 23 hours, the subscription transitions toincomplete_. This is a terminal status, the open invoice will be voided and no further invoices will be generated.expired A subscription that is currently in a trial period is
trialingand moves toactivewhen the trial period is over.A subscription can only enter a
pausedstatus when a trial ends without a payment method. Apausedsubscription doesn’t generate invoices and can be resumed after your customer adds their payment method. Thepausedstatus is different from pausing collection, which still generates invoices and leaves the subscription’s status unchanged.If subscription
collection_, it becomesmethod=charge_ automatically past_when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will becomedue canceledorunpaid(depending on your subscriptions settings).If subscription
collection_it becomesmethod=send_ invoice past_when its invoice is not paid by the due date, anddue canceledorunpaidif it is still not paid by an additional deadline after that. Note that when a subscription has a status ofunpaid, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices.
More attributes
- objectstring
String representing the object’s type. Objects of the same type share the same value.
- applicationnullable stringExpandableConnect only
ID of the Connect Application that created the subscription.
- application_
fee_ percentnullable floatConnect only A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner’s Stripe account.
- billing_
cycle_ anchortimestamp The reference point that aligns future billing cycle dates. It sets the day of week for
weekintervals, the day of month formonthandyearintervals, and the month of year foryearintervals. The timestamp is in UTC format. - billing_
cycle_ anchor_ confignullable object The fixed values used to calculate the
billing_.cycle_ anchor - billing_cycle_anchor_config.
day_ of_ monthinteger The day of the month of the billing_cycle_anchor.
- billing_cycle_anchor_config.
hournullable integer The hour of the day of the billing_cycle_anchor.
- billing_cycle_anchor_config.
minutenullable integer The minute of the hour of the billing_cycle_anchor.
- billing_cycle_anchor_config.
monthnullable integer The month to start full cycle billing periods.
- billing_cycle_anchor_config.
secondnullable integer The second of the minute of the billing_cycle_anchor.
- billing_
modeobject Controls how prorations and invoices for subscriptions are calculated and orchestrated.
- billing_mode.
flexiblenullable object Configure behavior for flexible billing mode
- billing_mode.
flexible. proration_ discountsenum Controls how invoices and invoice items display proration amounts and discount amounts.
Possible enum valuesincludedAmounts are net of discounts, and discount amounts are zero.
itemizedAmounts are gross of discounts, and discount amounts are accurate.
- billing_mode.
typeenum Controls how prorations and invoices for subscriptions are calculated and orchestrated.
Possible enum valuesclassicCalculations for subscriptions and invoices are based on legacy defaults.
flexibleSupports more flexible calculation and orchestration options for subscriptions and invoices.
- billing_mode.
updated_ atnullable timestamp Details on when the current billing_mode was adopted.
- billing_
thresholdsnullable object Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period
- billing_thresholds.
amount_ gtenullable integer Monetary threshold that triggers the subscription to create an invoice
- billing_thresholds.
reset_ billing_ cycle_ anchornullable boolean Indicates if the
billing_should be reset when a threshold is reached. If true,cycle_ anchor billing_will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged. This value may not becycle_ anchor trueif the subscription contains items with plans that haveaggregate_.usage=last_ ever
- cancel_
atnullable timestamp A date in the future at which the subscription will automatically get canceled
- cancel_
at_ period_ endboolean Whether this subscription will (if
status=active) or did (ifstatus=canceled) cancel at the end of the current billing period. - canceled_
atnullable timestamp If the subscription has been canceled, the date of that cancellation. If the subscription was canceled with
cancel_,at_ period_ end canceled_will reflect the time of the most recent update request, not the end of the subscription period when the subscription is automatically moved to a canceled state.at - cancellation_
detailsnullable object Details about why this subscription was cancelled
- cancellation_details.
commentnullable string Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user.
- cancellation_details.
feedbacknullable enum The customer submitted reason for why they canceled, if the subscription was canceled explicitly by the user.
Possible enum valuescustomer_service Customer service was less than expected
low_quality Quality was less than expected
missing_features Some features are missing
otherOther reason
switched_service I’m switching to a different service
too_complex Ease of use was less than expected
too_expensive It’s too expensive
unusedI don’t use the service enough
- cancellation_details.
reasonnullable enum Why this subscription was canceled.
Possible enum valuescancellation_requested payment_disputed payment_failed
- collection_
methodenum Either
charge_, orautomatically send_. When charging automatically, Stripe will attempt to pay this subscription at the end of the cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription asinvoice active.Possible enum valuescharge_automatically send_invoice - createdtimestamp
Time at which the object was created. Measured in seconds since the Unix epoch.
- days_
until_ duenullable integer Number of days a customer has to pay invoices generated by this subscription. This value will be
nullfor subscriptions wherecollection_.method=charge_ automatically - default_
sourcenullable stringExpandable ID of the default payment source for the subscription. It must belong to the customer associated with the subscription and be in a chargeable state. If
default_is also set,payment_ method default_will take precedence. If neither are set, invoices will use the customer’s invoice_settings.default_payment_method or default_source.payment_ method - default_
tax_ ratesnullable array of objects The tax rates that will apply to any subscription item that does not have
tax_set. Invoices created will have theirrates default_populated from the subscription.tax_ rates - default_tax_rates.
idstring Unique identifier for the object.
- default_tax_rates.
objectstring String representing the object’s type. Objects of the same type share the same value.
- default_tax_rates.
activeboolean Defaults to
true. When set tofalse, this tax rate cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set. - default_tax_rates.
countrynullable string Two-letter country code (ISO 3166-1 alpha-2).
- default_tax_rates.
createdtimestamp Time at which the object was created. Measured in seconds since the Unix epoch.
- default_tax_rates.
descriptionnullable string An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers.
- default_tax_rates.
display_ namestring The display name of the tax rates as it will appear to your customer on their receipt email, PDF, and the hosted invoice page.
- default_tax_rates.
effective_ percentagenullable float Actual/effective tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage reflects the rate actually used to calculate tax based on the product’s taxability and whether the user is registered to collect taxes in the corresponding jurisdiction.
- default_tax_rates.
flat_ amountnullable object The amount of the tax rate when the
rate_istype flat_. Tax rates withamount rate_type percentagecan vary based on the transaction, resulting in this field beingnull. This field exposes the amount and currency of the flat tax rate.- default_tax_rates.
flat_amount. amountinteger Amount of the tax when the
rate_istype flat_. This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).amount - default_tax_rates.
flat_amount. currencystring Three-letter ISO currency code, in lowercase.
- default_tax_rates.
inclusiveboolean This specifies if the tax rate is inclusive or exclusive.
- default_tax_rates.
jurisdictionnullable string The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice.
- default_tax_rates.
jurisdiction_ levelnullable enum The level of the jurisdiction that imposes this tax rate. Will be
nullfor manually defined tax rates.Possible enum valuescitycountrycountydistrictmultiplestate - default_tax_rates.
livemodeboolean Has the value
trueif the object exists in live mode or the valuefalseif the object exists in test mode. - default_tax_rates.
metadatanullable object Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- default_tax_rates.
percentagefloat Tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage includes the statutory tax rate of non-taxable jurisdictions.
- default_tax_rates.
rate_ typenullable enum Indicates the type of tax rate applied to the taxable amount. This value can be
nullwhen no tax applies to the location. This field is only present for TaxRates created by Stripe Tax.Possible enum valuesflat_amount A fixed amount applied as tax, regardless of the taxable amount, such as a retail delivery fee.
percentageA tax rate expressed as a percentage of the taxable amount, such as the sales tax rate in California.
- default_tax_rates.
statenullable string ISO 3166-2 subdivision code, without country prefix. For example, “NY” for New York, United States.
- default_tax_rates.
tax_ typenullable enum The high-level tax type, such as
vatorsales_.tax Possible enum valuesamusement_tax Amusement Tax
communications_tax Communications Tax
gstGoods and Services Tax
hstHarmonized Sales Tax
igstIntegrated Goods and Services Tax
jctJapanese Consumption Tax
lease_tax Chicago Lease Tax
pstProvincial Sales Tax
qstQuebec Sales Tax
retail_delivery_ fee Retail Delivery Fee
Show 4 more
- discountsarray of stringsExpandable
The discounts applied to the subscription. Subscription item discounts are applied before subscription discounts. Use
expand[]=discountsto expand each discount. - ended_
atnullable timestamp If the subscription has ended, the date the subscription ended.
- invoice_
settingsobject All invoices will be billed using the specified settings.
- invoice_settings.
account_ tax_ idsnullable array of stringsExpandable The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
- invoice_settings.
issuerobjectConnect only The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
- invoice_settings.
issuer. accountnullable stringExpandable The connected account being referenced when
typeisaccount. - invoice_settings.
issuer. typeenum Type of the account referenced.
Possible enum valuesaccountIndicates that the account being referenced is a connected account which is different from the account making the API request but related to it.
selfIndicates that the account being referenced is the account making the API request.
- livemodeboolean
Has the value
trueif the object exists in live mode or the valuefalseif the object exists in test mode. - next_
pending_ invoice_ item_ invoicenullable timestamp Specifies the approximate timestamp on which any pending invoice items will be billed according to the schedule provided at
pending_.invoice_ item_ interval - on_
behalf_ ofnullable stringExpandableConnect only The account (if any) the charge was made on behalf of for charges associated with this subscription. See the Connect documentation for details.
- pause_
collectionnullable object If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to
paused. Learn more about pausing collection.- pause_collection.
behaviorenum The payment collection behavior for this subscription while paused. One of
keep_,as_ draft mark_, oruncollectible void.Possible enum valueskeep_as_ draft mark_uncollectible void - pause_collection.
resumes_ atnullable timestamp The time after which the subscription will resume collecting payments.
- payment_
settingsnullable object Payment settings passed on to invoices created by the subscription.
- payment_settings.
payment_ method_ optionsnullable object Payment-method-specific configuration to provide to invoices created by the subscription.
- payment_settings.
payment_method_options. acss_ debitnullable object This sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to invoices created by the subscription.
- payment_settings.
payment_method_options. acss_debit. mandate_ optionsnullable object Additional fields for Mandate creation
- payment_settings.
payment_method_options. acss_debit. mandate_options. transaction_ typenullable enum Transaction type of the mandate.
Possible enum valuesbusinessTransactions are made for business reasons
personalTransactions are made for personal reasons
- payment_settings.
payment_method_options. acss_debit. verification_ methodnullable enum Bank account verification method.
Possible enum valuesautomaticInstant verification with fallback to microdeposits.
instantInstant verification.
microdepositsVerification using microdeposits.
- payment_settings.
payment_method_options. bancontactnullable object This sub-hash contains details about the Bancontact payment method options to pass to invoices created by the subscription.
- payment_settings.
payment_method_options. bancontact. preferred_ languageenum Preferred language of the Bancontact authorization page that the customer is redirected to.
Possible enum valuesdeGerman
enEnglish
frFrench
nlDutch
- payment_settings.
payment_method_options. cardnullable object This sub-hash contains details about the Card payment method options to pass to invoices created by the subscription.
- payment_settings.
payment_method_options. card. mandate_ optionsnullable object Configuration options for setting up an eMandate for cards issued in India.
- payment_settings.
payment_method_options. card. mandate_options. amountnullable integer Amount to be charged for future payments.
- payment_settings.
payment_method_options. card. mandate_options. amount_ typenullable enum One of
fixedormaximum. Iffixed, theamountparam refers to the exact amount to be charged in future payments. Ifmaximum, the amount charged can be up to the value passed for theamountparam.Possible enum valuesfixedIf
fixed, theamountparam refers to the exact amount to be charged in future payments.maximumIf
maximum, the amount charged can be up to the value passed for theamountparam. - payment_settings.
payment_method_options. card. mandate_options. descriptionnullable string A description of the mandate or subscription that is meant to be displayed to the customer.
- payment_settings.
payment_method_options. card. networknullable enum Selected network to process this Subscription on. Depends on the available networks of the card attached to the Subscription. Can be only set confirm-time.
Possible enum valuesamexcartes_bancaires dinersdiscovereftpos_au girocardinteracjcblinkmastercardShow 3 more - payment_settings.
payment_method_options. card. request_ three_ d_ securenullable enumadvanced We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and other requirements. However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on manually requesting 3D Secure for more information on how this configuration interacts with Radar and our SCA Engine.
Possible enum valuesanyUse
anyto manually request 3DS with a preference for africtionlessflow, increasing the likelihood of the authentication being completed without any additional input from the customer. 3DS will always be attempted if it is supported for the card, but Stripe can’t guarantee your preference because the issuer determines the ultimate authentication flow. To learn more about 3DS flows, read our guide.automatic(Default) Our SCA Engine automatically prompts your customers for authentication based on risk level and other requirements.
challengeUse
challengeto request 3DS with a preference for achallengeflow, where the customer must respond to a prompt for active authentication. Stripe can’t guarantee your preference because the issuer determines the ultimate authentication flow. To learn more about 3DS flows, read our guide.
- payment_settings.
payment_method_options. customer_ balancenullable object This sub-hash contains details about the Bank transfer payment method options to pass to invoices created by the subscription.
- payment_settings.
payment_method_options. customer_balance. bank_ transfernullable object Configuration for the bank transfer funding type, if the
funding_is set totype bank_.transfer - payment_settings.
payment_method_options. customer_balance. bank_transfer. eu_ bank_ transfernullable object Configuration for eu_bank_transfer funding type.
- payment_settings.
payment_method_options. customer_balance. bank_transfer. eu_bank_transfer. countryenum The desired country code of the bank account information. Permitted values include:
BE,DE,ES,FR,IE, orNL.Possible enum valuesBEDEESFRIENL
- payment_settings.
payment_method_options. customer_balance. bank_transfer. typenullable enum The bank transfer type that can be used for funding. Permitted values include:
eu_,bank_ transfer gb_,bank_ transfer jp_,bank_ transfer mx_, orbank_ transfer us_.bank_ transfer
- payment_settings.
payment_method_options. customer_balance. funding_ typenullable enum The funding method type to be used when there are not enough funds in the customer balance. Permitted values include:
bank_.transfer Possible enum valuesbank_transfer
- payment_settings.
payment_method_options. konbininullable object This sub-hash contains details about the Konbini payment method options to pass to invoices created by the subscription.
- payment_settings.
payment_method_options. sepa_ debitnullable object This sub-hash contains details about the SEPA Direct Debit payment method options to pass to invoices created by the subscription.
- payment_settings.
payment_method_options. us_ bank_ accountnullable object This sub-hash contains details about the ACH direct debit payment method options to pass to invoices created by the subscription.
- payment_settings.
payment_method_options. us_bank_account. financial_ connectionsnullable object Additional fields for Financial Connections Session creation
- payment_settings.
payment_method_options. us_bank_account. financial_connections. filtersnullable object Filter the list of accounts that are allowed to be linked.
- payment_settings.
payment_method_options. us_bank_account. financial_connections. filters. account_ subcategoriesnullable array of enums The account subcategories to use to filter for possible accounts to link. Valid subcategories are
checkingandsavings.Possible enum valuescheckingBank account subcategory is checking
savingsBank account subcategory is savings
- payment_settings.
payment_method_options. us_bank_account. financial_connections. permissionsnullable array of enums The list of permissions to request. The
payment_permission must be included.method Possible enum valuesbalancesAllows accessing balance data from the account.
ownershipAllows accessing ownership data from the account.
payment_method Allows the creation of a payment method from the account.
transactionsAllows accessing transactions data from the account.
- payment_settings.
payment_method_options. us_bank_account. financial_connections. prefetchnullable array of enums Data features requested to be retrieved upon account creation.
Possible enum valuesbalancesRequests to prefetch balance data on accounts collected in this session.
ownershipRequests to prefetch ownership data on accounts collected in this session.
transactionsRequests to prefetch transaction data on accounts collected in this session.
- payment_settings.
payment_method_options. us_bank_account. verification_ methodnullable enum Bank account verification method.
Possible enum valuesautomaticInstant verification with fallback to microdeposits.
instantInstant verification only.
microdepositsVerification using microdeposits. Cannot be used with Stripe Checkout, Hosted Invoices, or Payment Element.
- payment_settings.
payment_ method_ typesnullable array of enums The list of payment method types to provide to every invoice created by the subscription. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your invoice template settings.
Possible enum valuesach_debit ACH
acss_debit Canadian pre-authorized debit
affirmAffirm
If set, the Subscription
collection_must bemethod send_.invoice amazon_pay Amazon Pay
au_becs_ debit BECS Direct Debit
bacs_debit Bacs Direct Debit
bancontactBancontact
If set, the Subscription
collection_must bemethod send_.invoice boletoBoleto
cardCard
cashappCash App Pay
Show 27 more - payment_settings.
save_ default_ payment_ methodnullable enum Configure whether Stripe updates
subscription.when payment succeeds. Defaults todefault_ payment_ method off.Possible enum valuesoffStripe never sets
subscription..default_ payment_ method on_subscription Stripe sets
subscription.when a subscription payment succeeds.default_ payment_ method
- pending_
invoice_ item_ intervalnullable object Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling Create an invoice for the given subscription at the specified interval.
- pending_invoice_item_interval.
intervalenum Specifies invoicing frequency. Either
day,week,monthoryear.Possible enum valuesdaymonthweekyear - pending_invoice_item_interval.
interval_ countinteger The number of intervals between invoices. For example,
interval=monthandinterval_bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).count=3
- schedulenullable stringExpandable
The schedule attached to the subscription
- start_
datetimestamp Date when the subscription was first created. The date might differ from the
createddate due to backdating. - test_
clocknullable stringExpandable ID of the test clock this subscription belongs to.
- transfer_
datanullable objectConnect only The account (if any) the subscription’s payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription’s invoices.
- transfer_data.
amount_ percentnullable float A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
- transfer_data.
destinationstringExpandable The account where funds from the payment will be transferred to upon payment success.
- trial_
endnullable timestamp If the subscription has a trial, the end of that trial.
- trial_
settingsnullable object Settings related to subscription trials.
- trial_settings.
end_ behaviorobject Defines how the subscription should behave when the user’s free trial ends.
- trial_settings.
end_behavior. missing_ payment_ methodenum Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
Possible enum valuescancelCancel the subscription if a payment method is not attached when the trial ends.
create_invoice Create an invoice when the trial ends, even if the user did not set up a payment method.
pausePause the subscription if a payment method is not attached when the trial ends.
- trial_
startnullable timestamp If the subscription has a trial, the beginning of that trial.
{ "id": "sub_1MowQVLkdIwHu7ixeRlqHVzs", "object": "subscription", "application": null, "application_fee_percent": null, "automatic_tax": { "enabled": false, "liability": null }, "billing_cycle_anchor": 1679609767, "cancel_at": null, "cancel_at_period_end": false, "canceled_at": null, "cancellation_details": { "comment": null, "feedback": null, "reason": null }, "collection_method": "charge_automatically", "created": 1679609767, "currency": "usd", "customer": "cus_Na6dX7aXxi11N4", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "description": null, "discounts": null, "ended_at": null, "invoice_settings": { "issuer": { "type": "self" } }, "items": { "object": "list", "data": [ { "id": "si_Na6dzxczY5fwHx", "object": "subscription_item", "created": 1679609768, "current_period_end": 1682288167, "current_period_start": 1679609767, "metadata": {}, "plan": { "id": "price_1MowQULkdIwHu7ixraBm864M", "object": "plan", "active": true, "amount": 1000, "amount_decimal": "1000", "billing_scheme": "per_unit", "created": 1679609766, "currency": "usd", "discounts": null, "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": null, "product": "prod_Na6dGcTsmU0I4R", "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed" }, "price": { "id": "price_1MowQULkdIwHu7ixraBm864M", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1679609766, "currency": "usd", "custom_unit_amount": null, "livemode": false, "lookup_key": null, "metadata": {}, "nickname": null, "product": "prod_Na6dGcTsmU0I4R", "recurring": { "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed" }, "tax_behavior": "unspecified", "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 1000, "unit_amount_decimal": "1000" }, "quantity": 1, "subscription": "sub_1MowQVLkdIwHu7ixeRlqHVzs", "tax_rates": [] } ], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_1MowQVLkdIwHu7ixeRlqHVzs" }, "latest_invoice": "in_1MowQWLkdIwHu7ixuzkSPfKd", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, "on_behalf_of": null, "pause_collection": null, "payment_settings": { "payment_method_options": null, "payment_method_types": null, "save_default_payment_method": "off" }, "pending_invoice_item_interval": null, "pending_setup_intent": null, "pending_update": null, "schedule": null, "start_date": 1679609767, "status": "active", "test_clock": null, "transfer_data": null, "trial_end": null, "trial_settings": { "end_behavior": { "missing_payment_method": "create_invoice" } }, "trial_start": null}