Skip to content
Back to skills

Subscription Billing

ASecurity

Design resilient SaaS subscription lifecycles handling upgrades, downgrades, proration, trials, grace periods, and dunning

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
developmentrustapifrontendbackend

Works with

  • api

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add AdityaaaTiwari/ANVIL --skill subscription-billing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Subscription Billing?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Subscription Billing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/adityaaatiwari-subscription-billing/badge)](https://www.skillsdirectory.com/skills/adityaaatiwari-subscription-billing)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Design resilient SaaS subscription lifecycles handling upgrades, downgrades, proration, trials, grace periods, and dunning
profile: standard
tags: payments, saas, backend, architecture
---

# Subscription billing

Use when building recurring SaaS plan management, seat updates, entitlement gating, or payment recovery flows.

## State and entitlements
- Drive user entitlements strictly from verified subscription status and period-end timestamps synced from the billing provider—never trust frontend plan flags.
- Define explicit state transitions (`trialing`, `active`, `past_due`, `canceled`, `paused`) and separate soft grace-period access from hard cancellation.
- Schedule tier downgrades or seat reductions for the end of the billing cycle unless explicitly opting into immediate proration credits.

## Dunning and sync
- Combine webhook event handlers (handling out-of-order delivery cleanly via provider event timestamps/versions) with periodic API reconciliation jobs.
- Surface clear billing-portal update banners during `past_due` smart retry windows before revoking access abruptly.

## Verify
Test mid-cycle upgrades, end-of-cycle downgrades, expired trials, payment failure recovery, and duplicate/out-of-order webhook updates.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.