post
https://{store}/api/rest/tax/rule/
Creates a tax rule. Find the IDs with Tax / Class / Get All and Tax / Rate / Get All. Each rate + customer class + product class combination can be in one rule only.
| Field | Type | Required | Description |
|---|---|---|---|
| code | string | Yes | Rule name |
| customer_tax_class_ids | array | Yes | Customer tax class IDs (class_type CUSTOMER) |
| product_tax_class_ids | array | Yes | Product tax class IDs (class_type PRODUCT) |
| tax_rate_ids | array | Yes | Tax rate IDs |
| priority | integer | No | Rules with the same priority add up; a lower priority applies first. Default 0. |
| position | integer | No | Sort order. Default 0. |
| calculate_subtotal | integer | No | 1 to calculate off the subtotal only. Default 0. |
| skip_shipping_tax | integer | No | 1 to not tax shipping. Default 0. |
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
200OK (no example documented yet)
