Help
/
nlfren
Sign in
HomeGetting startedDocumentsBankInvoicesVATFor accountantsSecurityDevelopers

Developers

Developer overviewAuthenticationThe am CLIConnect an agent over MCPErrors and rate limits

Activity

Export an entity's activityAn entity's activityA firm's activityAn organisation's activity

Artifacts

Finalize an uploadRead an artifactList artifactsPresign an uploadRead an artifact againMake a file's view again

Ask

Ask AmanucciDelete an Ask threadAsk threadsAsk thread

Assignments

Assign or unassign a firm personWho works this client

Bank

Allocate a park to an itemConfirm a matchThe bank rows' figuresBank statementsBank transactionsOne bank transactionReject a match

Bank accounts

Register a bank accountList bank accounts

Cases

Accept Amanucci's proposalAnswer a questionAnswer a grant askRecord a firm ruleRecord a precedentAsk the clientConfirm a caseCorrect a caseCorrect a document's kindCorrect an eventDeduct a receipt's VAT on evidenceDismiss a caseKeep one of two documentsCasesClient requestsCorrectionsA firm's rulesA client's notesPrecedentsMerge two parties through a caseOne caseRemind the clientAsk for a grantRe-run a case under reviewWrite a note

Controls

Control runsOne control run

Decisions

Decision runsOne decision run

Documents

Cancel a draftCompose a documentSet up a recurring planAdd an itemDownload a payment fileEnd a recurring planFinalize a documentOne documentA blank draft's templateThe head figures of a document listRead what a line may be composed withA supplier invoice's payment QRRead a recurring planDownload a renditionRead an itemKeep one of an invoice's filesPick the invoice a credit note correctsThe document listList recurring plansList itemsPause a recurring planPreview a document's sendDownload a document's preview PDFPreview a payment fileCorrect a numbered document's email addressRecord a quote's outcomeResume a recurring planRevise a draftSend a documentSupersede a finalized documentChange a recurring planChange an item

Events

The events' countsEventsAn event's related bookingsOne event

Filings

Generate a filingRead a filingDownload a filing's payloadThe filings' figuresFiling formsList filingsRecord that a planned external filing was madeRead a grid's linesRecord an external filingRecord a filing's proofReplace a filingSign a filing's submission

Grants

Grant or revoke a capabilityEngage a firmRead my firm's switchesWhich doors are openTake your books elsewhere

Intake

Add a mail senderBlock a held mailGet the books' mail addressGet an intake batchList the books' mailList the books' mail sendersList intake batchesRelease a held mailRemove a mail senderSet the books' mail address

Law

Release a pack lock

Ledger

Close a fiscal yearThe journal's countsThe fixed-asset registerThe journalLock a periodLock a period over argued red checksMark provisional entries reviewedPost an entryPost the opening balanceWithhold on a payment for worksBalancesOne entryReopen a period

Matching

Match groupsAgingOne match group

Migrations

Abandon a switch-in migrationA switch-in migrationA switched-in client's documentsA firm's switch-in migrationsResume a switch-in's stopped replaySign a switch-in migrationStage a switched-in client's documentsStage a switch-in dropSubmit a switched-in client's documentsSubmit a switch-in dropSet a switch-in's last filed period

Overview

The digestThe Overview

Parties

Register a partyRead a partyList partiesPropose a merge of two contactsSet a party's national numberEdit a party

People

Walk through the doorAppend a firm seat versionAppend an organisation seat versionOpen the firm's doorOpen the client's doorSave a presetDelete a presetThe one paint callWho has been invited to this firmWho works at this firmA firm's notesWho has been invited to this organisationWho is in this organisationA list's presetsRead an invite before accepting itOffboard a firm seatShut a pending doorSend feedbackChange a presetSet your profileWrite a firm note

Queue

Queue health

Reports

An entity's annual accountsA firm's portfolioAn entity's statements

Settings

Remap a semantic accountConfirm the activity profileElect the entity's configSet the entity's invoicingElect the entity's policyDecide what owners may sign, by defaultRecord the import licenceDecide what this organisation's owners may signElect the entity's VAT deduction method for a yearRegister a vehicleSet a vehicle's VAT use for a yearAdd a shelfOpen a set of booksCreate an organisationCut a periodThe activity profileThe KBO's proposed activity profileThe entity's configThe entity's invoicing settingsThe entity's policyWhat owners may sign, by defaultThe import licenceWhat owners of this organisation may signThe entity's VAT deduction method for a yearA vehicle of the registerA vehicle's VAT use for a yearThe semantic-to-shelf mapThe chartWhich books are in this organisationThe calendarLook up a contractor's debtsOne set of booksRecord a contractor's debt checkSet the entity's IBANSet the entity's identitySet the entity's VAT number

Step up

Ask for a codeProve you are here
Help·Developers

The journal

The journal: this entity's POSTED entries, each with its lines (account name and party), its event, evidence, period, poster and the entries it reverses, is reversed by or replaces. Unbounded by nature — a set of books grows forever — so it pages by cursor rather than taking a hard cap (rule 5), in the walk `order` names. Filters: `period` or `from`/`to` (inclusive), `journal`, `account` (a code any line touches), `q` (a bounded substring), and the review's (`review`, `flagged`, `cleared`, `party`); a filter never changes the order.

PreviousThe fixed-asset registerNextLock a period
GET
/v1/entities/{entityId}/journal-entries

The journal: this entity's POSTED entries, each with its lines (account name and party), its event, evidence, period, poster and the entries it reverses, is reversed by or replaces. Unbounded by nature — a set of books grows forever — so it pages by cursor rather than taking a hard cap (rule 5), in the walk order names. Filters: period or from/to (inclusive), journal, account (a code any line touches), q (a bounded substring), and the review's (review, flagged, cleared, party); a filter never changes the order.

