[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fcatalog-vat-rates\u002Fsearch":3,"docs-tabs-entities\u002Fcatalog-vat-rates\u002Fsearch":6},{"content":4,"lastmod":5},"## Search VAT rates\n\n`POST \u002Fv1\u002Fcatalog-vat-rates\u002Fsearch`\n\nSearches VAT rates in the product catalog using conditions in the JSON request body. Conditions on multiple fields are specified as a nested structure in the request body.\n\n## Request body fields\n\n| Field | Type | Required | Description |\n|------|------|------|------|\n| `filter` | object | no | Filter by fields from `GET \u002Fv1\u002Fcatalog-vat-rates\u002Ffields`.\u003Cbr>[Filtering syntax](\u002Fdocs\u002Ffiltering). Example: `{\"active\": \"Y\"}`. |\n| `sort` | string \\| object \\| array | no | A string `\"-rate\"`, an object `{\"rate\": \"desc\"}`, or an array of strings `[\"-rate\", \"id\"]`. Defaults to ascending `id`. |\n| `order` | object | no | Object-form alias for `sort`. If both are provided, `sort` takes precedence. |\n| `select` | string[] | no | Fields to return: `[\"id\", \"name\", \"rate\"]`. The string `\"id,name,rate\"` is also accepted. |\n| `limit` | number | no | Number of records, from 1 to 5000. Defaults to `50`. |\n| `offset` | number | no | Skip N records. Defaults to `0`. |\n| `start` | number | no | Uses the same offset value as `offset`. If both are provided, `offset` takes precedence, including `0`; `offset: null` uses `start`. |\n| `withTotal` | boolean | no | Request the record count. For this reference entity, `false` does not suppress `meta.total`. |\n| `autoWindow` | boolean | no | Automatically split large result sets into date windows. Enabled by default. Use regular `limit` and `offset` for a small reference list. |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-vat-rates\u002Fsearch\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n  \"filter\": {\n    \"id\": 25\n  },\n  \"sort\": \"-rate\",\n  \"limit\": 2\n}'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-vat-rates\u002Fsearch\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n  \"filter\": {\n    \"id\": 25\n  },\n  \"sort\": \"-rate\",\n  \"limit\": 2\n}'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-vat-rates\u002Fsearch', {\n  method: 'POST',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({\n    \"filter\": {\n      \"id\": 25\n    },\n    \"sort\": \"-rate\",\n    \"limit\": 2\n  }),\n})\n\nconst { success, data, meta } = await res.json()\nconsole.log(data, meta.hasMore)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-vat-rates\u002Fsearch', {\n  method: 'POST',\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({\n    \"filter\": {\n      \"id\": 25\n    },\n    \"sort\": \"-rate\",\n    \"limit\": 2\n  }),\n})\n\nconst { success, data, meta } = await res.json()\nconsole.log(data, meta.hasMore)\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|------|------|\n| `success` | boolean | Always `true` on success. |\n| `data` | array | Array of VAT rates. |\n| `data[].id` | number | VAT rate identifier. List: [`GET \u002Fv1\u002Fcatalog-vat-rates`](\u002Fdocs\u002Fentities\u002Fcatalog-vat-rates\u002Flist). Pass it as the product's `vatId`. |\n| `data[].name` | string | VAT rate name. |\n| `data[].rate` | number \\| null | VAT percentage. For an existing \"No VAT\" rate, this field may be `null`. |\n| `data[].active` | string | Rate status: `Y` — active, `N` — inactive. |\n| `data[].sort` | number | Sort order. |\n| `data[].timestampX` | string | Modification date and time in ISO 8601 format. Set by Bitrix24. |\n| `meta.total` | number | Number of rates matching the filter. Returned even with `withTotal=false`. |\n| `meta.hasMore` | boolean | Whether more rates exist beyond `limit`. |\n| `meta.durationMs` | number | Request duration in milliseconds. |\n| `meta.warnings` | array | Present when there are warnings: `UNKNOWN_SELECT_FIELD` for an unknown name in `select`, `LIMIT_ZERO_IGNORED` when `limit` is `0` and the default is used. |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": [\n    {\n      \"active\": \"N\",\n      \"id\": 25,\n      \"name\": \"Docs VAT 2026-10-08\",\n      \"rate\": 7.5,\n      \"sort\": 900,\n      \"timestampX\": \"2026-10-08T18:49:59.000Z\"\n    }\n  ],\n  \"meta\": {\n    \"total\": 1,\n    \"hasMore\": false,\n    \"durationMs\": 80\n  }\n}\n```\n\n## Error response example\n\n400 — sorting by `nope`, which is not in the schema:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"UNKNOWN_SORT_FIELD\",\n    \"message\": \"Unknown sort field 'nope' for entity 'catalog-vat-rates'. Available: id, name, rate, active, sort, timestampX\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|------|------|\n| 400 | `UNKNOWN_FILTER_FIELD` | The filter references a field outside the schema. The message lists available fields. |\n| 400 | `UNKNOWN_SORT_FIELD` | The sort order references a field outside the schema. |\n| 400 | `INVALID_FILTER_OPERATOR` | An unknown operator or a logical key `$or`, `$and`, `$not`. Use `$in` for multiple values of one field. |\n| 400 | `INVALID_FILTER` | `filter` is not an object of conditions. |\n| 400 | `INVALID_SORT_TYPE` | `sort` is not a string, an object, or an array of strings. |\n| 400 | `INVALID_SELECT_TYPE` | `select` is not a string or an array of strings. |\n| 400 | `INVALID_LIMIT` | `limit` is not a number. |\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**An empty object `{}` is valid.** With no conditions, search returns the regular list of rates.\n\n**An unknown name in `select` does not stop the request.** Check `meta.warnings`: `UNKNOWN_SELECT_FIELD` identifies a field that may be absent from the results.\n\n## See also\n\n- [List VAT rates](\u002Fdocs\u002Fentities\u002Fcatalog-vat-rates\u002Flist)\n- [Get a VAT rate](\u002Fdocs\u002Fentities\u002Fcatalog-vat-rates\u002Fget)\n- [VAT rate fields](\u002Fdocs\u002Fentities\u002Fcatalog-vat-rates\u002Ffields)\n- [Filtering syntax](\u002Fdocs\u002Ffiltering)\n- [Entity API](\u002Fdocs\u002Fentity-api)\n- [Limits and optimization](\u002Fdocs\u002Foptimization)\n","2026-11-19",{},1795415205980]