Overview
The Accounting API lets your software submit the facts of a source document, follow the posting request until its entry exists, read the ledger and reverse an entry.
On this page
Accounting keeps the books of a company in double entry. A document from e‑Factura Gateway, the bank, the POS or an upload becomes an entry whose debit equals its credit, and the entry stays linked to the document it came from. The API gives your software the same records the Accounting window shows.
What you can do
- Submit the facts of a source document once, as a posting request.
- Follow the request until its entry exists, or read why nothing was posted.
- Read the journal entries of a month or of one account, with their lines.
- Reverse an entry with a linked reversal. A posted entry is never edited.
- Receive an event when a request is posted or rejected, when an entry is reversed and when a period is locked.
Facts in, entries out
Your software sends facts: the number and date of the document, the partner, the base and the VAT of each rate, the total. It never sends an account or an entry line. Accounting maps the facts into an entry under your mapping policy. Choosing another account, splitting an amount, approving an invoice and closing a month are done in Accounting and have no operation in the API.
Access
Client credentials, your base address and a test company are issued with your account. Accounts are opened by our team: ask for one through the contact form and we set it up with you.
Request an accountNext
- Quickstart: post a supplier invoice and read its entry.
- Authentication: the token and the headers.
- Operational facts and postings: what a request carries and the states it goes through.