Glossary

Stripe cancel_at

Stripe cancel_at is the subscription field that holds a scheduled cancellation date: a future timestamp at which Stripe cancels the subscription automatically, shortening the final billing period to end on that date.

Also called: cancel_at, Stripe scheduled cancellation date, Stripe custom cancel date, cancel at date

14-day free trial · card required · cancel anytime

Definition

Every Stripe subscription has a cancel_at field. Stripe’s API reference describes it as “A date in the future at which the subscription will automatically get canceled.” While it is empty, the subscription renews as normal. Once it holds a timestamp, the subscription is still active, and it ends on that date without anyone touching it.

You can set it yourself through the Dashboard’s custom cancel date or the API, and Stripe sets it for you in two cases. A subscription schedule with end_behavior set to cancel writes the last phase’s end date into cancel_at once it reaches that phase. In flexible billing mode, a customer who cancels through the customer portal gets a cancel_at date instead of cancel_at_period_end.

The important difference from canceling at period end is that cancel_at can land partway through a billing period. When it does, Stripe moves the period end to match and bills only for the shorter period. That is why a scheduled cancellation changes the amount of an invoice rather than just its timing.

Key points

  • +cancel_at is a timestamp on the subscription. The subscription stays active until that moment, then cancels automatically.
  • +A cancel date inside the current period moves the items’ current_period_end to that date and creates prorations, unless prorations are disabled.
  • +A cancel date further out leaves the cycle alone until the renewal into that period, which is billed for the shortened period.
  • +In classic billing mode, cancel_at_period_end=true also fills cancel_at with the period end. In flexible billing mode, portal cancellations set cancel_at and leave cancel_at_period_end false.
  • +The update API accepts helpers instead of a timestamp: min_period_end, max_period_end and max_billed_until.
  • +Adding a cancel date or moving it earlier resets the billing cycle anchor to the new cancel date.
  • +A Dashboard cancellation on a custom date can’t include a refund.

cancel_at versus cancel_at_period_end

Stripe has two fields for a cancellation that hasn’t happened yet, and which one is set depends on how the cancellation was made and on the subscription’s billing mode.

cancel_at_period_end is a yes or no flag. Stripe defines it as “Whether this subscription will (if status=active) or did (if status=canceled) cancel at the end of the current billing period.” It always means the current period’s end, and the customer keeps what they already paid for. cancel_at is a date, which can be the period end or any other future moment.

In classic billing mode the two move together. Stripe’s billing mode comparison says that when a customer schedules a cancellation in the portal, “cancel_at_period_end is set to true and cancel_at is set to the current_period_end timestamp,” and cancel_at follows the period end if it changes. In flexible billing mode, “cancel_at_period_end is set to false and cancel_at is set to the maximum current_period_end across all subscription items,” and the date stays put if an item’s period later changes.

That difference breaks reports. A churn report, a renewal forecast or a deferred revenue schedule that looks only for cancel_at_period_end=true will see every flexible-mode portal cancellation as a subscription that is going to renew. Check cancel_at instead. It is populated in both modes.

How a cancel date shortens the final period

When the cancel date falls inside the current period, Stripe’s cancellation guide says the items’ current_period_end “updates to match the cancel_at date. This creates prorations for the change in the current period, unless your update disables prorations.” The customer is credited for the time after the cancel date that they have already paid for.

When the cancel date is more than one period away, nothing changes yet. Stripe leaves the cycle alone “until the subscription renews into the period that contains the cancel_at date.” That renewal is billed only up to the cancel date, and Stripe says that in this case “you can’t disable prorations.”

Stripe’s own example: a 120 USD a year subscription renews on January 1, 2024 and is set to cancel on July 1, 2024. The January 1 invoice has a subtotal of 60 USD, half the year, and the period ends July 1. If on February 15 the cancel date moves out to October 1, Stripe creates prorations of 30 USD for the extra quarter. If instead it moves in to April 1, Stripe creates a proration of -30 USD for the unused time from April 1 to July 1.

The billing mode matters for one edge case. If cancel_at is set when a subscription is created and shortens its first period, classic mode doesn’t treat the short period as a proration, so proration_behavior=none still bills the subscription’s full amount. Flexible mode treats it as a proration, so none suppresses the line and no invoice is created.

Setting, moving and removing a cancel date

