Menu
Batch Taxes
Batch create, update, and delete taxes
POST
/taxes/batchUse it in a workflow
- Add a step and choose the WooCommerce connector.
- Pick the Batch Taxes action (under Taxes).
- Fill in the fields below, then reference the result from later steps as
{{batchTaxes.response.data}}.
Request
Request body
Enter the body as JSON in the step's Body field.
{
"create": [
{
"id": 0,
"country": "string",
"state": "string",
"postcode": "string",
"city": "string",
"rate": "string",
"name": "string",
"priority": 1,
"compound": false,
"shipping": true,
"order": 0,
"class": "standard"
}
],
"update": [
{
"id": 0,
"country": "string",
"state": "string",
"postcode": "string",
"city": "string",
"rate": "string",
"name": "string",
"priority": 1,
"compound": false,
"shipping": true,
"order": 0,
"class": "standard"
}
],
"delete": [
0
]
}
Response
Returns 200 with an object. Read it in later steps with {{batchTaxes.response.data.<field>}}.
{
"create": [
{
"id": 0,
"country": "string",
"state": "string",
"postcode": "string",
"city": "string",
"rate": "string",
"name": "string",
"priority": 1,
"compound": false,
"shipping": true,
"order": 0,
"class": "standard"
}
],
"update": [
{
"id": 0,
"country": "string",
"state": "string",
"postcode": "string",
"city": "string",
"rate": "string",
"name": "string",
"priority": 1,
"compound": false,
"shipping": true,
"order": 0,
"class": "standard"
}
],
"delete": [
{
"id": 0,
"country": "string",
"state": "string",
"postcode": "string",
"city": "string",
"rate": "string",
"name": "string",
"priority": 1,
"compound": false,
"shipping": true,
"order": 0,
"class": "standard"
}
]
}
Need more? See the WooCommerce guide for connection setup and behaviour shared by every action.
Was this page helpful?