allow_unit switches between two modes.allow_unit omitted or 0)total_cost subtotal. Use bundle to filter by bundle.allow_unit=1)bundle_N / units_N pairs. bundle_0 is required. Each row then also includes total_quantity_required (the quantity per unit × units_N), available_in_inventory, stock_requirements, and availability./owner/reports/report/bundle and /owner/reports/report/bundle?allow_unit=1. This report has no date range.total_cost is the cost of one unit of the bundle and isn't multiplied by units_N. Products that aren't part of any bundle are not listed.400 instead of a partial list.curl --location --globoff 'https://.daftara.com/api2/reports/bundle' \
--header 'Accept: application/json' \
--header 'apikey: ' \
--header 'Content-Type: application/json'{
"result": "successful",
"code": 200,
"data": {
"report": {
"key": "bundle",
"title": "string"
},
"filters": {
"allow_unit": true,
"bundle": [
0
],
"pairs": [
{
"index": 0,
"bundle": 0,
"units": 0
}
]
},
"columns": [
{
"key": "string",
"label": "string",
"type": "text"
}
],
"groups": [
{
"bundle": "string",
"total_cost": 0,
"rows": [
{
"bundle_id": 0,
"product_id": 0,
"code": "string",
"name": "string",
"unit": "string",
"required_quantity": 0,
"average_price": 0,
"total_cost": 0,
"total_quantity_required": 0,
"available_in_inventory": 0,
"stock_requirements": 0,
"availability": "available"
}
]
}
],
"meta": {
"allow_unit": true,
"currency": "string",
"group_count": 0,
"row_count": 0
}
}
}