Home › Flow Templates › Finance & E-Invoice
Finance & E-Invoice ✓ Zero Custom XPath Maintenance Setup: ~4 mins

Turkish GİB UBL-TR 2.1 & EU PEPPOL BIS 3.0 E-Invoice XML to ERP & HTML PDF

Decode complex namespace-heavy UBL-TR and PEPPOL XML invoices into structured supplier, tax/VAT, IBAN, and line-item JSON — plus an executive printable HTML preview for Teams finance approvals.

Why Makers Use This Blueprint: Parsing UBL 2.1 XML inside Power Automate requires dozens of brittle xpath() expressions across cac: and cbc: namespaces that break across vendor ERP dialects.
Download Blueprint (.JSON) Test Live in Automation Studio → Get Free Bearer Key (zl_...)

Cloud Flow Architecture (Trigger → Zetaleap → Destination)

STEP 01 • Outlook / SFTP

Receive Supplier .xml Invoice

Extract raw XML text or Base64 attachment from incoming AP mailbox.

STEP 02 • Zetaleap E-Invoice Engine

POST /api/automation/einvoice-xml

Extracts supplier VKN/VAT ID, invoice UUID, currency, tax subtotals, line items, and renders clean HTML.

STEP 03 • Teams & Dynamics / SAP

Approve & Post AP Voucher

Route high-value invoices for 1-click approval and book line items into ERP.

Power Automate HTTP Action Definition (POST /api/automation/einvoice-xml)
Replace zl_YOUR_API_KEY with your free Personal Access Token from /profile — or import the typed Custom Connector at /connectors.
{
  "type": "Http",
  "inputs": {
    "method": "POST",
    "uri": "https://zetaleap.com/api/automation/einvoice-xml",
    "headers": {
      "Authorization": "Bearer zl_YOUR_API_KEY",
      "Content-Type": "application/json"
    },
    "body": {
      "xml": "@{base64ToString(items('Apply_to_each')?['contentBytes'])}"
    }
  }
}
Returned Dynamic Output Tokens
invoiceIdissueDatesupplier.taxIdpayableAmountlines[]htmlPreview
← All 12 Flow Templates