[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fshipment-items\u002Fdelete":3,"docs-tabs-entities\u002Fshipment-items\u002Fdelete":6},{"content":4,"lastmod":5},"## Delete a shipment item\n\n`DELETE \u002Fv1\u002Fshipment-items\u002F:id`\n\nDeletes an item from an online store order shipment by ID. A deleted shipment item cannot be restored through the API — create a new one if needed.\n\nWhere the quantity of the deleted item is returned is described in [Shipment items](\u002Fdocs\u002Fentities\u002Fshipment-items).\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|---------|\n| `id` (path) | number | yes | Shipment item ID, a non-negative integer. List: [`GET \u002Fv1\u002Fshipment-items`](.\u002Flist.md) |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X DELETE \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fshipment-items\u002F1353\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X DELETE \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fshipment-items\u002F1353\" \\\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\u002F1353', {\n  method: 'DELETE',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nif (res.status === 204) {\n  console.log('Shipment item deleted')\n}\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fshipment-items\u002F1353', {\n  method: 'DELETE',\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nif (res.status === 204) {\n  console.log('Shipment item deleted')\n}\n```\n\n## Response\n\nOn successful deletion, the API returns HTTP status `204 No Content` with an empty body. Success is indicated by the status code, not by the body.\n\n## Response example\n\n```http\nHTTP\u002F1.1 204 No Content\n```\n\n## Error response example\n\n404 — no shipment item with this `id` exists, or it has already been deleted:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"ENTITY_NOT_FOUND\",\n    \"message\": \"shipment item is not exists\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `INVALID_PARAMS` | `id` in the path is not a non-negative integer. Error text — `id must be a non-negative integer` |\n| 404 | `ENTITY_NOT_FOUND` | No shipment item with this `id` exists, or it has already been deleted. Error text — `shipment item is not exists` |\n| 422 | `BITRIX_ERROR` | Bitrix24 rejected the deletion. The reason is in `message` |\n| 403 | `BITRIX_ACCESS_DENIED` | The key's user has no permission to modify orders in Bitrix24 |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | The key is in read-only mode |\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 provided API key was not found |\n| 401 | `TOKEN_MISSING` | The API key has no configured tokens |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## See also\n\n- [Shipment items](\u002Fdocs\u002Fentities\u002Fshipment-items)\n- [Create a shipment item](.\u002Fcreate.md)\n- [Get a shipment item](.\u002Fget.md)\n- [List shipment items](.\u002Flist.md)\n- [Shipments](\u002Fdocs\u002Fentities\u002Fshipments)\n","2026-10-07",{},1795415294513]