# ISO 20022 pain.002 Customer Payment Status Report Parser
> Parse bank acknowledgment and error feedback messages from pain.002 XML into clean JSON.

- **Canonical URL:** https://stanzaapi.com/tools/iso20022-parser/messages/pain-002-payment-status-report
- **Governing Standard:** ISO 20022 XML Financial Schemas (ISO 20022 Universal Financial Industry Message Scheme)
- **Latency:** <2ms Edge
- **Privacy:** In-memory execution only (zero data stored or logged)

## Technical Overview & Governing Rules
The pain.002 message is returned by banks to corporate clients to report the acceptance, rejection, or processing status of a pain.001 batch.

## Specification Matrix
| XML Path | Description | Extracted JSON Field | Standard |
| --- | --- | --- | --- |
| OrgnlGrpInfAndSts/GrpSts | Group Status | groupStatus | ACCP / PART / RJCT |
| TxInfAndSts/StsRsnInf/Rsn/Cd | Transaction Reason Code | reasonCode | Error code string |

## Standard JSON Response Model
```json
{
  "messageType": "pain.002.001.10",
  "originalMessageId": "PAYROLL-20260830",
  "groupStatus": "ACCP"
}
```

## Frequently Asked Questions & Edge Cases
### Q: Does this identify partial batch failures?
**A:** Yes, PART (Partially Accepted) statuses will detail individual rejected payment lines with specific reason codes.
