> ## 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.

# Failed tariff connection

> Informs the customer that the tariff connection has failed.

When Connect is unable to access the customer's tariff, it will return to this page.

<Tabs>
  <Tab title="Preview">
    <Frame>
      <img src="https://mintcdn.com/flatpeak/R_LWNRztMA209Dv3/images/11-reconnect.png?fit=max&auto=format&n=R_LWNRztMA209Dv3&q=85&s=b43a62b73d486f917a78683ecfe30815" style={{ width: "200px" }} width="375" height="850" data-path="images/11-reconnect.png" />
    </Frame>
  </Tab>

  <Tab title="Code">
    <CodeGroup>
      ```json Connect response theme={"system"}
      {
        "connect_token": "cot_6587fa4362341be5b524de3b",
        "route": "tariff_connection_failed",
        "direction": "IMPORT",
        "type": "COMMODITY",
        "live_mode": false,
        "actions": [
          "EDIT",
          "DISCONNECT",
          "BACK"
        ],
        "data": {
          "connection_type": "DIRECT",
          "provider": {
            "id": "prv_65b78bbdd8e83b06a60e38c2",
            "display_name": "Octopus Energy",
            "logo_url": "https://s.flatpeak.com/83b06a60e38c2.png"
          }
        }
      }
      ```

      ```json Your POST to Connect (data) theme={"system"}
      curl --request POST \
        --url https://connect.flatpeak.com \
        --header 'Content-Type: application/json' \
        --data '{
        "connect_token": "cot_6587fa4362341be5b524de3b",
        "route": "tariff_connection_failed",
        "action": "DISCONNECT"
      }'
      ```

      ```json Your POST to Connect (action) theme={"system"}
      curl --request POST \
        --url https://connect.flatpeak.com \
        --header 'Content-Type: application/json' \
        --data '{
        "connect_token": "cot_6587fa4362341be5b524de3b",
        "route": "tariff_connection_failed",
        "action": "BACK"
      }'
      ```
    </CodeGroup>

    Connect may return any of the following request validation errors:

    | Error Code       | Error Description                     |
    | ---------------- | ------------------------------------- |
    | `action_missing` | Action parameter is required.         |
    | `action_invalid` | Action parameter XX is not supported. |
  </Tab>
</Tabs>

**Supported actions**:

| Action       | Result                                                                |
| :----------- | :-------------------------------------------------------------------- |
| `EDIT`       | Restarts the flow from the Provider Selection page.                   |
| `DISCONNECT` | Disconnects the tariff and completes the session.                     |
| `BACK`       | Returns previous page.                                                |
| `CLOSE`      | Returns `callback_url` you specified when creating the Connect token. |
