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

# Pending tariff connection

> Informs customer that tariff connection is pending.

Connect will return this page if it cannot instantly access the customer’s tariff, such as during a provider's system outage.

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

  <Tab title="Code">
    <CodeGroup>
      ```json Connect response theme={"system"}
      {
        "connect_token": "cot_6587fa4362341be5b524de3b",
        "route": "tariff_connection_pending",
        "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_pending",
        "action": "EDIT"
      }'
      ```

      ```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_pending",
        "action": "BACK"
      }'
      ```
    </CodeGroup>

    When you POST the response, Connect may return any of these validation errors:

    | Error Code          | Error Description                         |
    | ------------------- | ----------------------------------------- |
    | `action_missing`    | Action parameter is required.             |
    | `action_invalid`    | Action parameter XX is not supported.     |
    | `data_json_invalid` | Data does not conform to the JSON schema. |
  </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. |
