[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fshipment-items\u002Ffields":3,"docs-tabs-entities\u002Fshipment-items\u002Ffields":6},{"content":4,"lastmod":5},"## Shipment item fields\n\n`GET \u002Fv1\u002Fshipment-items\u002Ffields`\n\nReturns the shipment item field schema — a reference for selecting and filtering fields and for the create and update bodies.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fshipment-items\u002Ffields\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fshipment-items\u002Ffields\" \\\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\u002Ffields', {\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nconst { data } = await res.json()\nconsole.log('Shipment item fields:', Object.keys(data.fields))\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fshipment-items\u002Ffields', {\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nconst { data } = await res.json()\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | Always `true` on success |\n| `data.fields` | object | Field schema. The key is the field name, the value is the field description |\n| `data.fields.\u003Cfield>.type` | string | Value type: `number`, `string`, `datetime` |\n| `data.fields.\u003Cfield>.readonly` | boolean | `true` means the field is set by the system; passing it on create or update is rejected with `400 READONLY_FIELD` |\n| `data.fields.\u003Cfield>.required` | boolean | Present only on fields required at creation, always with the value `true` |\n| `data.fields.\u003Cfield>.readonlyOnUpdate` | boolean | Present only on fields that are set at creation and cannot be changed on update, always with the value `true`. Passing such a field to [`PATCH \u002Fv1\u002Fshipment-items\u002F:id`](.\u002Fupdate.md) is rejected with `400 READONLY_FIELD` |\n| `data.fields.\u003Cfield>.label` | string | Short field name |\n| `data.fields.\u003Cfield>.description` | string | Field explanation |\n| `data.aggregatable` | array | Fields allowed in [shipment item aggregation](.\u002Faggregate.md): as the field of a numeric function and as a `groupBy` grouping field |\n| `data.batch` | array | Operations available in [batch operations on shipment items](.\u002Fbatch.md): `create`, `update`, `delete` |\n\n### Shipment item fields\n\nThe full set of fields returned by `GET \u002Fv1\u002Fshipment-items\u002Ffields`. The RO column marks read-only fields.\n\n| Field | Type | RO | Description |\n|------|-----|:--:|---------|\n| `id` | number | yes | Shipment item ID |\n| `orderDeliveryId` | number | no | Shipment ID. List: [`GET \u002Fv1\u002Fshipments`](\u002Fdocs\u002Fentities\u002Fshipments\u002Flist). Required at creation. Set only at creation: on update it is rejected with `400 READONLY_FIELD`, marked `readonlyOnUpdate` in the schema |\n| `basketId` | number | no | ID of a basket item of the same order. List: [`GET \u002Fv1\u002Fbasket-items`](\u002Fdocs\u002Fentities\u002Fbasket-items\u002Flist). Required at creation. Set only at creation: on update it is rejected with `400 READONLY_FIELD`, marked `readonlyOnUpdate` in the schema |\n| `quantity` | number | no | Quantity of the product in the shipment; fractional values are allowed, for example `0.75`. Required at creation and in every [update](.\u002Fupdate.md): a `PATCH` without `quantity` is rejected with `422 BITRIX_ERROR` |\n| `reservedQuantity` | number | yes | Reserved quantity |\n| `xmlId` | string | no | External code of the item |\n| `dateInsert` | datetime | yes | Creation date in ISO 8601 format, for example `2026-10-07T09:55:27.000Z` |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"fields\": {\n      \"basketId\": {\n        \"type\": \"number\",\n        \"readonly\": false,\n        \"readonlyOnUpdate\": true,\n        \"required\": true,\n        \"label\": \"Basket item ID\",\n        \"description\": \"Basket item of the same order. Lookup: GET \u002Fv1\u002Fbasket-items.\"\n      },\n      \"dateInsert\": {\n        \"type\": \"datetime\",\n        \"readonly\": true,\n        \"label\": \"Creation date\",\n        \"description\": \"Creation date.\"\n      },\n      \"id\": {\n        \"type\": \"number\",\n        \"readonly\": true,\n        \"label\": \"Shipment item ID\",\n        \"description\": \"Shipment item identifier.\"\n      },\n      \"orderDeliveryId\": {\n        \"type\": \"number\",\n        \"readonly\": false,\n        \"readonlyOnUpdate\": true,\n        \"required\": true,\n        \"label\": \"Shipment ID\",\n        \"description\": \"Shipment ID. Lookup: GET \u002Fv1\u002Fshipments.\"\n      },\n      \"quantity\": {\n        \"type\": \"number\",\n        \"readonly\": false,\n        \"required\": true,\n        \"label\": \"Quantity\",\n        \"description\": \"Quantity.\"\n      },\n      \"reservedQuantity\": {\n        \"type\": \"number\",\n        \"readonly\": true,\n        \"label\": \"Reserved\",\n        \"description\": \"Reserved.\"\n      },\n      \"xmlId\": {\n        \"type\": \"string\",\n        \"readonly\": false,\n        \"label\": \"External code\",\n        \"description\": \"External code.\"\n      }\n    },\n    \"aggregatable\": [\n      \"quantity\",\n      \"reservedQuantity\",\n      \"orderDeliveryId\",\n      \"basketId\"\n    ],\n    \"batch\": [\n      \"create\",\n      \"update\",\n      \"delete\"\n    ]\n  }\n}\n```\n\n## Error response example\n\n401 — the API key is not passed:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"MISSING_API_KEY\",\n    \"message\": \"API key required. Pass via X-Api-Key header.\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 403 | `SCOPE_DENIED` | The API key has no `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 not passed |\n| 401 | `INVALID_API_KEY` | The passed 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## See also\n\n- [Create a shipment item](.\u002Fcreate.md)\n- [Update a shipment item](.\u002Fupdate.md)\n- [List shipment items](.\u002Flist.md)\n- [Shipment item aggregation](.\u002Faggregate.md)\n- [Batch operations on shipment items](.\u002Fbatch.md)\n- [Shipment items](\u002Fdocs\u002Fentities\u002Fshipment-items)\n- [Shipments](\u002Fdocs\u002Fentities\u002Fshipments)\n- [Basket items](\u002Fdocs\u002Fentities\u002Fbasket-items)\n- [Entity reference](\u002Fdocs\u002Fentity-api)\n","2026-10-23",{},1795415294628]