Billing Automation

by wshobson46891e7e60daNo licenseListed Oct 8, 2026Updated Oct 8, 2026

Build automated billing systems for recurring payments, invoicing, subscription lifecycle, and dunning management. Use when implementing subscription billing, automating invoicing, or managing recurring payment systems.

Instructions onlyBusiness & Finance
AI-generated overview

Guides building automated subscription billing systems covering recurring charges, invoicing, dunning, proration and tax.

What it does
This skill provides conceptual guidance for designing automated billing systems, covering billing cycles, subscription states, dunning management and proration. It outlines patterns for recurring payments, invoice generation and delivery, failed-payment recovery, and tax handling such as sales tax, VAT and GST. It also points to a reference file with detailed patterns and worked examples.
When to use it
Use it when implementing SaaS subscription billing, automating invoice generation, or managing recurring payment systems. It also fits work on failed-payment recovery, prorated charges for plan changes, usage-based billing, and billing cycles or renewals.
Requirements
No scripts are included; the skill is instructions only. It references a bundled reference document, and the illustrative code assumes a Python billing library that is not part of the skill.

Billing Automation

Master automated billing systems including recurring billing, invoice generation, dunning management, proration, and tax calculation.

When to Use This Skill

  • Implementing SaaS subscription billing
  • Automating invoice generation and delivery
  • Managing failed payment recovery (dunning)
  • Calculating prorated charges for plan changes
  • Handling sales tax, VAT, and GST
  • Processing usage-based billing
  • Managing billing cycles and renewals

Core Concepts

1. Billing Cycles

Common Intervals:

  • Monthly (most common for SaaS)
  • Annual (discounted long-term)
  • Quarterly
  • Weekly
  • Custom (usage-based, per-seat)

2. Subscription States

trial → active → past_due → canceled              → paused → resumed

3. Dunning Management

Automated process to recover failed payments through:

  • Retry schedules
  • Customer notifications
  • Grace periods
  • Account restrictions

4. Proration

Adjusting charges when:

  • Upgrading/downgrading mid-cycle
  • Adding/removing seats
  • Changing billing frequency

Quick Start

python
from billing import BillingEngine, Subscription
# Initialize billing enginebilling = BillingEngine()
# Create subscriptionsubscription = billing.create_subscription(    customer_id="cus_123",    plan_id="plan_pro_monthly",    billing_cycle_anchor=datetime.now(),    trial_days=14)
# Process billing cyclebilling.process_billing_cycle(subscription.id)

Detailed patterns and worked examples

Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.

Source and attribution

Source:wshobson/agentsinplugins/payment-processing/skills/billing-automationat commit46891e7

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal