Usage-based billing API

Meter usage and bill for it automatically

Report usage events to one REST endpoint and let JEB do the rest. We aggregate every metered event, turn it into an invoice on schedule, and send it from your own domain — with payments collected and paid out within 48 hours, or routed through your own processor.

Why usage-based

From raw events to clean invoices

Stop building meters, rollups, and rating logic by hand. JEB is an API-first billing service that takes the usage events you already emit and turns them into accurate, automated invoices.

Report usage events

Send a unit count whenever something happens — API calls, gigabytes, seats, or anything you meter — with one clean REST call.

Automatic aggregation

JEB rolls up every event per customer over the billing period, so you never have to maintain counters or nightly rollup jobs yourself.

Invoices on schedule

At the end of each cycle, aggregated usage becomes an invoice automatically — rated, totaled, and sent without manual work.

Blend with flat fees

Combine metered usage with a fixed base fee on the same invoice, so hybrid pricing and platform plans bill as a single clean line-up.

Webhooks for everything

Subscribe to events like usage.recorded and invoice.paid and JEB pushes each one to your endpoint in real time, so your app stays in sync.

Your domain, your brand

Every invoice goes out from your own domain with custom templates, so metered billing looks like it came straight from you.

How it works

Three calls from event to payout

Report usage, listen for events, and get paid. JEB aggregates, rates, invoices, and settles in between — all from one REST API.

1

Report a usage event

Push a unit count for a customer each time usage occurs. JEB records it and adds it to the running total for the current billing period.

POST /v1/usage { "customer": "cus_8fq", "units": 1240 }
2

Listen for webhook events

JEB aggregates the period, rates it, generates the invoice, and fires a webhook the moment a payment clears — no polling required.

EVENT invoice.paid { "invoice": "in_456", "usage": 1240, "status": "paid" }
3

Reconcile and get paid

Every payment is reconciled to its invoice and settled to you — JEB collects and pays out within 48 hours, or route through your own processor.

GET /v1/balance { "available": 6200, "payout": "48h" }
Why teams choose JEB

The metering work, off your plate

JEB pairs the usage-based billing API with the rest of the platform, so your whole metered-billing stack runs under your name.

Ready to bill for what your customers actually use?

Wire up the JEB usage-based billing API and let metered events become invoices automatically — sent from your domain, paid out in 48 hours.

Get startedRead the docs