For AI agents: markdown of this page — /docs-content-en/entities/shipments/list.md documentation index — /llms.txt

List: Shipments

GET /v1/shipments

Scope: sale.

Example

Terminal
curl -X GET 'https://vibecode.bitrix24.com/v1/shipments' -H 'X-Api-Key: YOUR_KEY'

Behavior

Lists contain only non-system shipments. Create requires orderId and deliveryId; the wrapper sets deducted=N and defaults allowDelivery=N. Look up a delivery service via /v1/delivery-services or sale.delivery.getList. Without PRODUCT, the Bitrix24 builder may transfer all unallocated positions from the system shipment. Read the composition after creation: the test cloud returned an empty shipment, so positions were added separately. Manage composition through shipment items.

PATCH reads the shipment first and preserves omitted fields: deducted, companyId, deliveryDocNum, trackingNumber, comments, responsibleId, customPriceDelivery, priceDelivery, basePriceDelivery, allowDelivery, deliveryId. A failed pre-read stops the write. deducted is readonly; use ship/unship. Batch is disabled through both doors because it does not perform a safe pre-read.

When warehouse accounting is enabled, ship deducts stock. Repeated actions are passed to Bitrix24; business refusals retain the Bitrix24 message. Bitrix24 also decides whether a shipped record can be deleted.

Response

JSON
{
  "success": true,
  "data": [
    {
      "id": 42,
      "orderId": 51,
      "deducted": false,
      "trackingNumber": "VIBE-PROBE"
    }
  ],
  "meta": {
    "total": 1,
    "hasMore": false
  }
}

Errors

HTTP Code
400 INVALID_PARAMS / READONLY_FIELD / MISSING_REQUIRED_FIELDS / UNKNOWN_FILTER_FIELD
401 TOKEN_MISSING
403 SCOPE_DENIED / WRITE_BLOCKED_READONLY_KEY / ACCESS_DENIED
404 ENTITY_NOT_FOUND
422 BITRIX_ERROR / BITRIX_NO_EFFECT
429 QUEUE_OVERFLOW / ERROR_LOOP_DETECTED
502 BITRIX_UNAVAILABLE
503 BITRIX_TIMEOUT

Shipments