Reading the books
Statements, ageing, open items and the change feed.
This page as plain text: reading.md
GET/v1/accounts/{code}/statement
Statement with settlement trace
Each payment line carries settlement_trace: which invoices it settled, for how much, and the branch number for chain customers.
Parameters
| Name | In | Required | What it is |
|---|---|---|---|
code | path | yes | |
from | query | ||
to | query |
Answers
200 | Statement lines |
404 | Unknown account |
Example
curl -X GET 'https://api.reconsmith.com/v1/accounts/CODE/statement' \
-H 'Authorization: Bearer $RECONSMITH_KEY'
GET/v1/accounts/{code}/aged
Aged analysis
Ages off due_date, which honours the billing party's terms basis. Statement-terms customers age as one block.
Parameters
| Name | In | Required | What it is |
|---|---|---|---|
code | path | yes | |
asOf | query |
Answers
200 | Buckets |
Example
curl -X GET 'https://api.reconsmith.com/v1/accounts/CODE/aged' \
-H 'Authorization: Bearer $RECONSMITH_KEY'
GET/v1/accounts/{code}/open-items
Unsettled documents
Parameters
| Name | In | Required | What it is |
|---|---|---|---|
code | path | yes |
Answers
200 | Open items |
Example
curl -X GET 'https://api.reconsmith.com/v1/accounts/CODE/open-items' \
-H 'Authorization: Bearer $RECONSMITH_KEY'
GET/v1/changes
Change feed
Everything that moved since a cursor. One call instead of polling six endpoints. Cursor-paged, because offsets shift under concurrent writes and a syncing client silently skips rows.
Parameters
| Name | In | Required | What it is |
|---|---|---|---|
since | query | ||
limit | query |
Answers
200 | Changes plus next_cursor |
Example
curl -X GET 'https://api.reconsmith.com/v1/changes' \
-H 'Authorization: Bearer $RECONSMITH_KEY'