# Create customer record

Source: https://developer.avalara.com/avatax-dm-combined-erp/document-management/design-considerations/create-customer-record/

# Create customer record

**Element type: Required**

**Endpoints used:** [CreateCustomers](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Customers/CreateCustomers/)

As customer records are created in your application, a function to create a corresponding customer record in Document Management is required.

The minimum required fields include:

-   Customer Code
-   Customer Name
-   Mailing Address

You must also include your`companyId` in the request URL.

**Advice:** Consider the following when creating exempt customers:

-   Include a ship-to zone if you know where your customer is going to be receiving goods.
-   Customers configured with a blanket exemption must have a valid certificate on file.
-   When creating customers with single-use certificates, include one or more purchase order numbers that are valid for use with this certificate.

```
curl  -X POST  -H 'Accept: application/json'  -H 'Authorization: Basic ${btoa(`:`)}'  -H 'Content-Type: application/json'  --data '{ "companyId": 0, "customerCode": "fea37e14-d9ad-4336-b32d-247d412ebf98", "alternateId": "987654321", "name": "Dr. Bob Example", "attnName": "Attn: Receiving", "line1": "645 Main Street", "city": "Irvine", "postalCode": "92614", "phoneNumber": "(949) 555-1212", "faxNumber": "949.555.1213", "emailAddress": "dr.bob.example@example.org", "contactName": "Alice Smith", "lastTransaction": "2008-10-08T00:00:00", "country": "US", "region": "CA", "exposureZones": [ 	 	{ "name": "Washington" 	 	} 	]  }'  'https://sandbox-rest.avatax.com/api/v2/companies/{companyId}/customers'
```

[Previous](/avatax-dm-combined-erp/document-management/design-considerations)

[Next](/avatax-dm-combined-erp/document-management/design-considerations/update-customer)