normalize_pain001
Convert parsed pain.001 credit transfers into canonical expected records, mapping varied payment fields to uniform id, amount, and reference for reconciliation.
Instructions
Convert parsed pain.001 payment instructions into canonical expected records.
Purpose: Adapts parsed ISO 20022 pain.001 credit transfer documents or transaction lists into canonical expected records ready for the reconcile engine.
When to use:
When ingesting parsed pain.001 files before calling reconcile.
When mapping diverse payment field structures into uniform id, amount, and reference fields.
When NOT to use:
Do NOT use for bank statement entries (camt.053); use normalize_camt053 instead.
Do NOT pass raw unparsed XML text; parse or deserialize to a dictionary or list first.
Behavioral transparency: Pure, deterministic, read-only data normalization.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | Yes | Parsed pain.001 document or transaction list. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||