[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fcatalog-vat-rates\u002Ffields":3,"docs-tabs-entities\u002Fcatalog-vat-rates\u002Ffields":6},{"content":4,"lastmod":5},"## VAT rate fields\n\n`GET \u002Fv1\u002Fcatalog-vat-rates\u002Ffields`\n\nReturns metadata for VAT rate fields in the product catalog. Use it to check names, types, and allowed values before writing.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-vat-rates\u002Ffields\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-vat-rates\u002Ffields\" \\\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\u002Ffields', {\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nconst { success, data } = await res.json()\nconsole.log(Object.keys(data.fields))\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-vat-rates\u002Ffields', {\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nconst { success, data } = await res.json()\nconsole.log(Object.keys(data.fields))\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|------|------|\n| `success` | boolean | Always `true` on success. |\n| `data.fields` | object | Metadata map. Each key is a field name and its value describes that field. |\n| `data.batch` | array | Write actions supported through `POST \u002Fv1\u002Fcatalog-vat-rates\u002Fbatch`: `create`, `update`, `delete`. |\n| `meta.warnings` | array | If full metadata is unavailable, contains a `fields_partial` warning. Static fields remain available in `data.fields`. |\n\nEach entry in `fields` contains `type` and `readonly`. When available, it also includes `label`, `description`, `required`, `nullable`, and `enum`. `required: true` on `name` and `rate` means they are required on creation. `nullable: true` on `rate` describes responses, not permission to write `null`. The `active` enum lists `Y` and `N` with `label` captions.\n\nFields of the VAT rate object:\n\n| Field | Type | RO | Description |\n|------|------|------|------|\n| `id` | number | yes | VAT rate identifier. List: [`GET \u002Fv1\u002Fcatalog-vat-rates`](\u002Fdocs\u002Fentities\u002Fcatalog-vat-rates\u002Flist). Pass it as the product's `vatId`. |\n| `name` | string |  | VAT rate name. Required on creation. |\n| `rate` | number \\| null |  | VAT percentage. Required on creation. Writes do not accept `null`; existing rates may return `null`. |\n| `active` | string |  | Rate status: `Y` — active, `N` — inactive. |\n| `sort` | number |  | Sort order, an integer of at least `1`. |\n| `timestampX` | datetime | yes | Modification date and time in ISO 8601 format. Set by Bitrix24. |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"fields\": {\n      \"id\": {\n        \"type\": \"number\",\n        \"readonly\": true,\n        \"label\": \"ID\",\n        \"description\": \"VAT rate identifier.\"\n      },\n      \"name\": {\n        \"type\": \"string\",\n        \"readonly\": false,\n        \"required\": true,\n        \"label\": \"Name\",\n        \"description\": \"VAT rate name.\"\n      },\n      \"rate\": {\n        \"type\": \"number\",\n        \"readonly\": false,\n        \"required\": true,\n        \"nullable\": true,\n        \"label\": \"Rate\",\n        \"description\": \"VAT percentage. Existing No VAT rows may return null; Bitrix24 rejects null on create and update.\"\n      },\n      \"active\": {\n        \"type\": \"string\",\n        \"readonly\": false,\n        \"label\": \"Active\",\n        \"description\": \"Y if active, N otherwise.\",\n        \"enum\": [\n          {\n            \"value\": \"Y\",\n            \"label\": \"Active\"\n          },\n          {\n            \"value\": \"N\",\n            \"label\": \"Inactive\"\n          }\n        ]\n      },\n      \"sort\": {\n        \"type\": \"number\",\n        \"readonly\": false,\n        \"label\": \"Sort\",\n        \"description\": \"Sort order.\"\n      },\n      \"timestampX\": {\n        \"type\": \"datetime\",\n        \"readonly\": true,\n        \"label\": \"Modified at\",\n        \"description\": \"Bitrix24 sets this timestamp; submitted values are ignored.\"\n      },\n      \"vat\": {\n        \"type\": \"string\",\n        \"readonly\": false,\n        \"label\": \"vat\"\n      }\n    },\n    \"batch\": [\n      \"create\",\n      \"update\",\n      \"delete\"\n    ]\n  }\n}\n```\n\n## Error response example\n\n401 — no API key was provided:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"MISSING_API_KEY\",\n    \"message\": \"API key required. Pass via X-Api-Key header.\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|------|------|\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**Metadata may contain an additional `vat` entry.** In the verified response it has `type: \"string\"` and `label: \"vat\"`. It is not one of the six VAT rate object fields listed above. Use the VAT rate object fields for filtering and sorting.\n\n**The `readonly` flag determines whether a field can be written.** The `timestampX` description may say that submitted values are ignored. A Vibecode request with `id` or `timestampX` in the body is rejected with `400 READONLY_FIELD`.\n\n## See also\n\n- [Create a VAT rate](\u002Fdocs\u002Fentities\u002Fcatalog-vat-rates\u002Fcreate)\n- [Update a VAT rate](\u002Fdocs\u002Fentities\u002Fcatalog-vat-rates\u002Fupdate)\n- [List VAT rates](\u002Fdocs\u002Fentities\u002Fcatalog-vat-rates\u002Flist)\n- [Get a VAT rate](\u002Fdocs\u002Fentities\u002Fcatalog-vat-rates\u002Fget)\n- [Catalog products](\u002Fdocs\u002Fentities\u002Fcatalog-products)\n- [Entity API](\u002Fdocs\u002Fentity-api)\n","2026-10-09",{},1795415205641]