[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fbasket-item-properties\u002Fsearch":3,"docs-tabs-entities\u002Fbasket-item-properties\u002Fsearch":6},{"content":4,"lastmod":5},"## Search basket item properties\n\n`POST \u002Fv1\u002Fbasket-item-properties\u002Fsearch`\n\nSearches basket item properties using filter and sort conditions sent in the JSON request body. Unlike the GET \u002Fv1\u002Fbasket-item-properties list endpoint, it accepts search parameters in the body rather than the URL.\n\n## Request body fields\n\n| Field | Type | Default | Description |\n|----------|-----|-----------|---------|\n| `filter` | object | — | Filter by fields from [`GET \u002Fv1\u002Fbasket-item-properties\u002Ffields`](\u002Fdocs\u002Fentities\u002Fbasket-item-properties\u002Ffields).\u003Cbr>[Filtering syntax](\u002Fdocs\u002Ffiltering). Example: `{ \"basketId\": 1001 }` |\n| `select` | string \\| string[] | — | An array of field names or a comma-separated string. Only selected fields remain in `data` |\n| `sort` | string \\| object \\| string[] | — | Sort as a string, an object, or an array of field names. A leading minus sign means descending order |\n| `order` | object | — | Sort as an object. If `sort` is provided, it takes precedence |\n| `limit` | number | `50` | Number of records, from 1 to 5000. Defaults to `50`. Zero becomes `50`, a negative value becomes `1`, and a value above 5000 becomes `5000` |\n| `offset` | number | `0` | Number of records to skip. Defaults to `0` |\n| `start` | number | `0` | Uses the same offset value as `offset`. If both are provided, `offset` takes precedence, including `0`; `offset: null` uses `start`. |\n| `withTotal` | boolean | — | Accepted as `true` or `false`, but for basket item properties it changes neither the count nor the presence of `meta.total` |\n| `autoWindow` | boolean | — | Accepts `true` and `false` |\n\n**Pagination.** With `limit > 50`, Vibecode reads multiple pages of 50 records. For the next batch, increase `offset` by the number of records received. Continue while `meta.hasMore` is `true`.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbasket-item-properties\u002Fsearch\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"filter\":{\"basketId\":1001},\"select\":[\"id\",\"name\",\"value\"],\"sort\":\"-id\",\"limit\":2}'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbasket-item-properties\u002Fsearch\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"filter\":{\"basketId\":1001},\"select\":[\"id\",\"name\",\"value\"],\"sort\":\"-id\",\"limit\":2}'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbasket-item-properties\u002Fsearch', {\n  method: 'POST',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({\n    \"filter\": {\n      \"basketId\": 1001\n    },\n    \"select\": [\n      \"id\",\n      \"name\",\n      \"value\"\n    ],\n    \"sort\": \"-id\",\n    \"limit\": 2\n  }),\n})\n\nconst { success, data, meta } = 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\u002Fsearch', {\n  method: 'POST',\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({\n    \"filter\": {\n      \"basketId\": 1001\n    },\n    \"select\": [\n      \"id\",\n      \"name\",\n      \"value\"\n    ],\n    \"sort\": \"-id\",\n    \"limit\": 2\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 matching properties. All fields: [Basket item property fields](\u002Fdocs\u002Fentities\u002Fbasket-item-properties\u002Ffields). Empty when no records match |\n| `meta.total` | number | Total number of properties matching the filter |\n| `meta.hasMore` | boolean | Whether more records exist beyond the current batch |\n| `meta.durationMs` | number | Request duration in milliseconds |\n| `meta.warnings` | array | Parameter warnings. Present only when warnings exist |\n| `meta.pageErrorSample` | object | Details of an error while reading subsequent pages. Present when such an error occurs |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 1007,\n      \"name\": \"Product XML_ID\",\n      \"value\": \"6967\"\n    },\n    {\n      \"id\": 1005,\n      \"name\": \"Catalog XML_ID\",\n      \"value\": \"FUTURE-1C-CATALOG\"\n    }\n  ],\n  \"meta\": {\n    \"total\": 2,\n    \"hasMore\": false,\n    \"durationMs\": 64\n  }\n}\n```\n\n## Error response example\n\n400 — filter by an unknown field:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"UNKNOWN_FILTER_FIELD\",\n    \"message\": \"Unknown filter field 'color' for entity 'basket-item-properties'. Available: id, basketId, name, value, code, sort, xmlId\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|---|---|---|\n| 400 | `UNKNOWN_FILTER_FIELD` | The filter contains a field absent from the schema. The message lists available fields |\n| 400 | `INVALID_LIMIT` | `limit` has an unsupported type |\n| 400 | `INVALID_SELECT_TYPE` | `select` is neither a string nor an array of strings |\n| 400 | `INVALID_REQUEST` | The request body is not a JSON object |\n| 422 | `BITRIX_ERROR` | Bitrix24 rejected the request. The reason is in `error.message` |\n| 503 | `BITRIX_TIMEOUT` | Bitrix24 did not respond in time |\n| 502 | `BITRIX_UNAVAILABLE` | Bitrix24 could not be reached |\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- [Basket item property fields](\u002Fdocs\u002Fentities\u002Fbasket-item-properties\u002Ffields)\n- [Aggregate basket item properties](\u002Fdocs\u002Fentities\u002Fbasket-item-properties\u002Faggregate)\n- [Filtering syntax](\u002Fdocs\u002Ffiltering)\n- [Limits and optimization](\u002Fdocs\u002Foptimization)\n- [List basket items](\u002Fdocs\u002Fentities\u002Fbasket-items\u002Flist)\n","2026-11-19",{},1795415169523]