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.

api_calls · OctoberInvoiced in Xero after the period
API requests this period
12,428
Included10,000 · $0.00
Overage2,428 × $0.02
Usage charge$48.56

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.
Drag to change this month’s usage
api_calls
62,000 requests
First 10,000 included$0.00
40,000 × $0.02$800.00
12,000 × $0.015$180.00
Usage charge on the invoice$980.00

How usage billing works.

  1. Create a meter

    A meter is what you count, like API calls. You define it once for your organisation.

  2. Price it on a plan

    Choose which meters a plan bills for, and how each one is priced.

  3. Send usage events

    Report events from your product through the API.

  4. 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
}
Subscription created, first invoice raised and pushed to Xero.

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.

Bill for what
gets used.

Start your 14-day free trial.