Hulp
/
nlfren
Aanmelden
StartAan de slagDocumentenBankFacturenBtwVoor accountantsBeveiligingOntwikkelaars

Ontwikkelaars

Overzicht voor ontwikkelaarsAuthenticatieDe am-CLIEen agent koppelen via MCPFouten en limieten

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
Hulp·Ontwikkelaars

Queue health

The work queue's health for what your firm seat reaches: counts per kind × status, the oldest claimable item per kind, items stuck past their lease, recent exhaustions and the last schedule tick — all from durable rows on the database's clock, so an external probe can alert on a worker that died. An accountant seat with portfolio `all` at the platform firm reads every entity and the system rows; every other seat reads the entities its portfolio reaches under its firm. Firm seats only: anything else is the same 404 as a firm that does not exist. Read-only.

VorigeWrite a firm noteVolgendeAn entity's annual accounts
GET
/v1/firms/{firmId}/queue-health

The work queue's health for what your firm seat reaches: counts per kind × status, the oldest claimable item per kind, items stuck past their lease, recent exhaustions and the last schedule tick — all from durable rows on the database's clock, so an external probe can alert on a worker that died. An accountant seat with portfolio all at the platform firm reads every entity and the system rows; every other seat reads the entities its portfolio reaches under its firm. Firm seats only: anything else is the same 404 as a firm that does not exist. Read-only.

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

firmId*string
Formatuuid

Query Parameters

entityId?string

Narrow to one entity your seat reaches; one outside it answers the hidden 404.

Formatuuid
windowHours?integer

How far back recentExhaustions reaches, in hours (1..168, default 24).

Range1 <= value <= 168
Default24

Response Body

The queue's health in scope.

application/json
  1. response
  1. response
  2. …
asOf*string

The database's clock when the read ran — the same clock the claim and the schedule tick read, so asOf − lastTickAt is honest.

Formatdate-time
counts*array<>

Every (kind, status) pair present in scope with its row count, ordered by kind then status. Absent pairs are zero.

kinds*array<>

Per kind present in scope: how many items are claimable now (queued, due, not held by a Pause — the claim's own predicate) and the oldest one's due instant and age. null when nothing of the kind is claimable.

lastFinishedAt*|

The newest settlement (succeeded or exhausted) in scope. Work aging while this stands still means nothing is draining the queue.

Formatdate-time
lastTickAt*|

The newest schedule watermark in scope — the last due instant a tick produced. The daily sweeps keep it under 24 hours old while a worker lives; an external probe alerts past that.

Formatdate-time
platform*boolean

True for the platform arm (an accountant seat with portfolio all at the platform firm): every entity and the NULL-entity (system) rows are in scope.

recentExhaustions*

Items that exhausted inside the window, newest first; at most 100 listed, count is whole. Each has its own operational_failure case already.

schedules*array<>

The schedule rows in scope and their watermarks.

stuck*

Running items whose lease has ended (the next claim of their kind may reclaim them; one that stays here is stuck), oldest lease first; at most 100 listed, count is whole.

Example Request
curl -X GET 'https://api.amanucci.com/v1/firms/497f6eca-6276-4993-bfeb-53cbbbba6f08/queue-health'
Example Response
{  "asOf": "2019-08-24T14:15:22Z",  "counts": [    {      "count": 0,      "kind": "string",      "status": "queued"    }  ],  "kinds": [    {      "claimable": 0,      "kind": "string",      "oldestClaimableAgeSeconds": 0,      "oldestClaimableAt": "2019-08-24T14:15:22Z",      "oldestClaimableWorkItemId": "77701955-a214-4e4c-96e6-dd763301529a"    }  ],  "lastFinishedAt": "2019-08-24T14:15:22Z",  "lastTickAt": "2019-08-24T14:15:22Z",  "platform": true,  "recentExhaustions": {    "count": 0,    "items": [      {        "attempts": 0,        "entityId": "156e622c-6cdf-4c27-9bc9-2f2db69919f5",        "failureCause": "string",        "failureClass": "transient",        "finishedAt": "2019-08-24T14:15:22Z",        "kind": "string",        "lastError": "provider_unavailable",        "workItemId": "1769c5a2-ca6e-4792-8bf1-b1a261dc7481"      }    ],    "windowHours": 0  },  "schedules": [    {      "cron": "string",      "enabled": true,      "entityId": "156e622c-6cdf-4c27-9bc9-2f2db69919f5",      "kind": "string",      "lastTickAt": "2019-08-24T14:15:22Z",      "scheduleId": "b7b4f318-018f-4d71-ac1a-f61e4bfaefbe"    }  ],  "stuck": {    "count": 0,    "items": [      {        "attempts": 0,        "entityId": "156e622c-6cdf-4c27-9bc9-2f2db69919f5",        "kind": "string",        "leaseUntil": "2019-08-24T14:15:22Z",        "workItemId": "1769c5a2-ca6e-4792-8bf1-b1a261dc7481"      }    ]  }}
GET
/v1/firms/{firmId}/queue-health
Example Request
curl -X GET 'https://api.amanucci.com/v1/firms/497f6eca-6276-4993-bfeb-53cbbbba6f08/queue-health'
{
  "asOf": "2019-08-24T14:15:22Z",
  "counts": [
    {
      "count": 0,
      "kind": "string",
      "status": "queued"
    }
  ],
  "kinds": [
    {
      "claimable": 0,
      "kind": "string",
      "oldestClaimableAgeSeconds": 0,
      "oldestClaimableAt": "2019-08-24T14:15:22Z",
      "oldestClaimableWorkItemId": "77701955-a214-4e4c-96e6-dd763301529a"
    }
  ],
  "lastFinishedAt": "2019-08-24T14:15:22Z",
  "lastTickAt": "2019-08-24T14:15:22Z",
  "platform": true,
  "recentExhaustions": {
    "count": 0,
    "items": [
      {
        "attempts": 0,
        "entityId": "156e622c-6cdf-4c27-9bc9-2f2db69919f5",
        "failureCause": "string",
        "failureClass": "transient",
        "finishedAt": "2019-08-24T14:15:22Z",
        "kind": "string",
        "lastError": "provider_unavailable",
        "workItemId": "1769c5a2-ca6e-4792-8bf1-b1a261dc7481"
      }
    ],
    "windowHours": 0
  },
  "schedules": [
    {
      "cron": "string",
      "enabled": true,
      "entityId": "156e622c-6cdf-4c27-9bc9-2f2db69919f5",
      "kind": "string",
      "lastTickAt": "2019-08-24T14:15:22Z",
      "scheduleId": "b7b4f318-018f-4d71-ac1a-f61e4bfaefbe"
    }
  ],
  "stuck": {
    "count": 0,
    "items": [
      {
        "attempts": 0,
        "entityId": "156e622c-6cdf-4c27-9bc9-2f2db69919f5",
        "kind": "string",
        "leaseUntil": "2019-08-24T14:15:22Z",
        "workItemId": "1769c5a2-ca6e-4792-8bf1-b1a261dc7481"
      }
    ]
  }
}