Finax examples
Scenario 1: Create a new PDF in the default layout
const result = await app.businessFunction({
functionName: "Finax",
methodName: "CreateEInvoice",
format: "xrechnung", // or "zugferd"
cius: "PEPPOL BIS Billing 3.0", // optional, default is "XRechnung"
invoice: {/* invoice JSON */},
options: {
returnPdf: true, // PDF as Base64 in the result
returnXml: false // skip XML in the response
}
});
// e.g. push the PDF to a field or download component
app.setFieldValue("txtResult", result);Scenario 2: Reuse an existing PDF and add fresh XML
Scenario 3: Read an incoming e-invoice
Last updated