Overview
If you already have customer addresses but the tariff data is missing, you can automatically assign market tariffs without requiring manual action. This allows your customers to immediately benefit from energy price data in your system, while still encouraging them to connect their actual tariff later via Connect for improved price accuracy.Implementation
1
Create a Location
Before creating tariffs, you must first create a Location using the location-create endpoint. The response will return a Flatpeak Location ID, which you must permanently store in your system.
| Parameter | Description |
|---|---|
reference_id | A reference that is meaningful to you, for example, an ID from your system. |
postal_address | Postal address of your customer or their equipment. If the exact address is unknown, use an approximate one. The address will be used to map the correct Market rates source. |
customer_id | (Optional) If your system supports multiple locations per customer, call create-customer first, then include the generated Customer ID using this field. |
2
Create a Tariff
Once you have a Location ID, create a Tariff by calling create-tariff endpoint. This will instruct Flatpeak systems to apply the market rates to the Location you created earlier.
| Parameter. | Description |
|---|---|
location_id | Flatpeak Location ID you created earlier |
direction | IMPORT |
type | COMMODITY |
contract_start_date | Set to today’s date |
contract_end_date | Set to a date far in the future (for example, 10 years from today) |
market_rates | Set to true (important) |
The presence of
market_rate_source_id in the response confirms that Flatpeak successfully mapped a market rates data source.For more details, see the Market Rates Coverage guide.