Authorization

headerx-api-key<token>

A per-user API key. x-api-key takes precedence over every session cookie when both are sent. Omit this header to use a session, including for signed-act presence.

Path Parameters

entityId*string
Formatuuid

Query Parameters

account?string

An account CODE any line of the entry touches.

Length1 <= length
cleared?string

true: only provisional entries the machine cleared on checked evidence; false: only those it did not.

Value in"true""false"
cursor?string

An opaque position, taken verbatim from a previous response's nextCursor. Never construct one: its encoding is an implementation detail and may change within /v1 (rule 6 governs FIELDS, not the contents of an opaque token).

flagged?string

true: only provisional entries a review flag names.

Value in"true""false"
from?string

The first entryDate to list, inclusive (Europe/Brussels business day).

Formatdate
journal?string

The journal (day book) this entry is filed in. The wire's copy of journal_entry_journal_vocabulary; the CHECK is the enforcement.

Value in"purchases""sales""bank""misc""migration"
limit?integer

How many rows at most. The hard ceiling is 200; a larger value is refused with 422, never silently reduced.

Range1 <= value <= 200
Default200
order?string

The walk. id (the default): uuid v7 and therefore creation order, oldest first — the walk to export; entry_seq would be the wrong key twice over, since it restarts each year per journal and is assigned at posting rather than at proposal. day: newest entryDate first, then newest id. day.desc / day.asc: the entryDate, then the id, in the walk's direction. reference.asc / .desc: the reference as it reads, journal / year / sequence: the stored journal word (bank, migration, misc, purchases, sales, in that order; a client's own prefix for it is presentation), then the year of entryDate, then entrySeq, which restarts each year, then the id. review: the review order: more flags first (an unrecorded entry before any), the unconfirmed before the confirmed, then entryDate, entrySeq and the id; an entry that needs no review after every one that does. A cursor resumes only the walk that minted it: change the order and start at the first page.

Default"id"
Value in"id""day""day.desc""day.asc""reference.asc""reference.desc""review"
party?string

The event's counterparty.

Formatuuid
period?string

The days to list, resolved by the server against today in the books' own day (Europe/Brussels): 7d and 30d (the last 7 or 30 days, today included), month, last-month, quarter, last-quarter and year (the whole calendar unit holding today, or the one before it), a year 2026, a quarter 2026-q3, a month 2026-03, all (no bound), or a day range 2026-01-05..2026-02-10 (inclusive, its ends in order). Not with from or to.

q?string

A case-insensitive substring of the description, a line's account code or name, or a line's party name (1..100 characters).

Length1 <= length <= 100
review?string

Only provisional entries in this review state. It narrows and never orders: the list walks the order asked, id by default; the to-review list is review=open&order=review (changed before the contract freezes: review alone once walked the review order).

Value in"open""marked""reversed"
to?string

The last entryDate to list, inclusive.

Formatdate

Response Body

One page of the journal.

application/json
  1. response
  1. response
  2. …
items*array<>

Posted entries only — a posted=0 proposal is not the books, so it is never listed here. order=id (the default): OLDEST FIRST by id, the log. order=day: newest entryDate first.

nextCursor*|

Where to resume: send it back as ?cursor=. null means the walk is exhausted — stop, rather than requesting one more page to discover an empty one.

pendingWork*integer

The entity's fast-loop work items still queued or running: rows that may yet land on this list, for the whole entity and not narrowed by the filters. Re-read while it is above zero; an item that exhausts leaves the count.

Range0 <= value
Example Request
curl -X GET 'https://api.amanucci.com/v1/entities/497f6eca-6276-4993-bfeb-53cbbbba6f08/journal-entries'
Example Response
{
  "items": [
    {
      "decisionRunId": "16e93c93-bead-4093-9176-312db8f1d096",
      "description": "string",
      "entryDate": "2019-08-24",
      "entrySeq": 0,
      "event": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "kind": "purchase",
        "party": {
          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
          "name": "string"
        },
        "version": 0
      },
      "evidence": [
        {
          "artifactId": "706a3f1e-c357-4634-b1bf-20c221b5bb4e",
          "documentId": "4704590c-004e-410d-adf7-acb7ca0a7052",
          "filename": "string"
        }
      ],
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "journal": "purchases",
      "lines": [
        {
          "accountCode": "string",
          "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",
          "accountName": "string",
          "amount": "string",
          "amountEntity": "string",
          "currency": "string",
          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
          "lineNo": 0,
          "party": {
            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
            "name": "string"
          },
          "side": "D"
        }
      ],
      "liveCase": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "kind": "missing_coverage",
        "openedAt": "2019-08-24T14:15:22Z",
        "status": "open"
      },
      "period": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "label": "string",
        "status": "open"
      },
      "periodId": "7cc85576-6d6b-4609-a8e6-020187b27a09",
      "postedAt": "2019-08-24T14:15:22Z",
      "postedBy": "string",
      "poster": {
        "display": "string",
        "id": "string",
        "kind": "human"
      },
      "replaces": {
        "entryDate": "2019-08-24",
        "entrySeq": 0,
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "journal": "purchases"
      },
      "reversedBy": {
        "entryDate": "2019-08-24",
        "entrySeq": 0,
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "journal": "purchases"
      },
      "reverses": {
        "entryDate": "2019-08-24",
        "entrySeq": 0,
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "journal": "purchases"
      },
      "review": null,
      "steppedUpVerificationId": "5e7275ca-67bf-4a6e-b5a9-e5a0e1ee8061"
    }
  ],
  "nextCursor": "string",
  "pendingWork": 0
}