DEVELOPER EXPERIENCE

Built for the Edge. Orchestrated by You.

Deep integrations for Kong, Apigee, and MuleSoft. Sub-5ms latency for every entitlement check. Start monetizing your infrastructure in minutes.

Gateway plugins, multi-language SDKs, and a complete API for metering and entitlements. Your engineers connect once and never write billing code again.

Developer Console
Connected
Active API Keys
sk_live_7f2a***2026-03-122m agoACTIVE
sk_live_9c4b***2026-02-2814m agoACTIVE
sk_test_3e1d***2026-03-013d agoTEST
Quick Start
$ curl authenticate with your key
curl -X POST \
https://ingest.aforo.space/v1/events \
-H "Authorization: Bearer sk_live_7f2a***" \
-H "X-Tenant-Id: acme_corp" \
-d '{"event":"api.call","endpoint":"/v1/search","customer_id":"cust_abc"}'
HTTP/1.1 202 Accepted
3 keys active · 47.2K events today
P95 ingest: 1.2ms

Billing is infrastructure, not product.
Treat it accordingly.

Your engineering team should be building the features your customers pay for — not maintaining the infrastructure that charges them. Aforo handles metering, aggregation, rating, invoicing, and payment recovery so your team never writes billing code again.

Zero-Code Gateway Integrations

Plug Aforo into Kong, AWS API Gateway, Apigee, Azure APIM, or MuleSoft at the infrastructure layer. Billing logic lives entirely outside your application codebase — no SDK imports, no decorator patterns, no middleware chains. Your API code stays clean. Metering happens at the network edge, invisible to your application engineers.

Enterprise-Grade Safety Nets

The hard distributed-systems problems are already solved. Idempotency keys prevent double-billing across retries and replays. Timestamp validation handles clock skew (rejects >5-minute drift, flags >24-hour late arrivals). Dead-letter queues capture every failed event for replay — nothing is silently dropped. Your CTO does not need to staff a billing reliability team.

Pre-Production Testing Sandbox

Engineers simulate millions of usage events against the full billing pipeline before touching production data. The sandbox executes all 10 pipeline stages — quota, aggregation, rating, discounts, tax, settlement — with deterministic results. Validate that every pricing model, every contract term, and every edge case produces the correct invoice. Ship with confidence, not hope.

HOW IT WORKS

An architecture win, not a code dependency

Billing logic stays outside your application boundary. Engineering connects the pipe. Aforo runs the pipeline. Business teams control the configuration.

Connect the Infrastructure

Gateway plugins or SDK — your choice

Deploy a gateway plugin (zero application changes) or add an SDK decorator (5-15 lines). Usage events flow from your API traffic into Aforo's metering pipeline. Your application code has no knowledge of billing. The integration is at the infrastructure layer, not the application layer.

Aforo Handles the Hard Math

Validation → Enrichment → Aggregation → Rating

The metering engine validates timestamps, deduplicates events, and enriches each one with customer and pricing context. The billing engine then executes a 10-stage pipeline: quota checks, rollover credits, aggregation, rating across 6 pricing models, contract enforcement, discounts, tax, routing, and settlement. All deterministic. All auditable.

Test Before You Ship

Sandbox environment with production-parity pipeline

Before going live, engineers run the full billing pipeline against simulated usage events in the sandbox. Test every pricing model. Verify every edge case — clock skew, duplicate events, late arrivals, overage caps. The sandbox runs the same 10-stage pipeline as production, with the same validation rules and the same rating logic.

Hand Control to Product and Finance

Business teams manage pricing, engineers maintain zero billing code

Once connected, product managers configure pricing models, rate plans, and customer contracts through the admin UI. Finance reviews invoices, reconciliation reports, and revenue dashboards. Engineering's involvement drops to zero. New pricing models, new product launches, new contract structures — none of them require engineering tickets.

The integration surface, in detail

Five gateway plugins. Four SDK languages. One sandbox. Zero billing code in your application.

Five Gateway Plugins — Zero Application Code

Deploy at the network layer. Your application code never sees billing logic. Kong, AWS, Apigee, Azure, MuleSoft.

Kong
Lua plugin
AWS API GW
Lambda
Apigee
Shared Flow
Azure APIM
Policy fragment
MuleSoft
Custom policy
EXAMPLE: 5-LINE GATEWAY CONFIG
plugins:
  - name: aforo-metering
    config:
      endpoint: https://ingest.aforo.space
      api_key: ${AFORO_API_KEY}

