Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Operational facts and postings

    The products that run the business submit facts; Accounting maps them into entries and decides when an entry is posted.

    On this page

    The books have one writer: Accounting. Other software never writes an entry line. It submits the facts of a source document, and Accounting maps them into an entry. A posted entry is immutable, and a correction is a linked reversal.

    Sources

    SourceDocuments`sourceDocumentType`
    e‑Factura GatewayInvoices you issue and invoices your suppliers send.customer_invoice, supplier_invoice
    POSA day of sales per shop, with cash and card payments.sales_day
    TreasuryLines of a bank statement.bank_line
    UploadA document that arrives as a file and is keyed in Accounting, such as the monthly depreciation.supplier_invoice, depreciation

    Facts

    facts is a list of small objects, each with a type: the document (number and date), the partner (name and VAT identifier), one amount per VAT rate (the base and its VAT), the total of an invoice and, for a day of sales, the payment made in cash and by card. Amounts are decimal strings. Facts carry no account.

    The mappingPolicyVersion names the policy that turns facts into lines: the account of each amount, VAT on its own account, the partner account for the total. The version of your account is ro-2026.1 in the examples. A request that names a policy your company does not have is refused.

    From request to entry

    The request has three statuses. Inside Accounting the document passes through more states before it is posted; the table shows how they read from the API.

    StatusMeaning
    accepted The request is in the books once and the document waits: to be reviewed, coded or approved, or to be posted.
    posted The entry exists. journalEntryId names it, and the debit of the entry equals its credit.
    rejected Nothing was posted, and rejection says why: the facts did not balance, or a person rejected the document and wrote a reason.
    In AccountingRequest status
    To reviewAccepted
    CodedAccepted
    Awaiting approvalAccepted
    PostedPosted
    RejectedRejected

    Approval

    A supplier invoice at or above a limit waits for a finance approver before it is posted. The limit is a rule of your company. In the examples it is 10000.00 RON. Until an approver approves, the request is accepted:

    JSON

    {
      "postingRequestId": "52330eaa-1840-49f8-895a-81219a047cf3",
      "status": "accepted",
      "sourceDocumentId": "ba5fba82-7611-4773-b950-793839664863",
      "sourceDocumentType": "supplier_invoice",
      "sourceRevision": 2,
      "effectiveDate": "2026-10-22",
      "mappingPolicyVersion": "ro-2026.1",
      "journalEntryId": null,
      "rejection": null,
      "aggregateRevision": 1
    }

    Accepted once

    A request is accepted once under its postingRequestId. The same request again answers the same. The same id with other content is a payload_conflict. A new revision of the document is a new request with a new postingRequestId. See Idempotency and concurrency.