Aide
/
nlfren
Se connecter
AccueilPour commencerDocumentsBanqueFacturesTVAComptablesSécuritéDéveloppeurs

Développeurs

Présentation pour les développeursAuthentificationLa CLI amConnecter un agent via MCPErreurs et limites

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
Aide·Développeurs

The document list

This entity's documents, PAGED BY CURSOR (rule 5) — the domain is unbounded, one invoice a day is four thousand rows before the first retention period is up. The walk is `order`: `id`, the default, oldest first by insertion order (`uuidv7` is monotonic, so a document appended mid-walk is met on a later page rather than skipped), what an exporter pages to exhaustion; every other walk is a view, a key and a direction (the business day, inbound received in Europe/Brussels and outbound issued; the due date, a contact's Open with `partyId` and `open=true`; the party; the total; a quote's last valid day), its cursor its own. `period`, or `from` / `to`, narrow it to the business days named, and `amountFrom` / `amountTo` to the totals between them. Each row carries its party, file, source, uploader, payment state and live case; `inFlight` carries the files still being read and those whose reading failed while their case is open.

PrécédentPick the invoice a credit note correctsSuivantList recurring plans
GET
/v1/entities/{entityId}/documents

This entity's documents, PAGED BY CURSOR (rule 5) — the domain is unbounded, one invoice a day is four thousand rows before the first retention period is up. The walk is order: id, the default, oldest first by insertion order (uuidv7 is monotonic, so a document appended mid-walk is met on a later page rather than skipped), what an exporter pages to exhaustion; every other walk is a view, a key and a direction (the business day, inbound received in Europe/Brussels and outbound issued; the due date, a contact's Open with partyId and open=true; the party; the total; a quote's last valid day), its cursor its own. period, or from / to, narrow it to the business days named, and amountFrom / amountTo to the totals between them. Each row carries its party, file, source, uploader, payment state and live case; inFlight carries the files still being read and those whose reading failed while their case is open.

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

amountFrom?string

Only the documents whose total (totals.taxInclusiveAmount) is at least this decimal, inclusive, in their own currency; a document with no total yet never matches. Not above amountTo, compared as decimals.

Match^-?\d{1,14}(\.\d{1,4})?$
amountTo?string

Only the documents whose total is at most this decimal, inclusive, in their own currency.

Match^-?\d{1,14}(\.\d{1,4})?$
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).

direction?string

Narrow the walk to one direction. The inbound side also carries inFlight — artifacts whose reading is still running, or failed with its case open, and that have no row yet.

Value in"inbound""outbound"
from?string

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

Formatdate
kind?string

Only the live documents of this kind, never a superseded one: a kind's list holds a revised quote's revision, not its original beside it.

Value in"quote""invoice""credit_note"
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
open?string

true: only the documents still open at the business day, both directions: an invoice or credit note whose document_open is above zero (net of its pair,; an inbound one a payable, an unposted bill at its projected total, (b)); never a superseded one. With kind=quote it is a 422, never an empty page. inFlight is then empty.

Value in"true""false"
order?string

The walk. id (the default): the log, oldest first by insertion order, stable under concurrent appends, what an exporter pages to exhaustion. day: newest business day first, then newest id. due (one walk with due.asc): oldest due date first, a row with none last, then the row's creation. Every other walk is a key and a direction, a view whose rows sharing the key come by the row's moment, else its creation, in the walk's direction, a row with no value for the key last both ways: day.desc / day.asc the business day (inbound: received; outbound: issued), two received the same day by the moment received; due.desc; party.asc / .desc the party's name; amount.asc / .desc the total, the entity's functional currency first and every other after it by code; valid.asc / .desc a quote's last valid day. A cursor resumes only the walk that minted it: change the order and start at the first page.

Default"id"
Value in"id""day""due""day.desc""day.asc""due.asc""due.desc""party.asc""party.desc""amount.asc""amount.desc""valid.asc""valid.desc"
overdue?string