Through the API, you set cancel_at on a subscription update with a timestamp or one of three helpers. Stripe’s update reference lists min_period_end, “the earliest end date among all subscription items’ current billing periods”, max_period_end, the latest of those, and max_billed_until, “the latest date that each subscription item is billed until.” Stripe introduced the period-end helpers for subscriptions whose items bill on different intervals, where cancel_at_period_end “always resolves to the earliest item period end.” The helpers resolve to a fixed timestamp immediately, so later changes to an item’s period don’t move the cancel date.

Moving or removing the date has side effects. Stripe says that adding a cancel date or moving one earlier sets the billing cycle anchor to the new cancel date. Extending or removing it can reset the anchor to the current period start, which Stripe only guarantees for subscriptions created after June 2024.

A scheduled cancellation can be stopped at any time before it happens, from the Dashboard’s Don’t cancel action or the API. A canceled subscription can’t be reactivated. Stripe’s guide is plain about it: “You can’t reactivate a canceled subscription.” After the date passes, continuing to bill the customer means a new subscription.

Trials behave differently by mode too. In classic mode, a cancel_at earlier than trial_end pulls trial_end in to match. In flexible mode, setting or changing cancel_at doesn’t alter trial_end.

What cancel_at means for QuickBooks

A scheduled cancellation isn’t an accounting event. Setting cancel_at changes the subscription, and Stripe reports it through customer.subscription.updated. When the date arrives, Stripe sends customer.subscription.deleted. Neither one is an invoice or a payment, so neither has anything to post.

What reaches your books is the effect on invoices. In Stripe’s example, the January renewal is a 60 USD invoice instead of 120 USD, covering six months. If you recognize subscription revenue over the service period, that invoice’s period, January 1 to July 1, is what you spread it over, and your accountant should confirm the treatment.

Moving the date creates proration lines like any other mid-period change. A later cancel date adds a positive line, by default on the final invoice. A move to an earlier date creates a negative line for the unused time, which can leave the customer with a credit rather than a charge. If you mean to hand money back, that is a refund you issue separately. Stripe notes that when you set a custom cancel date in the Dashboard, “you can’t provide a refund.”

The final invoice is also the last one. After the cancel date, no renewal arrives. In QuickBooks, a customer who canceled on a date looks the same as any customer whose invoices stopped, so keep the cancellation date and reason in Stripe, where cancel_at, canceled_at and cancellation_details record them.

Frequently asked questions

What is cancel_at in Stripe?

It is a subscription field holding a future timestamp at which Stripe cancels the subscription automatically. The subscription stays active until then. If the date falls partway through a billing period, Stripe shortens that period to end on the cancel date and bills or credits the difference as a proration.

What is the difference between cancel_at and cancel_at_period_end?

cancel_at_period_end is a true or false flag that means cancel at the end of the current period. cancel_at is a specific date, which can be any future moment. In classic billing mode, setting cancel_at_period_end also fills cancel_at. In flexible billing mode, portal cancellations set only cancel_at, so check cancel_at to find every scheduled cancellation.

Why was my customer billed less than the full price before canceling?

Because the cancel date shortened the final billing period. When a subscription renews into the period that contains its cancel_at date, Stripe bills only up to that date. In Stripe’s example, a 120 USD annual subscription set to cancel halfway through the year renews with a 60 USD invoice.

Can I undo a Stripe cancel_at date?

Yes, until the date arrives. Remove the cancel date in the Dashboard with Don’t cancel, or update the subscription through the API. Moving or removing the date can create prorations and change the billing cycle anchor. Once the subscription has canceled, it can’t be reactivated, and you need a new subscription.

Does a scheduled Stripe cancellation create anything in QuickBooks?

Not by itself. Setting cancel_at changes the subscription but creates no invoice or payment. What reaches QuickBooks is the effect on invoices: a shorter final invoice, and proration lines if the date moves. When the subscription ends, no further invoices arrive.

What customers say about running Stripe through Acodei

Stripe Verified Partner BadgeIntuit QuickBooks
★★★★★
“If you're testing out all the different Stripe/QuickBooks integration apps right now, let me save you some time. This one is the best one by far.”
RyanOwner at Indie Music Academy
★★★★★
“Works well and is really helpful for massive transactions. The support is really fast and helpful. 100% recommended.”
AndresCo-founder and CEO at Kanguro Collections and Reinsurance

Related reading

More glossary terms

See the full glossary

Ready to try Acodei?

Connect Stripe to QuickBooks Online in minutes and let the fees, refunds, and payouts land where your accountant expects them.

14-day free trial · card required · cancel anytime