[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Frequisite-presets\u002Fcountries":3,"docs-tabs-entities\u002Frequisite-presets\u002Fcountries":6},{"content":4,"lastmod":5},"## Requisite preset countries\n\n`GET \u002Fv1\u002Frequisite-presets\u002Fcountries`\n\nReturns the countries for which a requisite preset can be created in the Bitrix24 account. The country `id` is passed as the preset's `countryId` and is used to choose a preset for looking up requisites by number.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Frequisite-presets\u002Fcountries\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Frequisite-presets\u002Fcountries\" \\\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\u002Frequisite-presets\u002Fcountries', {\n  headers: { 'X-Api-Key': 'YOUR_API_KEY' },\n})\n\nconst { data } = await res.json()\nconst usa = data.find((country) => country.code === 'US')\nconsole.log(usa.id)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Frequisite-presets\u002Fcountries', {\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nconst { data } = await res.json()\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | `true` on success |\n| `data` | array | Countries |\n| `data[].id` | number | Country ID in Bitrix24. This is the value of the preset's `countryId` field, not the numeric ISO country code |\n| `data[].code` | string | Two-letter country code, for example `US`, `DE`, `FR` |\n| `data[].title` | string | Country name in the Bitrix24 account language |\n\n## Response example\n\nThree of the twelve countries are shown:\n\n```json\n{\n  \"success\": true,\n  \"data\": [\n    { \"id\": 46, \"code\": \"DE\", \"title\": \"Germany\" },\n    { \"id\": 122, \"code\": \"US\", \"title\": \"USA\" },\n    { \"id\": 132, \"code\": \"FR\", \"title\": \"France\" }\n  ]\n}\n```\n\n## Error response example\n\n401 — the key is not passed:\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 | `BITRIX_ACCESS_DENIED` | Bitrix24 denied CRM access to the key's user |\n| 422 | `BITRIX_ERROR` | Bitrix24 rejected the request. The error text is in `error.message` |\n| 502 | `BITRIX_RESPONSE_INVALID` | Bitrix24 returned the directory in an unexpected format |\n| 403 | `SCOPE_DENIED` | The key lacks the `crm` scope |\n| 401 | `TOKEN_MISSING` | The key has no connection to Bitrix24 |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header is not passed |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n**A read-only key is accepted.** This directory request changes nothing in the Bitrix24 account.\n\n**The requisite search type depends on the country.** The built-in `Company` and `Person` presets of an international Bitrix24 account have `countryId` `122`, and lookup by number runs for them without a search type. Search by tax ID and bank code is available for `countryId` `1`, search in the register of self-regulatory organizations (SRO) for `countryId` `14`. Details — [Look up requisites by number](\u002Fdocs\u002Fentities\u002Frequisites\u002Flookup).\n\n## See also\n\n- [List requisite presets](\u002Fdocs\u002Fentities\u002Frequisite-presets\u002Flist)\n- [Create requisite preset](\u002Fdocs\u002Fentities\u002Frequisite-presets\u002Fcreate)\n- [Look up requisites by number](\u002Fdocs\u002Fentities\u002Frequisites\u002Flookup)\n- [Requisite presets](\u002Fdocs\u002Fentities\u002Frequisite-presets)\n","2026-10-22",{},1794739410833]