> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Sample Flows

## Article: Sample Flows

## Article Link: https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/contact-tax-details/sample-flows.md

## Article Content:

# Contact Tax Details: Sample Flows

This article presents possible use cases and corresponding sample flows that you can support. It provides a useful starting point as you plan your implementation.

## Mark a customer as tax-exempt

A site owner wants to exempt a specific customer from tax. You associate the customer's contact with a tax exempt group.

To mark a customer as tax-exempt:

1. Choose a group. To fully exempt the customer, call [List Default Tax Exempt Groups](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/tax-exempt-groups/list-default-tax-exempt-groups.md) and use the global full-exemption group's `id`. For a reduced rate, use a custom [tax exempt group](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/tax-exempt-groups/introduction.md) that has override rates defined.
1. Associate the customer with the group by calling [Upsert Contact Tax Details](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/contact-tax-details/upsert-contact-tax-details.md) with the customer's contact ID as `id` and the group's ID as `taxExemptGroupId`.
1. On the customer's next checkout, tax calculation applies the group's exemption and reports the reduced tax as the exempt amount in the tax breakdown.

## Exempt a customer after validating their VAT ID at checkout

The [Exemptify app](https://www.wix.com/app-market/exemptify) collects and validates a buyer's VAT ID at checkout, then associates the contact with an exempt group.

> **Prerequisite:** The [Exemptify app](https://www.wix.com/app-market/exemptify) is installed on the site.

To exempt a customer after validating their VAT ID:

1. At checkout, the buyer provides a VAT ID, and Exemptify validates it and determines the appropriate tax exempt group.
1. Associate the buyer's contact with the group by calling [Upsert Contact Tax Details](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/contact-tax-details/upsert-contact-tax-details.md) with the contact ID and the chosen `taxExemptGroupId`.
1. On this and later checkouts, the buyer's cart is calculated with the exemption applied, without the buyer re-entering their VAT ID.
1. If the buyer later becomes ineligible, call [Delete Contact Tax Details](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/contact-tax-details/delete-contact-tax-details.md) to remove the association.

## List all customers in a tax exempt group

A site owner wants a dashboard of the customers in a tax exempt group, enriched with each contact's details.

To list all customers in a tax exempt group:

1. Call [Query Contact Tax Details](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/contact-tax-details/query-contact-tax-details.md) with a filter on `taxExemptGroupId`, and include `CONTACT_DETAILS` in the `fields` array to enrich each result with the contact's name, email, and VAT ID.
1. Page through the results using the returned cursor paging metadata.
1. Call [Count Contact Tax Details](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/contact-tax-details/count-contact-tax-details.md) with the same filter to display the total number of customers in the group.