Tax classes belong to a market and use read_markets / write_markets. They describe what is being taxed; tax zones describe where, and rate lines connect the two. Fetch the limits endpoint before rendering lists or forms. Names are unique within the market, ignoring case. Slugs are generated when omitted and validated exactly when supplied. A market always retains one default class.
General tax settings#
Three settings on the market itself decide how all of this applies: tax_enabled (whether tax is collected at all; when false, orders in the market carry no tax whatever the classes, zones and rates say), tax_included (whether catalog prices are entered with tax included) and tax_display_mode (inclusive or exclusive: how storefront prices are shown, independently of how they are entered). Read them on the market and change them with Update a market (PATCH /api/2025-01/markets/{marketId}) on the Markets page; changing tax_included asks for confirmation first. New markets collect tax with tax-exclusive prices, shown without tax.
Model product tax treatment#
A tax class groups products that receive the same treatment inside one market. Create classes such as Standard, Reduced rate, or Exempt, then assign products or variants to them. Rates connect each class to each tax zone. Products without an assignment use the market's default class.
Create a class#
// POST /api/2025-01/markets/{marketId}/tax-classes
{
"name": "Reduced rate",
"slug": "reduced-rate",
"description": "Books and qualifying essentials",
"is_default": false
}
Fetch the limits endpoint before building a form or picker. Deleting a class that still owns rates, product assignments, variant assignments, or price-based rules uses the confirmation handshake before anything is removed. A class used by shipping, checkout fees, cash on delivery, or payment adjustments cannot be deleted until those use another class.
Endpoints#
Get tax class limits
Fetch tax-class validation limits.
Returns the live tax-class limits — the per-market cap and the name, slug, description, and search length caps (all counted in characters). Read this instead of hardcoding numbers.
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
List tax classes
List a market's tax classes.
Returns paginated tax classes, searchable by name. Every market starts with one default class; is_default marks it. Pagination and search bounds come from the limits endpoint.
Path parameters
| Name | Type | Description |
|---|---|---|
marketId
required
|
uuid |
Market id. |
Query parameters
| Name | Type | Description |
|---|---|---|
page
|
integer |
Page number. |
per_page
|
integer |
Page size, from 1 to the list maximum in the limits endpoint. Larger values are rejected with |
search
|
string |
Search by tax class name. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYmarketIdmust be a valid UUID. -
404MARKET_NOT_FOUNDMarket does not exist in this store.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe query string has a parameter this request does not accept. The message and
error.details.allowed_parameterslist the ones it does. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Create a tax class
Create a tax class in a market.
Creates a tax class. name is required. Omit slug to have one generated from the name — generation transliterates per the store's default locale and suffixes -2, -3, … on collision; a slug you provide is validated exactly as sent (lowercase letters, numbers, and hyphens) and rejected on duplicate rather than rewritten. Setting is_default makes this the market's default class and clears the previous default in the same write. Fires tax_classes/create.
Path parameters
| Name | Type | Description |
|---|---|---|
marketId
required
|
uuid |
Market id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
name
required
|
string |
Tax class name, unique within the market ignoring case and surrounding spaces. |
slug
|
string |
Slug — validated as-is when provided. When omitted, create generates one from the name and update keeps the saved slug. |
description
|
string |
Internal description. |
is_default
|
boolean |
Make this the market's default class. The previous default is cleared in the same write. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYmarketIdmust be a valid UUID. -
400TAX_CLASS_NAME_REQUIREDName is empty after normalization.
-
400TAX_CLASS_NAME_TOO_LONGName exceeds the limit.
-
400TAX_CLASS_DESCRIPTION_TOO_LONGDescription exceeds the limit.
-
400MARKET_SLUG_INVALIDProvided slug has characters outside lowercase letters, numbers, and hyphens.
-
400TAX_CLASS_SLUG_TOO_LONGProvided slug exceeds the limit.
-
404MARKET_NOT_FOUNDMarket does not exist in this store.
-
409TAX_CLASS_SLUG_DUPLICATEA tax class with this slug already exists in the market.
-
409TAX_CLASS_NAME_DUPLICATEAnother tax class in the market has this name, ignoring case and surrounding spaces (
params.name). -
409TAX_CLASS_LIMIT_REACHEDThe market's tax class cap has been reached.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Get a tax class
Fetch one tax class.
Returns the tax class.
Path parameters
| Name | Type | Description |
|---|---|---|
marketId
required
|
uuid |
Market id. |
taxClassId
required
|
string |
Tax class id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYmarketIdmust be a valid UUID. -
404MARKET_NOT_FOUNDMarket does not exist in this store.
-
404TAX_CLASS_NOT_FOUNDTax class does not exist in this market.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Update a tax class
Update a tax class.
Updates the tax class's name, slug, description, and default flag. name is required; slug, description and is_default keep their saved values when omitted, so {"name": "Standard rate"} renames the class and changes nothing else. A provided slug is validated as-is and rejected on duplicate; an empty slug is refused with TAX_CLASS_SLUG_REQUIRED. An empty description clears it. Promoting a class to default clears the previous default in the same write; a market always keeps exactly one default class, so is_default: false on the default class is refused with TAX_CLASS_DEFAULT_UNSET_LOCKED: promote another class instead. Fires tax_classes/update.
Path parameters
| Name | Type | Description |
|---|---|---|
marketId
required
|
uuid |
Market id. |
taxClassId
required
|
string |
Tax class id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
name
required
|
string |
Tax class name, unique within the market ignoring case and surrounding spaces. |
slug
|
string |
Slug — validated as-is when provided. When omitted, create generates one from the name and update keeps the saved slug. |
description
|
string |
Internal description. |
is_default
|
boolean |
Make this the market's default class. The previous default is cleared in the same write. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYmarketIdmust be a valid UUID. -
400TAX_CLASS_NAME_REQUIREDName is empty after normalization.
-
400TAX_CLASS_NAME_TOO_LONGName exceeds the limit.
-
400TAX_CLASS_DESCRIPTION_TOO_LONGDescription exceeds the limit.
-
400MARKET_SLUG_INVALIDProvided slug has characters outside lowercase letters, numbers, and hyphens.
-
400TAX_CLASS_SLUG_TOO_LONGProvided slug exceeds the limit.
-
404MARKET_NOT_FOUNDMarket does not exist in this store.
-
409TAX_CLASS_SLUG_DUPLICATEA tax class with this slug already exists in the market.
-
409TAX_CLASS_NAME_DUPLICATEAnother tax class in the market has this name, ignoring case and surrounding spaces (
params.name). -
409TAX_CLASS_LIMIT_REACHEDThe market's tax class cap has been reached.
-
400TAX_CLASS_SLUG_REQUIREDAn empty slug was sent; omit it to keep the saved slug.
-
400TAX_CLASS_DEFAULT_UNSET_LOCKEDis_default false was sent for the default class; promote another class instead.
-
404TAX_CLASS_NOT_FOUNDTax class does not exist in this market.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Bulk delete tax classes
Delete a selected set of tax classes atomically.
Send 1 to list_max_limit unique tax-class UUIDs from the same market. The service validates the full selection before deleting anything. A default class, a class assigned to shipping, checkout fees, cash on delivery or payment adjustments, a missing class, a duplicate or malformed id, or an oversized selection rejects the whole request. If any class has dependent rates, product or variant assignments, or price rules, the first request returns all warnings and a confirmation token bound to the exact sorted selection. Repeat the identical selection with confirmed and confirmation_token. All deletions, per-class audit records, and tax_classes/delete webhook events commit in one transaction or all roll back.
Path parameters
| Name | Type | Description |
|---|---|---|
marketId
required
|
uuid |
Market id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
tax_class_ids
required
|
array<uuid> |
Unique tax-class UUIDs from this market; maximum list_max_limit. |
confirmed
|
boolean |
Set to true only when repeating the identical selection after confirmation is requested. |
confirmation_token
|
string |
The single-use token returned for this exact selection. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYmarketIdmust be a valid UUID. -
400INVALID_INPUTThe bulk selection is empty, malformed, duplicated, or exceeds list_max_limit.
-
400MARKET_CONFIRMATION_INVALIDThe confirmation token is invalid, expired, already used, or belongs to another selection.
-
400TAX_CLASS_DEFAULT_DELETE_LOCKEDThe default class can't be deleted — promote another class first.
-
404MARKET_NOT_FOUNDMarket does not exist in this store.
-
404TAX_CLASS_NOT_FOUNDTax class does not exist in this market.
-
409TAX_CLASS_SHIPPING_ASSIGNEDShipping settings or methods use this class. Assign them a different class before deleting it.
-
409TAX_CLASS_CHARGES_ASSIGNEDCheckout fees, cash-on-delivery settings or payment adjustments use this class. Choose a different class there before deleting it.
-
409CONFIRMATION_REQUIREDThe class has dependents; retry with confirmed and the returned confirmation_token.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Delete a tax class
Delete one tax class. Use the bulk-delete endpoint for a selection. Each successful deletion records the class and market names in its audit entry.
Deletes the tax class together with its rates, product and variant assignments, and price rules. Only tax_classes/delete is published: the rates and price rules deleted with it send no tax_rates/delete or tax_price_rules/delete, so re-sync them from the class id. The default class can't be deleted — promote another class first. Shipping settings and shipping methods must be reassigned before deleting their tax class (TAX_CLASS_SHIPPING_ASSIGNED), and so must checkout fees, cash-on-delivery settings and payment adjustments (TAX_CLASS_CHARGES_ASSIGNED). When the class still has dependents, the first call returns a confirmation response listing what will be removed; retry with confirmed and the returned confirmation_token to proceed. Products left without a class are taxed by the market's default class. Fires tax_classes/delete.
Path parameters
| Name | Type | Description |
|---|---|---|
marketId
required
|
uuid |
Market id. |
taxClassId
required
|
string |
Tax class id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
confirmed
|
boolean |
On a confirmation retry, set this to true and send the returned confirmation_token. Omit it on the first request. |
confirmation_token
|
string |
Token from the CONFIRMATION_REQUIRED response. Omit it on the first request; when using it, repeat the same request (the same id, or for a bulk delete the same id selection). |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYmarketIdmust be a valid UUID. -
400INVALID_INPUTThe bulk selection is empty, malformed, duplicated, or exceeds list_max_limit.
-
400MARKET_CONFIRMATION_INVALIDThe confirmation token is invalid, expired, already used, or belongs to another selection.
-
400TAX_CLASS_DEFAULT_DELETE_LOCKEDThe default class can't be deleted — promote another class first.
-
404MARKET_NOT_FOUNDMarket does not exist in this store.
-
404TAX_CLASS_NOT_FOUNDTax class does not exist in this market.
-
409TAX_CLASS_SHIPPING_ASSIGNEDShipping settings or methods use this class. Assign them a different class before deleting it.
-
409TAX_CLASS_CHARGES_ASSIGNEDCheckout fees, cash-on-delivery settings or payment adjustments use this class. Choose a different class there before deleting it.
-
409CONFIRMATION_REQUIREDThe class has dependents; retry with confirmed and the returned confirmation_token.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Webhook events#
Tax-class events are published for every create, update, and confirmed delete. Making a class the default also publishes an update for the class that stops being the default. The saved change and its event become visible together. Delete payloads preserve the class identity after its dependent data has been removed.
Tax class created
Subscribe to receive the saved tax class after it is created in a market.
Payload fields
| Field | Type | Description |
|---|---|---|
tax_class.id |
string |
Always present
The stable tax class id. |
tax_class.market_id |
string |
Selectable in the Payload builder
The market where the tax class is available. |
tax_class.name |
string |
Selectable in the Payload builder
The merchant-facing tax class name. |
tax_class.slug |
string |
Selectable in the Payload builder
The tax class's URL-safe identifier within the market. |
tax_class.description |
string |
Selectable in the Payload builder
The optional explanation of which products use this class. |
tax_class.is_default |
boolean |
Selectable in the Payload builder
Whether products without an explicit assignment use this class. |
tax_class.created_at |
string |
Selectable in the Payload builder
When the tax class was created. |
tax_class.updated_at |
string |
Selectable in the Payload builder
When the tax class last changed. |
Tax class updated
Subscribe to receive the current tax class after its name, slug, description, or default status changes.
Possible changed_fields values
The changed_fields array names exactly which of these changed in this event — use it to skip processing updates your integration doesn't care about.
description is_default name slug
Payload fields
| Field | Type | Description |
|---|---|---|
tax_class.id |
string |
Always present
The stable tax class id. |
tax_class.market_id |
string |
Selectable in the Payload builder
The market where the tax class is available. |
tax_class.name |
string |
Selectable in the Payload builder
The merchant-facing tax class name. |
tax_class.slug |
string |
Selectable in the Payload builder
The tax class's URL-safe identifier within the market. |
tax_class.description |
string |
Selectable in the Payload builder
The optional explanation of which products use this class. |
tax_class.is_default |
boolean |
Selectable in the Payload builder
Whether products without an explicit assignment use this class. |
tax_class.created_at |
string |
Selectable in the Payload builder
When the tax class was created. |
tax_class.updated_at |
string |
Selectable in the Payload builder
When the tax class last changed. |
changed_fields |
array |
Always present
The tax_class fields this update changed, for example name or is_default. |
Tax class deleted
Subscribe to remove a deleted tax class from your integration. The payload keeps its id, market id, last known name, and slug.
Payload fields
| Field | Type | Description |
|---|---|---|
tax_class.id |
string |
Always present
The stable tax class id. |
tax_class.market_id |
string |
Selectable in the Payload builder
The market where the tax class is available. |
tax_class.name |
string |
Selectable in the Payload builder
The merchant-facing tax class name. |
tax_class.slug |
string |
Selectable in the Payload builder
The tax class's URL-safe identifier within the market. |