> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> 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`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - 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/tax-regions/sample-flows.md

## Article Content:

# Sample Flows

This article presents common use cases and sample flows you can support. They're a helpful jumping-off point as you plan your implementation.

## Set up a manual tax rate in a new region

When a business expands, it needs to start charging tax in a new region. Each call in this flow depends on the previous one, so run them in order:

1. Call [List Tax Calculators](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/tax-calculation/list-tax-calculators.md) to get the `appId` of the **Wix manual tax calculator**. Never hardcode this value.
2. Call [Create Tax Region](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/tax-regions/create-tax-region.md) with the region's `country` (and `subdivision`, where supported), passing the manual calculator `appId`. If a region already exists for that location, reuse it instead of creating a duplicate.
3. Call [List Default Tax Groups](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/tax-groups/list-default-tax-groups.md) on the Tax Groups API to get the ID of the system tax group you want to charge for (for example, `Products`). Default tax groups aren't returned by [Query Tax Groups](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/tax-groups/query-tax-groups.md).
4. Call [Create Manual Tax Mapping](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/manual-tax-mappings/create-manual-tax-mapping.md) with the `taxGroupId` from step 3, the `taxRegionId` from step 2, and the rate as a decimal string `taxRate` (for example, `"0.18"` for 18%).

## Stop charging tax in a region

Call [Delete Tax Region](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/tax-regions/delete-tax-region.md) for the target region. After deletion, zero tax is returned for addresses in that region. Wix also removes the region's manual tax mappings, but this cleanup isn't guaranteed for every site yet, so to be safe delete the region's manual tax mappings yourself first.