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

Edit a party

Edit a contact: one call with the `seq` read and every changed fact, appending one revision under the caller, and the party answered as `getParty` reads it. Identity is frozen: a VAT number already set never moves (422 `party_invalid`; a wrong one is a new party and a merge), and one another live contact holds is 422 `party_vat_taken`. The entity's own seller (`sellerPartyId`) takes contact facts only: its name, VAT and enterprise numbers, address and endpoint are the entity's, set through `setEntityIdentity` and `setEntityVatNumber`, and a patch moving one is 422 `party_seller_identity` with nothing written. A head that has moved is 409 `party_conflict` with nothing written, and so is a merged party (edit its winner); a patch the head already holds is duplicate-ok with no revision. Documents already sent keep the details they were sent with.

PrécédentSet a party's national numberSuivantWalk through the door
POST
/v1/entities/{entityId}/parties/{partyId}/revisions

Edit a contact: one call with the seq read and every changed fact, appending one revision under the caller, and the party answered as getParty reads it. Identity is frozen: a VAT number already set never moves (422 party_invalid; a wrong one is a new party and a merge), and one another live contact holds is 422 party_vat_taken. The entity's own seller (sellerPartyId) takes contact facts only: its name, VAT and enterprise numbers, address and endpoint are the entity's, set through setEntityIdentity and setEntityVatNumber, and a patch moving one is 422 party_seller_identity with nothing written. A head that has moved is 409 party_conflict with nothing written, and so is a merged party (edit its winner); a patch the head already holds is duplicate-ok with no revision. Documents already sent keep the details they were sent with.

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
partyId*string
Formatuuid

Request Body

application/json
  1. body
  1. body
  2. …
expectedSeq*integer

The seq the editor read. Another head is 409 party_conflict with nothing written; a patch the head already holds is duplicate-ok whatever seq it names, so a retry answers the row it made.

Range1 <= value
patch*

Every changed fact; an absent member keeps its value, a null clears it.

Response Body

The party as edited.

application/json
  1. response
  1. response
  2. …

A party as its panel reads it: its facts, where the entity and it stand as its listed row says, the verbs this caller may take on it now (edit while it is live and the caller may write), and the revision it is at.

address*|

The whole postal block or nothing (BR-08/BR-10): every member required, so a partial address is unrepresentable rather than a 422 hand-rolled in a handler.

contactName*string|null
emails*array<string>
endpoint*|

The electronic address as a PAIR (Peppol BIS R010/R020). A scheme without an id is not a half-known endpoint; it cannot be rendered.

entityId*string
Formatuuid
establishmentCountry*string|null
feeCategory*|
Value in"commission""fee"null
ibans*array<string>|null
id*string
Formatuuid
language*|
Value in"nl""fr""de""en"null
mergedIntoId*|

NULL while live. The winner's id once a human-confirmed merge tombstoned this row: it stops being listed and offered, while every document that named it still resolves here.

Formatuuid
name*string
nationalNumberSet*boolean

Whether a national number is on file. The number itself is on no read: it leaves the books only in the fiche 281.50 a person uploads (art. 314 §3 5° WIB 92).

paymentTermDays*integer|null
personKind*|
Value in"natural""legal"null
phone*|

E.164; shown in international format (+32 9 123 45 67).

profession*string|null
registry*|

The party's registry identity: set once, accepted only while the party has none (a wrong one is a new party and a merge).

seq*integer

The party's version: an edit sends it back as expectedSeq, and a head that has moved is a 409 with nothing written.

Range1 <= value
standing*|

A STRUCTURAL standing only: the trading role is document.direction, never a column here. supplier/customer die at this enum.

Value in"director""employee""authority""bank"null
vatNumber*|

The NORMALISED number — what the ladder compares.

vatStatus*|
Value in"registered""not_registered"null
currency*string

The entity's functional currency, the one openReceivable and openPayable are summed in.

Length3 <= length <= 3
lastDocumentAt*|

The business day of its latest live document either way, the day the Documents list shows it on (issued, or received in Europe/Brussels); null with none.

Formatdate
openPayable*string

What the entity still owes it: the residuals of its open supplier items, a received credit note's netted against its bills, a decimal string in the entity's functional currency.

openReceivable*string

What it still owes: document_open of its live invoices, each net of its credit notes, a decimal string in the entity's functional currency.

overdueDays*|

The most days any of its invoices, in any currency, is past due at the business day (document_overdue_days); null when none is late.

peppol*string

capable exactly where an endpoint pair is set; no registry is asked yet.

Value in"capable""unknown"
roles*array<>

Its trading roles, read from the documents as role reads them: buyer (named on an outbound document, or on none yet), supplier (named on an inbound one), or both. A merged party keeps the roles its documents give it.

sendsBy*string

The rail Review & send would try first for an invoice from this entity: peppol where the party has an endpoint and the entity a participant id, else email where it has an email, else none. A claim about the next send, never a registry check.

Value in"peppol""email""none"
acts*array<>

Exactly the verbs this caller may take on the record now; a caller who may read it but not change it gets [].

revision*

Who wrote the version the record is at, and when.

Example Request
curl -X POST 'https://api.amanucci.com/v1/entities/497f6eca-6276-4993-bfeb-53cbbbba6f08/parties/497f6eca-6276-4993-bfeb-53cbbbba6f08/revisions' \
  -H 'Content-Type: application/json' \
  -d '{
  "expectedSeq": 1,
  "patch": {}
}'
Example Response
{
  "address": {
    "city": "string",
    "country": "st",
    "postalZone": "string",
    "street": "string"
  },
  "contactName": "string",
  "emails": [
    "string"
  ],
  "endpoint": {
    "id": "string",
    "scheme": "string"
  },
  "entityId": "156e622c-6cdf-4c27-9bc9-2f2db69919f5",
  "establishmentCountry": "string",
  "feeCategory": "commission",
  "ibans": [
    "string"
  ],
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "language": "nl",
  "mergedIntoId": "12626477-5850-4591-8c86-e5f05fda55c2",
  "name": "string",
  "nationalNumberSet": true,
  "paymentTermDays": 0,
  "personKind": "natural",
  "phone": "string",
  "profession": "string",
  "registry": {
    "number": "string",
    "scheme": "kbo"
  },
  "seq": 1,
  "standing": "director",
  "vatNumber": "string",
  "vatStatus": "registered",
  "currency": "str",
  "lastDocumentAt": "2019-08-24",
  "openPayable": "string",
  "openReceivable": "string",
  "overdueDays": 0,
  "peppol": "capable",
  "roles": [
    "buyer"
  ],
  "sendsBy": "peppol",
  "acts": [
    "edit"
  ],
  "revision": {
    "actor": {
      "display": "string",
      "id": "string",
      "kind": "human"
    },
    "at": "2019-08-24T14:15:22Z",
    "seq": 1,
    "yours": true
  }
}