For AI agents: markdown of this page — /docs-content-en/entities/catalog-measures/get.md documentation index — /llms.txt
Get a unit of measure
GET /v1/catalog-measures/:id
Returns a single catalog unit of measure by its ID.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
Parameterid (path) |
Typenumber | Requiredyes | DescriptionUnit of measure identifier, a non-negative integer. List: GET /v1/catalog-measures |
Examples
curl — personal key
curl "https://vibecode.bitrix24.com/v1/catalog-measures/9" \
-H "X-Api-Key: YOUR_API_KEY"
curl — OAuth application
curl "https://vibecode.bitrix24.com/v1/catalog-measures/9" \
-H "X-Api-Key: YOUR_APP_KEY" \
-H "Authorization: Bearer USER_SESSION_TOKEN"
JavaScript — personal key
const res = await fetch('https://vibecode.bitrix24.com/v1/catalog-measures/9', {
headers: {
'X-Api-Key': 'YOUR_API_KEY',
},
})
const { success, data } = await res.json()
console.log('Measure:', data.measureTitle ?? data.symbolIntl, '— code', data.code)
JavaScript — OAuth application
const res = await fetch('https://vibecode.bitrix24.com/v1/catalog-measures/9', {
headers: {
'X-Api-Key': 'YOUR_APP_KEY',
'Authorization': 'Bearer USER_SESSION_TOKEN',
},
})
const { success, data } = await res.json()
console.log('Measure:', data.measureTitle ?? data.symbolIntl, '— code', data.code)
Response fields
| Field | Type | Description |
|---|---|---|
Fieldsuccess |
Typeboolean | DescriptionAlways true on success |
Fielddata.id |
Typenumber | DescriptionUnit of measure identifier. Pass it in a product's measure field |
Fielddata.code |
Typenumber | DescriptionUnit code in the Russian National Classifier of Units of Measurement (OKEI), an integer. Unique within the Bitrix24 account |
Fielddata.measureTitle |
Typestring | null | DescriptionUnit of measure name. Can be null — the designation is then set in symbolIntl and symbolLetterIntl |
Fielddata.symbol |
Typestring | null | DescriptionShort designation |
Fielddata.symbolIntl |
Typestring | null | DescriptionInternational designation |
Fielddata.symbolLetterIntl |
Typestring | null | DescriptionInternational letter designation |
Fielddata.isDefault |
Typestring | DescriptionWhether this is the default unit in the Bitrix24 account: Y or N |
Response example
{
"success": true,
"data": {
"code": 796,
"id": 9,
"isDefault": "Y",
"measureTitle": null,
"symbol": null,
"symbolIntl": "pc. 1",
"symbolLetterIntl": "PCE. NMB"
}
}
Error response example
404 — no unit of measure with this id:
{
"success": false,
"error": {
"code": "ENTITY_NOT_FOUND",
"message": "measure does not exist."
}
}
Errors
| HTTP | Code | Description |
|---|---|---|
| HTTP404 | CodeENTITY_NOT_FOUND |
DescriptionNo unit of measure with this id exists in the Bitrix24 account, including a deleted one |
| HTTP400 | CodeINVALID_PARAMS |
Descriptionid is not a non-negative integer, for example abc. The request is rejected before execution, and no data in the Bitrix24 account changes |
| HTTP403 | CodeSCOPE_DENIED |
DescriptionThe API key lacks the catalog scope |
| HTTP401 | CodeTOKEN_MISSING |
DescriptionThe API key has no configured tokens |
| HTTP401 | CodeMISSING_API_KEY |
DescriptionThe X-Api-Key header is missing |
Full list of common API errors — Errors.