> For the complete documentation index, see [llms.txt](https://fez-delivery-co.gitbook.io/fezcorporate-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fez-delivery-co.gitbook.io/fezcorporate-api-docs/api-endpoints/orders/states.md).

# States

Delivery Time Estimate

## Endpoint => /states

<mark style="color:$primary;">`GET`</mark> `/`states

#### Headers

| Name                                             | Type   | Description       |
| ------------------------------------------------ | ------ | ----------------- |
| Authorization <mark style="color:red;">\*</mark> | String | Your Bearer Token |
| secret-key<mark style="color:red;">\*</mark>     | String | Your Secret Key   |

{% tabs %}
{% tab title="201: Created Success" %}

```json
{
    "status": "Success",
    "description": "states fetched successfully",
    "states": [
        {
            "id": 1,
            "state": "Kano"
        },
        {
            "id": 2,
            "state": "Lagos"
        },
        {
            "id": 3,
            "state": "Kaduna"
        },
        {
            "id": 4,
            "state": "Katsina"
        },
        {
            "id": 5,
            "state": "Oyo"
        },
        {
            "id": 6,
            "state": "Rivers"
        },
        {
            "id": 7,
            "state": "Bauchi"
        },
        {
            "id": 8,
            "state": "Jigawa"
        },
        {
            "id": 9,
            "state": "Benue"
        },
        {
            "id": 10,
            "state": "Anambra"
        },
        {
            "id": 11,
            "state": "Borno"
        },
        {
            "id": 12,
            "state": "Delta"
        },
        {
            "id": 13,
            "state": "Imo"
        },
        {
            "id": 14,
            "state": "Niger"
        },
        {
            "id": 15,
            "state": "Akwa Ibom"
        },
        {
            "id": 16,
            "state": "Ogun"
        },
        {
            "id": 17,
            "state": "Sokoto"
        },
        {
            "id": 18,
            "state": "Ondo"
        },
        {
            "id": 19,
            "state": "Osun"
        },
        {
            "id": 20,
            "state": "Kogi"
        },
        {
            "id": 21,
            "state": "Zamfara"
        },
        {
            "id": 22,
            "state": "Enugu"
        },
        {
            "id": 23,
            "state": "Kebbi"
        },
        {
            "id": 24,
            "state": "Edo"
        },
        {
            "id": 25,
            "state": "Plateau"
        },
        {
            "id": 26,
            "state": "Adamawa"
        },
        {
            "id": 27,
            "state": "Cross River"
        },
        {
            "id": 28,
            "state": "Abia"
        },
        {
            "id": 29,
            "state": "Ekiti"
        },
        {
            "id": 30,
            "state": "Kwara"
        },
        {
            "id": 31,
            "state": "Gombe"
        },
        {
            "id": 32,
            "state": "Yobe"
        },
        {
            "id": 33,
            "state": "Taraba"
        },
        {
            "id": 34,
            "state": "Ebonyi"
        },
        {
            "id": 35,
            "state": "Nasarawa"
        },
        {
            "id": 36,
            "state": "Bayelsa"
        },
        {
            "id": 37,
            "state": "FCT"
        }
    ]
}
```

{% endtab %}

{% tab title="401 Unauthorized" %}

```json
{
    "status": "Error",
    "description": "No state found"
}
```

{% endtab %}
{% endtabs %}

```php
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://apisandbox.fezdelivery.co/v1/states
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'secret-key: {{Your Secret Key}}'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

```
