younifyd
Menu

Update taxRules

Update taxRules

PUT/V1/taxRules

Use it in a workflow

  1. Add a step and choose the Adobe Commerce connector.
  2. Pick the Update taxRules action (under Tax).
  3. Fill in the fields below, then reference the result from later steps as {{updateTaxrules.response.data}}.

Fields

baseUrlstring

The API host this action calls. Override to point at a different environment.

Default "/rest/default"

bodystring

The request body content (for POST, PUT, PATCH requests).

forwardAllHeadersboolean

If enabled, all headers from the incoming request will be forwarded. Additional headers below will override forwarded ones.

Default false

headerskeyvalue

Extra HTTP headers to include, beyond what this action already declares. These override forwarded or declared headers with the same name.

queryParamskeyvalue

Extra URL query parameters to include, beyond what this action already declares. These override declared query parameters with the same name.

Response

Returns 200 with an object. Read it in later steps with {{updateTaxrules.response.data.<field>}}.

idinteger

Id

codestring

Tax rule code

priorityinteger

Priority

positioninteger

Sort order.

customer_tax_class_idsarray<integer>

Customer tax class id

product_tax_class_idsarray<integer>

Product tax class id

tax_rate_idsarray<integer>

Tax rate ids

calculate_subtotalboolean

Calculate subtotal.

extension_attributesobject

ExtensionInterface class for @see \Magento\Tax\Api\Data\TaxRuleInterface

json
{
  "code": "string",
  "priority": 0,
  "position": 0,
  "customer_tax_class_ids": [
    0
  ],
  "product_tax_class_ids": [
    0
  ],
  "tax_rate_ids": [
    0
  ],
  "id": 0,
  "calculate_subtotal": false,
  "extension_attributes": {}
}

Need more? See the Adobe Commerce guide for connection setup and behaviour shared by every action.

Was this page helpful?
Update taxRules — Adobe Commerce — Documentation