[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fshipment-items\u002Flist":3,"docs-tabs-entities\u002Fshipment-items\u002Flist":6},{"content":4,"lastmod":5},"## List shipment items\n\n`GET \u002Fv1\u002Fshipment-items`\n\nReturns a list of online store order shipment items with filtering, sorting and automatic pagination.\n\n## Parameters\n\n| Parameter | Type | Default | Description |\n|----------|-----|-----------|---------|\n| `limit` (query) | number | `50` | Number of records, from 1 to 5000. A value above 5000 is capped at 5000 without an error |\n| `offset` (query) | number | `0` | Skip N records: `offset=7` starts the selection at the 8th record |\n| `select` (query) | string | — | Comma-separated fields to return: `?select=id,orderDeliveryId,quantity`. An unknown field does not cause an error: it is absent from the `data` items, and `meta.warnings` carries an `UNKNOWN_SELECT_FIELD` warning with the field name in `field` |\n| `sort` (query) | string | — | Sort using shorthand syntax: `?sort=-id`. A minus sign indicates descending order |\n| `order` (query) | object | — | Sorting: `?order[id]=desc` |\n| `filter` (query) | object | — | Filtering by the fields of `GET \u002Fv1\u002Fshipment-items\u002Ffields`.\u003Cbr>[Filtering syntax](\u002Fdocs\u002Ffiltering). Example: `?filter[orderDeliveryId]=1207` |\n| `withTotal` (query) | string | — | Whether to return the record count in `meta.total`: `true` or `false`. Details — [Paging and record counts](\u002Fdocs\u002Fentity-api#paging-and-record-counts) |\n\n**Pagination.** With `limit > 50`, Vibecode assembles the response from several sequential reads of 50 records each and returns all records in one response. `meta.hasMore` shows whether more records remain.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -g \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fshipment-items?filter[basketId]=1387\" \\\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\u002Fshipment-items?filter[basketId]=1387\" \\\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\u002Fshipment-items?filter[basketId]=1387', {\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nconst { success, data, meta } = await res.json()\nconst total = data.reduce((sum, item) => sum + item.quantity, 0)\nconsole.log(`Basket item is split across ${data.length} shipments, ${total} in total`)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fshipment-items?filter[basketId]=1387', {\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 shipment items |\n| `data[].id` | number | Shipment item ID |\n| `data[].orderDeliveryId` | number | Shipment ID. List: [`GET \u002Fv1\u002Fshipments`](\u002Fdocs\u002Fentities\u002Fshipments\u002Flist) |\n| `data[].basketId` | number | Basket item ID. List: [`GET \u002Fv1\u002Fbasket-items`](\u002Fdocs\u002Fentities\u002Fbasket-items\u002Flist) |\n| `data[].quantity` | number | Product quantity in the shipment, can be fractional |\n| `data[].reservedQuantity` | number | Reserved quantity |\n| `data[].xmlId` | string | External item code |\n| `data[].dateInsert` | datetime | Creation date, ISO 8601 |\n| `meta.total` | number | Total number of records matching the filter. May be absent — see the `withTotal` parameter |\n| `meta.hasMore` | boolean | Whether more records exist beyond `limit` |\n| `meta.warnings` | array | Warnings about request parameters: `code`, `message`, `field`. Present only when there are warnings |\n| `meta.pageErrorSample` | object | Code and text of the error that stopped automatic pagination early. `data` then contains the records up to the stopping point |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": [\n    {\n      \"basketId\": 1387,\n      \"dateInsert\": \"2026-10-04T22:01:08.000Z\",\n      \"id\": 1347,\n      \"orderDeliveryId\": 1195,\n      \"quantity\": 0.25,\n      \"reservedQuantity\": 0,\n      \"xmlId\": \"bx_6ac2be9427875\"\n    },\n    {\n      \"basketId\": 1387,\n      \"dateInsert\": \"2026-10-07T09:55:27.000Z\",\n      \"id\": 1353,\n      \"orderDeliveryId\": 1207,\n      \"quantity\": 0.75,\n      \"reservedQuantity\": 0,\n      \"xmlId\": \"vibe-doc-si-1\"\n    }\n  ],\n  \"meta\": {\n    \"total\": 2,\n    \"hasMore\": false\n  }\n}\n```\n\n## Error response example\n\n400 — filter by a nonexistent field:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"UNKNOWN_FILTER_FIELD\",\n    \"message\": \"Unknown filter field 'foo' for entity 'shipment-items'. Available: basketId, dateInsert, id, orderDeliveryId, quantity, reservedQuantity, xmlId\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `UNKNOWN_FILTER_FIELD` | Filter by a field that is not in the schema. Field list: [`GET \u002Fv1\u002Fshipment-items\u002Ffields`](\u002Fdocs\u002Fentities\u002Fshipment-items\u002Ffields) |\n| 400 | `INVALID_FILTER_FIELD` | The field name in the filter starts with the unsupported prefix `@` or `!@` |\n| 400 | `INVALID_FILTER_OPERATOR` | Unknown filter operator, an empty object as a condition value, or the logical condition `$or` |\n| 400 | `INVALID_FILTER` | The `filter` parameter is neither an object nor a JSON string, or both filter notations are mixed in one request |\n| 400 | `INVALID_DUPLICATE_FILTER_FIELD` | Two filter conditions reduce to the same Bitrix24 condition, for example `$ne` and `!=` on one field. Pass only one of them |\n| 400 | `UNKNOWN_SORT_FIELD` | Sorting by a field that is not in the schema |\n| 400 | `INVALID_SORT_DIRECTION` | The direction in `order` or in the object form of `sort` is not one of `asc`, `desc`, `ASC`, `DESC`, `1`, `-1` |\n| 403 | `SCOPE_DENIED` | The API key does not have the `sale` scope |\n| 403 | `MANAGEMENT_KEY_NO_ENTITY_ACCESS` | The request was made with a management key. Entities require an application key or a personal key with the `sale` scope |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header is missing |\n| 401 | `INVALID_API_KEY` | The API key was not found |\n| 401 | `TOKEN_MISSING` | The API key has no configured tokens |\n| 429 | `RATE_LIMITED` | Rate limit exceeded: 300 requests per minute per portal. All API keys of the portal share one limit. The current limit is returned 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 [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n**The selection includes rows of the system shipment.** A filter by `basketId` returns all shipments the basket item is distributed across, including the system shipment holding the undistributed remainder. In the example above, basket item 1387 with quantity 1 is split into 0.75 in shipment 1207 and 0.25 in system shipment 1195. Details — [What to know before you start](\u002Fdocs\u002Fentities\u002Fshipment-items#what-to-know-before-you-start).\n\n**Not every item in the list can be retrieved by `id`.** Items of the system shipment and items of shipments that no longer exist appear in the list, but [`GET \u002Fv1\u002Fshipment-items\u002F:id`](\u002Fdocs\u002Fentities\u002Fshipment-items\u002Fget) returns `404` for them. In the example above, item 1347 gets this response. To get the contents of a specific shipment, use this list with `filter[orderDeliveryId]`.\n\n**When to use `search` instead of `list`:** [`POST \u002Fv1\u002Fshipment-items\u002Fsearch`](\u002Fdocs\u002Fentities\u002Fshipment-items\u002Fsearch) passes parameters in the request body rather than the query string, and splits the selection into time windows when filtering by a `dateInsert` range wider than 14 days.\n\n## See also\n\n- [Search shipment items](\u002Fdocs\u002Fentities\u002Fshipment-items\u002Fsearch)\n- [Get a shipment item](\u002Fdocs\u002Fentities\u002Fshipment-items\u002Fget)\n- [Create a shipment item](\u002Fdocs\u002Fentities\u002Fshipment-items\u002Fcreate)\n- [Shipment item fields](\u002Fdocs\u002Fentities\u002Fshipment-items\u002Ffields)\n- [Shipment items](\u002Fdocs\u002Fentities\u002Fshipment-items)\n- [Shipments](\u002Fdocs\u002Fentities\u002Fshipments)\n- [Filtering syntax](\u002Fdocs\u002Ffiltering)\n- [Entity reference](\u002Fdocs\u002Fentity-api)\n- [Limits and optimization](\u002Fdocs\u002Foptimization)\n","2026-10-23",{},1795415294926]