Billing Automation

作者 wshobson46891e7e60da無授權條款收錄於 2026年10月8日更新於 2026年10月8日

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.

僅含說明Business & Finance
AI 產生的概覽

指導建置自動化訂閱計費系統,涵蓋週期扣款、開立發票、催收、按比例計費與稅務。

功能
此技能為設計自動化計費系統提供概念性指引,涵蓋計費週期、訂閱狀態、催收管理與按比例計費。它概述了週期扣款、發票產生與寄送、失敗付款追回,以及銷售稅、加值稅與商品服務稅等稅務處理的模式。它也指向一份包含詳細模式與完整範例的參考檔案。
適用情境
適用於實作 SaaS 訂閱計費、自動化發票產生或管理週期扣款系統的情境。也適合處理失敗付款追回、方案變更的按比例計費、按用量計費,以及計費週期與續訂等工作。
執行需求
不含指令碼,僅為說明性內容。技能引用了一份隨附的參考文件,範例程式碼假定存在一個不屬於此技能的 Python 計費函式庫。

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.

來源與署名

來源:wshobson/agents位於plugins/payment-processing/skills/billing-automation提交46891e7

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架