The subscription object
A recurring purchase or payment plan
A subscription is created when a customer submits a checkout page with a recurring price. Each charge it makes is a subscription payment.
Endpoints
Webhooks
- subscription.abandoned
Triggered when a subscription is abandoned. A subscription is abandoned when a customer starts but does not complete the checkout. Learn more
- subscription.created
Triggered when a subscription is created. Subscriptions are created after a customer has submitted your checkout. A created subscription may or may not transition into an active, trialing or scheduled subscription depending on whether the payment is successful.
- subscription.active
Triggered when a subscription is successfully created and becomes active.
- subscription.trialing
Triggered when a subscription is successfully created in a trialing state.
- subscription.scheduled
Triggered when a subscription is successfully created in a scheduled state.
- subscription.completed
Triggered when after all payments in a payment plan have been paid.
- subscription.canceled
Triggered when a subscription is updated to be canceled. A subscription can be canceled immediately, at the end of the subscription period or on a custom date. This webhook does not mean the subscription is expired.
- subscription.expired
Triggered when a canceled subscription reaches its scheduled canceled date and transitions to expired.
Fields
- idstring
- orderId?string
- stripeSubscriptionId?string
- stripeCustomerId?string
- customerEmail?string
- customerName?string
- currency?string
- amountnumber
- amountUsd?number
- taxSource?string, nullable
How tax was applied.
fixed_tax_ratewhen tax rates were applied directly to the record.stripe_taxwhen tax was calculated by Stripe based on the transaction details and Stripe Tax settings.fixed_tax_ratestripe_tax Fixed tax rates applied to this record. Populated when
taxSourceisfixed_tax_rate.- interval?string
- intervalCount?number
- planIterations?number
What the customer chose to add to every payment to cover the processing fee, worked out on each payment's total with tax. Not one of
fees. Absent when the customer did not choose it.- setupFee?number
- setupFeeDiscountAmount?number
- setupFeeTotal?number
- setupFeeUsd?number
- setupFeeInvoiceItemId?string
- setupFeeInvoiceItemPaid?boolean
- quantity?number
- productPrice?number
- priceId?string, nullable
Id of the price the customer selected at checkout.
Frozen snapshot of the purchased price at the point of purchase.
- dynamicPrice?number
- discountedFromPrice?number
- sku?string
- couponId?string
- licenseKeyId?string
- livemode?boolean
- status?string
draftdraft_expiredincompleteincomplete_expiredtrialingpausedscheduledactive - paymentStatus?string
draftdeletedopenpaiduncollectiblevoidrequires_payment_methodrequires_confirmation - paymentError?string
- locale?string
- sessionId?string
- clientIp?string
- userAgent?string
- screenWidth?number
- visitId?string
- queryParameters?Record<string, string>
- stripePaymentIntentId?string
- stripeSetupIntentId?string
- startDate?string
date-time
- trialEnd?string
date-time
- trialStart?string
date-time
- cancelAt?string
date-time
- cancelAtPeriodEnd?boolean
- currentPeriodStart?string
date-time
- currentPeriodEnd?string
date-time
- upsell?boolean
- upsellPageId?string
For an upsell record, the ID of the page the buyer paid on before accepting the upsell (the start of the funnel).
- upsellChargeId?string
For an upsell record, the ID of the payment made on the page before the upsell.
- upsellSubscriptionId?string
For an upsell record, the ID of the subscription created on the page before the upsell.
- sellerId?string
- customerId?string
- pageId?string
ID of the page the subscription was bought on. A sale made through your store carries an ID that is not a checkout page in the API.
- storeId?string
ID of the store it was sold in. Absent for a sale made outside a store. Match this to find everything a store sold.
- productId?string
- productTitle?string
- lastRefundAt?string
date-time
- lastRefundReason?string
- lastRefundReasonNote?string
- canceledAt?string
date-time
- canceledBy?string
- canceledByApiKey?string
ID of the API key that canceled the subscription, when cancellation was initiated via the seller API. Best-effort reference — the underlying ApiKey document may be hard-deleted, in which case
canceledByApiKeyNameis the durable audit trail. - canceledByApiKeyName?string
Snapshot of the API key's human-readable name at the time of cancellation. Survives a later hard-delete of the ApiKey document.
- reason?string
- isAbandoned?boolean
- recoveredAt?string
date-time
- abandonmentStatus?string
'abandoned': checkout was started but not completed and not recovered yet. 'recovered': was abandoned but the customer returned and paid. Absent when the subscription is not an abandoned cart.
abandonedrecovered - abandonedCartEmailStatus?string
pendingfirst_sentsecond_sentthird_sentconvertedskipped - abandonedCartEmailSentAt?string
date-time
- pageSlug?string
- createdAtstring
date-time
- updatedAtstring
date-time