Quick Resources
How to configure simple wholesale unit pricing (tariffs) for CPOs with GreenFlux-managed roaming service
How to configure simple wholesale unit pricing (tariffs) for CPOs with self-managed roaming service
Fundamentals of Wholesale Billing Engine
The wholesale billing engine calculates the cost charged by a CPO for a charging session. For chargers managed through the GreenFlux platform, the calculation is based on:
- the tariff code assigned to the charge station or connector;
- the applicable wholesale billing rule;
- the tariff and currency connected to that rule;
- the rule’s scope and validity period; and
- the charging-session data, such as consumed energy, duration and parking time.
For external charging networks, the wholesale cost and currency are normally received from the roaming partner in the incoming CDR. GreenFlux calculates wholesale costs for external networks only when a specific configuration has been enabled.
The following picture represents the working logic behind wholesale costs (applicable to chargers managed in GreenFlux backend):

- What? Wholesale Billing Engine is where the wholesale unit pricing is defined, and it also calculates the wholesale costs after each session.
- When? This billing engine runs in two scenarios:
- Scenario 1: All sessions from internal (GFX backend) chargers. It is mandatory to assign a tariff to any charger hosted in GreenFlux platform. As such, every time a session from an internal charger is over, we receive the session data from the charger and will then calculate the costs and generate a CDR.
- Scenario 2: Some sessions from external (external backends) chargers (related with specific configurations, internal access only). In normal circumstances, when charger is external, we receive the CDR (charge detail record) with the wholesale costs through the roaming technical connection.
- Configuration of unit pricing:
- Scenario 1: For internal chargers, thus useful for GreenFlux CPO operators:
- Any given charger must have a (wholesale) tariff assigned to it
- Each (wholesale) tariff should have at least one billing rule, which should cover the charging scenarios for the CPO operator using it.
- Scenario 2: For external chargers (networks), enabling wholesale cost calculation depends on the roaming setup and platform configuration. If you need this, align with your CSM/support team.
The underlying principles are:
It is based on these two principles and the scenario at hand that the wholesale billing engine will do the wholesale cost calculation for a given session, and after that it will generate the CDR.
How to assign a tariff to a charge station?
- When creating or editing a charge station, there is a field ‘Default Tariff’. It is mandatory to define this field.
- The above field defines the default tariff at charge station level. Unless otherwise specified, this is the tariff that will apply for all connectors of the charge station. For some specific cases (e.g. a charger that contains 2 AC connectors and 1 DC connector → the default tariff is set on the charger at tariff code <REF#1> at 0.4 EUR/kWh, and then the DC connector tariffs is set explicitly to a tariff code <REF#2> at 0.65 EUR/kWh)
