[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fcatalog-vat-rates\u002Fdelete":3,"docs-tabs-entities\u002Fcatalog-vat-rates\u002Fdelete":6},{"content":4,"lastmod":5},"## Delete a VAT rate\n\n`DELETE \u002Fv1\u002Fcatalog-vat-rates\u002F:id`\n\nDeletes a VAT rate from the product catalog. A deleted record cannot be restored through the API. Create a new one if needed.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|------|------|------|------|\n| `id` (path) | number | yes | VAT rate identifier, a non-negative integer. List: [`GET \u002Fv1\u002Fcatalog-vat-rates`](\u002Fdocs\u002Fentities\u002Fcatalog-vat-rates\u002Flist). |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X DELETE \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-vat-rates\u002F25\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X DELETE \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-vat-rates\u002F25\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\"\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-vat-rates\u002F25', {\n  method: 'DELETE',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nif (res.status === 204) {\n  console.log('VAT rate deleted')\n}\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-vat-rates\u002F25', {\n  method: 'DELETE',\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nif (res.status === 204) {\n  console.log('VAT rate deleted')\n}\n```\n\n## Response\n\nSuccessful deletion returns HTTP status `204 No Content` with an empty body. Check the status code to confirm success.\n\n## Response example\n\n```http\nHTTP\u002F1.1 204 No Content\n```\n\n## Error response example\n\n404 — the rate does not exist, for example on repeated deletion:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"ENTITY_NOT_FOUND\",\n    \"message\": \"vat does not exist.\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|------|------|\n| 404 | `ENTITY_NOT_FOUND` | No VAT rate exists with this `id`, including after deletion. |\n| 400 | `INVALID_PARAMS` | `id` is not a non-negative integer, for example `abc`. |\n| 422 | `BITRIX_ERROR` | Bitrix24 rejected the request. See `error.message` for the reason and `error.b24Code` for the original code. |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | Writes are blocked: the key is read-only. |\n| 403 | `SCOPE_DENIED` | The key does not have the `catalog` scope. |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header is missing. |\n| 401 | `TOKEN_MISSING` | The key has no configured Bitrix24 tokens. For an OAuth application key, check the user session. |\n\nFor all common API errors, see [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n**Before deleting a rate, check the products that use it.** Find them with [`GET \u002Fv1\u002Fcatalog-products?filter[vatId]=25`](\u002Fdocs\u002Fentities\u002Fcatalog-products\u002Flist) and assign another rate if needed.\n\nTo deactivate a rate while retaining its record, first check its current `rate`. If `rate` is numeric, send [`PATCH \u002Fv1\u002Fcatalog-vat-rates\u002F:id`](\u002Fdocs\u002Fentities\u002Fcatalog-vat-rates\u002Fupdate) with `{\"active\": \"N\"}`. For an existing \"No VAT\" rate with `rate: null`, this PATCH is rejected with `422 BITRIX_ERROR` and `Required fields: rate`. The record remains active. An `active`-only PATCH cannot deactivate it while `rate` remains `null`.\n\n## See also\n\n- [Create a VAT rate](\u002Fdocs\u002Fentities\u002Fcatalog-vat-rates\u002Fcreate)\n- [Get a VAT rate](\u002Fdocs\u002Fentities\u002Fcatalog-vat-rates\u002Fget)\n- [List VAT rates](\u002Fdocs\u002Fentities\u002Fcatalog-vat-rates\u002Flist)\n- [Update a VAT rate](\u002Fdocs\u002Fentities\u002Fcatalog-vat-rates\u002Fupdate)\n- [Catalog products](\u002Fdocs\u002Fentities\u002Fcatalog-products)\n- [Batch](\u002Fdocs\u002Fbatch)\n","2026-10-09",{},1795415205478]