[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fcatalog-measures\u002Ffields":3,"docs-tabs-entities\u002Fcatalog-measures\u002Ffields":6},{"content":4,"lastmod":5},"## Unit of measure fields\n\n`GET \u002Fv1\u002Fcatalog-measures\u002Ffields`\n\nReturns the field schema of a catalog unit of measure: use it to check types and allowed values before creating or updating a record.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-measures\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-measures\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-measures\u002Ffields', {\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nconst { success, data } = await res.json()\nconsole.log('Fields:', Object.keys(data.fields))\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-measures\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('Fields:', 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 | Map of unit of measure fields. The key is the field name; the value is its description |\n| `data.batch` | array | Write actions available in batch mode via `POST \u002Fv1\u002Fcatalog-measures\u002Fbatch`: `create`, `update`, `delete` |\n\nEach field in the `fields` map is described by the keys `type` and `readonly`, a `label` and a `description`. The `required: true` key is set on the fields required to create a record: `code` and `measureTitle`. The `nullable: true` key is set on fields whose value can come back as `null`. The `isDefault` field has an `enum` list of allowed values, each with a `label`. The `label` and `description` of the fields themselves come back in English.\n\n| Field | Type | RO | Description |\n|------|-----|:--:|---------|\n| `id` | number | yes | Unit of measure identifier. Pass it in the product's `measure` field |\n| `code` | number | | Unit code in the Russian National Classifier of Units of Measurement (OKEI), an integer. Unique within the Bitrix24 account. Required on create |\n| `measureTitle` | string \\| null | | Unit of measure name. Required on create, but some existing units return `null` — their designation is then provided in `symbolIntl` and `symbolLetterIntl` |\n| `symbol` | string \\| null | | Short designation. `null` if not set |\n| `symbolIntl` | string \\| null | | International designation. `null` if not set |\n| `symbolLetterIntl` | string \\| null | | International letter designation. `null` if not set |\n| `isDefault` | string | | Default unit on the Bitrix24 account: `Y` or `N`. Other values are rejected |\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\": \"Measure identifier.\"\n      },\n      \"code\": {\n        \"type\": \"number\",\n        \"readonly\": false,\n        \"required\": true,\n        \"label\": \"OKEI code\",\n        \"description\": \"Unique OKEI measure code.\"\n      },\n      \"measureTitle\": {\n        \"type\": \"string\",\n        \"readonly\": false,\n        \"required\": true,\n        \"nullable\": true,\n        \"label\": \"Measure name\",\n        \"description\": \"Measure name.\"\n      },\n      \"symbol\": {\n        \"type\": \"string\",\n        \"readonly\": false,\n        \"nullable\": true,\n        \"label\": \"Symbol\",\n        \"description\": \"Short symbol.\"\n      },\n      \"symbolIntl\": {\n        \"type\": \"string\",\n        \"readonly\": false,\n        \"nullable\": true,\n        \"label\": \"International symbol\",\n        \"description\": \"International symbol.\"\n      },\n      \"symbolLetterIntl\": {\n        \"type\": \"string\",\n        \"readonly\": false,\n        \"nullable\": true,\n        \"label\": \"International letter symbol\",\n        \"description\": \"International letter symbol.\"\n      },\n      \"isDefault\": {\n        \"type\": \"string\",\n        \"readonly\": false,\n        \"label\": \"Default measure\",\n        \"description\": \"Y if this is the portal default, N otherwise. Only one measure can be default.\",\n        \"enum\": [\n          { \"value\": \"Y\", \"label\": \"Default\" },\n          { \"value\": \"N\", \"label\": \"Not default\" }\n        ]\n      }\n    },\n    \"batch\": [\"create\", \"update\", \"delete\"]\n  }\n}\n```\n\n## Error response example\n\n401 — API key not 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 API key does not have the `catalog` scope |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header is not provided |\n| 401 | `TOKEN_MISSING` | The API key has no configured tokens |\n| 429 | `RATE_LIMITED` | Request limit exceeded: 300 per minute per Bitrix24 account. All API keys of the account share one limit. The current limit is returned in the `x-ratelimit-limit` header. Retry after the interval given in the `Retry-After` header |\n\nFor the full list of common API errors, see [Errors](\u002Fdocs\u002Ferrors).\n\n## See also\n\n- [Create a unit of measure](\u002Fdocs\u002Fentities\u002Fcatalog-measures\u002Fcreate)\n- [Update a unit of measure](\u002Fdocs\u002Fentities\u002Fcatalog-measures\u002Fupdate)\n- [List units of measure](\u002Fdocs\u002Fentities\u002Fcatalog-measures\u002Flist)\n- [Catalog units of measure](\u002Fdocs\u002Fentities\u002Fcatalog-measures)\n- [Catalog products](\u002Fdocs\u002Fentities\u002Fcatalog-products)\n- [Entity API](\u002Fdocs\u002Fentity-api)\n","2026-10-23",{},1795415191149]