[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Forder-properties\u002Fsearch":3,"docs-tabs-entities\u002Forder-properties\u002Fsearch":6},{"content":4,"lastmod":5},"## Search order properties\n\n`POST \u002Fv1\u002Forder-properties\u002Fsearch`\n\nSearches order property definitions using filter and sort conditions sent in the JSON request body.\n\n## Request body fields\n\n| Field | Type | Default | Description |\n|----------|-----|-----------|---------|\n| `filter` | object | — | Filter by fields from [`GET \u002Fv1\u002Forder-properties\u002Ffields`](\u002Fdocs\u002Fentities\u002Forder-properties\u002Ffields).\u003Cbr>[Filtering syntax](\u002Fdocs\u002Ffiltering). Example: `{ \"id\": 125, \"type\": \"STRING\" }` |\n| `select` | string[] \\| string | — | An array of fields, for example `[\"id\", \"name\", \"type\"]`, or a comma-separated string. Only selected fields remain in `data`. Unknown names are reported in `meta.warnings` with the code `UNKNOWN_SELECT_FIELD` |\n| `sort` | string \\| object \\| string[] | — | Sort as `\"id\"`, `\"-sort,id\"`, `{ \"id\": \"desc\" }`, or `[\"id\", \"-sort\"]` |\n| `order` | object | — | Sort using an object: `{ \"id\": \"desc\" }`. If `sort` is also set, it takes precedence |\n| `limit` | number | `50` | Number of records, from 1 to 5000. Values above 5000 are capped at 5000 |\n| `offset` | number | `0` | Number of records to skip |\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 | — | Accepts `true` or `false`, but does not change counting or the presence of `meta.total` for order properties |\n\n**Pagination.** When `limit > 50`, Vibecode automatically reads multiple pages of 50 records and combines them into one response. To fetch the next set, 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\u002Forder-properties\u002Fsearch\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"filter\":{\"id\":125,\"type\":\"STRING\"},\"select\":[\"id\",\"name\",\"personTypeId\",\"propsGroupId\",\"type\",\"active\"],\"limit\":10,\"offset\":0,\"withTotal\":true}'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Forder-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\":{\"id\":125,\"type\":\"STRING\"},\"select\":[\"id\",\"name\",\"personTypeId\",\"propsGroupId\",\"type\",\"active\"],\"limit\":10,\"offset\":0,\"withTotal\":true}'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Forder-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: { id: 125, type: 'STRING' },\n    select: ['id', 'name', 'personTypeId', 'propsGroupId', 'type', 'active'],\n    limit: 10,\n    offset: 0,\n    withTotal: true,\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\u002Forder-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: { id: 125, type: 'STRING' },\n    select: ['id', 'name', 'personTypeId', 'propsGroupId', 'type', 'active'],\n    limit: 10,\n    offset: 0,\n    withTotal: true,\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 order property definitions. All fields: [Order property fields](\u002Fdocs\u002Fentities\u002Forder-properties\u002Ffields) |\n| `meta.total` | number | Total properties matching the filter. Omitted on an empty page when `offset > 0` or `start > 0` |\n| `meta.hasMore` | boolean | Whether more records exist beyond the current page |\n| `meta.durationMs` | number | Request duration in milliseconds |\n| `meta.warnings` | array | Parameter warnings with `code`, `message`, and `field`. Included only when warnings exist |\n| `meta.pageErrorSample` | object | Code and message of an error that interrupted automatic pagination. `data` then contains the records read before the interruption |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 125,\n      \"name\": \"Comment for the courier\",\n      \"personTypeId\": 5,\n      \"propsGroupId\": 9,\n      \"type\": \"STRING\",\n      \"active\": false\n    }\n  ],\n  \"meta\": {\n    \"total\": 1,\n    \"hasMore\": false,\n    \"durationMs\": 64\n  }\n}\n```\n\n## Error response example\n\n400 — filtering by an unknown field:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"UNKNOWN_FILTER_FIELD\",\n    \"message\": \"Unknown filter field 'unknownField' for entity 'order-properties'. Available: id, personTypeId, type, name, propsGroupId, code, sort, defaultValue, description, settings, xmlId, inputFieldLocation, active, required, multiple, userProps, util, isAddress, isAddressFrom, isAddressTo, isEmail, isFiltered, isLocation, isLocation4tax, isPayer, isPhone, isProfileName, isZip\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `UNKNOWN_FILTER_FIELD` | A filter field is not in the schema. Fields: [`GET \u002Fv1\u002Forder-properties\u002Ffields`](\u002Fdocs\u002Fentities\u002Forder-properties\u002Ffields) |\n| 400 | `INVALID_FILTER_FIELD` | A filter field name starts with the unsupported prefix `@` or `!@` |\n| 400 | `INVALID_FILTER_OPERATOR` | An unknown operator, an empty condition object, or a logical `$or` or `$and` condition |\n| 400 | `INVALID_DUPLICATE_FILTER_FIELD` | Two conditions resolve to the same filter condition. Send one of them |\n| 400 | `INVALID_SORT_FIELD` | Sorting contains the forbidden name `__proto__`, `constructor`, or `prototype` |\n| 400 | `UNKNOWN_SORT_FIELD` | Sorting by an unknown field |\n| 400 | `INVALID_SORT_DIRECTION` | The sort direction specified in an object is not one of `asc`, `desc`, `ASC`, `DESC`, `1`, `-1` |\n| 400 | `INVALID_FILTER_SHAPE` | `filter` is not an object of filter conditions |\n| 400 | `INVALID_SORT_TYPE` | Sorting has an unsupported type |\n| 400 | `INVALID_LIMIT` | `limit` is not a number or a numeric string |\n| 400 | `INVALID_SELECT_TYPE` | `select` is not a string or an array of strings |\n| 400 | `INVALID_REQUEST` | The request body is not a JSON object |\n| 422 | `BITRIX_ERROR` | The key's user does not have permission in Bitrix24. The Bitrix24 code is in `error.b24Code`: `200040300010` |\n| 403 | `BITRIX_ACCESS_DENIED` | The portal credentials do not have the `sale` scope (`insufficient_scope`) |\n| 422 | `BITRIX_ERROR` | Bitrix24 rejects the request. The reason is in `error.message` |\n| 403 | `SCOPE_DENIED` | The API key does not have 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. The effective limit is in the `x-ratelimit-limit` header. Retry after the interval in the `Retry-After` header |\n\nFull list of common API errors: [Error codes](\u002Fdocs\u002Ferrors).\n\n## See also\n\n- [List order properties](\u002Fdocs\u002Fentities\u002Forder-properties\u002Flist)\n- [Get an order property](\u002Fdocs\u002Fentities\u002Forder-properties\u002Fget)\n- [Aggregate order properties](\u002Fdocs\u002Fentities\u002Forder-properties\u002Faggregate)\n- [Order property fields](\u002Fdocs\u002Fentities\u002Forder-properties\u002Ffields)\n- [Order properties](\u002Fdocs\u002Fentities\u002Forder-properties)\n- [Filtering syntax](\u002Fdocs\u002Ffiltering)\n- [Limits and optimization](\u002Fdocs\u002Foptimization)\n","2026-11-19",{},1795415263198]