For AI agents: markdown of this page — /docs-content-en/entities/shipments/get.md documentation index — /llms.txt
Get a shipment
GET /v1/shipments/:id
Returns a single online store order shipment by its ID.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
Parameterid (path) |
Typenumber | Requiredyes | DescriptionShipment ID. List: GET /v1/shipments |
Parameterselect (query) |
Typestring | Requiredno | DescriptionComma-separated field selection: ?select=id,orderId,trackingNumber. Only the listed fields are returned in data. Field list: GET /v1/shipments/fields |
Examples
curl — personal key
curl "https://vibecode.bitrix24.com/v1/shipments/1205" \
-H "X-Api-Key: YOUR_API_KEY"
curl — OAuth application
curl "https://vibecode.bitrix24.com/v1/shipments/1205" \
-H "X-Api-Key: YOUR_APP_KEY" \
-H "Authorization: Bearer USER_SESSION_TOKEN"
JavaScript — personal key
const res = await fetch('https://vibecode.bitrix24.com/v1/shipments/1205', {
headers: {
'X-Api-Key': 'YOUR_API_KEY',
},
})
const { success, data } = await res.json()
console.log('Shipment:', data.accountNumber, '— items:', data.shipmentItems.length)
JavaScript — OAuth application
const res = await fetch('https://vibecode.bitrix24.com/v1/shipments/1205', {
headers: {
'X-Api-Key': 'YOUR_APP_KEY',
'Authorization': 'Bearer USER_SESSION_TOKEN',
},
})
const { success, data } = await res.json()
Response fields
| Field | Type | Description |
|---|---|---|
Fieldsuccess |
Typeboolean | DescriptionAlways true on success |
Fielddata |
Typeobject | DescriptionThe shipment with all fields — see Shipment fields |
Fielddata.shipmentItems |
Typearray | DescriptionShipment items. An empty array if there are no items. To change the items, use shipment items |
Response example
{
"success": true,
"data": {
"accountNumber": "1027/2",
"allowDelivery": false,
"basePriceDelivery": 500,
"canceled": false,
"comments": "Test shipment for documentation",
"companyId": null,
"currency": "USD",
"customPriceDelivery": false,
"dateAllowDelivery": null,
"dateCanceled": null,
"dateDeducted": null,
"dateInsert": "2026-10-06T11:30:44.000Z",
"dateMarked": null,
"dateResponsibleId": "2026-10-06T11:30:44.000Z",
"deducted": false,
"deliveryDocDate": null,
"deliveryDocNum": null,
"deliveryId": 1,
"deliveryName": "Courier delivery",
"deliveryXmlId": null,
"discountPrice": 0,
"empAllowDeliveryId": null,
"empCanceledId": null,
"empDeductedId": null,
"empMarkedId": null,
"empResponsibleId": 1317,
"externalDelivery": false,
"id": 1205,
"id1c": null,
"marked": false,
"orderId": 1027,
"priceDelivery": 500,
"reasonMarked": null,
"reasonUndoDeducted": null,
"responsibleId": 1295,
"shipmentItems": [],
"statusId": "DN",
"statusXmlId": null,
"system": false,
"trackingDescription": null,
"trackingLastCheck": null,
"trackingNumber": "VIBE-DOC-1",
"trackingStatus": null,
"updated1c": false,
"version1c": null,
"xmlId": "bx_6ac4cdd46e442"
}
}
Error response example
404 — shipment not found:
{
"success": false,
"error": {
"code": "ENTITY_NOT_FOUND",
"message": "shipment is not exists"
}
}
Errors
| HTTP | Code | Description |
|---|---|---|
| HTTP400 | CodeINVALID_PARAMS |
Descriptionid is not a non-negative integer |
| HTTP404 | CodeENTITY_NOT_FOUND |
DescriptionNo shipment with this id. Error text — shipment is not exists |
| HTTP404 | CodeENTITY_NOT_FOUND |
DescriptionThe request succeeded, but the response contains no shipment. Error text — shipment <id> not found |
| HTTP403 | CodeSCOPE_DENIED |
DescriptionThe API key does not have the sale scope |
| HTTP401 | CodeMISSING_API_KEY |
DescriptionThe X-Api-Key header is missing |
| HTTP401 | CodeTOKEN_MISSING |
DescriptionThe API key has no configured tokens |
Full list of common API errors — Errors.