ReconSmiths Developers Your API keys

Documents, statements and sending

Issued documents

You wantCall
The tax invoice or credit note as a PDFGET /v1/documents/{externalRef}/pdf
The same document as dataGET /v1/documents/{externalRef}/content?format=json (or xml)
Which of your invoices are still openGET /v1/documents?externalRefs=a,b,c

There is one renderer, so the PDF you fetch is the one the office prints and e-mails: same layout, same numbers, the company's letterhead as it stood on the document's date. A draft has no PDF (409).

Customer statements

You wantCall
The statement as dataGET /v1/customers/{externalRef}/statement
The statement as a PDFGET /v1/customers/{externalRef}/statement/file
Send it now, by e-mailPOST /v1/customers/{externalRef}/statement/send
How this customer receives statementsGET / PUT /v1/customers/{externalRef}/statement-delivery
Which statement rule applies (monthly, weekly...)GET /v1/statement-rules, PUT /v1/customers/{externalRef}/statement-rule

Each payment line on a statement carries its settlement trace: which invoices it paid, and how much of each.

Who sends: ReconSmiths, or your system

A company chooses how its documents leave:

  1. GET /v1/outbox - what is waiting. Poll it.
  2. GET /v1/outbox/{id}/pdf - the attachment.
  3. POST /v1/outbox/{id}/collected - you have taken it.
  4. POST /v1/outbox/{id}/sent (or /failed with a reason) - what happened.

Report the outcome: "was this invoice sent, to whom and when" is a question the books must answer, whoever sent it.

This page as plain text: documents-statements-and-sending.md