group_by value, with a subtotal for each group and a total for each currency. Refund receipts and credit notes show negative amounts. Matches /owner/reports/report/clients_sales.400 instead of a partial list, and validation_errors includes a rows entry.curl --location --globoff 'https://.daftara.com/api2/reports/clients_sales?client_id=&from_date=2026-01-01&to_date=2026-03-31&client_category=&type=&source_channel=&branch_id=&show_transaction_branch=&group_by=&order_by=¤cy=' \
--header 'Accept: application/json' \
--header 'apikey: ' \
--header 'Content-Type: application/json'{
"result": "successful",
"code": 200,
"data": {
"report": {
"key": "clients_sales",
"title": "string",
"group_by": "string",
"currency": "string"
},
"filters": {
"property1": "string",
"property2": "string"
},
"columns": [
{
"key": "string",
"label": "string"
}
],
"blocks": [
{
"currency": "string",
"groups": [
{
"name": "string",
"documents": [
{
"id": 0,
"date": "2019-08-24",
"type": 0,
"type_label": "string",
"no": "string",
"name": "string",
"source_channel": "string",
"source_channel_label": "string",
"branch": "string",
"currency": "string",
"shipping_fees": 0,
"subtotal": 0,
"discount": 0,
"taxes": 0,
"total": 0
}
],
"subtotals": {
"shipping_fees": 0,
"subtotal": 0,
"discount": 0,
"taxes": 0,
"total": 0
}
}
],
"totals": {
"subtotal": 0,
"discount": 0,
"taxes": 0,
"total": 0
}
}
],
"meta": {
"currency_count": 0,
"document_count": 0
}
}
}