# Update customer record

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

# Update customer record

**Element type: Required**

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

As customer records are updated in your application, a function to update the corresponding customer record in Document Management is required. Use the [UpdateCustomer API](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Customers/UpdateCustomer/) to make any necessary edits to a customer. You must also include your`companyId` and the`customerCode` in the request URL.

```
curl  -X PUT  -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/{customerCode}'
```

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

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