Margin is the supplier’s added amount above an indexed reference price. In a variable tariff, the base cost follows a market index, and the margin is the extra per-unit charge that becomes part of the final price. It is usually small on paper, but it can materially affect the total bill when usage is high or when the reference index moves quickly.
In digital billing systems, margin matters because it is one of the line items that must be calculated, stored, and displayed correctly. If the pricing logic is hidden, customers may not understand why two seemingly similar offers produce different invoices. In attacks, an adversary might try to alter pricing rules, tamper with invoice-generation APIs, or exploit weak validation to add unauthorized charges. Defenders reduce that risk by enforcing contract rules, logging every price component, and reconciling the margin against the indexed source and approved tariff data.


