[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fcrm-payments\u002Flist":3,"docs-tabs-entities\u002Fcrm-payments\u002Flist":6},{"content":4,"lastmod":5},"## List CRM payments\n\n`GET \u002Fv1\u002Fcrm-payments`\n\nReturns all payments of one CRM item, such as a deal, with filtering and sorting by payment fields.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|---------|\n| `entityTypeId` (query) | number | yes | CRM item type. For a deal — `2` |\n| `entityId` (query) | number | yes | CRM item ID. For a deal — the ID from [`GET \u002Fv1\u002Fdeals`](\u002Fdocs\u002Fentities\u002Fdeals\u002Flist) |\n| `filter` (query) | object | no | Filter by payment fields from the \"Response fields\" table — exact value match only; keys cannot contain comparison operators.\u003Cbr>[Filtering syntax](\u002Fdocs\u002Ffiltering). Example: `?filter[paid]=Y` |\n| `order` (query) | object | no | Sort by payment fields from the \"Response fields\" table: `asc`, `desc`, `ASC` or `DESC`. Example: `?order[id]=desc` |\n\nThere is no pagination: the response contains all payments of the item in a single call. The method accepts no other query parameters, including `limit` and `offset`.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcrm-payments?entityTypeId=2&entityId=8761&order[id]=asc\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcrm-payments?entityTypeId=2&entityId=8761&order[id]=asc\" \\\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 params = new URLSearchParams({ entityTypeId: '2', entityId: '8761', 'order[id]': 'asc' })\nconst res = await fetch(`https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcrm-payments?${params}`, {\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nconst { data, meta } = await res.json()\nconsole.log(`Payments: ${meta.total}`, data.map(p => `${p.accountNumber} — ${p.paid}`))\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst params = new URLSearchParams({ entityTypeId: '2', entityId: '8761', 'order[id]': 'asc' })\nconst res = await fetch(`https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcrm-payments?${params}`, {\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nconst { data, meta } = await res.json()\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | `true` on success |\n| `data` | array | Payments of the item. An empty array if the item has no payments |\n| `data[].id` | number | Payment ID |\n| `data[].accountNumber` | string | Payment number: the linked order number and the payment sequence number separated by `\u002F`, for example `1029\u002F2` |\n| `data[].paid` | string | Paid mark: `Y` — paid, `N` — not paid |\n| `data[].datePaid` | string \\| null | Time of the last \"paid\" mark, ISO 8601 with a time zone offset. `null` if the payment was never marked |\n| `data[].empPaidId` | number \\| null | ID of the employee who last marked the payment. List: [`GET \u002Fv1\u002Fusers`](\u002Fdocs\u002Fentities\u002Fusers\u002Flist) |\n| `data[].paySystemId` | number | Payment system ID. List: [`GET \u002Fv1\u002Fpay-systems`](\u002Fdocs\u002Fentities\u002Fpay-systems\u002Flist) |\n| `data[].sum` | number | Payment amount. The sum of the payment's items; `0` for a new payment |\n| `data[].currency` | string | Currency code. List: [`GET \u002Fv1\u002Fcurrencies`](\u002Fdocs\u002Fentities\u002Fcurrencies\u002Flist) |\n| `data[].paySystemName` | string | Payment system name |\n| `meta.total` | number | Number of payments in `data` |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 563,\n      \"accountNumber\": \"1029\u002F1\",\n      \"paid\": \"N\",\n      \"datePaid\": null,\n      \"empPaidId\": null,\n      \"paySystemId\": 19,\n      \"sum\": 3000,\n      \"currency\": \"USD\",\n      \"paySystemName\": \"Card payment\"\n    },\n    {\n      \"id\": 565,\n      \"accountNumber\": \"1029\u002F2\",\n      \"paid\": \"Y\",\n      \"datePaid\": \"2026-10-05T09:29:34+00:00\",\n      \"empPaidId\": 1317,\n      \"paySystemId\": 3,\n      \"sum\": 0,\n      \"currency\": \"USD\",\n      \"paySystemName\": \"Bank transfer (Contacts)\"\n    }\n  ],\n  \"meta\": {\n    \"total\": 2\n  }\n}\n```\n\n## Error response example\n\n400 — filtering or sorting by a field that is not in the response:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"UNKNOWN_FILTER_FIELD\",\n    \"message\": \"Filter and order support only payment response fields.\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `MISSING_REQUIRED_FIELDS` | `entityTypeId` or `entityId` is missing, or the value is not a positive integer |\n| 400 | `UNKNOWN_FILTER_FIELD` | `filter` or `order` contains a field that is not in the \"Response fields\" table, a key with a comparison operator, or a sort direction other than `asc`, `desc`, `ASC`, `DESC`; or another query parameter was passed |\n| 404 | `ENTITY_NOT_FOUND` | No CRM item exists with this `entityTypeId` and `entityId` |\n| 422 | `BITRIX_ERROR` | Bitrix24 rejected the request; the reason is in `error.message` |\n| 403 | `BITRIX_ACCESS_DENIED` | The key's user has no access to the CRM item or the payment in Bitrix24 |\n| 403 | `SCOPE_DENIED` | The API key does not have the `crm` scope |\n| 401 | `TOKEN_MISSING` | The API key has no configured tokens |\n| 401 | `MISSING_API_KEY` | `X-Api-Key` is not provided |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n**Removing the mark does not clear the time and author of the last mark.** After the mark is removed, the `datePaid` and `empPaidId` fields keep the values of the last mark. Only `paid` reflects the current state.\n\n## See also\n\n- [Get a CRM payment](\u002Fdocs\u002Fentities\u002Fcrm-payments\u002Fget)\n- [Create a CRM payment](\u002Fdocs\u002Fentities\u002Fcrm-payments\u002Fcreate)\n- [Available product rows](\u002Fdocs\u002Fentities\u002Fcrm-payments\u002Favailable-products)\n- [CRM payments](\u002Fdocs\u002Fentities\u002Fcrm-payments)\n- [Filtering syntax](\u002Fdocs\u002Ffiltering)\n","2026-10-09",{},1795415224401]