Connect your product. Bill for what’s used.
Create subscriptions and report usage straight from your own platform. Saasybill turns it into invoices in Xero.
Usage-based billing.
Meter anything your customers use, and bill for it after each period.
- The pricing you already have.Price usage per unit, tiered, volume or stairstep, with free units, exactly like any other plan.
- Base fee, usage, or both.Run a usage-only plan, a base fee plus usage, or a base fee with units included and overage after that.
- Billed after each period.Usage for the period is totalled and invoiced in Xero once the period ends.
How usage billing works.
Create a meter
A meter is what you count, like API calls. You define it once for your organisation.
Price it on a plan
Choose which meters a plan bills for, and how each one is priced.
Send usage events
Report events from your product through the API.
Invoice in Xero
After the period, Saasybill totals the usage and raises the invoice.
The Saasybill API.
Everything your platform needs to manage billing, without anyone opening Saasybill.
- Subscriptions from signup.Create customers and subscriptions, change units with proration, and end or restore them from your own code.
- Safe to retry.Idempotency keys stop a retried request becoming a double bill, and every usage event carries its own ID.
- Test before you go live.Separate live and test keys, with test keys running against a sandbox rather than your real data.
- Webhooks.Signed webhooks tell your platform when customers, subscriptions and invoices change.
POST /v1/subscriptions
Authorization: Bearer saasybill_live_…
Idempotency-Key: signup_8231
{
"customer_code": "ACME",
"plan_code": "growth",
"units": 12
}Built for production.
Scoped keys
Give each key only the access it needs, like reading invoices or writing usage and nothing else.
Clear errors
One error format with stable codes, so your code can react to a case like a plan limit being reached.
Versioned
A stable /v1 base URL. A breaking change only ever ships as a new version.

