[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Forder-properties\u002Ffields":3,"docs-tabs-entities\u002Forder-properties\u002Ffields":6},{"content":4,"lastmod":5},"## Order property fields\n\n`GET \u002Fv1\u002Forder-properties\u002Ffields`\n\nDescribes order property fields for creation, updates, selection, and filtering, along with the fields available for grouping.\n\n## Parameters\n\n| Parameter | Type | Default | Description |\n|----------|-----|-----------|---------|\n| `refresh` (query) | string | `false` | Pass `true` to bypass the metadata cache. Example: `?refresh=true` |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Forder-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\u002Forder-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\u002Forder-properties\u002Ffields', {\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nconst { data } = await res.json()\nconsole.log('Order property fields:', Object.keys(data.fields))\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Forder-properties\u002Ffields', {\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nconst { 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 | Order property metadata. The property's own fields are listed in the \"Order property fields\" table below |\n| `data.fields` | object | Field definitions. Each key is a field name, and its value describes the field |\n| `data.fields.\u003Cfield>.type` | string | Value type: `number`, `string`, `any`, `object`, or `boolean` |\n| `data.fields.\u003Cfield>.readonly` | boolean | `true` for read-only fields |\n| `data.fields.\u003Cfield>.createOnly` | boolean | Present as `true` for `personTypeId`, `type`, and `propsGroupId`. These fields are set at creation and cannot be updated |\n| `data.fields.\u003Cfield>.required` | boolean | Present as `true` for `personTypeId`, `type`, `name`, and `propsGroupId`, which are required at creation |\n| `data.fields.\u003Cfield>.nullable` | boolean | Present as `true` for `code`, `description`, and `xmlId`, which accept `null` |\n| `data.fields.\u003Cfield>.label` | string | Field label |\n| `data.fields.\u003Cfield>.description` | string | Field description |\n| `data.fields.type.enum` | array | Allowed property types. Each item contains `value` and `label` |\n| `data.aggregatable` | array | Fields for `groupBy` in [order property aggregation](.\u002Faggregate.md): `personTypeId`, `type`, `required`, `active` |\n| `data.batch` | array | Batch write operations: `create`, `update`, `delete` |\n\n### Order property fields\n\nThe complete set of fields from the schema. RO marks fields that are read-only.\n\n| Field | Type | RO | Description |\n|------|-----|:--:|---------|\n| `id` | number | yes | Property ID. List: [`GET \u002Fv1\u002Forder-properties`](.\u002Flist.md) |\n| `personTypeId` | number | no | Payer type ID. List: [`GET \u002Fv1\u002Fperson-types`](\u002Fdocs\u002Fentities\u002Fperson-types\u002Flist). Required at creation and cannot be updated |\n| `type` | string | no | Property type: `STRING`, `Y\u002FN`, `NUMBER`, `ENUM`, `FILE`, `DATE`, `LOCATION`, `ADDRESS`. Required at creation and cannot be updated |\n| `name` | string | no | Field name. Required at creation |\n| `propsGroupId` | number | no | Property group ID. Get it from a property with the same payer type through [`GET \u002Fv1\u002Forder-properties`](.\u002Flist.md). Required at creation and cannot be updated |\n| `code` | string \\| null | no | Symbolic code. `null` when unset |\n| `sort` | number | no | Sort order |\n| `defaultValue` | any | no | Default value. Its format depends on the property type. See [create](.\u002Fcreate.md) and [update](.\u002Fupdate.md) for file values |\n| `description` | string \\| null | no | Field description. `null` when unset |\n| `settings` | object | no | Settings for the property type. See [update](.\u002Fupdate.md) for the format and how to save settings |\n| `xmlId` | string \\| null | no | External ID. `null` when unset |\n| `inputFieldLocation` | number | no | Deprecated field. Bitrix24 does not use it |\n| `active` | boolean | no | Whether the property is active |\n| `required` | boolean | no | Whether the field is required when placing an order |\n| `multiple` | boolean | no | Whether the field accepts multiple values |\n| `userProps` | boolean | no | Save the value in the buyer profile |\n| `util` | boolean | no | Internal property |\n| `isAddress` | boolean | no | Address field |\n| `isAddressFrom` | boolean | no | Origin address field |\n| `isAddressTo` | boolean | no | Destination address field |\n| `isEmail` | boolean | no | Email field |\n| `isFiltered` | boolean | no | Use the property in filters |\n| `isLocation` | boolean | no | Location field |\n| `isLocation4tax` | boolean | no | Location for tax calculation |\n| `isPayer` | boolean | no | Payer name field |\n| `isPhone` | boolean | no | Phone field |\n| `isProfileName` | boolean | no | Buyer profile name field |\n| `isZip` | boolean | no | Postal code field |\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      \"personTypeId\": {\n        \"type\": \"number\",\n        \"readonly\": false,\n        \"createOnly\": true,\n        \"required\": true,\n        \"label\": \"Payer type ID\",\n        \"description\": \"Payer type ID.\"\n      },\n      \"type\": {\n        \"type\": \"string\",\n        \"readonly\": false,\n        \"createOnly\": true,\n        \"required\": true,\n        \"label\": \"Property type\",\n        \"description\": \"Property type.\",\n        \"enum\": [\n          {\n            \"value\": \"STRING\",\n            \"label\": \"STRING\"\n          },\n          {\n            \"value\": \"Y\u002FN\",\n            \"label\": \"Y\u002FN\"\n          },\n          {\n            \"value\": \"NUMBER\",\n            \"label\": \"NUMBER\"\n          },\n          {\n            \"value\": \"ENUM\",\n            \"label\": \"ENUM\"\n          },\n          {\n            \"value\": \"FILE\",\n            \"label\": \"FILE\"\n          },\n          {\n            \"value\": \"DATE\",\n            \"label\": \"DATE\"\n          },\n          {\n            \"value\": \"LOCATION\",\n            \"label\": \"LOCATION\"\n          },\n          {\n            \"value\": \"ADDRESS\",\n            \"label\": \"ADDRESS\"\n          }\n        ]\n      },\n      \"name\": {\n        \"type\": \"string\",\n        \"readonly\": false,\n        \"required\": true,\n        \"label\": \"Name\",\n        \"description\": \"Name.\"\n      },\n      \"propsGroupId\": {\n        \"type\": \"number\",\n        \"readonly\": false,\n        \"createOnly\": true,\n        \"required\": true,\n        \"label\": \"Property group ID\",\n        \"description\": \"Property group ID.\"\n      },\n      \"code\": {\n        \"type\": \"string\",\n        \"readonly\": false,\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      \"defaultValue\": {\n        \"type\": \"any\",\n        \"readonly\": false,\n        \"label\": \"Default value (type dependent)\",\n        \"description\": \"Scalar or structured default, depending on type. FILE uploads use {fileData:[filename,base64]}; a stored FILE default requires an explicit replacement on update.\"\n      },\n      \"description\": {\n        \"type\": \"string\",\n        \"readonly\": false,\n        \"nullable\": true,\n        \"label\": \"Description\",\n        \"description\": \"Description.\"\n      },\n      \"settings\": {\n        \"type\": \"object\",\n        \"readonly\": false,\n        \"label\": \"Type-specific settings\",\n        \"description\": \"Type-specific settings.\"\n      },\n      \"xmlId\": {\n        \"type\": \"string\",\n        \"readonly\": false,\n        \"nullable\": true,\n        \"label\": \"External ID\",\n        \"description\": \"External ID.\"\n      },\n      \"inputFieldLocation\": {\n        \"type\": \"number\",\n        \"readonly\": false,\n        \"label\": \"Input field location\",\n        \"description\": \"Input field location.\"\n      },\n      \"active\": {\n        \"type\": \"boolean\",\n        \"readonly\": false,\n        \"label\": \"Active\",\n        \"description\": \"Active.\"\n      },\n      \"required\": {\n        \"type\": \"boolean\",\n        \"readonly\": false,\n        \"label\": \"Required\",\n        \"description\": \"Required.\"\n      },\n      \"multiple\": {\n        \"type\": \"boolean\",\n        \"readonly\": false,\n        \"label\": \"Multiple\",\n        \"description\": \"Multiple.\"\n      },\n      \"userProps\": {\n        \"type\": \"boolean\",\n        \"readonly\": false,\n        \"label\": \"Save in profile\",\n        \"description\": \"Save in profile.\"\n      },\n      \"util\": {\n        \"type\": \"boolean\",\n        \"readonly\": false,\n        \"label\": \"Service property\",\n        \"description\": \"Service property.\"\n      },\n      \"isAddress\": {\n        \"type\": \"boolean\",\n        \"readonly\": false,\n        \"label\": \"Address\",\n        \"description\": \"Address.\"\n      },\n      \"isAddressFrom\": {\n        \"type\": \"boolean\",\n        \"readonly\": false,\n        \"label\": \"Origin address\",\n        \"description\": \"Origin address.\"\n      },\n      \"isAddressTo\": {\n        \"type\": \"boolean\",\n        \"readonly\": false,\n        \"label\": \"Destination address\",\n        \"description\": \"Destination address.\"\n      },\n      \"isEmail\": {\n        \"type\": \"boolean\",\n        \"readonly\": false,\n        \"label\": \"Email\",\n        \"description\": \"Email.\"\n      },\n      \"isFiltered\": {\n        \"type\": \"boolean\",\n        \"readonly\": false,\n        \"label\": \"Filterable\",\n        \"description\": \"Filterable.\"\n      },\n      \"isLocation\": {\n        \"type\": \"boolean\",\n        \"readonly\": false,\n        \"label\": \"Location\",\n        \"description\": \"Location.\"\n      },\n      \"isLocation4tax\": {\n        \"type\": \"boolean\",\n        \"readonly\": false,\n        \"label\": \"Tax location\",\n        \"description\": \"Tax location.\"\n      },\n      \"isPayer\": {\n        \"type\": \"boolean\",\n        \"readonly\": false,\n        \"label\": \"Payer name\",\n        \"description\": \"Payer name.\"\n      },\n      \"isPhone\": {\n        \"type\": \"boolean\",\n        \"readonly\": false,\n        \"label\": \"Phone\",\n        \"description\": \"Phone.\"\n      },\n      \"isProfileName\": {\n        \"type\": \"boolean\",\n        \"readonly\": false,\n        \"label\": \"Profile name\",\n        \"description\": \"Profile name.\"\n      },\n      \"isZip\": {\n        \"type\": \"boolean\",\n        \"readonly\": false,\n        \"label\": \"Postal code\",\n        \"description\": \"Postal code.\"\n      }\n    },\n    \"aggregatable\": [\n      \"personTypeId\",\n      \"type\",\n      \"required\",\n      \"active\"\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 tokens are configured for the API key |\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\nFor the full list of common API errors, see [Error codes](\u002Fdocs\u002Ferrors).\n\n## See also\n\n- [List order properties](.\u002Flist.md)\n- [Get an order property](.\u002Fget.md)\n- [Create an order property](.\u002Fcreate.md)\n- [Update an order property](.\u002Fupdate.md)\n- [Aggregate order properties](.\u002Faggregate.md)\n- [Order properties](\u002Fdocs\u002Fentities\u002Forder-properties)\n- [Batch](\u002Fdocs\u002Fbatch)\n- [Entity API](\u002Fdocs\u002Fentity-api)\n","2026-10-12",{},1795415262708]