[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fperson-types\u002Ffields":3,"docs-tabs-entities\u002Fperson-types\u002Ffields":6},{"content":4,"lastmod":5},"## Payer type fields\n\n`GET \u002Fv1\u002Fperson-types\u002Ffields`\n\nDescribes payer type fields for creation, updates, selection, and filtering, and lists the available grouping fields.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fperson-types\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\u002Fperson-types\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\u002Fperson-types\u002Ffields', {\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nconst { data } = await res.json()\nconsole.log('Payer type fields:', Object.keys(data.fields))\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fperson-types\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.fields` | object | Field definitions. Each key is a field name, and its value contains the field properties |\n| `data.fields.\u003Cfield>.type` | string | Value type: `number`, `string`, or `boolean` |\n| `data.fields.\u003Cfield>.readonly` | boolean | `true` means the field is read-only |\n| `data.fields.\u003Cfield>.required` | boolean | Included as `true` for `name`, which is required for creation |\n| `data.fields.\u003Cfield>.nullable` | boolean | Included as `true` for `code` and `xmlId`, which allow `null` |\n| `data.fields.\u003Cfield>.notReturned` | boolean | Included as `true` for `lid`: the field is in the schema but omitted from response objects |\n| `data.fields.\u003Cfield>.label` | string | Field label |\n| `data.fields.\u003Cfield>.description` | string | Field description |\n| `data.aggregatable` | array | Fields for `groupBy` in [Aggregate payer types](.\u002Faggregate.md): `active`, `code` |\n| `data.batch` | array | Batch write operations: `create`, `update`, `delete` |\n\n### Payer type fields\n\nAll fields from the schema. The RO column marks read-only fields.\n\n| Field | Type | RO | Description |\n|------|-----|:--:|---------|\n| `id` | number | yes | Payer type ID. List: [`GET \u002Fv1\u002Fperson-types`](.\u002Flist.md) |\n| `name` | string | no | Name. Required for creation and [updates](.\u002Fupdate.md) |\n| `code` | string \\| null | no | Unique code. `null` if not set |\n| `sort` | number | no | Sort order |\n| `active` | boolean | no | Whether the type is active |\n| `xmlId` | string \\| null | no | External ID. `null` if not set |\n| `lid` | string | yes | Site assigned by Bitrix24. Marked `notReturned` and omitted from response objects |\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      \"name\": {\n        \"type\": \"string\",\n        \"readonly\": false,\n        \"required\": true,\n        \"label\": \"Name\",\n        \"description\": \"Name.\"\n      },\n      \"code\": {\n        \"type\": \"string\",\n        \"readonly\": false,\n        \"nullable\": true,\n        \"label\": \"Unique code\",\n        \"description\": \"Unique code.\"\n      },\n      \"sort\": {\n        \"type\": \"number\",\n        \"readonly\": false,\n        \"label\": \"Sort order\",\n        \"description\": \"Sort order.\"\n      },\n      \"active\": {\n        \"type\": \"boolean\",\n        \"readonly\": false,\n        \"label\": \"Active\",\n        \"description\": \"Active.\"\n      },\n      \"xmlId\": {\n        \"type\": \"string\",\n        \"readonly\": false,\n        \"nullable\": true,\n        \"label\": \"External ID\",\n        \"description\": \"External ID.\"\n      },\n      \"lid\": {\n        \"type\": \"string\",\n        \"readonly\": true,\n        \"notReturned\": true,\n        \"label\": \"Site assigned by Bitrix24\",\n        \"description\": \"Site assigned by Bitrix24.\"\n      }\n    },\n    \"aggregatable\": [\n      \"active\",\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` | The API key has no configured tokens |\n| 429 | `RATE_LIMITED` | Request limit exceeded: 300 per minute per portal, shared by all API keys for the portal. The exact value is 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 [Error codes](\u002Fdocs\u002Ferrors).\n\n## See also\n\n- [List payer types](.\u002Flist.md)\n- [Get a payer type](.\u002Fget.md)\n- [Create a payer type](.\u002Fcreate.md)\n- [Update a payer type](.\u002Fupdate.md)\n- [Aggregate payer types](.\u002Faggregate.md)\n- [Payer types](\u002Fdocs\u002Fentities\u002Fperson-types)\n- [Batch](\u002Fdocs\u002Fbatch)\n- [Entity API](\u002Fdocs\u002Fentity-api)\n","2026-10-09",{},1795415279008]