# getLocationRevenueByDateRange

Retrieves revenue information for a given location within a date range.

`GET /v1/location/{externalId}/revenue/{startDate}/{endDate}`

**API:** Avalara MyLodgeTax API
**Tag:** Revenue
**API Version:** v1.2
**Base URL:** https://mylodgetaxapi-sbx.avalara.net
**Content-Type:** `application/json`
**Authentication:** API Key (`Authorization` in header)

Source: https://developer.avalara.com/products/mylodge/api/methods/Revenue/getLocationRevenueByDateRange/

## Description

Returns revenue data for the specified location and date range, including gross revenue and marketplace-specific information.

## Parameters

| Name | Type | In | Required | Description |
|---|---|---|---|---|
| `externalId` | string | path | Yes | Unique location identifier assigned when posting a partnerLead. |
| `startDate` | string | path | Yes | Start date for revenue data in YYYY-MM-DD format. |
| `endDate` | string | path | Yes | End date for revenue data in YYYY-MM-DD format. |

## Responses

| Status | Description | Schema |
|---|---|---|
| 200 | OK |  |
| 400 | Bad request: Invalid date format. Please use YYYY-MM-DD format. | `ErrorResponse` |
| 401 | Unauthorized | `ErrorResponse` |
| 404 | Location Not Found | `ErrorResponse` |

## Example Request

```bash
curl -X GET "https://mylodgetaxapi-sbx.avalara.net/v1/location/{externalId}/revenue/{startDate}/{endDate}" \
  -H "Authorization: Basic <credentials>" \
  -H "Accept: application/json"
```