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

# Tariff name capture (input)

> Customer enters their market rate surcharge.

This page is returned when Connect cannot detect your customer's tariff name. This normally happens when they enter the tariff manually.

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

  <Tab title="Code">
    <CodeGroup>
      ```json Connect request theme={"system"}
      {
        "connect_token": "cot_6587fa4362341be5b524de3b",
        "route": "tariff_name_capture",
        "direction": "IMPORT",
        "type": "COMMODITY",
        "live_mode": false,
        "actions": [
          "BACK"
        ],
        "data": {
          "provider": {
            "id": "prv_65b78bbdd8e83b06a60e38c2",
            "display_name": "British Gas",
            "logo_url": "https://s.flatpeak.com/8e83b06a60e38c2.png"
          },
          "tariff": {
            "name": ""
          }
        }
      }
      ```

      ```json Your POST to connect theme={"system"}
      curl --request POST \
        --url https://connect.flatpeak.com \
        --header 'Content-Type: application/json' \
        --data '{
        "connect_token": "cot_66f3b3ce79623c504678cd0a",
        "route": "tariff_name_capture",
        "data": {
          "tariff": {
            "name": "Super Cheap Energy 2008"
          }
        }
      }'
      ```

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

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

    | Error Code            | Error Description                         |
    | --------------------- | ----------------------------------------- |
    | `tariff_name_missing` | Tariff name is required.                  |
    | `data_json_invalid`   | Data does not conform to the JSON schema. |
  </Tab>
</Tabs>
