/bff/branch/order-items
Returns one DataGrid page of shop__order_item rows whose branch_id resolves to the requested branch. Drives the "Order items" tab grid in apiUrl mode — accepts page, limit, orderBy, filterFulltextQuery and returns { items, itemCount } where itemCount is the count over the FILTERED set so the paginator math is correct. Use /order-items-summary for the header turnover / credit / total-item-count numbers.
Parameters
7 query
branchSlugstringRequiredBranch slug.
pagestring | numberPage number (1-based).
limitstring | numberItems per page.
orderBystringSort directive in field:direction form. Supported fields: activityDate, insertedDate, label, count, price, sale, creditAmount, order, customer.
filterFulltextQuerystringFree-text search across label, order number and customer fields.
filterMonthstringRestrict the result to a single calendar month, expressed as YYYY-MM. The cut-off uses the same date dimension as the revenue formula (event.start_time when present, otherwise i.inserted_date), so the filtered turnover matches the corresponding Finance-tab row to the cent. Malformed values are silently ignored.
filterHasCoststring | booleanWhen truthy (1, true), restrict the result to rows with a non-zero internal cost (shop__order_item.cost > 0). Same predicate that decides whether a row contributes to the Finance-tab "Variabilní náklady" total, so drilling from that column lands on exactly the rows summed.
Request
GET /bff/branch/order-items
curl -X GET "https://api.bizkithub.com/bff/branch/order-items?branchSlug=gymroom-plzen&orderBy=activityDate%3Adesc&filterFulltextQuery=example_filterFulltextQuery&filterMonth=2026-03&filterHasCost=1" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY"Response
JSON payload
{
"items": [
{
"id": "example_id",
"label": "example_label",
"count": 0,
"price": 0,
"sale": 0,
"unit": "example_unit",
"vat": 0,
"creditAmount": 0,
"isStorno": false,
"order": {
"orderNumber": "example_orderNumber",
"hash": "example_hash",
"statusCode": "example_statusCode"
},
"customer": {
"contactId": "example_contactId",
"firstName": "example_firstName",
"lastName": "example_lastName",
"companyName": "example_companyName"
}
}
],
"itemCount": 0
}All response codes
1 status code documented
Need an API key?
All BizKitHub API endpoints require authentication via API key.