/owner/reports/report/detailed_stock_transactions report.groups[], listed in the same order as the report (by currency, then by product).| Field | Description |
|---|---|
key | The product heading as text: <product name>#<product code or id>. Doesn't change with the account language. |
label | The heading shown in the report. null for deleted products, which appear without a heading. |
currency | The currency of the table the group belongs to. null for transactions with no currency, such as transfers and some adjustments. |
product_id | The product ID for all rows in the group. null when the rows belong to more than one product (deleted products). |
stock_level_before | The Stock Level Before line: {quantity, unit}. |
rows | The product's transactions, oldest first. |
subtotals | Always null. This report has no subtotals. |
totals is always null. This report has no totals line.| Key | Report column | Type |
|---|---|---|
transaction | Transaction (<date> (#<id>), in the account's date format) | text |
source | Source (<source name> (#<document number>)) | text |
warehouse | Warehouse | text |
quantity (+ quantity_unit) | Quantity, in the transaction's unit | quantity |
price | Price per Unit | amount |
stock_after (+ stock_after_unit) | Stock Level After, in the product's unit | quantity |
average_unit_cost | Average Unit Cost | amount |
total_transaction_value | Total Transaction Value (quantity × average unit cost) | amount |
total_transaction_price | Total Price (quantity × price) | amount |
stock_value_after | Stock Value After (stock level after × average unit cost) | amount |
id, date (stored date and time), product_id, source_type, order_id, order_no, warehouse_id, and currency_code (the transaction's currency).currency=All, price is converted to the account's main currency using the rate on each transaction's date, and all groups use the main currency. total_transaction_price is not converted.summary=1 parameter has no effect.400. Use a shorter date range or add filters.curl --location --globoff 'https://.daftara.com/api2/reports/detailed_stock_transactions?from_date=2025-07-01&to_date=2025-12-31&source_type=&product_id=&item_group_id=&warehouse_id=&brand_id=&category_id=¤cy=All' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'apikey: ' \
--header 'Content-Type: application/json'{
"result": "successful",
"code": 200,
"data": {
"report": {
"key": "detailed_stock_transactions",
"title": "string"
},
"filters": {
"from_date": "2019-08-24",
"to_date": "2019-08-24",
"brand_id": 0,
"currency": "string",
"source_type": [
0
],
"product_id": [
0
],
"item_group_id": [
0
],
"warehouse_id": [
0
],
"category_id": [
0
]
},
"columns": [
{
"key": "string",
"label": "string",
"type": "text"
}
],
"groups": [
{
"key": "string",
"label": "string",
"currency": "string",
"product_id": 0,
"stock_level_before": {
"quantity": 0,
"unit": "string"
},
"rows": [
{
"id": 0,
"date": "string",
"product_id": 0,
"source_type": 0,
"order_id": 0,
"order_no": "string",
"warehouse_id": 0,
"transaction": "string",
"source": "string",
"warehouse": "string",
"quantity": 0,
"quantity_unit": "string",
"price": 0,
"stock_after": 0,
"stock_after_unit": "string",
"average_unit_cost": 0,
"total_transaction_value": 0,
"total_transaction_price": 0,
"stock_value_after": 0,
"currency_code": "string"
}
],
"subtotals": null
}
],
"totals": null,
"meta": {
"currencies": [
"string"
],
"group_count": 0,
"row_count": 0
}
}
}