[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fshipments\u002Ffields":3,"docs-tabs-entities\u002Fshipments\u002Ffields":6},{"content":4,"lastmod":5},"## Shipment fields\n\n`GET \u002Fv1\u002Fshipments\u002Ffields`\n\nReturns the shipment 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\u002Fshipments\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\u002Fshipments\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\u002Fshipments\u002Ffields', {\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nconst { data } = await res.json()\nconsole.log('Shipment fields:', Object.keys(data.fields))\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fshipments\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`, `boolean`, `datetime`, `array` |\n| `data.fields.\u003Cfield>.readonly` | boolean | `true` means the field is set by the system; writing to it 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` |\n| `data.fields.\u003Cfield>.itemSchema` | object | Present only on arrays — the schema of an array element |\n| `data.fields.\u003Cfield>.label` | string | Short field name |\n| `data.fields.\u003Cfield>.description` | string | Field explanation |\n| `data.aggregatable` | array | Fields allowed for `groupBy` grouping in [shipment aggregation](.\u002Faggregate.md) |\n| `data.batch` | array | Operations available in batch calls. For shipments the array is empty |\n\n### Shipment fields\n\nThe full set of fields returned by `GET \u002Fv1\u002Fshipments\u002Ffields`. The RO column marks read-only fields.\n\n| Field | Type | RO | Description |\n|------|-----|:--:|---------|\n| `id` | number | yes | Shipment ID |\n| `orderId` | number | no | Order ID. List: [`GET \u002Fv1\u002Forders`](\u002Fdocs\u002Fentities\u002Forders\u002Flist). Required at creation. Set only at creation: on update it is rejected with `400 READONLY_FIELD`, marked `readonlyOnUpdate` in the schema |\n| `accountNumber` | string | yes | Shipment number: the order number and the shipment sequence number separated by `\u002F`, for example `1027\u002F2` |\n| `deliveryId` | number | no | Delivery service ID. List: [`GET \u002Fv1\u002Fdelivery-services`](\u002Fdocs\u002Fentities\u002Fdelivery-services\u002Flist). Required at creation |\n| `deliveryName` | string | yes | Delivery service name |\n| `deliveryXmlId` | string | yes | External code of the delivery service. `null` if not set |\n| `statusId` | string | no | Delivery status. List: [`GET \u002Fv1\u002Forder-statuses?filter[type]=D`](\u002Fdocs\u002Fentities\u002Forder-statuses\u002Flist) |\n| `statusXmlId` | string | yes | External code of the delivery status. `null` if not set |\n| `allowDelivery` | boolean | no | Whether delivery is allowed |\n| `dateAllowDelivery` | datetime | yes | Date delivery was allowed. `null` until delivery is allowed |\n| `empAllowDeliveryId` | number | yes | ID of the employee who allowed delivery. `null` until delivery is allowed |\n| `deducted` | boolean | yes | The \"shipped\" mark. Set via [`POST \u002Fv1\u002Fshipments\u002F:id\u002Fship`](.\u002Fship.md), cleared via [`POST \u002Fv1\u002Fshipments\u002F:id\u002Funship`](.\u002Funship.md) |\n| `dateDeducted` | datetime | yes | Date the \"shipped\" mark last changed — when it was set or cleared. `null` until the mark is first set |\n| `empDeductedId` | number | yes | ID of the employee who last changed the \"shipped\" mark. `null` until the mark is first set |\n| `reasonUndoDeducted` | string | yes | Reason the \"shipped\" mark was cleared. Stays `null` when the mark is cleared through [`unship`](.\u002Funship.md) |\n| `canceled` | boolean | yes | Whether the shipment is canceled |\n| `dateCanceled` | datetime | yes | Cancellation date. `null` if the shipment is not canceled |\n| `empCanceledId` | number | yes | ID of the employee who canceled the shipment. `null` if the shipment is not canceled |\n| `marked` | boolean | yes | Whether the shipment is marked as problematic |\n| `dateMarked` | datetime | yes | Date of the mark. `null` if there is no mark |\n| `empMarkedId` | number | yes | ID of the employee who set the mark. `null` if there is no mark |\n| `reasonMarked` | string | yes | Reason for the mark. `null` if there is no mark |\n| `responsibleId` | number | no | Responsible employee. List: [`GET \u002Fv1\u002Fusers`](\u002Fdocs\u002Fentities\u002Fusers\u002Flist) |\n| `dateResponsibleId` | datetime | yes | Date the responsible employee was assigned |\n| `empResponsibleId` | number | yes | ID of the employee who assigned the responsible employee |\n| `priceDelivery` | number | no | Delivery cost |\n| `basePriceDelivery` | number | no | Base delivery cost |\n| `discountPrice` | number | yes | Delivery discount |\n| `customPriceDelivery` | boolean | yes | Whether the delivery cost is set manually |\n| `currency` | string | yes | Shipment currency, for example `USD` |\n| `companyId` | number | no | CRM company ID from [`GET \u002Fv1\u002Fcompanies`](\u002Fdocs\u002Fentities\u002Fcompanies\u002Flist). `null` if no company is set |\n| `deliveryDocNum` | string | no | Shipment document number. `null` if not set |\n| `deliveryDocDate` | datetime | no | Shipment document date. `null` if not set |\n| `trackingNumber` | string | no | Tracking number |\n| `trackingStatus` | string | yes | Parcel tracking status. `null` if there is no tracking |\n| `trackingDescription` | string | yes | Tracking status description. `null` if there is no tracking |\n| `trackingLastCheck` | string | yes | Time of the last tracking status check. `null` if there was no check |\n| `externalDelivery` | boolean | yes | External delivery flag |\n| `system` | boolean | yes | System shipment of the order. Details — [Shipments](\u002Fdocs\u002Fentities\u002Fshipments) |\n| `comments` | string | no | Shipment comment |\n| `xmlId` | string | no | External code of the shipment |\n| `id1c` | string | yes | Identifier in the ERP system. `null` if the shipment is not synchronized with an ERP system |\n| `version1c` | string | yes | Version in the ERP system. `null` if the shipment is not synchronized with an ERP system |\n| `updated1c` | boolean | yes | Whether the shipment was updated through the ERP system |\n| `dateInsert` | datetime | yes | Creation date |\n| `shipmentItems` | array | yes | Shipment items. Returned in the [`GET \u002Fv1\u002Fshipments\u002F:id`](.\u002Fget.md) response, managed via [shipment items](\u002Fdocs\u002Fentities\u002Fshipment-items) |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"fields\": {\n      \"accountNumber\": {\n        \"type\": \"string\",\n        \"readonly\": true,\n        \"label\": \"accountNumber\",\n        \"description\": \"Bitrix24 accountNumber field.\"\n      },\n      \"allowDelivery\": {\n        \"type\": \"boolean\",\n        \"readonly\": false,\n        \"label\": \"Delivery allowed\",\n        \"description\": \"Delivery allowed.\"\n      },\n      \"basePriceDelivery\": {\n        \"type\": \"number\",\n        \"readonly\": false,\n        \"label\": \"Base delivery price\",\n        \"description\": \"Base delivery price.\"\n      },\n      \"canceled\": {\n        \"type\": \"boolean\",\n        \"readonly\": true,\n        \"label\": \"canceled\",\n        \"description\": \"Bitrix24 canceled field.\"\n      },\n      \"comments\": {\n        \"type\": \"string\",\n        \"readonly\": false,\n        \"label\": \"Comment\",\n        \"description\": \"Comment.\"\n      },\n      \"companyId\": {\n        \"type\": \"number\",\n        \"readonly\": false,\n        \"label\": \"Company ID\",\n        \"description\": \"Company ID.\"\n      },\n      \"currency\": {\n        \"type\": \"string\",\n        \"readonly\": true,\n        \"label\": \"currency\",\n        \"description\": \"Bitrix24 currency field.\"\n      },\n      \"customPriceDelivery\": {\n        \"type\": \"boolean\",\n        \"readonly\": true,\n        \"label\": \"Manual delivery price\",\n        \"description\": \"Manual delivery price.\"\n      },\n      \"dateAllowDelivery\": {\n        \"type\": \"datetime\",\n        \"readonly\": true,\n        \"label\": \"dateAllowDelivery\",\n        \"description\": \"Bitrix24 dateAllowDelivery field.\"\n      },\n      \"dateCanceled\": {\n        \"type\": \"datetime\",\n        \"readonly\": true,\n        \"label\": \"dateCanceled\",\n        \"description\": \"Bitrix24 dateCanceled field.\"\n      },\n      \"dateDeducted\": {\n        \"type\": \"datetime\",\n        \"readonly\": true,\n        \"label\": \"dateDeducted\",\n        \"description\": \"Bitrix24 dateDeducted field.\"\n      },\n      \"dateInsert\": {\n        \"type\": \"datetime\",\n        \"readonly\": true,\n        \"label\": \"Creation date\",\n        \"description\": \"Creation date.\"\n      },\n      \"dateMarked\": {\n        \"type\": \"datetime\",\n        \"readonly\": true,\n        \"label\": \"dateMarked\",\n        \"description\": \"Bitrix24 dateMarked field.\"\n      },\n      \"dateResponsibleId\": {\n        \"type\": \"datetime\",\n        \"readonly\": true,\n        \"label\": \"dateResponsibleId\",\n        \"description\": \"Bitrix24 dateResponsibleId field.\"\n      },\n      \"deducted\": {\n        \"type\": \"boolean\",\n        \"readonly\": true,\n        \"label\": \"Shipped\",\n        \"description\": \"Shipped mark; use POST \u002Fv1\u002Fshipments\u002F:id\u002Fship or \u002Funship. Warehouse accounting can deduct stock.\"\n      },\n      \"deliveryDocDate\": {\n        \"type\": \"datetime\",\n        \"readonly\": false,\n        \"label\": \"Delivery document date\",\n        \"description\": \"Delivery document date.\"\n      },\n      \"deliveryDocNum\": {\n        \"type\": \"string\",\n        \"readonly\": false,\n        \"label\": \"Delivery document number\",\n        \"description\": \"Delivery document number.\"\n      },\n      \"deliveryId\": {\n        \"type\": \"number\",\n        \"readonly\": false,\n        \"required\": true,\n        \"label\": \"Delivery service ID\",\n        \"description\": \"Delivery service ID from GET \u002Fv1\u002Fdelivery-services; see \u002Fdocs\u002Fentities\u002Fdelivery-services.\"\n      },\n      \"deliveryName\": {\n        \"type\": \"string\",\n        \"readonly\": true,\n        \"label\": \"deliveryName\",\n        \"description\": \"Bitrix24 deliveryName field.\"\n      },\n      \"deliveryXmlId\": {\n        \"type\": \"string\",\n        \"readonly\": true,\n        \"label\": \"deliveryXmlId\",\n        \"description\": \"Bitrix24 deliveryXmlId field.\"\n      },\n      \"discountPrice\": {\n        \"type\": \"number\",\n        \"readonly\": true,\n        \"label\": \"discountPrice\",\n        \"description\": \"Bitrix24 discountPrice field.\"\n      },\n      \"empAllowDeliveryId\": {\n        \"type\": \"number\",\n        \"readonly\": true,\n        \"label\": \"empAllowDeliveryId\",\n        \"description\": \"Bitrix24 empAllowDeliveryId field.\"\n      },\n      \"empCanceledId\": {\n        \"type\": \"number\",\n        \"readonly\": true,\n        \"label\": \"empCanceledId\",\n        \"description\": \"Bitrix24 empCanceledId field.\"\n      },\n      \"empDeductedId\": {\n        \"type\": \"number\",\n        \"readonly\": true,\n        \"label\": \"empDeductedId\",\n        \"description\": \"Bitrix24 empDeductedId field.\"\n      },\n      \"empMarkedId\": {\n        \"type\": \"number\",\n        \"readonly\": true,\n        \"label\": \"empMarkedId\",\n        \"description\": \"Bitrix24 empMarkedId field.\"\n      },\n      \"empResponsibleId\": {\n        \"type\": \"number\",\n        \"readonly\": true,\n        \"label\": \"empResponsibleId\",\n        \"description\": \"Bitrix24 empResponsibleId field.\"\n      },\n      \"externalDelivery\": {\n        \"type\": \"boolean\",\n        \"readonly\": true,\n        \"label\": \"externalDelivery\",\n        \"description\": \"Bitrix24 externalDelivery field.\"\n      },\n      \"id\": {\n        \"type\": \"number\",\n        \"readonly\": true,\n        \"label\": \"Shipment ID\",\n        \"description\": \"Shipment ID.\"\n      },\n      \"id1c\": {\n        \"type\": \"string\",\n        \"readonly\": true,\n        \"label\": \"id1c\",\n        \"description\": \"Bitrix24 id1c field.\"\n      },\n      \"marked\": {\n        \"type\": \"boolean\",\n        \"readonly\": true,\n        \"label\": \"marked\",\n        \"description\": \"Bitrix24 marked field.\"\n      },\n      \"orderId\": {\n        \"type\": \"number\",\n        \"readonly\": false,\n        \"readonlyOnUpdate\": true,\n        \"required\": true,\n        \"label\": \"Order ID\",\n        \"description\": \"Order ID. Lookup: GET \u002Fv1\u002Forders.\"\n      },\n      \"priceDelivery\": {\n        \"type\": \"number\",\n        \"readonly\": false,\n        \"label\": \"Delivery price\",\n        \"description\": \"Delivery price.\"\n      },\n      \"reasonMarked\": {\n        \"type\": \"string\",\n        \"readonly\": true,\n        \"label\": \"reasonMarked\",\n        \"description\": \"Bitrix24 reasonMarked field.\"\n      },\n      \"reasonUndoDeducted\": {\n        \"type\": \"string\",\n        \"readonly\": true,\n        \"label\": \"reasonUndoDeducted\",\n        \"description\": \"Bitrix24 reasonUndoDeducted field.\"\n      },\n      \"responsibleId\": {\n        \"type\": \"number\",\n        \"readonly\": false,\n        \"label\": \"Responsible user ID\",\n        \"description\": \"Responsible user ID.\"\n      },\n      \"statusId\": {\n        \"type\": \"string\",\n        \"readonly\": false,\n        \"label\": \"statusId\",\n        \"description\": \"Bitrix24 statusId field.\"\n      },\n      \"statusXmlId\": {\n        \"type\": \"string\",\n        \"readonly\": true,\n        \"label\": \"statusXmlId\",\n        \"description\": \"Bitrix24 statusXmlId field.\"\n      },\n      \"system\": {\n        \"type\": \"boolean\",\n        \"readonly\": true,\n        \"label\": \"System shipment\",\n        \"description\": \"System shipment.\"\n      },\n      \"trackingDescription\": {\n        \"type\": \"string\",\n        \"readonly\": true,\n        \"label\": \"trackingDescription\",\n        \"description\": \"Bitrix24 trackingDescription field.\"\n      },\n      \"trackingLastCheck\": {\n        \"type\": \"string\",\n        \"readonly\": true,\n        \"label\": \"trackingLastCheck\",\n        \"description\": \"Bitrix24 trackingLastCheck field.\"\n      },\n      \"trackingNumber\": {\n        \"type\": \"string\",\n        \"readonly\": false,\n        \"label\": \"Tracking number\",\n        \"description\": \"Tracking number.\"\n      },\n      \"trackingStatus\": {\n        \"type\": \"string\",\n        \"readonly\": true,\n        \"label\": \"trackingStatus\",\n        \"description\": \"Bitrix24 trackingStatus field.\"\n      },\n      \"updated1c\": {\n        \"type\": \"boolean\",\n        \"readonly\": true,\n        \"label\": \"updated1c\",\n        \"description\": \"Bitrix24 updated1c field.\"\n      },\n      \"version1c\": {\n        \"type\": \"string\",\n        \"readonly\": true,\n        \"label\": \"version1c\",\n        \"description\": \"Bitrix24 version1c field.\"\n      },\n      \"xmlId\": {\n        \"type\": \"string\",\n        \"readonly\": false,\n        \"label\": \"External code\",\n        \"description\": \"External code.\"\n      },\n      \"shipmentItems\": {\n        \"type\": \"array\",\n        \"readonly\": true,\n        \"label\": \"Shipment positions\",\n        \"description\": \"Positions returned by get; manage via \u002Fv1\u002Fshipment-items.\",\n        \"itemSchema\": {\n          \"type\": \"object\"\n        }\n      }\n    },\n    \"aggregatable\": [\n      \"orderId\",\n      \"priceDelivery\",\n      \"deliveryId\"\n    ],\n    \"batch\": []\n  }\n}\n```\n\n## Error response example\n\n401 — no API key was provided:\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| 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## See also\n\n- [List shipments](.\u002Flist.md)\n- [Get a shipment](.\u002Fget.md)\n- [Create a shipment](.\u002Fcreate.md)\n- [Shipment aggregation](.\u002Faggregate.md)\n- [Shipments](\u002Fdocs\u002Fentities\u002Fshipments)\n- [Shipment items](\u002Fdocs\u002Fentities\u002Fshipment-items)\n- [Entity reference](\u002Fdocs\u002Fentity-api)\n","2026-10-23",{},1795415296133]