Turkish e-Invoice (UBL-TR) Parser
tr_invoice_parseTurns a UBL-TR e-Invoice or e-Archive XML document into clean JSON: parties, line items, taxes and totals.
Works regardless of the namespace prefix the sender used (cbc:, cac:, ns0:), normalises single-line documents into arrays, and reports amount mismatches in warnings instead of returning quietly wrong totals. The job that costs accounting and expense software the most engineering time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | UBL-TR e-Invoice / e-Archive (e-Arsiv) XML body. |