Create Customer object (optional)
reference_id
.The response will return a FlatPeak Customer ID (customer_id
), which you should store and associate with the customer in your systems.Create Location object
reference_id
. The response will return a FlatPeak Location ID (location_id
), which you must permanently store and associate with the device location in your system.At minimum, you must pass postal_address.city
and postal_address.country_code
. If the device is located in the US, you must also include postal_address.state
. These fields enable FlatPeak to determine the correct timezone, currency, and market rates for the specified location.customer_id
field.Create Tariff object
€0.02123
per kWh on top of the market rate for their location:Object/Parameter | Description |
---|---|
location_id | FlatPeak Location ID, to which this tariff applies from Step 1. |
direction | IMPORT |
type | COMMODITY |
display_name | Name of the tariff, e.g. GB Wholesale Tracker . |
contract_start_date | Date when the contract between your customer and their energy provider has begun. If you don’t have this information, set it to today’s date. |
contract_end_date | Date when the contract between your customer and their energy provider has ended or will end. If you don’t have this information, set it to today’s date + 1 year. |
schedule.months | Specifies months when tariff applies. Set to All . |
schedule.days_and_hours.days | Specifies days when tariff applies. Set to All . |
schedule.days_and_hours.hours | Specifies hours when this tariff applies. Set to align with the example below when your customer is on a fixed tariff rate. Set rates.surcharge_fixed to their tariff surcharge rate in large currency units, i.e. €0.02123¢. |
Learn more about object relationships, tariff types and directions
Type/Direction | Description |
---|---|
COMMODITY +IMPORT | Cost of the electricity consumed. Essential to enable this—it’s foundational across all markets. |
COMMODITY +EXPORT | Price for exported electricity. Use this if your users have solar panels or energy storage. |
NON_COMMODITY +IMPORT | Delivery costs (e.g., grid fees). Recommended if your customer pays delivery charges separately. |