Skip to content

GET /reports/mk/daily-commodity

ADDON > addon.reports

What it does

/reports/mk/daily-commodity accepts GET and is declared in app/addons/reports/api_routes.php:54 as a path.

The route handler delegates to daily_commodity_report(). That function is the owner of this behaviour; the route entry is only dispatch.

Who calls it

No literal caller path was found in frontend/, public/ or new-system/. The endpoint may be called through a constructed path, a helper wrapper, or only by an external client. Treat the route table and owner function as the authority.

Input

No named input key is visible in the handler or its owner function. The endpoint either takes no parameters or reads them through a shared helper in app/shared/api/.

Output

Key
KEY
NAME
TYPE

Success is { "data": …, "requestId": "…" }. Failure is { "error": { "code", "message" }, "requestId": "…" }.

Data

Tables reached from the owner function:

  • T_COMMODITY
  • T_LOAD
  • T_LOAD_ITEM

Access

  • module-gated on addon.reports, so tenant module access applies