[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fbasket-item-properties\u002Ffields":3,"docs-tabs-entities\u002Fbasket-item-properties\u002Ffields":6},{"content":4,"lastmod":5},"## Basket item property fields\n\n`GET \u002Fv1\u002Fbasket-item-properties\u002Ffields`\n\nDescribes basket item property fields for creation, updates, selection, and filtering, and lists grouping fields.\n\n## Parameters\n\n| Parameter | Type | Default | Description |\n|---|---|---|---|\n| `refresh` (query) | string | `false` | Pass `true` to retrieve metadata without the cache |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbasket-item-properties\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\u002Fbasket-item-properties\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\u002Fbasket-item-properties\u002Ffields', {\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nconst { success, data } = await res.json()\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbasket-item-properties\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()\n```\n\n## Response fields\n\n| Field | Type | Description |\n|---|---|---|\n| `success` | boolean | Always `true` on success |\n| `data` | object | Basket item property metadata |\n| `data.fields` | object | Field definitions. Each key is a field name and each value describes the field |\n| `data.fields.\u003Cfield>.type` | string | Value type: `number` or `string` |\n| `data.fields.\u003Cfield>.readonly` | boolean | `true` marks a read-only field |\n| `data.fields.\u003Cfield>.createOnly` | boolean | Present as `true` for `basketId`, which can only be set at creation |\n| `data.fields.\u003Cfield>.required` | boolean | Present as `true` for fields required at creation: `basketId`, `name`, `value`, `code` |\n| `data.fields.\u003Cfield>.nullable` | boolean | Present as `true` for `value`, `code`, `xmlId`, which accept `null` |\n| `data.fields.\u003Cfield>.label` | string | Field label |\n| `data.fields.\u003Cfield>.description` | string | Field description |\n| `data.aggregatable` | array | Fields for `groupBy` in [aggregation](\u002Fdocs\u002Fentities\u002Fbasket-item-properties\u002Faggregate): `basketId`, `code` |\n| `data.batch` | array | Batch write operations: `create`, `update`, `delete` |\n\n### Basket item property fields\n\nThe complete set of schema fields. RO marks a read-only field.\n\n| Field | Type | RO | Description |\n|---|---|---|---|\n| `id` | number | yes | Property ID. Source: [`GET \u002Fv1\u002Fbasket-item-properties`](\u002Fdocs\u002Fentities\u002Fbasket-item-properties\u002Flist) |\n| `basketId` | number | no | Basket item ID. Source: [`GET \u002Fv1\u002Fbasket-items`](\u002Fdocs\u002Fentities\u002Fbasket-items\u002Flist). Required at creation and cannot be updated |\n| `name` | string | no | Property name. Required at creation |\n| `value` | string \\| null | no | Property value. Required at creation |\n| `code` | string \\| null | no | Property symbolic code. Required at creation |\n| `sort` | number | no | Sort order of the property within the item |\n| `xmlId` | string \\| null | no | External ID |\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\": \"ID.\"\n      },\n      \"basketId\": {\n        \"type\": \"number\",\n        \"readonly\": false,\n        \"createOnly\": true,\n        \"required\": true,\n        \"label\": \"Basket item ID\",\n        \"description\": \"Basket item ID.\"\n      },\n      \"name\": {\n        \"type\": \"string\",\n        \"readonly\": false,\n        \"required\": true,\n        \"label\": \"Name\",\n        \"description\": \"Name.\"\n      },\n      \"value\": {\n        \"type\": \"string\",\n        \"readonly\": false,\n        \"required\": true,\n        \"nullable\": true,\n        \"label\": \"Value\",\n        \"description\": \"Value.\"\n      },\n      \"code\": {\n        \"type\": \"string\",\n        \"readonly\": false,\n        \"required\": true,\n        \"nullable\": true,\n        \"label\": \"Code\",\n        \"description\": \"Code.\"\n      },\n      \"sort\": {\n        \"type\": \"number\",\n        \"readonly\": false,\n        \"label\": \"Sort order\",\n        \"description\": \"Sort order.\"\n      },\n      \"xmlId\": {\n        \"type\": \"string\",\n        \"readonly\": false,\n        \"nullable\": true,\n        \"label\": \"External ID\",\n        \"description\": \"External ID.\"\n      }\n    },\n    \"aggregatable\": [\n      \"basketId\",\n      \"code\"\n    ],\n    \"batch\": [\n      \"create\",\n      \"update\",\n      \"delete\"\n    ]\n  }\n}\n```\n\n## Error response example\n\n401 — the API key is missing:\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 lacks the `sale` scope |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header is missing |\n| 401 | `TOKEN_MISSING` | No Bitrix24 access tokens are configured |\n| 429 | `RATE_LIMITED` | The request rate limit was exceeded. Retry after the interval in the `Retry-After` header |\n\nFor the full list of common API errors, see [Error codes](\u002Fdocs\u002Ferrors).\n\n## See also\n\n- [List basket item properties](\u002Fdocs\u002Fentities\u002Fbasket-item-properties\u002Flist)\n- [Get a basket item property](\u002Fdocs\u002Fentities\u002Fbasket-item-properties\u002Fget)\n- [Create a basket item property](\u002Fdocs\u002Fentities\u002Fbasket-item-properties\u002Fcreate)\n- [Update a basket item property](\u002Fdocs\u002Fentities\u002Fbasket-item-properties\u002Fupdate)\n- [Aggregate basket item properties](\u002Fdocs\u002Fentities\u002Fbasket-item-properties\u002Faggregate)\n- [Batch calls](\u002Fdocs\u002Fbatch)\n- [Entity API](\u002Fdocs\u002Fentity-api)\n","2026-10-12",{},1795415168866]