[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fshipments\u002Funship":3,"docs-tabs-entities\u002Fshipments\u002Funship":6},{"content":4,"lastmod":5},"## Clear the \"shipped\" mark\n\n`POST \u002Fv1\u002Fshipments\u002F:id\u002Funship`\n\nClears the \"shipped\" mark from an online store order shipment, for example before deleting the shipment or after setting the mark by mistake.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|---------|\n| `id` (path) | number | yes | Shipment ID, a positive integer. List: [`GET \u002Fv1\u002Fshipments`](.\u002Flist.md) |\n\nPass an empty object `{}` with the `Content-Type: application\u002Fjson` header, or send the request with no body and without this header.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fshipments\u002F1205\u002Funship\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{}'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fshipments\u002F1205\u002Funship\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{}'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fshipments\u002F1205\u002Funship', {\n  method: 'POST',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: '{}',\n})\n\nconst { success, data } = await res.json()\nconsole.log('Shipped:', data.deducted)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fshipments\u002F1205\u002Funship', {\n  method: 'POST',\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: '{}',\n})\n\nconst { success, data } = await res.json()\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | `true` on success |\n| `data` | object | The shipment with all fields as they are after the mark is cleared. See [Shipment fields](.\u002Ffields.md) |\n| `data.deducted` | boolean | Always `false` in a successful response |\n| `data.dateDeducted` | datetime | Date the mark was cleared. The field is not reset |\n| `data.empDeductedId` | number | ID of the employee who last changed the mark. The field is not reset. List: [`GET \u002Fv1\u002Fusers`](\u002Fdocs\u002Fentities\u002Fusers\u002Flist) |\n| `data.reasonUndoDeducted` | string | Stays `null`: the method does not accept a reason for clearing the mark |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"accountNumber\": \"1027\u002F2\",\n    \"allowDelivery\": true,\n    \"basePriceDelivery\": 500,\n    \"canceled\": false,\n    \"comments\": \"Test shipment for documentation\",\n    \"companyId\": null,\n    \"currency\": \"USD\",\n    \"customPriceDelivery\": false,\n    \"dateAllowDelivery\": \"2026-10-06T11:31:17.000Z\",\n    \"dateCanceled\": null,\n    \"dateDeducted\": \"2026-10-06T16:45:13.000Z\",\n    \"dateInsert\": \"2026-10-06T11:30:44.000Z\",\n    \"dateMarked\": null,\n    \"dateResponsibleId\": \"2026-10-06T11:30:44.000Z\",\n    \"deducted\": false,\n    \"deliveryDocDate\": null,\n    \"deliveryDocNum\": \"WB-1205\",\n    \"deliveryId\": 1,\n    \"deliveryName\": \"Courier delivery\",\n    \"deliveryXmlId\": null,\n    \"discountPrice\": 0,\n    \"empAllowDeliveryId\": 1317,\n    \"empCanceledId\": null,\n    \"empDeductedId\": 1317,\n    \"empMarkedId\": null,\n    \"empResponsibleId\": 1317,\n    \"externalDelivery\": false,\n    \"id\": 1205,\n    \"id1c\": null,\n    \"marked\": false,\n    \"orderId\": 1027,\n    \"priceDelivery\": 500,\n    \"reasonMarked\": null,\n    \"reasonUndoDeducted\": null,\n    \"responsibleId\": 1295,\n    \"shipmentItems\": [],\n    \"statusId\": \"DN\",\n    \"statusXmlId\": null,\n    \"system\": false,\n    \"trackingDescription\": null,\n    \"trackingLastCheck\": null,\n    \"trackingNumber\": \"VIBE-DOC-3\",\n    \"trackingStatus\": null,\n    \"updated1c\": false,\n    \"version1c\": null,\n    \"xmlId\": \"bx_6ac4cdd46e442\"\n  }\n}\n```\n\n## Error response example\n\n404 — shipment not found:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"ENTITY_NOT_FOUND\",\n    \"message\": \"shipment is not exists\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `INVALID_ID` | The `id` in the path is not a positive integer. Error message: `Shipment ID must be a positive integer.` |\n| 400 | `INVALID_PARAMS` | The request body is not empty or is not an object. Error message: `This action takes an empty body.` |\n| 404 | `ENTITY_NOT_FOUND` | No shipment with this `id` exists. Error message: `shipment is not exists` |\n| 422 | `BITRIX_NO_EFFECT` | Bitrix24 did not confirm the mark change. Error message: `Bitrix24 did not confirm the shipped mark change.` |\n| 422 | `BITRIX_NO_EFFECT` | The mark was cleared, but the shipment could not be re-read. Error message: `Bitrix24 did not return the shipment after the action.` |\n| 422 | `BITRIX_NO_EFFECT` | The shipment was re-read, but its `deducted` is not `false`. Error message: `Bitrix24 did not persist the requested shipped mark.` |\n| 422 | `BITRIX_ERROR` | Bitrix24 rejected clearing the mark. 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| 401 | `MISSING_API_KEY` | The `X-Api-Key` header is missing |\n| 401 | `TOKEN_MISSING` | The API key has no configured tokens |\n\nFull list of common API errors: [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n**A repeated call changes nothing.** For a shipment without the mark, the request returns `200` with the same shipment. So after `422 BITRIX_NO_EFFECT`, you can retry the request or check `deducted` via [`GET \u002Fv1\u002Fshipments\u002F:id`](.\u002Fget.md).\n\n## See also\n\n- [Set the \"shipped\" mark](.\u002Fship.md)\n- [Get a shipment](.\u002Fget.md)\n- [Delete a shipment](.\u002Fdelete.md)\n- [Shipment fields](.\u002Ffields.md)\n- [Shipment items](\u002Fdocs\u002Fentities\u002Fshipment-items)\n- [Shipments](\u002Fdocs\u002Fentities\u002Fshipments)\n","2026-10-07",{},1795415296972]