true: only the invoices document_overdue_days finds late at the business day, whatever their status (; an inbound one past the due date its supplier printed while it still owes, (b)), never a superseded one: the Overdue view, whose rows the overdue head figure sums. With another kind it is a 422, never an empty page. inFlight is then empty.

Value in"true""false"
partyId?string

Only the documents naming this party, both directions. inFlight is then empty.

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 party's name, the document number or the file name (1..100 characters).

Length1 <= length <= 100
recurringPlanId?string

Only the invoices this recurring plan's runs made: a plan's Invoices. inFlight is then empty.

Formatuuid
source?string

How the source file entered (artifact.source), or created for the documents originated here (outbound).

Value in"peppol""codabox""upload""email_in""mobile""api""system""created"
status?array<>

Only the documents whose status is one of these, at the business day, never a superseded one (a view lists what its head figure sums): the server filters, so a cursor-paged view and its chips agree. Repeat the key for several. With kind, each must be one of that kind's own in the list's direction, or in either without one (a paid quote and an outbound to_pay invoice are a 422, never an empty page). An inbound row with no status (still being read, a duplicate's loser) never matches; inFlight is then empty.

Itemsitems <= 13
to?string

The last business day to include (inclusive, Europe/Brussels).

Formatdate

Response Body

One page of documents.

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

The 'received, reading…' cards: inbound artifacts with no document row yet whose extract item is queued or running, or exhausted with its operational_failure case live (failed). Not documents — no kind, no totals — so their own shape beside items. A BOUNDED side list (rule 5, 200) carried on every page; empty for an outbound-only walk.

items*array<||>
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/documents'
Example Response
{
  "inFlight": [
    {
      "artifactId": "706a3f1e-c357-4634-b1bf-20c221b5bb4e",
      "caseId": "af51d69f-996a-4891-a745-aadfcdec225a",
      "direction": "inbound",
      "filename": "string",
      "readingState": "processing",
      "receivedAt": "string",
      "source": "peppol",
      "uploadedBy": {
        "display": "string",
        "id": "string",
        "kind": "human"
      }
    }
  ],
  "items": [
    {
      "artifactId": "706a3f1e-c357-4634-b1bf-20c221b5bb4e",
      "currency": "string",
      "derivedFromId": "2cb5b4f3-5821-410f-9083-c613266656dd",
      "direction": "string",
      "docNo": "string",
      "finalized": true,
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "issueDate": "2019-08-24",
      "kind": "invoice",
      "partyId": "950a3d1f-4657-4e7b-87db-3ff5fa95b5c0",
      "paymentRef": "string",
      "readingState": "processing",
      "supersededBy": "608778cc-35f6-47d1-a540-9bcbfdf24101",
      "totals": {
        "lineExtensionAmount": "string",
        "taxAmount": "string",
        "taxInclusiveAmount": "string",
        "property1": null,
        "property2": null
      },
      "warnings": [
        "peppol_expected"
      ],
      "open": "string",
      "overdueDays": 0,
      "payability": "payable",
      "status": "draft",
      "eventId": "d6703cc8-9e79-415d-ac03-a4dc7f6ab43c",
      "liveCase": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "kind": "missing_coverage",
        "openedAt": "2019-08-24T14:15:22Z",
        "status": "open"
      },
      "derivedFromNo": "string",
      "dueDate": "2019-08-24",
      "filename": "string",
      "party": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "name": "string"
      },
      "paymentStatus": "unpaid",
      "receivedAt": "2019-08-24T14:15:22Z",
      "sentAt": "2019-08-24T14:15:22Z",
      "source": "peppol",
      "supplierNumber": "string",
      "uploadedBy": {
        "display": "string",
        "id": "string",
        "kind": "human"
      },
      "validUntil": "2019-08-24",
      "leftToCredit": "string"
    }
  ],
  "nextCursor": "string",
  "pendingWork": 0
}