[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fperson-types\u002Fdelete":3,"docs-tabs-entities\u002Fperson-types\u002Fdelete":6},{"content":4,"lastmod":5},"## Delete a payer type\n\n`DELETE \u002Fv1\u002Fperson-types\u002F:id`\n\nDeletes a payer type from the online store list by ID. You cannot restore a deleted type through the API. Create a new type if needed.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|---------|\n| `id` (path) | number | yes | Payer type ID, a non-negative integer. List: [`GET \u002Fv1\u002Fperson-types`](.\u002Flist.md) |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X DELETE \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fperson-types\u002F21\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X DELETE \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fperson-types\u002F21\" \\\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\u002F21', {\n  method: 'DELETE',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nif (res.status === 204) {\n  console.log('Payer type deleted')\n}\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fperson-types\u002F21', {\n  method: 'DELETE',\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nif (res.status === 204) {\n  console.log('Payer type deleted')\n}\n```\n\n## Response\n\nSuccessful deletion returns HTTP `204 No Content` with an empty body. Check the status code to confirm success.\n\n## Response example\n\n```http\nHTTP\u002F1.1 204 No Content\n```\n\n## Error response example\n\n404 — the payer type has already been deleted:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"ENTITY_NOT_FOUND\",\n    \"message\": \"person type is not exists\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `INVALID_PARAMS` | The path `id` is not a non-negative integer |\n| 404 | `ENTITY_NOT_FOUND` | The payer type with this `id` does not exist or has already been deleted. Message: `person type is not exists` |\n| 422 | `BITRIX_ERROR` | A type with `code: \"CRM_CONTACT\"` or `code: \"CRM_COMPANY\"` is protected from deletion. Message: `person type code is protected`, `b24Code`: `200750000003` |\n| 422 | `BITRIX_ERROR` | Bitrix24 rejected deletion for another reason. The reason is in `message` |\n| 403 | `BITRIX_ACCESS_DENIED` | The key owner lacks permission to modify payer types in Bitrix24 |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | The key is in read-only mode |\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\nFor the full list of common API errors, see [Error codes](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\nTo deactivate your own type instead of deleting it, send its name and `active: false` in [`PATCH \u002Fv1\u002Fperson-types\u002F:id`](.\u002Fupdate.md).\n\n## See also\n\n- [Payer types](\u002Fdocs\u002Fentities\u002Fperson-types)\n- [Update a payer type](.\u002Fupdate.md)\n- [Get a payer type](.\u002Fget.md)\n- [Create a payer type](.\u002Fcreate.md)\n","2026-10-09",{},1795415278868]