# Retrieve a customer's exemption status

Source: https://developer.avalara.com/products/ecm/integration-guides/document-management/hpx1557116280299/

Guide: Exemption Certificate Management (ECM)

# Retrieve a customer's exemption status

Learn how to use the GetCustomer API to check if a customer has exemption certificates on file.

The following example shows how to retrieve a customer's exemption status.

Use the [GetCustomer](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Customers/GetCustomer/) API with the `includes=certificates` filter to determine whether a certificate is on file for the customer that was just created.

In this example, the response shows that no certificates are on file for this customer.

## Request

```
curl
  -X GET
  -H 'Accept: application/json'
  -H 'Authorization: Basic ${btoa(`:`)}'
  -H 'Content-Type: application/json'
  'https://sandbox-rest.avatax.com/api/v2/companies/365522/customers/NewExemptCustomer?$include=certificates'
```

## Response

```
{
  "id": 125468,
  "companyId": 365522,
  "customerCode": "NewExemptCustomer",
  "name": "New Exempt Customer",
  "line1": "6810 Ne 153rd Pl",
  "city": "Kenmore",
  "postalCode": "98028-4904",
  "emailAddress": "alice.smith@example.org",
  "contactName": "Alice Smith",
  "createdDate": "2024-09-30T16:17:09",
  "modifiedDate": "2024-09-30T16:17:09.83488",
  "country": "US",
  "region": "WA",
  "isBill": false,
  "isShip": false,
  "certificates": []
}
```