Skip to main content

appUpdateTaxGroup

Requires permission products:tax:update.

Change a tax group the same app created, including which of its rates the group holds. Needs write_tax_rates.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation AppUpdateTaxGroup($input: AppUpdateTaxGroupInput!) {
appUpdateTaxGroup(input: $input) {
id
code
name
createdAt
calculationMethod
description
taxRates {
id
createdAt
taxGroupId
taxRateId
updatedAt
}
}
}

Variables:

{
"input": {
"id": "id"
}
}

Response:

{
"data": {
"appUpdateTaxGroup": {
"id": "id",
"code": "string",
"name": "string",
"createdAt": "2025-01-15T00:00:00Z",
"calculationMethod": "string",
"description": "string",
"taxRates": [
{
"id": "id",
"createdAt": "2025-01-15T00:00:00Z",
"taxGroupId": "string",
"taxRateId": "string",
"updatedAt": "2025-01-15T00:00:00Z"
}
]
}
}
}
appUpdateTaxGroup(
input: AppUpdateTaxGroupInput!
): TaxGroup!

Arguments​

appUpdateTaxGroup.input ● AppUpdateTaxGroupInput! non-null input​

The tax group's ID and the fields to change.

Type​

TaxGroup object​

A set of tax rates applied together.