This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Updates a tax group.
Each time the tax group is updated, revision
increments by 1.
The current revision
must be passed when updating the tax group.
This ensures you're working with the latest tax group and prevents
unintended overwrites.
This function requires elevated permissions and runs only on the backend and on dashboard pages.
function updateTaxGroup(
_id: string,
taxGroup: UpdateTaxGroup,
options: UpdateTaxGroupOptions,
): Promise<TaxGroup>;
Tax group ID.
Tax group info.
import { taxGroups } from "wix-billing.v2";
async function updateTaxGroup(id, taxGroup, options) {
try {
const result = await taxGroups.updateTaxGroup(id, taxGroup, options);
return result;
} catch (error) {
console.error(error);
// Handle the error
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.