LedgerLou Docs is optimized for desktop.

Please open this page on a device with a wider screen.

Payables · Payment Runs

Export SEPA XML

Generates a SEPA pain.001.001.03 XML file for an approved payment run and transitions it to exported status. Returns the XML content and metadata. Once exported, the run cannot be cancelled — the XML may already be submitted to the bank.

export_payment_run
Authorization
Authorization string header required API key in the format ll_.... Pass as a Bearer token in the OAuth flow.
Scopes
kreditoren:write
Parameters
payment_run_id string (uuid) required UUID of the approved payment run to export
Response
200
Success
MCP export_payment_run
JSON
{
  "tool": "export_payment_run",
  "params": {
    "payment_run_id": "<string>"
  }
}
200 Response
JSON
{
  "id": "<string>",
  "status": "<string>",
  "sepa_xml": "<string>",
  "message_id": "<string>",
  "number_of_transactions": 1,
  "control_sum": 1
}