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

# Region Selection

> Customer selects their market rates region.

The Region Selection page is returned in rare cases when a customer is on a geo-fenced tariff and Flatpeak is unable to map their address to the correct tariff region.

This can happen if you did not provide a complete `postal_address`, or if the customer’s property is very close to the region border.

<Tabs>
  <Tab title="Preview">
    <Frame>
      <img src="https://mintcdn.com/flatpeak/R_LWNRztMA209Dv3/images/08a-geo-region-select.png?fit=max&auto=format&n=R_LWNRztMA209Dv3&q=85&s=e623521d523859f7f74698aca0aff56d" style={{ width: "200px" }} width="375" height="852" data-path="images/08a-geo-region-select.png" />
    </Frame>
  </Tab>

  <Tab title="Code">
    <CodeGroup>
      ```json Connect response theme={"system"}
      {
        "connect_token": "cot_6587fa4362341be5b524de3b",
        "route": "region_select",
        "direction": "IMPORT",
        "type": "COMMODITY",
        "live_mode": false,
        "actions": [
          "BACK"
        ],
        "data": {
          "provider": {
            "id": "prv_65de3024be51ded101a3a555",
            "display_name": "EDF",
            "logo_url": "https://s.flatpeak.com/1ded101a3a555.png"
          },
          "regions": [
            "CORS",
            "FR"
          ]
        }
      }
      ```

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

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

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

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

**Supported actions**:

| Action  | Result                                                                |
| :------ | :-------------------------------------------------------------------- |
| `BACK`  | Returns previous page.                                                |
| `CLOSE` | Returns `callback_url` you specified when creating the Connect token. |
