[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fperson-types\u002Flist":3,"docs-tabs-entities\u002Fperson-types\u002Flist":6},{"content":4,"lastmod":5},"## List payer types\n\n`GET \u002Fv1\u002Fperson-types`\n\nRetrieves online store payer types with filtering, sorting, and pagination.\n\n## Parameters\n\n| Parameter | Type | Default | Description |\n|----------|-----|-----------|---------|\n| `filter` (query) | object | — | Filter by fields from [`GET \u002Fv1\u002Fperson-types\u002Ffields`](\u002Fdocs\u002Fentities\u002Fperson-types\u002Ffields).\u003Cbr>[Filtering syntax](\u002Fdocs\u002Ffiltering). Example: `?filter[id]=21` |\n| `select` (query) | string | — | Comma-separated fields, for example `?select=id,name,active`. Only selected fields remain in `data`. Unknown names are reported in `meta.warnings` with the code `UNKNOWN_SELECT_FIELD` |\n| `sort` (query) | string | — | Sort by field: `?sort=id`, or `?sort=-id` for descending order |\n| `order` (query) | object | — | Sort using an object: `?order[id]=desc` |\n| `limit` (query) | number | `50` | Number of records, from 1 to 5000. Values above 5000 are capped at 5000 |\n| `offset` (query) | number | `0` | Number of records to skip |\n| `withTotal` (query) | string | — | Accepts `true` or `false`, but does not change counting or the presence of `meta.total` for payer types |\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 -g \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fperson-types?filter[id]=21\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl -g \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fperson-types?filter[id]=21\" \\\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?filter[id]=21', {\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\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\u002Fperson-types?filter[id]=21', {\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\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 payer types |\n| `data[].id` | number | Payer type ID, RO. List: [`GET \u002Fv1\u002Fperson-types`](\u002Fdocs\u002Fentities\u002Fperson-types\u002Flist) |\n| `data[].name` | string | Name |\n| `data[].code` | string \\| null | Unique code |\n| `data[].sort` | number | Sort order |\n| `data[].active` | boolean | Whether the type is active |\n| `data[].xmlId` | string \\| null | External ID |\n| `meta.total` | number | Total number of types matching the filter. Omitted on an empty page when `offset > 0` |\n| `meta.hasMore` | boolean | Whether more records exist beyond the current set |\n| `meta.warnings` | array | Parameter warnings with `code`, `message`, and `field`. Only included when warnings exist |\n| `meta.pageErrorSample` | object | The code and message of an error that stopped automatic pagination early. In this case, `data` contains the records read before the error |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": [\n    {\n      \"active\": true,\n      \"code\": \"DOCS_PERSON_397F55D8FB1D\",\n      \"id\": 21,\n      \"name\": \"Updated documentation payer\",\n      \"sort\": 910,\n      \"xmlId\": \"DOCS_PERSON_397F55D8FB1D\"\n    }\n  ],\n  \"meta\": {\n    \"total\": 1,\n    \"hasMore\": false\n  }\n}\n```\n\n## Error response example\n\n400 — sorting by an unknown field:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"UNKNOWN_SORT_FIELD\",\n    \"message\": \"Unknown sort field 'unknownField' for entity 'person-types'. Available: id, name, code, sort, active, xmlId, lid\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `UNKNOWN_FILTER_FIELD` | The filter uses a field absent from the schema. Field list: [`GET \u002Fv1\u002Fperson-types\u002Ffields`](\u002Fdocs\u002Fentities\u002Fperson-types\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 condition with `$or` or `$and` |\n| 400 | `INVALID_DUPLICATE_FILTER_FIELD` | Two conditions resolve to the same filter condition. Provide only one |\n| 400 | `INVALID_SORT_FIELD` | Sorting uses a forbidden name: `__proto__`, `constructor`, or `prototype` |\n| 400 | `UNKNOWN_SORT_FIELD` | Sorting by an unknown field |\n| 400 | `INVALID_SORT_DIRECTION` | The sort direction is not one of `asc`, `desc`, `ASC`, `DESC`, `1`, `-1` |\n| 400 | `INVALID_FILTER` | The `filter` is not an object or a JSON string containing an object, or the two filter forms are mixed |\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\nFor the full list of common API errors, see [Error codes](\u002Fdocs\u002Ferrors).\n\n## See also\n\n- [Search payer types](\u002Fdocs\u002Fentities\u002Fperson-types\u002Fsearch)\n- [Get a payer type](\u002Fdocs\u002Fentities\u002Fperson-types\u002Fget)\n- [Create a payer type](\u002Fdocs\u002Fentities\u002Fperson-types\u002Fcreate)\n- [Payer type fields](\u002Fdocs\u002Fentities\u002Fperson-types\u002Ffields)\n- [Payer types](\u002Fdocs\u002Fentities\u002Fperson-types)\n- [Filtering syntax](\u002Fdocs\u002Ffiltering)\n- [Limits and optimization](\u002Fdocs\u002Foptimization)\n","2026-10-09",{},1795415279286]