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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"xml": "<xml>"
},
"name": "tr_invoice_parse"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | UBL-TR e-Invoice / e-Archive (e-Arsiv) XML body. |