Перейти к содержимому

Bundles

Bundles — fixed groups of existing items, each with a set quantity, that can be sold or purchased together as a single line item.

Bundles have no stock of their own; inventory is tracked at the component-item level, and processing a bundle in an order adjusts each component’s stock accordingly.

A bundle with its component items. Bundles have no stock of their own; inventory is tracked at the component-item level.

idintegerminimum 0, maximum 2147483647обязательный

Bundle id.

namestringобязательный

Bundle display name.

skustringобязательный

Stock Keeping Unit. Unique within the team.

barcodestringобязательный

Primary barcode for the bundle. Empty string when not assigned.

coststringобязательный

Cost per bundle, as a decimal string. Independent from component item costs.

pricestringобязательный

Selling price per bundle, as a decimal string. Independent from component item prices.

photo_urlstringnullableобязательный

URL of the bundle photo. null when no photo is set.

memostringобязательный

Free-text memo. Empty string when not set.

componentsarray of BundleComponentобязательный

Component list. Bundles cannot contain other bundles.

Показать свойства
itemExtendedItemEntityобязательный

Reference to an item or bundle embedded in order, return, transaction, and bundle component responses.

Показать свойства
idintegerminimum 0, maximum 2147483647обязательный

Item or bundle id.

namestringобязательный

Display name.

skustringобязательный

SKU. Empty string when unset.

barcodestringобязательный

Barcode. Empty string when unset.

deletedbooleanобязательный

Whether the underlying item or bundle is deleted.

quantitynumberобязательный

Quantity of this item required per bundle.

Пример

{
"id": 4042,
"name": "Starter Kit",
"sku": "BUNDLE-STARTER",
"barcode": "8801234567890",
"cost": "12.50",
"price": "29.99",
"photo_url": null,
"memo": "",
"count_of_components": 2,
"components": [
{
"item": {
"id": 14290445,
"name": "Finish Setting Powder",
"sku": "SKU-12345678",
"barcode": "2097678335587",
"deleted": false
},
"quantity": 1
},
{
"item": {
"id": 14290446,
"name": "Hydrating Face Toner",
"sku": "SKU-12345679",
"barcode": "2097678335588",
"deleted": false
},
"quantity": 2
}
]
}