On-premise billing infrastructure

Meter anything.
Price any way.
Deploy anywhere.

Usage-based billing that runs entirely inside your infrastructure. One binary. One database. No external dependencies. Built for teams with data residency, compliance, and air-gapped requirements.

$ docker compose up -d
localhost:8080/dashboard
Live
Events Ingested
2.41M
+12.3%
Subscriptions
847
+4.1%
Period Revenue
$48,290
+8.7%
P95 Latency
47ms
-6.2%
HIPAA Compliant SOC2 Ready FedRAMP Aligned Air-Gapped Deployments Zero External Dependencies GDPR / Data Residency Single Binary PostgreSQL Only
The Problem

Cloud billing tools can't go
where your data lives.

Your customers require data residency. Your compliance team demands on-premise. Your security auditors won't sign off on sending billing events to a third-party cloud.

But building billing in-house is an 18-month project with edge cases that will haunt your engineering team for years.

Data sovereignty violations
Failed compliance audits
18-month build timelines
Floating-point billing bugs
The Solution

ABAXUS deploys in your VPC in 60 seconds.

One Docker command. One PostgreSQL database. Zero cloud dependencies. Full billing infrastructure that lives exactly where your compliance team needs it.

DECIMAL(20,10) arithmetic everywhere — never float
Every invoice line traceable to raw events via checksums
Idempotent ingestion, deduplication, and calculation
Prometheus metrics, structured logs, health endpoints
Core Architecture

Three engines. One binary.

Every billing platform needs ingestion, aggregation, and pricing. ABAXUS ships all three as a single deployable binary backed by PostgreSQL.

Event Ingestion

Receive, deduplicate, and durably store usage events. Mandatory idempotency keys. 202 Accepted, never 200 OK.

POST/v1/events
POST/v1/events/batch
GET/v1/events
207Multi-status for batch — never reject all for one bad event

Metering & Aggregation

Two query modes with explicit consistency levels. Real-time dashboards from materialized views. Exact billing from raw event scans.

Real-time <100ms · eventual
Billing exact · checksummed
sum · count · max · min · last · unique_count · percentile

Pricing Engine

Pricing models are data, not code. Immutable plan versioning. Subscription overrides for enterprise contracts.

per_unit·tiered·volume
package·flat_fee·matrix
custom_formula
Tiered ≠ Volume — ABAXUS never conflates them
How It Works

Eight steps. One complete billing system.

From defining what to measure to charging a card — every step is an API call, every step is idempotent.

01
Metrics
Define what to measure and how to aggregate it.
POST /v1/metrics
02
Price Plans
Charges tied to metrics. Tiered, volume, flat, package.
POST /v1/price-plans
03
Customers
Identity, billing provider credentials, payment method.
POST /v1/customers
04
Subscriptions
Bind customer to a plan version. Locks pricing at creation.
POST /v1/subscriptions
05
Event Ingestion
202 Accepted. Idempotency key mandatory. Batch up to 500.
POST /v1/events
06
Usage Check
Eventual summary from aggregates, or exact scan of raw events.
GET /v1/usage/summary
07
Calculate
Full line-item breakdown. SHA-256 checksummed. Idempotent.
POST /v1/pricing/calculate
08
Invoice & Charge
Issue, email, charge. Bulk available. Full audit trail.
POST /v1/invoices
POST /v1/events 202 Accepted
Step 05 — Event Ingestion
{
  "customer_id":     "cust_acme",
  "metric_key":      "api_calls",
  "value":           1,
  "timestamp":       "2026-03-17T14:00:00Z",
  "idempotency_key": "evt_acme_req_abc123"  // mandatory
}
Queued async — never blocks your request path
Duplicate key silently skipped — safe to retry
Non-Negotiable

Quality properties baked in.

01

Idempotency Everywhere

Duplicate events, API calls, and calculations are all safe. Replay any request without side effects.

02

Complete Audit Trail

Every invoice line item traces back to raw events through stored computations and SHA-256 checksums.

03

No Hard Deletes

Metrics, plans, calculations, events — all immutable historical record. Soft-delete only preserves audit integrity.

04

Decimal Arithmetic Only

DECIMAL(20,10) in PostgreSQL, decimal library in code. Floating point in billing is a lawsuit waiting to happen.

05

Explicit Consistency

Real-time queries always declare eventual. Billing computations always declare exact.

06

Observable from Outside

Structured JSON logs, Prometheus metrics, health endpoints. Required for on-premise where you have no direct access.

Stack

Minimal by design.
No hidden dependencies.

Every dependency was chosen to maximize deployability. If it doesn't help you run in an air-gapped environment, it's not in the binary.

Language
Go
Database
PostgreSQL 16
Queue
PG SKIP LOCKED
Deploy
Docker / Helm
Metrics
Prometheus
Logging
zerolog JSON

What we intentionally don't ship:

Kafka→ PG queue until measured bottleneck
Redis→ No cache until slow query measured
Elasticsearch→ PG range queries + indexes
ClickHouse→ Add at billions per tenant
Microservices→ One binary, packages not services
External auth→ Breaks air-gapped deployments
Pricing

Billing infrastructure is load-bearing.

Annual license + usage-based overage. Priced for teams that understand cheap billing tools cost more in the long run.

Starter
$12K /yr

For early-stage SaaS launching usage-based billing.

  • Up to 50 billed customers
  • 5M events / month
  • All pricing models
  • Community support
  • Docker Compose deployment
Start Free Trial
Most Popular
Growth
$36K /yr

For scaling companies with compliance requirements.

  • Up to 500 billed customers
  • 100M events / month
  • Custom formula pricing
  • Priority support + SLA
  • Helm chart + Kubernetes
Start Free Trial
Enterprise
Custom

Managed deployment, dedicated support, custom SLAs.

  • Unlimited customers
  • Unlimited events
  • Managed deployment SLA
  • Dedicated solutions engineer
  • Custom integrations
Contact Sales

Design partner program: 60–70% discount for first 5 customers in exchange for weekly calls and case study permission.

Stop building billing.
Start shipping it.

One binary. One database. Full audit trail. Your compliance team will thank you.

$ curl -sSL https://get.abaxus.io | sh