Monego

finalize_invoice

Finalize a draft invoice — IRREVERSIBLE. Validates the data against the target e-invoice format, generates the legally required artifact (XRechnung: standalone CII XML; ZUGFeRD/Factur-X: PDF/A-3 with embedded XML), stores it immutably (GoBD), and locks the invoice against further edits. The format defaults to the customer's preferredInvoiceFormat (tenant default: zugferdPdf); pass format explicitly to override for this invoice — 'xRechnungXml' requires the customer to have a valid Leitweg-ID (set via update_customer). Check eInvoiceIssues on get_invoice first to avoid validation errors. After success, fetch the document with get_invoice_document or email it with send_invoice. Response: { invoice { status:'finalized', format, hasDocument:true, ... } }. Errors: { error: { code: 'invalid_state' | 'validation_failed' (details[] lists each problem) | 'precondition_failed' | 'not_found' | 'bad_input' | 'subscription_required', ... } }.

Remote Account required revuo:monego

Remote (network-hosted) · Requires an account with the vendor · OAuth

Other tools also called finalize_invoice? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "invoiceId": {
      "description": "Id of the draft invoice to finalize.",
      "type": "string"
    },
    "format": {
      "description": "E-invoice format override: 'xRechnungXml' (German B2G, needs customer Leitweg-ID), 'zugferdPdf' (B2B default) or 'facturXPdf' (FR). Omit to use the customer's preference.",
      "type": [
        "string",
        "null"
      ],
      "default": null
    }
  },
  "required": [
    "invoiceId"
  ]
}
          

Provider

Monego →