Price-based tax rules belong to a market and use read_markets / write_markets. They are available only for single-country, single-currency markets, with at most one rule per tax class. The pricing engine compares each unit price after merchandise discounts and before tax with the threshold, applies below_rate at or below it and above_rate above it, and then calculates duties and order totals.
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.
Compare the price before tax#
A price-based rule sets the rate for one tax class by an item's unit price after merchandise discounts and before tax. For tax-inclusive prices the price compared is the price without tax at below_rate. At or below the threshold below_rate applies; above it, above_rate. For example, a rule with threshold 1000.00, below_rate 5.00, and above_rate 12.00 taxes a discounted unit priced at 1000.00 at 5%, and a unit priced at 1000.01 at 12%. The rule's rate is shared between the class's rate lines in proportion to their ordinary rates, so CGST 9% and SGST 9% under a 5% rule are charged as CGST 2.5% and SGST 2.5%. Shipping, cash-on-delivery charges, and checkout fees continue using their own tax classes and rates.
Check eligibility first#
Price thresholds are meaningful only in one jurisdiction and one currency, so these rules are available only when the market has exactly one country and one currency. Call the eligibility endpoint before presenting the feature. Each class may have one rule, and its ordinary zone rates must still exist wherever the class should be taxed.
// POST /api/2025-01/markets/{marketId}/tax-price-rules
{
"tax_class_id": "7c9e4f2b-1a3d-4e5f-8b6c-2d0e1f3a4b5c",
"threshold_price": "1000.00",
"below_rate": "5.00",
"above_rate": "12.00"
}
Endpoints#
Check price-rule eligibility
Check whether the market can use price-based tax rules.
Returns eligible only when the market has exactly one country and one currency. A threshold is jurisdiction-specific and currency-specific, while the current rule is scoped to the market and tax class. When it is not eligible, reason says why in English. threshold_max is the largest threshold_price accepted.
Path parameters
| Name | Type | Description |
|---|---|---|
marketId
required
|
uuid |
Market 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.
-
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 price-based tax rules
List a market's price-based tax rules.
Each rule changes item tax for one tax class according to the final unit price after discounts. Rules do not apply to shipping, COD, or checkout fees. The class must still have an ordinary rate in each applicable zone. Where the matched zone's rates for the class add up to 0% (exports, zero-rated zones), the rule is skipped and no tax is charged; catalog price estimates skip it there too. While rules exist, a market update that adds a second country is refused with TAX_PRICE_RULE_BLOCKS_MULTI_COUNTRY, one that adds a second currency with TAX_PRICE_RULE_BLOCKS_MULTI_CURRENCY, and one that replaces the market's currency with TAX_PRICE_RULE_BLOCKS_CURRENCY_CHANGE: a threshold is an amount in one country's currency.
Path parameters
| Name | Type | Description |
|---|---|---|
marketId
required
|
uuid |
Market 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.
-
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 price-based tax rule
Fetch one price-based tax rule.
Returns the rule and its market, class, currency, threshold, and below/above rates.
Path parameters
| Name | Type | Description |
|---|---|---|
marketId
required
|
uuid |
Market id. |
ruleId
required
|
string |
Price-based tax rule 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. -
404TAX_PRICE_RULE_NOT_FOUNDPrice-based tax rule 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.
Create a price-based tax rule
Create a price-based tax rule.
Requires a single-country, single-currency market and allows one rule per tax class. The threshold is a decimal string in the market currency, compared with each item's unit price after discounts and before tax (for tax-inclusive prices, the price without tax at below_rate); at the threshold below_rate applies. The two rates must differ, but either may be higher. The class must have ordinary zone rates wherever the rule should apply: the rule's rate is shared between those rate lines in proportion to their ordinary rates, so a 4% state rate + 4% county rate under a 2% rule are charged as 1% + 1%. In a zone whose rates for the class total 0%, the rule is skipped. Fires tax_price_rules/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 |
|---|---|---|
tax_class_id
required
|
string |
Tax class this rule overrides. |
threshold_price
required
|
string |
Positive amount, at most 99999999999.9999, using the market currency's decimal precision. |
below_rate
required
|
string |
Percentage from 0 to 100 with at most 4 decimal places, for items whose unit price after discounts and before tax is at or below the threshold. |
above_rate
required
|
string |
Percentage from 0 to 100 with at most 4 decimal places, for items whose unit price after discounts and before tax is above the threshold. |
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.
-
400TAX_PRICE_RULE_SINGLE_COUNTRYMarket does not have exactly one country.
-
400TAX_PRICE_RULE_SINGLE_CURRENCYMarket does not have exactly one currency.
-
400TAX_PRICE_RULE_THRESHOLD_NOT_NUMBERthreshold_price is not a decimal number.
-
400TAX_PRICE_RULE_THRESHOLD_INVALIDThreshold is not positive.
-
400TAX_PRICE_RULE_THRESHOLD_TOO_LARGEThreshold is above threshold_max from the eligibility endpoint.
-
400TAX_RATE_INVALIDbelow_rate or above_rate is not a decimal number; error.details.field names it.
-
400TAX_PRICE_RULE_THRESHOLD_SCALEThreshold exceeds the currency's decimal scale.
-
400TAX_PRICE_RULE_BELOW_RANGEAt-or-below-threshold rate is outside 0 through 100.
-
400TAX_PRICE_RULE_ABOVE_RANGEAbove-threshold rate is outside 0 through 100.
-
400TAX_PRICE_RULE_RATE_SCALEA price-based rate exceeds 4 decimal places; values are rejected rather than rounded.
-
400TAX_PRICE_RULE_RATES_EQUALThe at-or-below and above rates are equal.
-
409TAX_PRICE_RULE_DUPLICATEThis tax class already has a price-based rule.
-
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.
Update a price-based tax rule
Update threshold and rates.
Updates the threshold and below/above rates. The two rates must differ, but either may be higher. Fires tax_price_rules/update.
Path parameters
| Name | Type | Description |
|---|---|---|
marketId
required
|
uuid |
Market id. |
ruleId
required
|
string |
Price-based tax rule id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
threshold_price
required
|
string |
Positive amount, at most 99999999999.9999, using the market currency's decimal precision. |
below_rate
required
|
string |
Percentage from 0 to 100 with at most 4 decimal places, for items whose unit price after discounts and before tax is at or below the threshold. |
above_rate
required
|
string |
Percentage from 0 to 100 with at most 4 decimal places, for items whose unit price after discounts and before tax is above the threshold. |
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.
-
400TAX_PRICE_RULE_SINGLE_COUNTRYMarket does not have exactly one country.
-
400TAX_PRICE_RULE_SINGLE_CURRENCYMarket does not have exactly one currency.
-
400TAX_PRICE_RULE_THRESHOLD_NOT_NUMBERthreshold_price is not a decimal number.
-
400TAX_PRICE_RULE_THRESHOLD_INVALIDThreshold is not positive.
-
400TAX_PRICE_RULE_THRESHOLD_TOO_LARGEThreshold is above threshold_max from the eligibility endpoint.
-
400TAX_RATE_INVALIDbelow_rate or above_rate is not a decimal number; error.details.field names it.
-
400TAX_PRICE_RULE_THRESHOLD_SCALEThreshold exceeds the currency's decimal scale.
-
400TAX_PRICE_RULE_BELOW_RANGEAt-or-below-threshold rate is outside 0 through 100.
-
400TAX_PRICE_RULE_ABOVE_RANGEAbove-threshold rate is outside 0 through 100.
-
400TAX_PRICE_RULE_RATE_SCALEA price-based rate exceeds 4 decimal places; values are rejected rather than rounded.
-
400TAX_PRICE_RULE_RATES_EQUALThe at-or-below and above rates are equal.
-
409TAX_PRICE_RULE_DUPLICATEThis tax class already has a price-based rule.
-
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 price-based tax rule
Delete a price-based tax rule.
Deletes the rule without changing ordinary tax rates. Fires tax_price_rules/delete.
Path parameters
| Name | Type | Description |
|---|---|---|
marketId
required
|
uuid |
Market id. |
ruleId
required
|
string |
Price-based tax rule 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. -
404TAX_PRICE_RULE_NOT_FOUNDPrice-based tax rule does not exist in this market.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe request body has a property; this endpoint takes no body. Send no body or an empty object
{}. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Webhook events#
Price-rule events are published for every create, update, and delete, and the saved change and its event become visible together. Payloads include the class, market currency, threshold, and both rates.
Price-based tax rule created
Subscribe to receive a price-based tax rule after it is created for a market's tax class.
Payload fields
| Field | Type | Description |
|---|---|---|
tax_price_rule.id |
string |
Always present
The stable price-based tax rule id. |
tax_price_rule.market_id |
string |
Selectable in the Payload builder
The single-country, single-currency market where the rule applies. |
tax_price_rule.tax_class_id |
string |
Selectable in the Payload builder
The tax class whose ordinary rate is replaced by this threshold rule. |
tax_price_rule.threshold_price |
string |
Selectable in the Payload builder
The final unit-price threshold as a decimal string in the market currency. |
tax_price_rule.below_rate |
string |
Selectable in the Payload builder
The percentage used when the unit price is at or below the threshold, as a decimal string. A price that includes tax is compared without the tax at this rate. |
tax_price_rule.above_rate |
string |
Selectable in the Payload builder
The percentage used when the unit price is above the threshold, as a decimal string. |
tax_price_rule.market_name |
string |
Selectable in the Payload builder
The current market name. |
tax_price_rule.tax_class_name |
string |
Selectable in the Payload builder
The current tax class name. |
tax_price_rule.currency_code |
string |
Selectable in the Payload builder
The ISO 4217 currency used by the threshold. |
tax_price_rule.created_at |
string |
Selectable in the Payload builder
When the rule was created. |
tax_price_rule.updated_at |
string |
Selectable in the Payload builder
When the rule last changed. |
Price-based tax rule updated
Subscribe to receive the current price-based tax rule after its threshold or below-and-above rates change.
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.
above_rate below_rate currency_code market_name tax_class_name threshold_price
Payload fields
| Field | Type | Description |
|---|---|---|
tax_price_rule.id |
string |
Always present
The stable price-based tax rule id. |
tax_price_rule.market_id |
string |
Selectable in the Payload builder
The single-country, single-currency market where the rule applies. |
tax_price_rule.tax_class_id |
string |
Selectable in the Payload builder
The tax class whose ordinary rate is replaced by this threshold rule. |
tax_price_rule.threshold_price |
string |
Selectable in the Payload builder
The final unit-price threshold as a decimal string in the market currency. |
tax_price_rule.below_rate |
string |
Selectable in the Payload builder
The percentage used when the unit price is at or below the threshold, as a decimal string. A price that includes tax is compared without the tax at this rate. |
tax_price_rule.above_rate |
string |
Selectable in the Payload builder
The percentage used when the unit price is above the threshold, as a decimal string. |
tax_price_rule.market_name |
string |
Selectable in the Payload builder
The current market name. |
tax_price_rule.tax_class_name |
string |
Selectable in the Payload builder
The current tax class name. |
tax_price_rule.currency_code |
string |
Selectable in the Payload builder
The ISO 4217 currency used by the threshold. |
tax_price_rule.created_at |
string |
Selectable in the Payload builder
When the rule was created. |
tax_price_rule.updated_at |
string |
Selectable in the Payload builder
When the rule last changed. |
changed_fields |
array |
Always present
The tax_price_rule fields this update changed, for example threshold_price. |
Price-based tax rule deleted
Subscribe to remove a deleted price-based tax rule from your integration. The payload keeps its rule, market, and tax class ids.
Payload fields
| Field | Type | Description |
|---|---|---|
tax_price_rule.id |
string |
Always present
The stable price-based tax rule id. |
tax_price_rule.market_id |
string |
Selectable in the Payload builder
The single-country, single-currency market where the rule applies. |
tax_price_rule.tax_class_id |
string |
Selectable in the Payload builder
The tax class whose ordinary rate is replaced by this threshold rule. |