Distributed Systems Safety Nets

The hard reliability problems — idempotency, clock skew, dead letters — already solved.

Idempotency key dedupPrevents double-billing on retries
Timestamp validationRejects >5min future, >90d old
Dead-letter recoveryZero events silently dropped
Schema enforcement7 required fields validated

Pre-Production Sandbox

Simulate millions of events. Verify every pricing edge case. Ship with deterministic confidence.

SANDBOX ACTIVE
SCENARIOEVENTSRESULT
Graduated pricing (5 tiers)100KPASS
Clock skew (+6min future)1KREJECTED
Duplicate event replay50KDEDUPLICATED
Min spend enforcement10KPASS

SDK Instrumentation

When gateway plugins don't fit, SDKs in 4 languages instrument in under 15 lines.

Node.js5 lines
Express/Fastify middleware
$ npm install @aforo/node
Python5 lines
Django/FastAPI/Flask decorator
$ pip install aforo
Java3 lines
Spring Boot auto-config
$ com.aforo:metering:1.x
Go8 lines
http.Handler middleware
$ go get github.com/aforo/metering-go

Clean Architecture Boundary

Billing stays outside your application. Engineering connects the pipe. Aforo runs the pipeline.

Your ApplicationZero billing code
Aforo Gateway Plugin / SDKInfrastructure layer
Metering PipelineValidate → Enrich → Route
Billing Pipeline10 stages → Invoice

PERFORMANCE

Zero Performance Tax.

Local Edge Cache

Entitlements and margin policies stored in Redis at the gateway layer. Every access decision resolves locally in under 5ms — no round-trip to a central server.

Asynchronous Metering

Usage ingestion is fire-and-forget. Events are buffered and flushed asynchronously so metering never blocks the API response. Your P99 latency stays untouched.

Global Resilience

Multi-region failover for the ingestion pipeline and entitlement cache. If one region degrades, traffic fails over automatically. Zero single points of failure.

API REFERENCE

Two Calls. Full Monetization.

Check entitlements before serving. Meter usage after serving. That is the entire integration.

POST/v1/canAccessCheck if a tenant can use a feature
const { allowed, quota, remaining } = await aforo.canAccess({
  tenantId: 'tenant_uuid_123',
  featureKey: 'advanced_ai_search',
});
// { allowed: true, quota: 1000, remaining: 450 }
POST/v1/meterRecord a billable usage event
await aforo.meter({
  tenantId: 'tenant_uuid_123',
  metricKey: 'api_calls',
  quantity: 1,
  properties: { endpoint: '/v2/search', model: 'gpt-4o' },
});

Built for teams that refuse to maintain billing code

Different roles, same outcome: billing infrastructure off your team's plate.

CTO / VP of Engineering

Eliminate billing maintenance debt

We have 4 engineers maintaining billing infrastructure full-time. Every pricing change from Product becomes a 2-sprint project. Our best engineers are debugging invoice edge cases instead of building the product.

WHAT THEY GET

Gateway-level integration — zero billing code in the application codebase

Pricing changes are admin UI configuration, not engineering tickets

Idempotency, dedup, and dead-letter recovery handled by the platform, not your SRE team

VP of Product

Launch pricing models without engineering queues

I need to ship a new consumption-based pricing tier this quarter but engineering says the billing system changes are a 4-month project. Product velocity is gated by billing infrastructure.

WHAT THEY GET

New pricing models (graduated, volume-tiered, hybrid) launch as configuration changes

Product team controls rate plans, offerings, and contract terms through the admin panel

Engineering involvement drops to zero for pricing and billing changes

Platform / Infra Lead

Production-grade reliability without custom code

Our homegrown metering drops events under load and we don't find out until month-end reconciliation. Every time we scale, the billing pipeline becomes the bottleneck.

WHAT THEY GET

Financial-grade validation: timestamp checks, schema enforcement, duplicate rejection

Dead-letter queues capture every failed event for replay — nothing silently dropped

Sandbox environment lets you prove pipeline correctness before production deployment

20+

Engineering sprints recovered per year

Zero

Lines of billing code in your application

5+

Gateway plugins — zero-code metering

< 15 min

Gateway integration to first metered event

Your engineers have better things
to build than billing infrastructure.

Connect at the gateway layer. Test in the sandbox. Hand pricing control to the product team. Your engineering backlog just got 20 sprints lighter.