commercetools icon

commercetools

Interact with the commercetools API. Operations are auto-generated from the official Postman collection.

Actions671

Tax-category → Update TaxCategory by ID

AI-generated

Summary

Update a Tax-category in commercetools by specifying its ID and current version, applying one or more update actions to modify its properties.

Inputs

  • Tax-category ID (required) — The unique identifier of the Tax-category to update.
  • Version (required) — The current version number of the Tax-category to ensure concurrency control.
  • Actions (UI) — One or more structured update actions chosen through the UI to modify the Tax-category's fields such as adding/removing tax rates, changing name, description, or key.
  • Actions (JSON) — Raw JSON array of update actions that overrides the UI actions when provided; allows specifying complex or multiple updates in JSON format.

Output shape

a single object representing the updated Tax-category resource as returned by the commercetools API

The output reflects the Tax-category after applying the given update actions; errors during update will throw unless 'Continue On Fail' is enabled.

Examples

Example 1: Change the name and add a tax rate to a Tax-category identified by its ID.

Provide the Tax-category ID, specify the correct current version number, and use Actions (UI) to add 'ChangeName' and 'AddTaxRate' actions accordingly.

Links

Discussion