> 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: Introduction

## Article: Introduction

## Article Link: https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/tax-groups/introduction.md

## Article Content:

# About the Tax Groups API

The Tax Groups API lets you create and manage tax groups to categorize products by distinct tax treatments. Use it together with the
[Tax Regions API](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/tax-regions/introduction.md) and the
[Tax Calculation API](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/tax-calculation/introduction.md) to customize how tax is applied for a business.

## Before you begin

It's important to note the following points before starting to code:

+ [Query Tax Groups](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/tax-groups/query-tax-groups.md) returns only the custom tax groups a site created. It doesn't return Wix's built-in default groups, such as `Products` and `Shipping and delivery`. To retrieve those, 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), or [List Default Tax Groups By App IDs](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/tax-groups/list-default-tax-groups-by-app-ids.md) for specific apps. Overlooking this is the most common mistake when looking up a group ID, for example when trying to find the shipping group.
+ Default (system) tax groups are provided by installed apps and can't be modified or deleted. Products with no `taxGroupId` automatically use the default group for their vertical.
+ A tax group carries no rate. Creating a group doesn't set a rate. The rate lives in a per-region [manual tax mapping](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/manual-tax-mappings/introduction.md). A product joins a group through the product's `taxGroupId`.

## Assigning a tax group to products
The link between a product and a tax group is the product's `taxGroupId` in the Wix Stores catalog. Set it with the Wix Stores Catalog V3 Products API. For example, [Bulk Update Products By Filter](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/products-v3/bulk-update-products-by-filter.md) sets `taxGroupId` on the matched products and returns a `jobId` (the update is asynchronous).

`taxGroupId` is available only in catalog V3. On a catalog V1 store, the V3 Products API returns `404` and V1 has no `taxGroupId` field. Check the catalog version first and, for V1 stores, route the merchant to the dashboard or to the V3 migration path.

## Categories that often need a custom tax group
Some product categories are taxed differently across jurisdictions and usually warrant their own tax group: alcohol, tobacco, digital goods, medications and supplements, clothing and apparel, cannabis and CBD, and prepared food.

## Use cases
+ [Create a new tax group for back-to-school items](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/tax-groups/sample-flows.md)

## Terminology
- **Tax group**: A group of products that share the same tax treatment. Assign a tax group to products by setting the product's `taxGroupId` in the Wix Stores catalog.
- **Default tax group**: A predefined tax group provided by an app, for example Wix Stores. It's the default tax group automatically assigned to products imported from that app's catalog and can't be modified or deleted.

## SDK Setup
  `@wix/ecom`

To use the API, install the `@wix/ecom` package.

#### Install the package

Follow the installation instructions for your development environment.

| Development environment | Installation method |
|--|--|
| Wix sites (editor or IDE) | Use the [package manager](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/packages/work-with-npm-packages-in-the-editor.md). |
| Wix sites (local IDE) | Run `wix install @wix/ecom` using the [Wix CLI](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/packages/work-with-npm-packages-with-the-wix-cli.md).|
| Blocks apps | Use the same installation method as Wix sites. |
| CLI and self-hosted apps | Run `npm install @wix/ecom` or `yarn add @wix/ecom`. |
| Headless sites and apps | Run `npm install @wix/ecom` or `yarn add @wix/ecom`. |

#### Import the package

To import the package in your code:

```js
import { taxGroups } from '@wix/ecom'
```

#### Import types

Types for this API are accessed through the `taxGroups` namespace you already imported above, as `taxGroups.<TypeName>`, using any type name shown in these docs.
  