Skip to main content
Flatpeak settles on a declared commitment and metered delivery.
  • The commitment is declared before the window: a VPP event share, or a plan under a managed tariff.
  • Delivery is measured from the device’s meter records, never from what the OEM confirmed.

Delivered energy

Each delivery carries the two numbers you settle on.
The device exported 6.0 kWh over the window and its records cover all of it, so 6.0 kWh is delivered and fulfillment is 1. To recompute the figure, take the device meter records that the settlement evidence export carries with each delivery. Before the window, commitment_confidence shows the risk. After it, settle when coverage reaches 1.

Rewards

The ledger records what you owe each customer. Flatpeak keeps it and shows it to the customer but does not move money. Entries are priced from the terms the enrollment joined with, one entry per reward in terms.rewards. Each starts with status ACCRUED and carries the basis and rate it was priced from: A reward is positive whichever way the energy flowed. A change to the program’s terms does not reprice the entries of existing enrollments. Approval fixes the amount: meter records that arrive afterwards do not change an approved entry. Approve once the delivery’s coverage has reached 1, when nothing more is expected. Both calls take either a list of reward_ids or a filter on program, device and period. Use reward_ids with a single ID to approve or pay one entry at a time, each payment with its own payment_reference. Use a filter to act on every matching entry at once: a month of rewards for a whole program is one call. Each returns the number of entries it changed, and changes only entries in the right status, so a retry is safe. Neither call fires reward.update, which is for entries Flatpeak creates or recalculates. Pay through your own rails: cash, bank transfer or bill credit. Read the ledger with list all rewards, filtered by program, device, period or status: ACCRUED lists what awaits your approval. An entry for an event names it in vpp_event_id. The customer sees each entry and its status in the OEM’s app and in Connect.

Evidence

Exports package deliveries, meter records and consent records into files for a counterparty. For one device, retrieve consent history returns every grant and revocation behind its consent_scopes.