Price-based tax rules

Change a class's tax rate when an item's unit price goes above a threshold.

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.

json
// 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

GET read_markets

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.

Example: 9a1f2c3d-4e5f-6789-abcd-ef0123456789

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_INVALID_REQUEST_BODY

    marketId must be a valid UUID.

  • 404 MARKET_NOT_FOUND

    Market does not exist in this store.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

List price-based tax rules

GET read_markets

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.

Example: 9a1f2c3d-4e5f-6789-abcd-ef0123456789

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_INVALID_REQUEST_BODY

    marketId must be a valid UUID.

  • 404 MARKET_NOT_FOUND

    Market does not exist in this store.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Get a price-based tax rule

GET read_markets

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.

Example: 9a1f2c3d-4e5f-6789-abcd-ef0123456789
ruleId required string

Price-based tax rule id.

Example: 4e2b8c1a-7f3d-4a5b-9c6d-1e0f2a3b4c5d

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_INVALID_REQUEST_BODY

    marketId must be a valid UUID.

  • 404 TAX_PRICE_RULE_NOT_FOUND

    Price-based tax rule does not exist in this market.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Create a price-based tax rule

POST write_markets

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.

Example: 9a1f2c3d-4e5f-6789-abcd-ef0123456789

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.

Example: 7c9e4f2b-1a3d-4e5f-8b6c-2d0e1f3a4b5c
threshold_price required string

Positive amount, at most 99999999999.9999, using the market currency's decimal precision.

Example: 110.00
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.

Example: 4.00
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.

Example: 8.00

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_INVALID_REQUEST_BODY

    marketId must be a valid UUID.

  • 404 MARKET_NOT_FOUND

    Market does not exist in this store.

  • 400 TAX_PRICE_RULE_SINGLE_COUNTRY

    Market does not have exactly one country.

  • 400 TAX_PRICE_RULE_SINGLE_CURRENCY

    Market does not have exactly one currency.

  • 400 TAX_PRICE_RULE_THRESHOLD_NOT_NUMBER

    threshold_price is not a decimal number.

  • 400 TAX_PRICE_RULE_THRESHOLD_INVALID

    Threshold is not positive.

  • 400 TAX_PRICE_RULE_THRESHOLD_TOO_LARGE

    Threshold is above threshold_max from the eligibility endpoint.

  • 400 TAX_RATE_INVALID

    below_rate or above_rate is not a decimal number; error.details.field names it.

  • 400 TAX_PRICE_RULE_THRESHOLD_SCALE

    Threshold exceeds the currency's decimal scale.

  • 400 TAX_PRICE_RULE_BELOW_RANGE

    At-or-below-threshold rate is outside 0 through 100.

  • 400 TAX_PRICE_RULE_ABOVE_RANGE

    Above-threshold rate is outside 0 through 100.

  • 400 TAX_PRICE_RULE_RATE_SCALE

    A price-based rate exceeds 4 decimal places; values are rejected rather than rounded.

  • 400 TAX_PRICE_RULE_RATES_EQUAL

    The at-or-below and above rates are equal.

  • 409 TAX_PRICE_RULE_DUPLICATE

    This tax class already has a price-based rule.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Update a price-based tax rule

PUT write_markets

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.

Example: 9a1f2c3d-4e5f-6789-abcd-ef0123456789
ruleId required string

Price-based tax rule id.

Example: 4e2b8c1a-7f3d-4a5b-9c6d-1e0f2a3b4c5d

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.

Example: 110.00
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.

Example: 4.00
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.

Example: 8.00

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_INVALID_REQUEST_BODY

    marketId must be a valid UUID.

  • 404 MARKET_NOT_FOUND

    Market does not exist in this store.

  • 400 TAX_PRICE_RULE_SINGLE_COUNTRY

    Market does not have exactly one country.

  • 400 TAX_PRICE_RULE_SINGLE_CURRENCY

    Market does not have exactly one currency.

  • 400 TAX_PRICE_RULE_THRESHOLD_NOT_NUMBER

    threshold_price is not a decimal number.

  • 400 TAX_PRICE_RULE_THRESHOLD_INVALID

    Threshold is not positive.

  • 400 TAX_PRICE_RULE_THRESHOLD_TOO_LARGE

    Threshold is above threshold_max from the eligibility endpoint.

  • 400 TAX_RATE_INVALID

    below_rate or above_rate is not a decimal number; error.details.field names it.

  • 400 TAX_PRICE_RULE_THRESHOLD_SCALE

    Threshold exceeds the currency's decimal scale.

  • 400 TAX_PRICE_RULE_BELOW_RANGE

    At-or-below-threshold rate is outside 0 through 100.

  • 400 TAX_PRICE_RULE_ABOVE_RANGE

    Above-threshold rate is outside 0 through 100.

  • 400 TAX_PRICE_RULE_RATE_SCALE

    A price-based rate exceeds 4 decimal places; values are rejected rather than rounded.

  • 400 TAX_PRICE_RULE_RATES_EQUAL

    The at-or-below and above rates are equal.

  • 409 TAX_PRICE_RULE_DUPLICATE

    This tax class already has a price-based rule.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Delete a price-based tax rule

DELETE write_markets

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.

Example: 9a1f2c3d-4e5f-6789-abcd-ef0123456789
ruleId required string

Price-based tax rule id.

Example: 4e2b8c1a-7f3d-4a5b-9c6d-1e0f2a3b4c5d

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 STORE_API_INVALID_REQUEST_BODY

    marketId must be a valid UUID.

  • 404 TAX_PRICE_RULE_NOT_FOUND

    Price-based tax rule does not exist in this market.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The request body has a property; this endpoint takes no body. Send no body or an empty object {}.

  • 429 RATE_LIMITED

    The 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

EVENT tax_price_rules/create App scope: read_markets Staff permission: markets:write

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

EVENT tax_price_rules/update App scope: read_markets Staff permission: markets:write

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

EVENT tax_price_rules/delete App scope: read_markets Staff permission: markets:write

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.