跳到內容

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
}
]
}