Create a product tax rule
Creates a new product tax rule with geographical targeting, payment
method filtering, and flexible application scope. The tax can apply
to all products, selected products, or selected categories. Specify
either a percentage rate or a fixed amount (when rate is 0).
Body Parameters
Human-readable name for the tax rule.
Percentage tax rate (0–100). When 0, a fixed amount is required.
Fixed tax amount in smallest currency unit. Required when rate is 0.
Country code where the tax applies.
Whether the tax rule is active.
all_products — applies to every product; selected_products — requires products array; selected_categories — requires categories object.
all_productsselected_productsselected_categoriesState/province codes to restrict the tax to (up to 10).
Postal codes to restrict the tax to (up to 10, max 10 characters each).
Payment methods this tax applies to. Use ["all"] for all methods (default).
Product UUIDs (required when applies_to is selected_products).
Category selections (required when applies_to is selected_categories).
Physical product categories.
Digital product categories.
Service categories.
Billing plan categories.
Responses
Product tax rule created
Validation or business-logic error.
| Code | Description |
|---|---|
400 | Invalid request (e.g. selected_products scope with no products provided) |
1002 | One or more referenced products not found |
10239 | Fair use limit reached for tax rules |
Missing or invalid API key