[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fshipments\u002Flist":3,"docs-tabs-entities\u002Fshipments\u002Flist":6},{"content":4,"lastmod":5},"## List shipments\n\n`GET \u002Fv1\u002Fshipments`\n\nReturns a list of online store order shipments with support for 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 reduced to 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 field selection: `?select=id,orderId,deducted,trackingNumber`. 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 | — | Sorting via the short syntax: `?sort=-id`, where a leading minus means descending order |\n| `order` (query) | object | — | Sorting: `?order[id]=desc` |\n| `filter` (query) | object | — | Filtering by the fields from `GET \u002Fv1\u002Fshipments\u002Ffields`.\u003Cbr>[Filtering syntax](\u002Fdocs\u002Ffiltering). Example: `?filter[orderId]=1027` |\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 follow.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -g \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fshipments?select=id,orderId,deducted,trackingNumber&filter[orderId]=1027\" \\\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\u002Fshipments?select=id,orderId,deducted,trackingNumber&filter[orderId]=1027\" \\\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\u002Fshipments?select=id,orderId,deducted,trackingNumber&filter[orderId]=1027', {\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nconst { success, data, meta } = await res.json()\nconsole.log(`Shipments in the order: ${data.length}`)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fshipments?select=id,orderId,deducted,trackingNumber&filter[orderId]=1027', {\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 shipments. All fields — [Shipment fields](\u002Fdocs\u002Fentities\u002Fshipments\u002Ffields) |\n| `meta.total` | number | Total number of records matching the filter. May be absent — see the `withTotal` parameter |\n| `meta.hasMore` | boolean | Whether there are more records 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\nA request with `select` returns only the listed fields:\n\n```json\n{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 1205,\n      \"orderId\": 1027,\n      \"deducted\": false,\n      \"trackingNumber\": \"VIBE-DOC-1\"\n    }\n  ],\n  \"meta\": {\n    \"total\": 1,\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 'shipments'. Available: accountNumber, allowDelivery, basePriceDelivery, canceled, comments, companyId, currency, customPriceDelivery, dateAllowDelivery, dateCanceled, dateDeducted, dateInsert, dateMarked, dateResponsibleId, deducted, deliveryDocDate, deliveryDocNum, deliveryId, deliveryName, deliveryXmlId, discountPrice, empAllowDeliveryId, empCanceledId, empDeductedId, empMarkedId, empResponsibleId, externalDelivery, id, id1c, marked, orderId, priceDelivery, reasonMarked, reasonUndoDeducted, responsibleId, statusId, statusXmlId, system, trackingDescription, trackingLastCheck, trackingNumber, trackingStatus, updated1c, version1c, xmlId, shipmentItems\"\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\u002Fshipments\u002Ffields`](\u002Fdocs\u002Fentities\u002Fshipments\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, or the logical condition `$or`, which cannot be expressed in a query string |\n| 400 | `INVALID_FILTER` | The `filter` parameter is neither an object nor a JSON string, or one request mixes both filter notations |\n| 400 | `INVALID_DUPLICATE_FILTER_FIELD` | Two filter conditions reduce to one Bitrix24 condition, for example `$ne` and `!=` on the same field. Pass only one of them |\n| 400 | `UNKNOWN_SORT_FIELD` | Sorting by a field that is not in the schema or cannot be sorted on |\n| 400 | `INVALID_SORT_DIRECTION` | The direction in `order` is not one of `asc`, `desc`, `ASC`, `DESC`, `1`, `-1` |\n| 403 | `SCOPE_DENIED` | The API key does not have 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` | 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 list has no shipment items.** The `data` items do not contain the `shipmentItems` field. The shipment contents are returned by [`GET \u002Fv1\u002Fshipments\u002F:id`](\u002Fdocs\u002Fentities\u002Fshipments\u002Fget).\n\n**When to use `search` instead of `list`:** [`POST \u002Fv1\u002Fshipments\u002Fsearch`](\u002Fdocs\u002Fentities\u002Fshipments\u002Fsearch) passes parameters in the request body rather than the query string, and splits the selection into time windows when filtering by a date range wider than 14 days.\n\n## See also\n\n- [Search shipments](\u002Fdocs\u002Fentities\u002Fshipments\u002Fsearch)\n- [Get a shipment](\u002Fdocs\u002Fentities\u002Fshipments\u002Fget)\n- [Create a shipment](\u002Fdocs\u002Fentities\u002Fshipments\u002Fcreate)\n- [Shipment fields](\u002Fdocs\u002Fentities\u002Fshipments\u002Ffields)\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",{},1795415296449]