LOCAL PARSER · ISO20022
pain.002 Payment Status Viewer
Summarize group, payment and transaction statuses plus rejection reason codes.
● Browser-only processing01 / SOURCE
02 / REPORT
Recent history
Method and formulas
Status elements are collected at group, batch and transaction level, preserving reason codes and original references.
Use test or appropriately protected data. Parsing is local, but data can still be visible on your screen and in browser memory.
Reason-code interpretation may be supplemented by bank-specific text.
GUIDE
What this tool does
The pain.002 Payment Status Viewer parses ISO 20022 customer payment status reports to extract group level, batch level and transaction level statuses along with associated reason codes and original end to end references. It is used when reconciling outgoing payment files against bank feedback to identify which transactions were accepted, rejected or partially processed. The viewer collects GrpSts values from OrgnlGrpInfAndSts, TxSts values from TxInfAndSts blocks and any StsRsnInf elements containing proprietary or external reason codes such as AC01 or MS03. This supports operational teams that must quickly determine the root cause of payment failures without loading data into core banking systems. Additional fields such as OrgnlMsgId, OrgnlPmtInfId and StsRsnInf/AddtlInf are surfaced to provide full traceability from the status report back to the original pain.001 instruction file.
Worked example with realistic numbers
Consider the supplied demonstration document containing MsgId STATUS-DEMO and OrgnlMsgId PAY-DEMO. The group status is reported as PART indicating partial execution. One transaction carries OrgnlEndToEndId E2E-DEMO-1 with TxSts RJCT and reason code AC01. The viewer renders these elements in a structured summary that shows the original reference, the transaction status and the mapped rejection reason. A results table lists the group status PART, the single transaction status RJCT, the reason code AC01 and the original end to end identifier. This layout allows immediate identification that one payment failed due to an incorrect account number while the remainder of the batch may have succeeded.
| Level | Element | Value | Reference |
|---|---|---|---|
| Group | GrpSts | PART | OrgnlGrpInfAndSts |
| Transaction | TxSts | RJCT | TxInfAndSts |
| Transaction | StsRsnInf/Rsn/Cd | AC01 | TxInfAndSts |
| Transaction | OrgnlEndToEndId | E2E-DEMO-1 | TxInfAndSts |
Second worked example
A second demonstration file uses MsgId STATUS-BATCH-02 and OrgnlMsgId PAY-BATCH-02. The group status is ACCP while two transactions show TxSts RJCT with reason codes BE01 and MS03 respectively. OrgnlEndToEndId values are E2E-BATCH-01 and E2E-BATCH-02. The viewer displays the group-level acceptance together with the two rejected transactions and their distinct reason codes, enabling the operator to separate address-format errors from unsupported-message errors without manual XML inspection.
| Level | Element | Value | Reference |
|---|---|---|---|
| Group | GrpSts | ACCP | OrgnlGrpInfAndSts |
| Transaction | TxSts | RJCT | TxInfAndSts |
| Transaction | StsRsnInf/Rsn/Cd | BE01 | TxInfAndSts |
| Transaction | OrgnlEndToEndId | E2E-BATCH-01 | TxInfAndSts |
Formula and method table
Status extraction follows a deterministic mapping of XML paths to output fields. The method collects every OrgnlGrpInfAndSts block for group status, every OrgnlPmtInfAndSts block for batch status when present and every TxInfAndSts block for individual transaction status. Reason codes are preserved verbatim together with any additional information text supplied by the bank.
| Input path | Level | Output field | Notes |
|---|---|---|---|
| OrgnlGrpInfAndSts/GrpSts | Group | GroupStatus | ACCP, PART, RJCT or PDNG |
| OrgnlPmtInfAndSts/PmtInfSts | Batch | BatchStatus | Optional when batching used |
| TxInfAndSts/TxSts | Transaction | TransactionStatus | RJCT most common for failures |
| TxInfAndSts/StsRsnInf/Rsn/Cd | Transaction | ReasonCode | External or proprietary code |
| TxInfAndSts/OrgnlEndToEndId | Transaction | OriginalReference | Links back to source file |
Units and conversions notes
Status values follow the ISO 20022 external code lists. Common group statuses include ACCP for accepted, PART for partial and RJCT for rejected. Transaction statuses mirror these values while reason codes such as AC01 indicate incorrect account number, MS03 indicate unsupported message or BE01 indicate unstructured address issues. No numeric unit conversion is required; codes are interpreted directly from the XML. When a bank supplies additional proprietary text inside StsRsnInf/AddtlInf the viewer displays both the code and the free text to avoid misinterpretation of generic codes.
| Code | Level | Meaning | Typical source |
|---|---|---|---|
| ACCP | Group/Batch | Accepted | OrgnlGrpInfAndSts |
| PART | Group | Partial execution | OrgnlGrpInfAndSts |
| RJCT | All | Rejected | Any status block |
| AC01 | Transaction | Incorrect account number | StsRsnInf/Rsn/Cd |
| BE01 | Transaction | Unstructured address | StsRsnInf/Rsn/Cd |
| MS03 | Transaction | Unsupported message | StsRsnInf/Rsn/Cd |
| PDNG | Group | Pending further processing | OrgnlGrpInfAndSts |
Limitations
Parsing occurs entirely inside the browser so the original XML never leaves the local session. However the content remains visible on screen and may persist in browser memory until the tab is closed. Reason code interpretation can be supplemented by bank specific text that is not standardised and therefore requires manual review. The tool does not validate schema compliance beyond basic element presence and does not decrypt any protected fields that may appear in production pain.002 files. Large reports containing thousands of transactions may exceed practical display limits inside a single browser window. The viewer cannot process encrypted or digitally signed pain.002 documents and offers no automated retry or resubmission capability. Historical status reports older than the current session are not retained after the browser tab is closed.
Common mistakes
Users frequently treat a PART group status as a complete failure and overlook the individual transaction statuses that may show most items accepted. Another error is ignoring the OrgnlEndToEndId when matching rejections back to the originating payment file, leading to incorrect reconciliation. Some operators assume every reason code is globally standardised and neglect to read any bank supplied additional information that clarifies local processing rules. The viewer should not be used with live production files containing sensitive account data because screen visibility and browser memory cannot be guaranteed to remain private in shared environments. Operators sometimes confuse batch-level PmtInfSts values with transaction-level TxSts values, producing inaccurate failure counts. Finally, users may overlook the distinction between external code lists and bank-proprietary codes, resulting in incorrect root-cause classification when AddtlInf text is present.
Frequently asked questions
What does a PART group status combined with a single RJCT transaction imply for batch reconciliation?
A PART group status signals that the bank processed only a subset of the original payment instructions. The viewer isolates the rejected transaction by its OrgnlEndToEndId so the remaining accepted items can be posted without manual review of the full file.
How does the viewer handle multiple StsRsnInf blocks within one TxInfAndSts element?
Each reason block is listed separately with its code and any additional information text. This preserves cases where a bank returns both an external code and a proprietary explanation for the same transaction.
Can the tool distinguish between OrgnlPmtInfAndSts batch status and individual TxInfAndSts statuses?
Yes. The method table maps PmtInfSts to batch level output while TxSts values are recorded at transaction level. Both levels are shown together when the pain.002 contains nested batch information.
What happens when a pain.002 contains only group level status without transaction details?
The viewer reports the group status and notes the absence of TxInfAndSts blocks. This occurs with certain bank implementations that return aggregated results only for very large files.
How are external reason codes such as AC01 validated against ISO 20022 code lists?
The viewer displays the code exactly as received and provides a static reference list of common external codes. No automatic lookup occurs because the report may contain bank specific extensions.
Does the presence of OrgnlEndToEndId guarantee unique matching back to the source pain.001?
The identifier is preserved verbatim but uniqueness depends on the originating system. Duplicate end to end identifiers within the same original message can produce ambiguous matches that require additional file context.
What limitation applies when a pain.002 reports status PDNG at group level?
PDNG indicates the bank has not yet completed processing. The viewer shows the pending status but cannot forecast final acceptance or rejection because no terminal TxSts values are present yet.
Why might reason code interpretation differ between two banks receiving identical pain.001 files?
Each bank may apply local validation rules and return different proprietary text inside AddtlInf even when the external code is the same. The viewer therefore displays both the code and any supplementary text supplied in the report.