# Reading the books

## What changed

`GET /v1/changes?since=0` returns everything that moved since a cursor - documents, allocations, customers - in one feed, instead of polling a dozen endpoints.

1. Start with `since=0`.
2. Process the `changes`.
3. Store `next_cursor` and pass it as `since` next time.
4. When `has_more` is false you are up to date.

Up to 1 000 per call (`limit`, default 500).

## A customer account

| You want | Call |
|---|---|
| The statement, with what each payment settled | `GET /v1/accounts/{code}/statement?from=&to=` |
| Ageing (current, 30, 60, 90+ days) | `GET /v1/accounts/{code}/aged?asOf=` |
| What is still open | `GET /v1/accounts/{code}/open-items` |

`{code}` is ReconSmiths' account code (for example `C-01210`). Ageing runs from each document's due date, so it follows the customer's terms.

## Reconciliation

The bank reconciliation is done in the office, but a system can help:

- `GET /v1/recon/queue` - bank lines waiting for review.
- `GET /v1/bank-transactions/{id}/suggestions` - the likely matches for one line, best first, with why each scored.
- `POST /v1/match-candidates/{id}/accept` or `/reject` - decide. Accepting writes the match and teaches the matcher; it moves money, so it needs the `money` scope.
