# Revoke a certificate

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

# Revoke a certificate

**Element type: Suggested**

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

As exemption certificates expire or no longer apply to a customer, your integration must provide a function to remove a certificate from that customer.

**Advice:** A [DeleteCertificate](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Certificates/DeleteCertificate/) API is available to completely remove a certificate from Document Management. Use caution when running this API. It is possible that a certificate is linked to multiple customers, so deleting a certificate will remove that from all customers.

## UnlinkCertificatesFromCustomer

Use the [UnlinkCertificatesFromCustomer](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Customers/UnlinkCertificatesFromCustomer/) API to remove one or more certificates from a customer. You must include your`companyId` and the`customerCode` in the request URL.

```
curl  -X POST  -H 'Accept: application/json'  -H 'Authorization: Basic ${btoa(`:`)}'  -H 'Content-Type: application/json'  --data '{    "certificates": [      1,      3    ]  }'  'https://sandbox-rest.avatax.com/api/v2/companies/{companyId}/customers/{customerCode}/certificates/unlink'
```

## UnlinkCustomersFromCertificate

Use the [UnlinkCustomersFromCertificate](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Certificates/UnlinkCustomersFromCertificate/) API to remove one ore more customers from a certificate. You must include your`companyId` and the certificate`Id` in the request URL.

```
curl  -X POST  -H 'Accept: application/json'  -H 'Authorization: Basic ${btoa(`:`)}'  -H 'Content-Type: application/json'  --data '{    "customers": [      "123456789"    ]  }'  'https://sandbox-rest.avatax.com/api/v2/companies/{companyId}/certificates/{id}/customers/unlink'
```

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

[Next](/avatax-dm-combined-erp/document-management/document-management-workflow-considerations/typical-erp-workflow)