[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fcatalog-measures\u002Flist":3,"docs-tabs-entities\u002Fcatalog-measures\u002Flist":6},{"content":4,"lastmod":5},"## List units of measure\n\n`GET \u002Fv1\u002Fcatalog-measures`\n\nReturns the list of commercial catalog units of measure.\n\n## Parameters\n\n| Parameter | Type | Default | Description |\n|----------|-----|-----------|---------|\n| `limit` (query) | number | `50` | Number of records, from 1 to 5000. A non-numeric value is replaced with `50` |\n| `offset` (query) | number | `0` | Skip N records. The value does not have to be a multiple of the page size: `?offset=4` starts the output at the fifth record |\n| `select` (query) | string | — | Comma-separated field selection: `?select=id,code`. Field names come from [`GET \u002Fv1\u002Fcatalog-measures\u002Ffields`](\u002Fdocs\u002Fentities\u002Fcatalog-measures\u002Ffields) |\n| `sort` (query) | string | `id` | Shorthand sorting: `?sort=-code`. A minus sign indicates descending order. Without the parameter, records are sorted by `id` ascending |\n| `order` (query) | object | — | Sorting in object form: `?order[code]=desc` |\n| `filter` (query) | object | — | Filtering by the fields of `GET \u002Fv1\u002Fcatalog-measures\u002Ffields`.\u003Cbr>[Filtering syntax](\u002Fdocs\u002Ffiltering). Example: `?filter[code]=796` |\n| `withTotal` (query) | string | — | Whether to return the record count: `true` or `false`. The parameter is accepted but does not affect the unit of measure output: `meta.total` is always returned. [Paging and counts](\u002Fdocs\u002Fentity-api#paging-and-record-counts) |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -g \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-measures?sort=-code&limit=3\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl -g \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-measures?sort=-code&limit=3\" \\\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?sort=-code&limit=3', {\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nconst { success, data, meta } = await res.json()\nconsole.log(`Found ${meta.total} units of measure`)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-measures?sort=-code&limit=3', {\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nconst { success, data, meta } = await res.json()\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | Always `true` on success |\n| `data` | array | Array of units of measure |\n| `data[].id` | number | Unit identifier. It is passed in the product's `measure` field |\n| `data[].code` | number | Unit code in the Russian National Classifier of Units of Measurement (OKEI) |\n| `data[].measureTitle` | string \\| null | Unit of measure name |\n| `data[].symbol` | string \\| null | Short symbol |\n| `data[].symbolIntl` | string \\| null | International symbol |\n| `data[].symbolLetterIntl` | string \\| null | International letter symbol |\n| `data[].isDefault` | string | Default unit: `Y` or `N` |\n| `meta.total` | number | Number of records matching the filter. Always returned, including with `withTotal=false` |\n| `meta.hasMore` | boolean | Whether more records exist beyond `limit` |\n| `meta.warnings` | array | Request parsing warnings. Returned when `select` contains a name outside the schema — code `UNKNOWN_SELECT_FIELD`, with the field name in `field`. With `limit=0` — code `LIMIT_ZERO_IGNORED`: the value is not applied and the default page is returned |\n\n## Response example\n\nRequest `?sort=-code&limit=3`:\n\n```json\n{\n  \"success\": true,\n  \"data\": [\n    {\n      \"code\": 796,\n      \"id\": 9,\n      \"isDefault\": \"Y\",\n      \"measureTitle\": null,\n      \"symbol\": null,\n      \"symbolIntl\": \"pc. 1\",\n      \"symbolLetterIntl\": \"PCE. NMB\"\n    },\n    {\n      \"code\": 166,\n      \"id\": 7,\n      \"isDefault\": \"N\",\n      \"measureTitle\": null,\n      \"symbol\": null,\n      \"symbolIntl\": \"kg\",\n      \"symbolLetterIntl\": \"KGM\"\n    },\n    {\n      \"code\": 163,\n      \"id\": 5,\n      \"isDefault\": \"N\",\n      \"measureTitle\": null,\n      \"symbol\": null,\n      \"symbolIntl\": \"g\",\n      \"symbolLetterIntl\": \"GRM\"\n    }\n  ],\n  \"meta\": {\n    \"total\": 6,\n    \"hasMore\": true\n  }\n}\n```\n\n## Error response example\n\n400 — a filter on a field that is not in the schema:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"UNKNOWN_FILTER_FIELD\",\n    \"message\": \"Unknown filter field 'nope' for entity 'catalog-measures'. Available: id, code, measureTitle, symbol, symbolIntl, symbolLetterIntl, isDefault\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `UNKNOWN_FILTER_FIELD` | A filter on a field that is not in the unit of measure schema. The message lists the available fields |\n| 400 | `UNKNOWN_SORT_FIELD` | Sorting by a field that is not in the schema. The message lists the available fields |\n| 400 | `INVALID_FILTER` | Two filter forms are mixed in one request — `filter[field]=…` and `filter={...}`. Pass all conditions in one form |\n| 400 | `INVALID_FILTER` | The `filter` value is neither bracket notation nor a JSON object, for example `?filter=notjson`. Such a filter cannot be applied, so the request is rejected |\n| 400 | `INVALID_FILTER_OPERATOR` | Unknown operator in a filter condition, for example `$foo`. The message lists the supported operators |\n| 400 | `INVALID_FILTER_OPERATOR` | A logical key `$or`, `$and` or `$not` in the filter. An OR condition on one field is expressed with the `$in` operator, across different fields — with parallel requests through [`POST \u002Fv1\u002Fbatch`](\u002Fdocs\u002Fbatch) |\n| 403 | `SCOPE_DENIED` | The API key does not have the `catalog` scope |\n| 401 | `TOKEN_MISSING` | The API key has no configured tokens |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header is missing |\n| 429 | `RATE_LIMITED` | Request limit exceeded: 300 per minute per portal. All API keys of the portal 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## Known specifics\n\n**An unknown name in `select` does not reject the request.** Unlike `filter` and `sort`, the response comes with code `200`: the records keep only the schema fields, and `meta.warnings` gets an `UNKNOWN_SELECT_FIELD` warning. Check `meta.warnings` so that a typo in a field name does not go unnoticed.\n\n## See also\n\n- [Search units of measure](\u002Fdocs\u002Fentities\u002Fcatalog-measures\u002Fsearch)\n- [Get a unit of measure](\u002Fdocs\u002Fentities\u002Fcatalog-measures\u002Fget)\n- [Create a unit of measure](\u002Fdocs\u002Fentities\u002Fcatalog-measures\u002Fcreate)\n- [Unit of measure fields](\u002Fdocs\u002Fentities\u002Fcatalog-measures\u002Ffields)\n- [Filtering syntax](\u002Fdocs\u002Ffiltering)\n- [Entity API](\u002Fdocs\u002Fentity-api)\n- [Limits and optimization](\u002Fdocs\u002Foptimization)\n- [Catalog products](\u002Fdocs\u002Fentities\u002Fcatalog-products)\n","2026-10-23",{},1795415191467]