> ## Documentation Index
> Fetch the complete documentation index at: https://developers.tassyir.io/llms.txt
> Use this file to discover all available pages before exploring further.

# INVALID_DATE_RANGE

> HTTP 400, from 6 operations of the Admin API.

Its problem `type`: `https://developers.tassyir.io/errors/invalid-date-range`; its `title`: Invalid date range.

## What to do

Send startDate and endDate as calendar days (YYYY-MM-DD), startDate first and at most 366 days apart.

## Answered by

HTTP 400, from:

* [`GET /analytics/marketing`](https://developers.tassyir.io/api-reference/admin/analytics/orders-and-ad-spend-per-source-and-campaign)
* [`GET /analytics/overview`](https://developers.tassyir.io/api-reference/admin/analytics/the-business-in-a-period)
* [`GET /analytics/utm`](https://developers.tassyir.io/api-reference/admin/analytics/the-order-funnel-per-utm-source)
* [`GET /analytics/variants`](https://developers.tassyir.io/api-reference/admin/analytics/sales-per-variant)
* [`GET /finance/products`](https://developers.tassyir.io/api-reference/admin/finance/profit-per-product)
* [`GET /finance/transactions`](https://developers.tassyir.io/api-reference/admin/finance/list-the-money-movements)

The shape of every problem, and how `@tassyir/app` reports it: [Errors](https://developers.tassyir.io/guides/errors.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.