Generate acmt XML from records
generate_messageGenerate validated ISO 20022 acmt XML from in-memory account records and a supported message type. Returns validated XML document as a string, no file written.
Instructions
Generate a validated ISO 20022 acmt XML message from in-memory records.
This is the primary generation tool: pass account records you already
hold in memory and receive an XSD-validated XML document; no file is
written. Run ``validate_records`` first to surface record-level errors,
and ``list_message_types`` to confirm the ``message_type`` string.
Returns the validated XML document as a string, or an ``{"error": ...}``
payload (serialized) if generation fails.
Args:
message_type: A supported ISO 20022 acmt message type.
records: One or more flat account records.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| records | Yes | One or more flat account records, each a dict of field name -> value, from which the acmt XML is generated; run validate_records first to surface record-level errors. | |
| message_type | Yes | A supported ISO 20022 acmt message type, e.g. 'acmt.001.001.08' Account Opening Instruction -- call list_message_types for the exact accepted strings. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |