---
title: "Verify cancellation at period end stops renewal without early lockout"
description: "Cancel a sandbox subscription for its period end and check remaining access, cancellation details, final expiry, and absence of an unintended renewal charge."
canonical_url: "https://vostride.com/agent-library/billing-subscriptions/cancel-at-period-end.md"
md_url: "https://vostride.com/agent-library/billing-subscriptions/cancel-at-period-end.md"
content_kind: "recipe"
topic: "billing-subscriptions"
---

# Verify cancellation at period end stops renewal without early lockout

Cancel a sandbox subscription for its period end and check remaining access, cancellation details, final expiry, and absence of an unintended renewal charge.

## Risk

Period-end cancellation should prevent the next renewal while honoring the current paid interval. The cancellation dialog and subscription status alone do not prove the billing scheduler or entitlement transition follows that agreement.

## Fixtures

- A disposable paid subscription with a known current-period end and one paid feature fixture.
- A sandbox billing clock that can advance across renewal without real payment activity.
- A documented cancellation policy and hooks for subscription state, invoices, and entitlements.

## Steps

1. Open cancellation settings and verify the confirmation identifies period-end cancellation and the final access date.
2. Confirm once and verify Billing shows cancellation scheduled while the current plan remains active.
3. Before the period end, open the paid feature and verify its existing fixture remains usable as promised.
4. Advance the sandbox lifecycle beyond the period end and verify the application shows the documented expired or free state.
5. Inspect subscription and invoice records to confirm no new renewal invoice was charged and verify paid-feature access now matches the post-cancellation policy.

## Expected results

- Remaining paid access is preserved until the agreed end of the period.
- The subscription does not renew into another paid period.
- Post-expiry entitlements and resource handling match the cancellation contract.

## False-pass traps

- A cancellation email is notification evidence, not proof the renewal scheduler stopped.
- Testing only immediately after cancellation misses the actual period-end transition.

## Cleanup

- Delete the disposable billing customer or leave its subscription cancelled according to fixture policy.

## Use with agent-qa

Adapt this test design to your application's acceptance criteria and configured target using the [recipe execution guide](/agent-library/software-factory/turn-a-recipe-into-an-agent-qa-test.md). External fixture setup and non-UI checks require your own supported hooks or test tooling. Validate the authored test, execute it, and inspect the completed evidence; this recipe is not a recorded test result.

## References

- [agent-qa test](/docs/agent-qa/configuration/test.md)
- [agent-qa hooks](/docs/agent-qa/guides/hooks.md)
- [agent-qa auth state](/docs/agent-qa/guides/auth-state.md)

- [Billing and subscription QA recipes](/agent-library/billing-subscriptions.md)
- [Software factory QA library](/agent-library.md)
