Multi-Strategy CPO Settlement & Billing Engine
An eMSP SaaS platform responsible for accurately settling payments with a diverse network of charge point operator (CPO) partners.
Where things stood
An eMSP aggregating many CPO partners rarely pays them all under one simple pricing formula — different partners negotiate flat rates, volume-tier rates, or progressive tiered structures, plus individually negotiated exceptions.
Manually calculating correct, auditable settlement amounts under this complexity isn't sustainable at any scale.
What we built
Charge transaction report data and CPO pricing rules (BigQuery) feed a Python rule-resolution engine.
A weighted rule-matching system automatically resolves which pricing rule applies to a transaction based on partner, fleet, channel, geography, and station, selecting the most specific rule available across six dimensions.
Strategy-specific calculation (flat, slab, or telescopic tiered pricing) produces a tax-adjusted settlement output, refreshed daily in BigQuery.
How it works
TopN Analytics built a rule-based settlement calculation engine supporting three distinct pricing strategies — flat-rate, volume-based slab pricing, and progressive/telescopic tiered pricing — each with the override logic a partner's commercial agreement requires.
Built as a generalized, configurable rule-resolution system, new partners or renegotiated terms can be accommodated through configuration rather than new code.
What we delivered and learned
This is a genuine commercial rules engine, it directly determines real money owed to real partners, reducing payment errors and disputes while giving partners settlement transparency.
Want the full picture?
We're happy to walk through the details, numbers, and trade-offs directly.