Automated Subscription Billing
Build and scale your subscription business with MAGNETPAY. Our subscription billing platform handles recurring payments, trial management, dunning retries, usage-based metering, and revenue analytics through a single API integration.
Key capabilities
Recurring Payment Engine
Automatically charge customers on any schedule: weekly, monthly, quarterly, or annual. Our billing engine handles proration, mid-cycle changes, and timezone-aware scheduling.
Trials & Grace Periods
Offer free trials with automatic conversion to paid plans. Configure grace periods for failed payments before subscription cancellation. No code changes needed.
Coupons & Promotions
Create percentage or fixed-amount coupons with usage limits, expiry dates, and plan restrictions. Apply at checkout or via API for automated promotional campaigns.
Smart Dunning & Retries
Configurable retry schedules for failed payments with exponential backoff. Card updater integration automatically refreshes expired card details before they fail.
Usage-Based Billing
Report usage events via API and bill customers based on consumption. Support for tiered, volume, and per-unit pricing models with real-time metering.
Lifecycle Webhooks
Receive webhooks for every subscription event: created, renewed, past_due, canceled, resumed, trial_ending. Build automated workflows around the full subscription lifecycle.
How it works
Define Products & Prices
Create products with one or more price variants. Each price can have a different billing interval, currency, and pricing model (flat, tiered, per-unit, or usage-based).
Create Subscriptions
Subscribe customers to a price with optional trial periods, coupons, and metadata. The billing engine schedules the first charge automatically.
Automatic Billing & Dunning
Invoices are generated and charged automatically on each billing cycle. Failed payments trigger your dunning schedule with retries, notifications, and escalation.
Analytics & Revenue Recognition
Track MRR, churn rate, LTV, and expansion revenue in real-time. Export data for accounting with proper revenue recognition aligned to ASC 606.
Quick start example
1curl -X POST https://magnetpay.org/api/v1/subscriptions \2 -H "Authorization: Bearer sk_live_..." \3 -H "Content-Type: application/json" \4 -d '{5 "customer": "cus_9f3kR2xL",6 "price": "price_pro_monthly",7 "trial_period_days": 14,8 "coupon": "LAUNCH25",9 "payment_method": "pm_card_visa_4242",10 "billing_cycle_anchor": "2026-04-01T00:00:00Z"11 }'
Frequently asked questions
Launch Your Subscription Business
From SaaS to memberships, MAGNETPAY subscription billing handles the complexity so you can focus on growth. Start with our free tier.