> For the complete documentation index, see [llms.txt](https://api.clearinghouse.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.clearinghouse.net/api-reference-v2p1/endpoints/terminating-date.md).

# Terminating Date

### Get cases by terminating date range

Use `terminating_date_from` and/or `terminating_date_to` to filter cases by their terminating date. Both parameters accept dates in `YYYY-MM-DD` format. Either or both parameters may be provided; when used together they define an inclusive range.

### terminating\_date\_from

<mark style="color:blue;">`GET`</mark> `https://clearinghouse.net/api/v2p1/cases/?terminating_date_from=YYYY-MM-DD`

Returns all cases with a terminating date **on or after** the given date.

### terminating\_date\_to

Returns all cases with a terminating date **on or before** the given date.

### Headers

| Name                                            | Type   | Description                                                                                                                    |
| ----------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------ |
| Authorization<mark style="color:red;">\*</mark> | String | <p>Authorization</p><p><code>Token XXXXXXXXXXX</code></p><p>where</p><p><code>XXXXXXXXXXX</code></p><p>is the token string</p> |

### Example&#x20;

{% tabs %}
{% tab title="URL" %}

```
https://clearinghouse.net/api/v2p1/cases?terminating_date_from=2018-01-01&terminating_date_to=2018-12-31
```

{% endtab %}

{% tab title="python" %}

```python
import requests

url = "https://clearinghouse.net/api/v2p1/cases?terminating_date_from=2018-01-01&terminating_date_to=2018-12-31"
headers = { 'Authorization': 'Token XXXXXXXXXX',
'User-Agent': 'Chrome v22.2 Linux Ubuntu'
}
response = requests.request("GET", url, headers=headers, data={})

print(response.text)
```

{% endtab %}
{% endtabs %}
