Report on VAT by month
Admin and branch manager. Returns monthly rated turnover, VAT collected, and gross total. Rows are sorted newest month first, and a branch_id scopes the figures to one branch.
GET
/api/v1/reports/vatAuthorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Query parameters
from_datestringFirst day of the window, YYYY-MM-DD. Defaults to thirty days ago.
to_datestringLast day of the window, YYYY-MM-DD. Defaults to today.
branch_idstringScope the report to one branch. Empty reports every branch together.
Responses
200
The VAT report
from_datestringrequiredto_datestringrequiredrowsobject[]requiredShow propertiesHide properties
Array of
objectmonthstringrequiredtaxable_0stringrequiredtaxable_18stringrequiredtaxable_15stringrequiredvat_collectedstringrequiredgrand_totalstringrequired400
from_date or to_date is not a valid YYYY-MM-DD date, or from_date is after to_date
detailstringrequired401
Not authenticated
detailstringrequired403
Caller is not an admin, branch manager, or auditor
detailstringrequired