Daily Accounts API

Your Next.js accounting backend is running. Open README.md for the architecture guide and working request examples.

Authentication is required

Follow docs/AUTH.md or import the Postman collection to register and log in. Accounting requests need an approved session and X-Device-Key header.

Open admin review

Accounting endpoints

Balance = sales in the selected period + collections from sales before that period.

Cash = payments received at sale + subsequent collections received in the selected period.

Use an API client with Authorization and X-Device-Key headers; opening these links directly will return 401.