Documentation Index Fetch the complete documentation index at: https://docs.flatpeak.com/llms.txt
Use this file to discover all available pages before exploring further.
Your customer selects their tariff from a Flatpeak-provided library that is pre-filtered by Provider and Location (postal address). If customers find their tariff missing from the list, they can select the TARIFF_MISSING action.
Connect response
Your POST to Connect (data)
Your POST to Connect (action)
{
"connect_token" : "cot_6587fa4362341be5b524de3b" ,
"route" : "tariff_select" ,
"direction" : "IMPORT" ,
"live_mode" : false ,
"actions" : [
"TARIFF_MISSING"
],
"data" : {
"provider" : {
"id" : "prv_65de3071e0c5570f767f06f1" ,
"display_name" : "SSE" ,
"logo_url" : "https://s.flatpeak.com/570f767f06f1.png"
},
"tariffs" : [
{
"id" : "trt_8587fa49c7e5297ccc6c57e4" ,
"name" : "EV Energy Plan" ,
"description" : "November 2022 tariff"
},
{
"id" : "trt_6587fa49c7e5297ccc6c57e7" ,
"name" : "Next Flex 2023 (37p/11.2p)" ,
"description" : ""
}
]
}
}
When you POST the response, Connect may return any of these validation errors : Error Code Error Description tariff_id_missingTariff ID is required. tariff_not_foundTariff ID trf_XX not found. tariff_id_invalidProvider ID prv_XX does not support tariff ID trf_XX. data_json_invalidData does not conform to the JSON schema.