[POST] .../v1/taxvat/delete
Deletes a VAT rate. Use this method to remove a custom VAT rate from future selection lists. The request requires id greater than or equal to 2; system VAT rate id=1 represents "Without VAT" and is rejected before persistence. The delete operation is a soft delete: the row is marked with vat_deleted = 1, an action-log entry is written, the VAT cache is invalidated and TaxVatDeleted webhook event is fired. The caller must have VAT delete permission. Missing body, invalid id, denied permission, missing or already deleted records, no affected rows, database errors and action-log errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | VAT rate ID. Must be 2 or greater because system rate id=1 cannot be deleted. |
Request Example
{
"id": 4
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Update | Update operation result. |
Response Example
{
"ok": true,
"result": {
"row_affected": 1
}
}