ReconSmiths Developers Your API keys

Reference

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

NameInRequiredWhat it is
codepathyes
fromquery
toquery

Answers

200Statement lines
404Unknown 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

NameInRequiredWhat it is
codepathyes
asOfquery

Answers

200Buckets

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

NameInRequiredWhat it is
codepathyes

Answers

200Open 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

NameInRequiredWhat it is
sincequery
limitquery

Answers

200Changes plus next_cursor

Example

curl -X GET 'https://api.reconsmith.com/v1/changes' \
  -H 'Authorization: Bearer $RECONSMITH_KEY'