Create Tax Rule for a Rate
POST
/admin/tax-rates/{id}/rules
Tax Rates
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST '{{BASE_URL}}/admin/tax-rates//rules' \
--header 'Content-Type: application/json' \
--data-raw '{
"reference": "product_type",
"reference_id": "ptype_123"
}'
Response Response Example
200 - Example 1
{
"tax_rate": {
"tax_region": {
"id": "string",
"country_code": "us",
"metadata": {},
"parent_id": "string",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"created_by": "string",
"parent": {},
"province_code": "us-ca",
"tax_rates": [
{}
],
"children": [
{}
]
},
"id": "string",
"rate": 10,
"code": "string",
"name": "string",
"metadata": {},
"tax_region_id": "string",
"is_default": true,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"created_by": "string",
"rules": [
{
"reference": "product_type",
"reference_id": "ptyp_1"
}
],
"is_combinable": true
}
}
Request
Path Params
id
stringÂ
required
Query Params
fields
stringÂ
fields
+
it will be added to the default fields, using -
will remove it from the default fields. without prefix it will replace the entire default fields.Body Params application/json
Responses
Modified at 2025-06-17 04:10:32