Admin - Pricing Simulation
Estimate what is left to FPC and to the teachers for a tariff, before and after a price change, over real volumes; save the hypotheses as scenarios. Nothing here changes a tariff.
Simulate a tariff without saving anything
Per product and band: the cost lines applied, what is left to FPC (margin, quote with and without VAT), and β with an adjustment β the same after the price change plus the delta. With reference_hours the margin is projected over the hours sold. Answers 400 naming the field when the request is malformed or a cost line needs a volume that does not exist.
List the saved scenarios
List the saved scenarios
Save a scenario
Keeps a simulation request under a name to come back to. The request is validated now, so a saved scenario can always be run. Nothing is applied to the tariffs.
A saved scenario with its request and the result of its latest run
A saved scenario with its request and the result of its latest run
Edit a saved scenario
Only what is sent changes. A request, when sent, replaces the whole previous one. An archived scenario is read-only (400).
Run a saved scenario now
Resolves the costs and volumes of today (unless the request fixes as_of), keeps the outcome as the scenario's latest result and returns it.
Archive a scenario
A scenario is never deleted: archiving takes it off the default list and makes it read-only.