# getCustomersSummary

Get customer count for a date range

`GET /v2/customers/summary`

**API:** Avalara MyLodgeTax API
**Tag:** Customer Information
**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/Customer%20Information/getCustomersSummary/

## Description

The customer summary endpoint returns aggregated information about customers synced to MyLodgeTax within the specified date range. Both startDate and endDate are required and must be in YYYY-MM-DD format.

## Parameters

| Name | Type | In | Required | Description |
|---|---|---|---|---|
| `startDate` | string | query | Yes | Start date in YYYY-MM-DD format. Optional parameter. Filters customers created on or after this date. |
| `endDate` | string | query | Yes | End date in YYYY-MM-DD format. Optional parameter. Filters customers created on or before this date. |

## Responses

| Status | Description | Schema |
|---|---|---|
| 200 | OK |  |
| 400 | Bad request. Possible reasons:
- Missing required path parameters (startDate or endDate)
- Invalid date format (must be YYYY-MM-DD) | `ErrorResponse` |
| 401 | Unauthorized | `ErrorResponse` |
| 500 | Internal Server Error | `ErrorResponse` |

## Example Request

```bash
curl -X GET "https://mylodgetaxapi-sbx.avalara.net/v2/customers/summary" \
  -H "Authorization: Basic <credentials>" \
  -H "Accept: application/json"
```