pain001-mcp
v0.0.93ISO 20022 payment files for agents: generate, validate, and convert pain.001, pain.008, MT101.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_message_types List pain message types
List every supported ISO 20022 pain message type and its human name. Use this first, before any generation or validation call, to discover the exact ``message_type`` strings this server accepts. Returns message-type codes and display names only; use ``get_required_fields`` or ``get_input_schema`` to inspect fields or schemas. Returns a list of ``{"message_type": ..., "name": ...}`` dictionaries, one per supported message type (e.g. ``pain.001.001.09``).
get_required_fields Get required fields
List only the required input field names for a pain message type. Use this for a quick checklist of the mandatory columns before building records. When you need full type/format constraints (not just which fields are required), call ``get_input_schema`` instead. Args: message_type: A supported ISO 20022 pain message type.
| Parameter | Type | Description |
|---|---|---|
message_type * | string | A supported ISO 20022 pain message type. Must be exactly one of: 'pain.001.001.03', 'pain.001.001.04', 'pain.001.001.05', 'pain.001.001.06', 'pain.001.001.07', 'pain.001.001.08', 'pain.001.001.09', 'p… |
get_input_schema Get input JSON Schema
Return the full JSON Schema for a message type's flat input record. Use this to learn every field, its type, and its constraints before assembling records, or to drive a form/UI. For just the required-field names use ``get_required_fields``; to actually check records against this schema use ``validate_records``. Args: message_type: A supported ISO 20022 pain message type.
| Parameter | Type | Description |
|---|---|---|
message_type * | string | A supported ISO 20022 pain message type. Must be exactly one of: 'pain.001.001.03', 'pain.001.001.04', 'pain.001.001.05', 'pain.001.001.06', 'pain.001.001.07', 'pain.001.001.08', 'pain.001.001.09', 'p… |
validate_records Validate records against schema
Validate flat records the way the pain001 CLI and REST API do. Use this before ``generate_message``: it runs the core's validation ladder (pain001.validate), so a batch it accepts is one the CLI, the REST API and ``generate_message`` accept, and a batch it refuses is refused there too. The ladder checks the row contract (required fields, amounts, booleans, dates), every IBAN and BIC (unless ``identifier_checks`` is false), that the rows form one payment information block, then the message type's JSON Schema (for example an ISO 4217 currency). For payment-scheme…
| Parameter | Type | Description |
|---|---|---|
message_type * | string | A supported ISO 20022 pain message type. Must be exactly one of: 'pain.001.001.03', 'pain.001.001.04', 'pain.001.001.05', 'pain.001.001.06', 'pain.001.001.07', 'pain.001.001.08', 'pain.001.001.09', 'p… |
records * | array | One or more flat payment records to validate, each a dict of field name → value (see get_input_schema for the fields and get_required_fields for the mandatory ones). |
identifier_checks | boolean | Check every IBAN (mod-97) and BIC (ISO 9362) column, as the pain001 CLI and file loaders do (default true). Set false only for identifiers you have verified another way, the CLI's --no-identifier-chec… |
suggest_record_fix Suggest review-only record fixes
Suggest deterministic, review-only fixes to non-financial fields. Returns patches or a cannot_autofix reason. Never changes IBANs, BICs, accounts, amounts or currencies, even for whitespace. Review every candidate and validate the full record before generating a payment. Args: record: A flat payment record, left unchanged. validation_error: Finding with field (or path) and rule keys. message_type: Supported schema supplying trusted field bounds.
| Parameter | Type | Description |
|---|---|---|
record * | object | One flat payment record; never modified. |
validation_error * | object | Finding with field (or path) and rule keys. |
message_type | string | A supported ISO 20022 pain message type. Must be exactly one of: 'pain.001.001.03', 'pain.001.001.04', 'pain.001.001.05', 'pain.001.001.06', 'pain.001.001.07', 'pain.001.001.08', 'pain.001.001.09', 'p… |
validate_identifier Validate IBAN or BIC
Validate a single financial identifier (IBAN or BIC). Use this for a one-off identifier check with a clear pass/fail and reason. To validate identifiers embedded across a whole batch, prefer ``validate_records`` / ``validate_payment_scheme`` instead of calling this per field. Returns ``{"kind": str, "value": str, "valid": bool, "error": str}`` (the ``error`` key is present only when ``valid`` is ``False``). Args: kind: One of ``"iban"`` or ``"bic"`` (case-insensitive). value: The identifier value to check.
| Parameter | Type | Description |
|---|---|---|
kind * | string | Which identifier to validate: 'iban' or 'bic' (case-insensitive). Any other value returns an error. |
value * | string | The identifier string to check — an IBAN or BIC/SWIFT code matching the chosen kind. |
generate_message Generate pain XML from records
Generate a validated ISO 20022 pain XML message from in-memory records. This is the primary generation tool: pass records you already hold in memory. Use ``generate_message_from_file`` when the data lives in a CSV on disk, and ``generate_message_async`` for very large batches you want to run off the event loop. The result is XSD-validated before return; no file is written. Records are normalized before rendering: 'amount'/'currency' aliases, JSON booleans, and bare 'YYYY-MM-DD' dates are accepted, and nb_of_txs/ctrl_sum are computed from the records. On failur…
| Parameter | Type | Description |
|---|---|---|
message_type * | string | A supported ISO 20022 pain message type. Must be exactly one of: 'pain.001.001.03', 'pain.001.001.04', 'pain.001.001.05', 'pain.001.001.06', 'pain.001.001.07', 'pain.001.001.08', 'pain.001.001.09', 'p… |
records * | array | One or more flat payment records (dicts of field name → value). Key fields (see get_input_schema for the full contract): id, date (payment-initiation timestamp; 'YYYY-MM-DD' is accepted and rendered… |
identifier_checks | boolean | Check every IBAN (mod-97) and BIC (ISO 9362) column, as the pain001 CLI and file loaders do (default true). Set false only for identifiers you have verified another way, the CLI's --no-identifier-chec… |
list_supported_formats List supported input formats
List the on-disk data formats the pain001 loader can read. Use this to tell a user which file types they may supply to ``generate_message_from_file``. This lists *data-source* formats (CSV, SQLite, …); for the list of ISO 20022 *message* types call ``list_message_types`` instead. Returns a list of ``{"id", "name", "extension"}`` dictionaries covering CSV, SQLite, JSON, JSONL, and Parquet (the last requires the ``pain001[parquet]`` extra).
generate_message_async Generate pain XML (async, large batches)
Generate validated pain XML off the event loop, for large batches. Behaves exactly like ``generate_message`` but runs the synchronous renderer in a worker thread so an agent can interleave a long generation with other tool calls. Use ``generate_message`` for small or interactive batches; use this only when the record count is large enough that blocking would matter. Validates in a worker thread, then delegates to :func:`pain001.async_adapter.generate_xml_string_async`. Returns the validated XML, or the same JSON-encoded ``{"error", "issues"?}`` payload as…
| Parameter | Type | Description |
|---|---|---|
message_type * | string | A supported ISO 20022 pain message type. Must be exactly one of: 'pain.001.001.03', 'pain.001.001.04', 'pain.001.001.05', 'pain.001.001.06', 'pain.001.001.07', 'pain.001.001.08', 'pain.001.001.09', 'p… |
records * | array | Same record shape and ergonomics as generate_message; use this async variant only when the batch is large. One or more flat payment records (dicts of field name → value). Key fields (see get_input_s… |
identifier_checks | boolean | Check every IBAN (mod-97) and BIC (ISO 9362) column, as the pain001 CLI and file loaders do (default true). Set false only for identifiers you have verified another way, the CLI's --no-identifier-chec… |
generate_message_from_file Generate pain XML from a CSV file
Generate validated pain XML from a payment data file on the local disk. Use this when the records live in a file rather than in memory; if you already have them as dicts, call ``generate_message``. The file is read and validated by the core's own loader and validation ladder, exactly as ``pain001 generate`` reads it, so the same path-safety guards apply and the same files are refused; an issue's ``line`` is the file's line (a CSV header is line 1). Args: message_type: A supported ISO 20022 pain message type. data_file_path: Path to the payment data…
| Parameter | Type | Description |
|---|---|---|
data_file_path * | string | Local filesystem path, below the server's working directory, to a payment data file: CSV (one record per row, a header matching the template columns, see inspect_template), SQLite, JSON, JSONL or Parq… |
message_type * | string | A supported ISO 20022 pain message type. Must be exactly one of: 'pain.001.001.03', 'pain.001.001.04', 'pain.001.001.05', 'pain.001.001.06', 'pain.001.001.07', 'pain.001.001.08', 'pain.001.001.09', 'p… |
parse_camt053 Parse camt.053 statement file
Parse a camt.053 bank-statement XML file on disk into structured data. Use this to read a bank's account statement (the reply that confirms settlement) into a header + entry list. Reads ``xml_file_path`` from the local filesystem. For the payment-status reply (accepted/rejected per transaction) use ``parse_pain002`` instead; to validate a camt.053 string you already hold, this is not it — this tool needs a file path. Wraps :func:`pain001.parse_camt053_statement`. When ``xsd_file_path`` is provided, the document is first validated against that XSD; on a schem…
| Parameter | Type | Description |
|---|---|---|
xml_file_path * | string | Local filesystem path to the camt.053 bank-statement XML file to parse. |
xsd_file_path | Optional local path to a camt.053 XSD; when given, the document is validated against it before parsing. Omit to skip schema validation. |
parse_pain002 Parse pain.002 status report file
Parse a pain.002 payment-status report file on disk into structured data. Use this to read the bank's acknowledgement of a submitted pain.001 — the per-transaction accepted/rejected status and reason codes. Reads ``xml_file_path`` from the local filesystem. For the account statement that later confirms booked entries, use ``parse_camt053`` instead. Wraps :func:`pain001.parse_pain002_report`. When ``xsd_file_path`` is provided, the document is first validated against that XSD; on a schema or parse error the tool returns ``{"error": ...}`` rather than raising.…
| Parameter | Type | Description |
|---|---|---|
xml_file_path * | string | Local filesystem path to the pain.002 payment-status report XML file to parse. |
xsd_file_path | Optional local path to a pain.002 XSD; when given, the document is validated against it before parsing. Omit to skip schema validation. |
inspect_template Inspect CSV template columns
Return the CSV column headers the message type's bundled template uses. Use this to see the exact column order for hand-building a CSV before ``generate_message_from_file``. This returns column *names* from the bundled sample; for the typed JSON contract (types, required flags) use ``get_input_schema``. Mirrors the in-tree ``pain001.mcp.server.inspect_template`` tool so an agent can introspect the column layout before assembling rows. Args: message_type: A supported ISO 20022 pain message type. Returns: ``{"message_type": str, "columns": list…
| Parameter | Type | Description |
|---|---|---|
message_type * | string | A supported ISO 20022 pain message type. Must be exactly one of: 'pain.001.001.03', 'pain.001.001.04', 'pain.001.001.05', 'pain.001.001.06', 'pain.001.001.07', 'pain.001.001.08', 'pain.001.001.09', 'p… |
validate_payment_scheme Validate against scheme rulebook
Validate records against a payment-scheme rulebook (e.g. SEPA). Use this after ``validate_records`` to enforce scheme-specific business rules (SEPA field lengths, allowed characters, currency/BIC constraints) that JSON-Schema validation alone does not cover. ``validate_records`` checks structural shape; this checks rulebook compliance for one profile. Delegates to :func:`pain001.validate_scheme`. The ``profile`` parameter lists every profile the installed pain001 ships. Args: records: Payment records as a list of flat dicts. profile: The scheme pr…
| Parameter | Type | Description |
|---|---|---|
records * | array | Payment records as a list of flat dicts (field name → value) to check against the scheme rulebook. |
profile | The payment-scheme rulebook profile to enforce, or several joined by commas (e.g. 'sepa-sct,anti-duplicate'). One of 'ae-uaefts', 'anti-duplicate', 'cbpr-cross-border', 'ch-domestic', 'ch-sepa', 'de-a… |
list_scheme_profiles List scheme profiles
List every payment-scheme rulebook profile the core ships. Use this to choose the ``profile`` for ``validate_payment_scheme`` (or the ``scheme`` of ``simulate_payment_batch`` and ``stage_payment_batch``) before calling it. Each entry gives the profile name, a one-line description, the prefix of the rule ids a rail profile reports (null for the SEPA, cross-border, duplicate and purpose-mandate profiles), and the public documents it was built from. Everything comes from the installed pain001; nothing is restated here. Returns: ``{"count": int, "profi…
simulate_payment_batch Simulate payment batch
Simulate and pre-flight a payment batch before XML generation. Performs comprehensive pre-flight verification without generating XML or staging files: 1. Validates records against the message type's JSON Schema. 2. Validates records against an optional payment-scheme rulebook. 3. Computes control sums grouped by currency. 4. Calculates unique debtor and creditor account counts. 5. Detects intra-batch duplicate transactions (same debtor, creditor, amount, currency, and execution date). Returns a structured verdict with totals, sums by currency, duplicat…
| Parameter | Type | Description |
|---|---|---|
message_type * | string | A supported ISO 20022 pain message type. Must be exactly one of: 'pain.001.001.03', 'pain.001.001.04', 'pain.001.001.05', 'pain.001.001.06', 'pain.001.001.07', 'pain.001.001.08', 'pain.001.001.09', 'p… |
records * | array | One or more flat payment records to simulate and pre-flight before generating XML. One or more flat payment records (dicts of field name → value). Key fields (see get_input_schema for the full contr… |
scheme | Optional payment-scheme rulebook profile to enforce, or several joined by commas. One of 'ae-uaefts', 'anti-duplicate', 'cbpr-cross-border', 'ch-domestic', 'ch-sepa', 'de-axz', 'de-ccu', 'hk-fps', 'my… |
migrate_records Migrate records between versions
Migrate flat payment records between two pain.001 schema versions. Use this to upgrade/downgrade records when your bank requires a different pain.001 version than your source data uses (e.g. move ``.03`` rows to ``.09``); it reports which fields were renamed, derived, or dropped. This transforms records only — run ``validate_records`` afterwards, then ``generate_message`` to emit XML. Wraps :class:`pain001.migration.VersionMapper`. Returns the migrated rows plus a summary of which fields were renamed, derived, or dropped; ``{"error": ...}`` if either version…
| Parameter | Type | Description |
|---|---|---|
from_version * | string | Source pain.001 schema version the records currently use, e.g. 'pain.001.001.03' — see list_message_types. |
records * | array | Flat payment records in the from_version shape, each a dict of field name → value, to transform to to_version. |
to_version * | string | Target pain.001 schema version to migrate the records to, e.g. 'pain.001.001.09' — see list_message_types. |
validate_xml_against_schema Validate XML string against XSD
Validate a raw pain.001 / pain.008 XML string against its official XSD. Use this to check XML you already have as a string (e.g. received from another system) without touching the filesystem. To validate records *before* they become XML, use ``validate_records``; to parse a statement or status-report file, use ``parse_camt053`` / ``parse_pain002``. Wraps :func:`pain001.xml.validate_via_xsd.validate_xml_string_via_xsd`. Args: xml_content: The XML document as a string. message_type: A supported ISO 20022 pain message type. Returns: ``{"vali…
| Parameter | Type | Description |
|---|---|---|
message_type * | string | A supported ISO 20022 pain message type. Must be exactly one of: 'pain.001.001.03', 'pain.001.001.04', 'pain.001.001.05', 'pain.001.001.06', 'pain.001.001.07', 'pain.001.001.08', 'pain.001.001.09', 'p… |
xml_content * | string | The full pain.001 / pain.008 XML document as a string, validated against the message type's official XSD. |
sanitize_to_iso20022_charset Sanitise text to ISO 20022 charset
Sanitise one free-text field to a SWIFT / ISO 20022 character set. Use this on a single free-text value (name, remittance info) to transliterate accents and drop unsupported symbols before placing it in a record, and to see whether the value changed. Operates on one string; to check a whole batch's rulebook compliance use ``validate_payment_scheme``. Two character sets are supported via ``charset``: * ``"SWIFT_X"`` (default, backward-compatible) - the basic set used in most ISO 20022 / pain.001 fields. Delegates to :func:`pain001.sanitize_to_charset`.…
| Parameter | Type | Description |
|---|---|---|
value * | string | A single free-text field value (e.g. a name or remittance line) to transliterate to the ISO 20022 Latin character set. |
charset | string | Which SWIFT character set to sanitise against. 'SWIFT_X' (default) is the basic set permitted in most ISO 20022 / pain.001 fields: letters, digits, space and the punctuation / - ? : ( ) . , ' + . 'SWI… |
convert_mt101 Convert MT101 to pain.001 records
Convert a legacy SWIFT MT101 message into pain.001-ready records. Use this to bridge the Nov-2025+ SWIFT MT→MX migration: parse an MT101 (*Request for Transfer*) into the flat records the other tools consume — feed the result straight to ``validate_records`` / ``validate_payment_scheme`` and then ``generate_message`` to emit pain.001.001.09 XML. An MT101 can request many transfers (repeating sequence B), so this returns *one record per transaction*. Operates on the supplied text only; no file is read or written. Wraps :func:`pain001_loader_mt101.loader.par…
| Parameter | Type | Description |
|---|---|---|
mt101_text * | string | A legacy SWIFT MT101 (Request for Transfer) message as text — a bare ':tag:' field list or a raw '{4:...-}' block-4 envelope. An MT101 may carry several sequence-B transfers; each becomes its own re… |
list_corpus_files List example corpus files
List the example files pain001 ships: market scenarios and coverage sets. Use this to discover the ``scenario_id``, ``version``, and ``variant`` identifiers of the ready-made, validated ISO 20022 files ``pain001`` ships; ``get_corpus_file`` and ``get_corpus_provenance`` accept those identifiers. Market files are realistic payments per country and rail (``scenario_id`` like ``gb.chaps.property-purchase``); a ``variant`` names the bank overlay a file was built with. Coverage files exercise every element and choice branch of one message type and carry no scenario.…
| Parameter | Type | Description |
|---|---|---|
country | Two-letter country code to keep one market pack only, e.g. 'GB' or 'CH'. Ignored for coverage files. | |
kind | 'market' for the realistic per-country scenarios, 'coverage' for the schema coverage sets, or omit for both. | |
version | Keep only files of this message type, e.g. 'pain.001.001.09'. |
get_corpus_file Get example corpus file
Return the XML of one validated example file from the market corpus. Use this to show a model, a tester or a mapping exercise what a correct file for a given country and rail looks like in a given edition. The text is exactly what pain001 ships; it passed the XSD, the ISO MDR rules, the rail profile and the overlay when it was built. Delegates to :func:`pain001.corpus.get_file`. Args: scenario_id: The scenario. version: The message type. variant: The overlay id of a bank variant, else ``None``. Returns: ``{"scenario_id", "version"…
| Parameter | Type | Description |
|---|---|---|
scenario_id * | string | The market scenario, e.g. 'gb.chaps.property-purchase' (from list_corpus_files). |
version * | string | The message type, e.g. 'pain.001.001.09'. |
variant | An overlay id for the bank variant, e.g. 'gb.example.priority'; omit for the generic file. |
get_corpus_provenance Get example corpus provenance
Return the provenance sidecar of one example file. Use this to know how far to trust a file: the sources it was derived from, the confidence of the evidence (``verified``, ``derived`` or ``assumed``), the validation ladder result per rung, what the builder renamed or dropped to fit the edition, and the file's SHA-256. Delegates to :func:`pain001.corpus.provenance`. Args: scenario_id: The scenario. version: The message type. variant: The overlay id of a bank variant, else ``None``. Returns: The parsed sidecar as a dict, or ``{"erro…
| Parameter | Type | Description |
|---|---|---|
scenario_id * | string | The market scenario (from list_corpus_files). |
version * | string | The message type, e.g. 'pain.001.001.09'. |
variant | An overlay id for the bank variant; omit for the generic file. |
get_corpus_coverage Get schema coverage report
Return the schema coverage verdict of one message type's coverage set. Use this to check that the shipped coverage files reach every element path and choice branch of an edition's XSD before relying on them to smoke a parser or a mapping. Delegates to :func:`pain001.corpus.coverage_report`. Args: version: The message type. Returns: The ``coverage.json`` content (path and branch counts and percentages, completeness, missing and exempt lists), or ``{"error": ...}`` when the edition has no set or there is no corpus.
| Parameter | Type | Description |
|---|---|---|
version * | string | The message type, e.g. 'pain.001.001.13'. |
list_faces List faces
List the faces: the standards a pain.001 document can be projected into. Use this before ``project_face`` to pick a target and to learn which bindings it accepts. A binding is a value the payment message does not carry, such as the UK Open Banking ``ConsentId`` agreed with the bank; any key a face does not list is refused. Delegates to :func:`pain001.faces.list_supported_faces`. Returns: ``{"count", "faces": [{"name", "description", "bindings"}, ...]}``, or ``{"error": ...}`` when the installed pain001 has no faces.
project_face Project pain.001 into a face
Project a pain.001 document into another standard's JSON shape. Use this to turn a payment file into the request body a UK Open Banking or Berlin Group API expects, or into ISO 20022 element names, and to see exactly what the target cannot carry: the loss report lists every source element left out, by indexed path. A face never invents a value: when the target requires an element the document lacks, the answer is an ``{"error": ...}`` naming it. To check the document itself first, use ``validate_xml_against_schema``. Delegates to :func:`pain001.faces.project_f…
| Parameter | Type | Description |
|---|---|---|
face * | string | The target face: one of 'berlin_group', 'iso_2018', 'uk_open_banking'. |
xml_content * | string | The full pain.001 document as XML text (not a file path), at most 10 MiB. |
bindings | Values the message does not carry, keyed as list_faces names them (e.g. {'ConsentId': '...'} for uk_open_banking); used for this call only. | |
version | The pain.001 edition, e.g. 'pain.001.001.09'; omit to detect it from the document's namespace. |
check_payment_file Check an existing payment file
Check an existing pain.001 or pain.008 file, as ``pain001 check`` does. Use this on a payment file that already exists (one a bank returned, another system wrote, or an earlier run produced) to learn whether it is valid and why not. ``validate_records`` checks rows before generation; this checks the XML itself: its message type's XSD, the cross-element rules of the message definition, and the scheme profiles and Schematron preset asked for. Every rung runs, so all problems come back at once. Delegates to :func:`pain001.check.check_document`. Args:…
| Parameter | Type | Description |
|---|---|---|
xml_content * | string | The full pain.001 or pain.008 document as XML text (not a file path), at most 10 MiB. |
schematron | Optional Schematron rulebook preset: one of cbpr, cbpr+, cbpr-plus, epc-sepa, fednow, sepa, sepa-sct, swift. A path is not accepted. | |
scheme | Optional payment-scheme rulebook profile to enforce, or several joined by commas. One of 'ae-uaefts', 'anti-duplicate', 'cbpr-cross-border', 'ch-domestic', 'ch-sepa', 'de-axz', 'de-ccu', 'hk-fps', 'my… |
stage_payment_batch Stage payment batch for simulation and approval
Stage a payment batch for simulation and a confirmed commit. Creates an in-memory staged payment order with zero fund movement and a 1-hour expiration window. Computes: 1. Schema validation against the message type's JSON Schema. 2. Optional scheme compliance verification (SEPA, BACS, etc.). 3. Multi-currency control sums and fee estimation. 4. Multi-factor risk scoring (detecting duplicates, high transaction amounts, and generic remittance narratives). 5. In-memory XML compilation and SHA-256 fingerprinting. 6. A confirmation token that commit_payment_…
| Parameter | Type | Description |
|---|---|---|
message_type * | string | A supported ISO 20022 pain message type. Must be exactly one of: 'pain.001.001.03', 'pain.001.001.04', 'pain.001.001.05', 'pain.001.001.06', 'pain.001.001.07', 'pain.001.001.08', 'pain.001.001.09', 'p… |
records * | array | Flat payment records to stage (zero fund movement). One or more flat payment records (dicts of field name → value). Key fields (see get_input_schema for the full contract): id, date (payment-initiat… |
scheme | Optional payment-scheme rulebook profile to enforce, or several joined by commas. One of 'ae-uaefts', 'anti-duplicate', 'cbpr-cross-border', 'ch-domestic', 'ch-sepa', 'de-axz', 'de-ccu', 'hk-fps', 'my… |
simulate_clearing Simulate clearing network execution
Simulate settlement and clearing network execution for a staged batch. Evaluates network-specific rulebooks and clearing constraints: - EPC-SEPA: EUR currency mandate, SEPA-zone IBAN prefixes, SLEV charge bearer. - FedNow: USD instant gross settlement eligibility. - US-ACH: USD next-day clearing cycle routing. - SWIFT-MX: Cross-border correspondent banking BIC routing. - CHAPS: Same-day RTGS high-value GBP clearing. - BACS: Three-day GBP direct credit clearing. Args: stage_id: Staging identifier from stage_payment_batch. clearing_system: Cleari…
| Parameter | Type | Description |
|---|---|---|
stage_id * | string | The staging identifier returned by stage_payment_batch. |
clearing_system | string | Target clearing system simulation profile to evaluate settlement eligibility, cut-off windows, and routing constraints. |
commit_payment_batch Commit staged payment batch
Commit a staged payment batch with its confirmation token. Verifies the stage ID and validates the secondary confirmation token using constant-time cryptographic comparison (preventing timing attacks). Transitions the order status from 'staged' to 'committed'. Optionally writes a new ``.xml`` file inside the output directory (see ``_output.py``). The token guards against an accidental commit only. Args: stage_id: Staging identifier from stage_payment_batch. confirmation_token: Secondary secret confirmation token. output_file_path: Optional new…
| Parameter | Type | Description |
|---|---|---|
confirmation_token * | string | The confirmation token stage_payment_batch returned for this batch. |
stage_id * | string | The staging identifier returned by stage_payment_batch. |
output_file_path | Optional new .xml file inside the output directory (PAIN001_MCP_OUTPUT_DIR, else the working directory). |