# Location statuses

Source: https://developer.avalara.com/products/mylodge/integration-guides/mylodgetax/spd7456957769217/

Guide: MyLodgeTax

# Location statuses

Understand the status codes for customer locations and how to retrieve them using Avalara APIs.

**Element type**: Required

**Endpoints/models**: [getCustomerLocationsv2](https://developer.avalara.com/api-reference/myLodgeAPI/v1/methods/Customer%20Information/getCustomerLocationsv2/), [getOwnerTaxDetail](https://developer.avalara.com/api-reference/myLodgeAPI/v1/methods/Tax%20Rate/getOwnerTaxDetail/), [getOwnerTaxSummary](https://developer.avalara.com/api-reference/myLodgeAPI/v1/methods/Tax%20Rate/getOwnerTaxSummary/)

Your integration must include a way to retrieve status information for all locations for a specific customer. This can be done by running the [getCustomerLocationsv2](https://developer.avalara.com/api-reference/myLodgeAPI/v1/methods/Customer%20Information/getCustomerLocationsv2/) endpoint. Include the `customerId` in the request URL. The response will show one of the following status codes:

-   `TaxSetup`
-   `LicenseSetup`
-   `Active`
-   `Cancelled`

Tip

The [getOwnerTaxDetail](https://developer.avalara.com/api-reference/myLodgeAPI/v1/methods/Tax%20Rate/getOwnerTaxDetail/) and [getOwnerTaxSummary](https://developer.avalara.com/api-reference/myLodgeAPI/v1/methods/Tax%20Rate/getOwnerTaxSummary/) endpoints can also be used to retrieve location data.

## Example request

```
curl -X 'GET' \
  'https://mylodgetaxapi-sbx.avalara.net/v2/customers/00001/locations' \
  -H 'accept: application/json'
```

## Example response

```
{
  "locations": [
    {
      "name": "Seattle location",
      "id": "SEA-01",
      "status": "TaxSetup"
    }
  ]
}
```