ReconSmiths Developers Your API keys

Reference

Statements

Customer statements and how they are delivered.

This page as plain text: statements.md

GET/v1/customers/{externalRef}/statement

Customer statement as data

The customer's statement for a period: opening balance, every line, closing balance and ageing. A payment appears once for the full amount received, with the invoices it was applied to nested beneath it and any unused balance shown. The office screen, the PDF and the e-mailed statement are built from the same data, so they always agree.

Parameters

NameInRequiredWhat it is
externalRefpathyesYour own reference for the customer, as pushed to /v1/parties.
fromqueryFirst day of the period. Omit for the statement's default period.
toqueryLast day of the period. Omit for today.
sourceSystemqueryYour system's name, the same on every call (for example shop). Identifies your references.

Answers

200The statement
404Unknown customer
409No company is set on this key

Example

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

GET/v1/customers/{externalRef}/statement/file

Customer statement as a PDF

The same statement drawn as a PDF on the company letterhead, ready to show or attach. The file is named for the period's end date, e.g. "Statement 2026-11-30.pdf".

Parameters

NameInRequiredWhat it is
externalRefpathyesYour own reference for the customer, as pushed to /v1/parties.
fromqueryFirst day of the period. Omit for the statement's default period.
toqueryLast day of the period. Omit for today.
sourceSystemqueryYour system's name, the same on every call (for example shop). Identifies your references.

Answers

200application/pdf
404Unknown customer
409No company is set on this key
502The renderer is unreachable or refused
503No renderer is configured

Example

curl -X GET 'https://api.reconsmith.com/v1/customers/EXTERNALREF/statement/file' \
  -H 'Authorization: Bearer $RECONSMITH_KEY'

POST/v1/customers/{externalRef}/statement/send

E-mail a statement now

Queues the customer's statement for the period to be e-mailed. It is queued, not sent inside the request: the sender retries on failure, and the message shows in the outbox and in sent mail. Omit to_address to send to the customer's own e-mail address.

Parameters

NameInRequiredWhat it is
externalRefpathyesYour own reference for the customer, as pushed to /v1/parties.
sourceSystemqueryYour system's name, the same on every call (for example shop). Identifies your references.

Body

FieldTypeRequiredWhat it is
fromstring (date)
tostring (date)
to_addressstringSend here instead of the customer's own address.

Answers

200queued: the message id
403The key is read-only
404Unknown customer
409No company is set on this key
422Refused, e.g. no address to send to

Example

curl -X POST 'https://api.reconsmith.com/v1/customers/EXTERNALREF/statement/send' \
  -H 'Authorization: Bearer $RECONSMITH_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "from": "2026-12-01",
  "to": "2026-12-01",
  "to_address": "string"
}'

GET/v1/customers/{externalRef}/statement-delivery

The customer's automatic statement setting

Whether the customer receives statements automatically, how often, to which address, and when the next one goes. A customer who has never chosen is OFF.

Parameters

NameInRequiredWhat it is
externalRefpathyesYour own reference for the customer, as pushed to /v1/parties.
sourceSystemqueryYour system's name, the same on every call (for example shop). Identifies your references.

Answers

200The setting
404Unknown customer
409No company is set on this key

Example

curl -X GET 'https://api.reconsmith.com/v1/customers/EXTERNALREF/statement-delivery' \
  -H 'Authorization: Bearer $RECONSMITH_KEY'

PUT/v1/customers/{externalRef}/statement-delivery

Turn automatic statements on or off

Sets how the customer receives statements: OFF, MONTHLY or WEEKLY, on which day, to which address, and whether to send when nothing is owed. Lets a customer switch automatic statements on for themselves from your app. The choice is recorded with the source system that made it, so it can be told apart from one made in the office.

Parameters

NameInRequiredWhat it is
externalRefpathyesYour own reference for the customer, as pushed to /v1/parties.
sourceSystemqueryYour system's name, the same on every call (for example shop). Identifies your references.

Body

FieldTypeRequiredWhat it is
modestring: OFF, MONTHLY, WEEKLYyes
send_onintegerMonthly: day of the month, 31 = month-end. Weekly: 1 Monday to 7 Sunday.
to_addressstringOmit to leave it unchanged; an empty string clears it back to the customer's own address.
send_when_nilbooleanSend even when nothing is owed.

Answers

200mode, send_on, to_address, send_when_nil, next_send
403The key is read-only
404Unknown customer
409No company is set on this key
422Refused, e.g. an unknown mode or a day out of range

Example

curl -X PUT 'https://api.reconsmith.com/v1/customers/EXTERNALREF/statement-delivery' \
  -H 'Authorization: Bearer $RECONSMITH_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "mode": "OFF"
}'

PUT/v1/customers/{externalRef}/statement-rule

Put the customer on a statement rule

Puts the customer on one of the company's named statement schedules from GET /v1/statement-rules, exactly as ticking them onto it in the office does. rule_id null takes them off. The choice is recorded with the source system that made it.

Parameters

NameInRequiredWhat it is
externalRefpathyesYour own reference for the customer, as pushed to /v1/parties.
sourceSystemqueryYour system's name, the same on every call (for example shop). Identifies your references.

Body

FieldTypeRequiredWhat it is
rule_idstring or null (uuid)The rule's id; null takes the customer off any rule.

Answers

200The customer's statement setting after the change
403The key is read-only
404Unknown customer
409No company is set on this key
422Refused, e.g. an unknown rule

Example

curl -X PUT 'https://api.reconsmith.com/v1/customers/EXTERNALREF/statement-rule' \
  -H 'Authorization: Bearer $RECONSMITH_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "rule_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'

GET/v1/statement-rules

The company's statement rules

The named statement schedules the company has set up, for a customer to choose from. Put a customer on one with PUT /v1/customers/{externalRef}/statement-rule.

Answers

200rules
409No company is set on this key

Example

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