[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fcatalog-services\u002Ffields":3,"docs-tabs-entities\u002Fcatalog-services\u002Ffields":6},{"content":4,"lastmod":5},"## Service fields\n\n`GET \u002Fv1\u002Fcatalog-services\u002Ffields`\n\nReturns the catalog service field reference with labels, types, write flags and dictionaries of allowed values, plus the fields available for aggregation and the operations available in a batch request.\n\nThe reference contains 28 static service fields. Pass `?iblockId=\u003Ccatalog ID>` to also receive catalog properties of the form `propertyNNN` when Bitrix24 returns the dynamic field metadata successfully. Get the catalog ID from [`GET \u002Fv1\u002Fcatalogs`](\u002Fdocs\u002Fentities\u002Fcatalogs\u002Flist). Property values arrive in the [`GET \u002Fv1\u002Fcatalog-services\u002F:id`](.\u002Fget.md) response; their names and types are also available from [`GET \u002Fv1\u002Fcatalog-product-properties`](\u002Fdocs\u002Fentities\u002Fcatalog-product-properties\u002Flist).\n\nThe `dateCreate`, `timestampX`, `dateActiveFrom`, and `dateActiveTo` fields are not accepted in `filter`: the request returns `400 UNKNOWN_FILTER_FIELD` before calling Bitrix24. These dates remain available in `select` and responses.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|---------|\n| `iblockId` (query) | number | no | Product catalog ID from [`GET \u002Fv1\u002Fcatalogs`](\u002Fdocs\u002Fentities\u002Fcatalogs\u002Flist) — a catalog whose `productIblockId` is empty. With it, a successful response is extended with the catalog properties `propertyNNN`. Without it, and also when Bitrix24 refuses the dynamic field metadata (for example, no catalog has that ID), the response has 28 static fields and the `fields_partial` warning in `meta.warnings` |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-services\u002Ffields?iblockId=25\" \\\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-services\u002Ffields?iblockId=25\" \\\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-services\u002Ffields?iblockId=25', {\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).length)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-services\u002Ffields?iblockId=25', {\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nconst { success, data } = await res.json()\n```\n\n## Response fields\n\n`data.fields` is an object keyed by field name; each value contains the type, the write flags, a display label and — for fields with a fixed set of values — their dictionary. The set of keys is broken down in the table after the field list. `data.aggregatable` lists the fields for `groupBy` in [aggregation](.\u002Faggregate.md). `data.batch` lists the operations available in a [batch request](\u002Fdocs\u002Fbatch).\n\n| Field | Type | RO | Description |\n|------|-----|:--:|---------|\n| `id` | number | yes | Service ID |\n| `name` | string | no | Service name. Required on create |\n| `active` | boolean | no | Whether the service is active |\n| `available` | boolean | no | Whether the service is available for purchase. Without an explicit value, the service is created with `false` |\n| `iblockId` | number | no¹ | Product catalog ID. List: [`GET \u002Fv1\u002Fcatalogs`](\u002Fdocs\u002Fentities\u002Fcatalogs\u002Flist). Required on create, set on create only |\n| `type` | number | yes | Record type, always `7` for a service. Set by Bitrix24 |\n| `iblockSectionId` | number \\| null | no | Primary catalog section ID. `null` — the service is not linked to a section. List: [`GET \u002Fv1\u002Fcatalog-sections`](\u002Fdocs\u002Fentities\u002Fcatalog-sections\u002Flist) |\n| `iblockSection` | object | no | Array of IDs of all catalog sections the service belongs to. Returned in the single-service response, not supported in the list `select`. List: [`GET \u002Fv1\u002Fcatalog-sections`](\u002Fdocs\u002Fentities\u002Fcatalog-sections\u002Flist) |\n| `measure` | number | no | Unit of measure ID. List: [`GET \u002Fv1\u002Fcatalog-measures`](\u002Fdocs\u002Fentities\u002Fcatalog-measures\u002Flist) |\n| `vatIncluded` | boolean | no | VAT is included in the price |\n| `vatId` | number | no | VAT rate ID. List: [`GET \u002Fv1\u002Fcatalog-vat-rates`](\u002Fdocs\u002Fentities\u002Fcatalog-vat-rates\u002Flist) |\n| `bundle` | boolean | yes | Whether the service is a bundle. Computed by Bitrix24 |\n| `code` | string \\| null | no | Symbolic code. `null` if not set |\n| `xmlId` | string | no | External identifier. If not set, equals the service `id` as a string |\n| `sort` | number | no | Sort order. Defaults to `500` |\n| `dateActiveFrom` | datetime | no | Activity start date. Not accepted in filters (`400 UNKNOWN_FILTER_FIELD`) |\n| `dateActiveTo` | datetime | no | Activity end date. Not accepted in filters (`400 UNKNOWN_FILTER_FIELD`) |\n| `createdBy` | number | yes | ID of the user who created the service. List: [`GET \u002Fv1\u002Fusers`](\u002Fdocs\u002Fentities\u002Fusers\u002Flist) |\n| `modifiedBy` | number | yes | ID of the user who last modified the service. List: [`GET \u002Fv1\u002Fusers`](\u002Fdocs\u002Fentities\u002Fusers\u002Flist) |\n| `dateCreate` | datetime | yes | Creation date. Not accepted in filters (`400 UNKNOWN_FILTER_FIELD`) |\n| `timestampX` | datetime | yes | Last modification date. Not accepted in filters (`400 UNKNOWN_FILTER_FIELD`) |\n| `previewText` | string | no | Preview text |\n| `previewTextType` | string | no | Preview text format: `text` or `html` |\n| `detailText` | string | no | Detailed description |\n| `detailTextType` | string | no | Detailed description format: `text` or `html` |\n| `previewPicture` | object | no | Preview image |\n| `detailPicture` | object | no | Detail image |\n| `priceType` | string | no | Declared in the reference, but not returned in the list or single-service responses. Service prices are set via [`POST \u002Fv1\u002Fcatalog-prices`](\u002Fdocs\u002Fentities\u002Fcatalog-prices\u002Fcreate) |\n| `propertyNNN` | productproperty | no | Catalog property, where `NNN` is the property `id` from [`GET \u002Fv1\u002Fcatalog-product-properties`](\u002Fdocs\u002Fentities\u002Fcatalog-product-properties\u002Flist). Returned only with `iblockId`; multiple-value properties carry `multiple: true`. The type arrives from Bitrix24 as is and is not one of the five static-field types |\n\n¹ `iblockId` is writable on create only — in the reference it comes back with `readonly: false` and `createOnly: true`.\n\nField labels `label` and descriptions `description` arrive in English. Fields with a fixed set of values — `previewTextType` and `detailTextType` — also carry an `enum` dictionary: an array of `{ value, label }`. Send `value`; `label` is meant for display.\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | Always `true` on success |\n| `data.fields.\u003Cname>.type` | string | Field type. For the 28 static fields — `number`, `string`, `boolean`, `datetime`, `object`. For the dynamic catalog fields returned with `iblockId` — the Bitrix24 type as is, for example `productproperty` for a catalog property |\n| `data.fields.\u003Cname>.label` | string | Short field label |\n| `data.fields.\u003Cname>.description` | string | Extended field description: its purpose, where to get the list of allowed values, write-time behavior |\n| `data.fields.\u003Cname>.readonly` | boolean | `true` — the field is filled by the system and is not accepted on create or update |\n| `data.fields.\u003Cname>.createOnly` | boolean | `true` — the field is accepted on create only; on `PATCH` it is rejected with `READONLY_FIELD`. Present on `iblockId` |\n| `data.fields.\u003Cname>.writeOnly` | boolean | `true` — the field is accepted on write. Present on `iblockSection` |\n| `data.fields.\u003Cname>.notReturned` | boolean | `true` — the field name is not supported in `select`: list and search reject it with `SELECT_FIELD_NOT_RETURNED`. Present on `iblockSection` |\n| `data.fields.\u003Cname>.nullable` | boolean | `true` — the field can come back as `null`. The key is present only on such fields |\n| `data.fields.\u003Cname>.multiple` | boolean | `true` — the dynamic catalog field stores several values and arrives as an array. The key is present only on such fields |\n| `data.fields.\u003Cname>.items` | array | List items of a dynamic field of type `enumeration`, as Bitrix24 returned them. The key is present only on such fields |\n| `data.fields.\u003Cname>.values` | array | Dictionary of a dynamic field's values: an array of `{ value, label }`. The key is present when Bitrix24 returned such a dictionary |\n| `data.fields.\u003Cname>.default` | number \\| string \\| boolean \\| null | Default value of a dynamic field. The key is present when Bitrix24 returned it as a scalar or `null` |\n| `data.aggregatable` | string[] | Fields for `groupBy` in [aggregation](.\u002Faggregate.md): `iblockSectionId` |\n| `data.batch` | string[] | Service operations available in a [batch request](\u002Fdocs\u002Fbatch): `create`, `update`, `delete` |\n| `meta.warnings` | array | Warnings. An element with `code: fields_partial` arrives without `iblockId` or when Bitrix24 does not return the dynamic field metadata |\n\n## Response example\n\nResponse without `iblockId`: static fields only, with the `fields_partial` warning.\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"fields\": {\n      \"id\": {\n        \"type\": \"number\",\n        \"readonly\": true,\n        \"label\": \"Service identifier\",\n        \"description\": \"Unique identifier of the catalog service.\"\n      },\n      \"iblockId\": {\n        \"type\": \"number\",\n        \"readonly\": false,\n        \"createOnly\": true,\n        \"label\": \"Catalog ID\",\n        \"description\": \"Catalog the service belongs to. Available values: GET \u002Fv1\u002Fcatalogs. Set on create only — changing it via PATCH is rejected, a service cannot be moved between catalogs.\"\n      },\n      \"type\": {\n        \"type\": \"number\",\n        \"readonly\": true,\n        \"label\": \"Service type\",\n        \"description\": \"Bitrix24 service type (7); set by Bitrix24 and read only.\"\n      },\n      \"iblockSectionId\": {\n        \"type\": \"number\",\n        \"readonly\": false,\n        \"nullable\": true,\n        \"label\": \"Catalog section ID\",\n        \"description\": \"Primary catalog section of the service; null when it is not linked to a section. Available values: GET \u002Fv1\u002Fcatalog-sections.\"\n      },\n      \"iblockSection\": {\n        \"type\": \"object\",\n        \"readonly\": false,\n        \"writeOnly\": true,\n        \"notReturned\": true,\n        \"label\": \"Catalog sections\",\n        \"description\": \"Array of catalog section IDs the service belongs to. Accepted on create and update only — on read the primary section arrives as the scalar iblockSectionId. Available values: GET \u002Fv1\u002Fcatalog-sections.\"\n      },\n      \"previewTextType\": {\n        \"type\": \"string\",\n        \"readonly\": false,\n        \"label\": \"Preview text format\",\n        \"description\": \"Format of previewText.\",\n        \"enum\": [\n          { \"value\": \"text\", \"label\": \"Plain text\" },\n          { \"value\": \"html\", \"label\": \"HTML\" }\n        ]\n      }\n    },\n    \"aggregatable\": [\n      \"iblockSectionId\"\n    ],\n    \"batch\": [\n      \"create\",\n      \"update\",\n      \"delete\"\n    ]\n  },\n  \"meta\": {\n    \"warnings\": [\n      {\n        \"code\": \"fields_partial\",\n        \"message\": \"Dynamic field metadata from Bitrix24 was unavailable; the response carries static schema fields only and some labels may be missing. Retry to obtain the complete set.\"\n      }\n    ]\n  }\n}\n```\n\nThe example is trimmed to six fields — one each for the `readonly` and `createOnly` flags, the computed `type`, `nullable`, the `writeOnly` + `notReturned` pair and the `enum` dictionary. The static reference contains 28 fields; a successful response with `iblockId` contains the same static fields plus the catalog properties `propertyNNN`, and carries no `fields_partial` warning. For a catalog property, `type` arrives from Bitrix24 as is (`productproperty`), a multiple-value property carries `multiple: true`, and when Bitrix24 returned a value dictionary or a default, the keys `values`, `items` and `default` are present too.\n\n## Error response example\n\n401 — the key was 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 | `SCOPE_DENIED` | The API key does not have the `catalog` scope |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header was not passed |\n| 429 | `RATE_LIMITED` | Rate limit exceeded: 300 requests 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 delay in the `Retry-After` header |\n\nFor the full list of common API errors, see [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n**Catalog properties require `iblockId`.** Without a catalog ID, the response contains static fields and `fields_partial`. With `?iblockId=\u003Ccatalog ID>`, a successful Bitrix24 response adds `propertyNNN` properties to the reference and the warning is absent. If Bitrix24 does not return the dynamic fields, the static response with the warning is preserved.\n\n**Some fields are not returned in the list by default.** The symbolic code `code`, the external code `xmlId`, the sort order `sort`, the VAT rate `vatId`, the texts, the images and the `propertyNNN` properties are not returned in the [`GET \u002Fv1\u002Fcatalog-services`](.\u002Flist.md) response without an explicit `?select=`. List the names you need in `select` to get them in the list. The single-service response, [`GET \u002Fv1\u002Fcatalog-services\u002F:id`](.\u002Fget.md), always returns them.\n\n## See also\n\n- [List services](\u002Fdocs\u002Fentities\u002Fcatalog-services\u002Flist)\n- [Create a service](\u002Fdocs\u002Fentities\u002Fcatalog-services\u002Fcreate)\n- [Get a service](\u002Fdocs\u002Fentities\u002Fcatalog-services\u002Fget)\n- [Catalog product properties](\u002Fdocs\u002Fentities\u002Fcatalog-product-properties)\n- [Catalog products](\u002Fdocs\u002Fentities\u002Fcatalog-products)\n- [API reference](\u002Fdocs\u002Fapi-reference)\n","2026-10-23",{},1795415202720]