deleteTaxGroup
Requires permission products:tax:delete.
Deletes a tax group and its links to tax rates. It is refused while the catalog or the organization's defaults rely on the group. Needs the tax delete permission.
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:
- GraphQL
- cURL
mutation DeleteTaxGroup($id: ID!) {
deleteTaxGroup(id: $id)
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation DeleteTaxGroup($id: ID!) {\n deleteTaxGroup(id: $id)\n}",
"variables": {
"id": "id"
}
}
EOF
Variables:
{
"id": "id"
}
Response:
{
"data": {
"deleteTaxGroup": true
}
}
deleteTaxGroup(
id: ID!
): Boolean!
Arguments
deleteTaxGroup.id ● ID! non-null scalar
The ID of the tax group.
Type
Boolean scalar
The Boolean scalar type represents true or false.