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

Set the entity's invoicing

Append the next version of the entity's policy with these invoicing settings, its other columns carried from the version it follows — the organisation's owner or a firm accountant holding `settings.policy` (a member or a staffer meets 403 `authority-required`). `expectedSeq` is the pinned-row idempotency key: the same settings again are duplicate-ok (200), a stale head is 409 `policy_conflict`. A new prefix for a kind that already has a finalized document this year is 409 `prefix_change_mid_series`: the same version from 1 January next year is accepted (the prefix rule). The database judges the block (422 `policy_invoicing_invalid`): a prefix of capital letters per kind, no two alike, terms in whole days, a reminder ladder in order, each email template's subject on one line and naming only its kind's placeholders (a credit note's no `{dueDate}`).

PrécédentElect the entity's configSuivantElect the entity's policy
POST
/v1/entities/{entityId}/policy/invoicing

Append the next version of the entity's policy with these invoicing settings, its other columns carried from the version it follows — the organisation's owner or a firm accountant holding settings.policy (a member or a staffer meets 403 authority-required). expectedSeq is the pinned-row idempotency key: the same settings again are duplicate-ok (200), a stale head is 409 policy_conflict. A new prefix for a kind that already has a finalized document this year is 409 prefix_change_mid_series: the same version from 1 January next year is accepted (the prefix rule). The database judges the block (422 policy_invoicing_invalid): a prefix of capital letters per kind, no two alike, terms in whole days, a reminder ladder in order, each email template's subject on one line and naming only its kind's placeholders (a credit note's no {dueDate}).

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

Request Body

application/json
  1. body
  1. body
  2. …
defaultLanguage*|

Every document's first language, the seller's legal one; a draft may change its own. null = the seat's, by the pack's postcode table (a fresh entity's, until it is set).

Value in"nl""fr""de""en"null
emails*

The email templates the owner edited, per kind and per language: plain text, {docNo}, {amount} and {customer} filled at the send, an invoice's {dueDate} and a quote's {validUntil} (placeholders). A kind and language it does not name follow the pack's text, one per kind (an invoice asks to be paid by its due date, a credit note asks for nothing, a quote names its last day); {} = every one the pack's. A new document copies its kind's in each of its languages.

paymentTermDays*integer

The days an invoice gives to pay, when its customer has no term of its own.

Range0 <= value <= 365
prefixes*

One series per kind, each under its prefix; no two kinds share one (entity_policy_invoicing_prefixes_distinct).

quoteValidDays*integer

The days a quote stays open to accept.

Range0 <= value <= 365
reminders*

The reminder ladder: levels 1, 2, … in order, each afterDays past the due date and later than the one before; sent by hand (manual) or by the daily run (auto).

termsText*|

The sentence printed beside the payment on every invoice, one line; null for none.

Length1 <= length <= 1000
effectiveFrom*string

The day the new version applies from: today, or 1 January of a later year for a prefix a kind already numbered under this year (prefix_change_mid_series otherwise).

Formatdate
expectedSeq*integer

The head seq the caller believes it is appending after; the server writes expectedSeq + 1.

Range0 <= value

Response Body

Duplicate-ok: this exact version was already appended.

application/json
  1. response
  1. response
  2. …
duplicate*boolean
invoicing*
Example Request
curl -X POST 'https://api.amanucci.com/v1/entities/497f6eca-6276-4993-bfeb-53cbbbba6f08/policy/invoicing' \
  -H 'Content-Type: application/json' \
  -d '{
  "defaultLanguage": "nl",
  "emails": {},
  "paymentTermDays": 0,
  "prefixes": {
    "creditNote": "string",
    "invoice": "string",
    "quote": "string"
  },
  "quoteValidDays": 0,
  "reminders": {
    "ladder": [
      {
        "afterDays": 0,
        "level": 1
      }
    ],
    "mode": "manual"
  },
  "termsText": "string",
  "effectiveFrom": "2019-08-24",
  "expectedSeq": 0
}'
Example Response
{
  "duplicate": true,
  "invoicing": {
    "defaultLanguage": "nl",
    "emails": {
      "creditNote": {
        "de": {
          "own": {
            "body": "string",
            "subject": "string"
          },
          "pack": {
            "body": "string",
            "subject": "string"
          }
        },
        "en": {
          "own": {
            "body": "string",
            "subject": "string"
          },
          "pack": {
            "body": "string",
            "subject": "string"
          }
        },
        "fr": {
          "own": {
            "body": "string",
            "subject": "string"
          },
          "pack": {
            "body": "string",
            "subject": "string"
          }
        },
        "nl": {
          "own": {
            "body": "string",
            "subject": "string"
          },
          "pack": {
            "body": "string",
            "subject": "string"
          }
        }
      },
      "invoice": {
        "de": {
          "own": {
            "body": "string",
            "subject": "string"
          },
          "pack": {
            "body": "string",
            "subject": "string"
          }
        },
        "en": {
          "own": {
            "body": "string",
            "subject": "string"
          },
          "pack": {
            "body": "string",
            "subject": "string"
          }
        },
        "fr": {
          "own": {
            "body": "string",
            "subject": "string"
          },
          "pack": {
            "body": "string",
            "subject": "string"
          }
        },
        "nl": {
          "own": {
            "body": "string",
            "subject": "string"
          },
          "pack": {
            "body": "string",
            "subject": "string"
          }
        }
      },
      "quote": {
        "de": {
          "own": {
            "body": "string",
            "subject": "string"
          },
          "pack": {
            "body": "string",
            "subject": "string"
          }
        },
        "en": {
          "own": {
            "body": "string",
            "subject": "string"
          },
          "pack": {
            "body": "string",
            "subject": "string"
          }
        },
        "fr": {
          "own": {
            "body": "string",
            "subject": "string"
          },
          "pack": {
            "body": "string",
            "subject": "string"
          }
        },
        "nl": {
          "own": {
            "body": "string",
            "subject": "string"
          },
          "pack": {
            "body": "string",
            "subject": "string"
          }
        }
      }
    },
    "paymentTermDays": 0,
    "prefixes": {
      "creditNote": "string",
      "invoice": "string",
      "quote": "string"
    },
    "quoteValidDays": 0,
    "reminders": {
      "ladder": [
        {
          "afterDays": 0,
          "level": 1
        }
      ],
      "mode": "manual"
    },
    "termsText": "string",
    "actor": "string",
    "effectiveFrom": "2019-08-24",
    "expectedSeq": 0,
    "languageFromSeat": true,
    "languages": [
      "nl"
    ],
    "next": {
      "creditNote": "string",
      "invoice": "string",
      "quote": "string"
    },
    "placeholders": {
      "creditNote": [
        "amount"
      ],
      "invoice": [
        "amount"
      ],
      "quote": [
        "amount"
      ]
    },
    "scheduled": {
      "effectiveFrom": "2019-08-24",
      "prefixes": {
        "creditNote": "string",
        "invoice": "string",
        "quote": "string"
      }
    }
  }
}