Start the Connect Session
connect_token
.Render Page Objects
Handle Completion
callback_uri
you specified when creating the connect_token
- to inform your backend that the tariff is now connected.connect_token
for a permanent location_id
and store it alongside your customer’s address.Subscribe to Lifecycle Webhooks
Allow Configuration Changes
Step | Action |
---|---|
1 | UI triggers Connect flow using create-connect-token and session_restore |
2 | App loops through Page Objects: render, collect input, send response |
3 | On session_complete , exchange token for location_id |
4 | Subscribe to lifecycle webhooks (tariff.expiring , tariff.expired , tariff.fetch.failed ) |
5 | Offer tariff settings UI for reconnecting or adjusting flows |
6 | Use scheduling, cost reporting, or raw rate endpoints as needed |