- Preview
- Code

{
"connect_token": "cot_6587fa4362341be5b524de3b",
"route": "vpp_landing",
"live_mode": true,
"data": {
"tariff_connected": false,
"programmes": [
{
"provider_id": "prv_8587fa49c7e5297ccc6c57e5",
"provider_display_name": "Leap",
"programme_id": "vpr_6a1f8e375db9de605baadd46",
"programme_display_name": "Community Powershare",
"learn_more_url": "https://leap.com/programmes/community-powershare",
"subscription_status": "NOT_ENROLLED",
},
]
}
}
Actions
Following actions are supported when responding to Connect on this route:| Action | Result |
|---|---|
CONNECT_TARIFF | Routes customer to tariff connection flow. |
BACK | Returns previous page. If unavailable, returns callback_url. |
CLOSE | Returns callback_url you specified when creating the Connect token. |
Statuses
Possible values of thesubscription_status field:| Status | Description |
|---|---|
NOT_ENROLLED | Never enrolled to the programme. |
ENROLLING | Enrolling in progress. |
ACTIVE | Subscribed and active. |
LEAVING | Unenrollment in progress. |
LEFT | Unenrolled from programme. |
Errors
When you POST your response to Connect, the following validation errors may be returned:| Error Code | Error Description |
|---|---|
data_json_invalid | Data does not conform to the JSON schema. |

