# Availability of a provider

## Get 24 hours of Provider availability information starting from specified date and time.

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/providers/{aid}/availability`

#### Path Parameters

| Name                                  | Type   | Description                 |
| ------------------------------------- | ------ | --------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the provider |

#### Query Parameters

| Name     | Type   | Description                                                                                                                                 |
| -------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------- |
| dateTime | String | Range start for the availability retrieval. Default value: `now`. Datetime format: `ISO 8601`.                                              |
| local    | String | Whether to use local time or UTC. If `true` the `dateTime` query parameter  shall be provided in local time as well. Default value: `false` |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK Query was successful." %}
The detailed properties of the returned item can be found in the [Provider](https://docs.aviowiki.com/data-models/provider) documentation.

```json
[
  {
    "validFrom": "2025-02-27T10:17:40.108Z",
    "validTo": "2025-02-27T10:17:40.108Z",
    "status": "FULL",
    "notes": "string",
    "info": {}
  }
]
```

{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

{% endtab %}

{% tab title="404: Not Found Provider by the given Aviowiki AID was not found." %}

```
{
	"error": "The com.aviowiki.dao.Provider identified by the AID {AID} does not exist in the system",
	"timestamp": "2022-07-26T16:23:01.474034802Z",
	"status": 404,
	"message": "The com.aviowiki.dao.Provider identified by the AID {AID} does not exist in the system",
	"path": "/providers/{AID}/availability"
}
```

{% endtab %}
{% endtabs %}
