Event types you must handle
Subscribe to these three events:| Event | Description |
|---|---|
tariff.expired | Triggered when a tariff reaches its end date or becomes invalid. |
tariff.fetch.failed | Triggered after several failed attempts to retrieve tariff data from the provider, for example when credentials are invalid or have expired. |
location.update | Triggered when any data (for example, prices) at a location change. When this occurs, re-fetch energy prices or recreate schedules as needed for your use case. |
When your backend receives tariff.* events:
- Process the webhook payload — parse the event and extract
location_id - Prompt customer action — notify the user (in-app or by email) with a deep link to the Tariff Settings Page, asking them to update their tariff connection
When your backend receives locaiton.update events:
- Process the webhook payload — parse the event and extract
location_id - [Re-fetch energy prices or recreate schedules](/guides/connect/retrieve-price) - as needed for your use case

