# Retrieve a customer's exemption status

Source: https://developer.avalara.com/avatax-dm-combined-erp/document-management/dm-use-cases/test-retrieve-exemption-status/

# Retrieve a customer's exemption status

The following example shows how to retrieve a customer's exemption status. It uses the [GetCustomer](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Customers/GetCustomer/) API with an`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": "2021-08-30T16:17:09",  "modifiedDate": "2021-08-30T16:17:09.83488",  "country": "US",  "region": "WA",  "isBill": false,  "isShip": false,  "certificates": []}
```

[Previous](/avatax-dm-combined-erp/document-management/dm-use-cases/test-create-customer-record)

[Next](/avatax-dm-combined-erp/document-management/dm-use-cases/test-request-certificate)