{
    "abacusPaymentGroupPaymentAccounts": {
        "items": [
            {
                "account": {
                    "accountId": "123",
                    "accountName": "Test Account Name"
                },
                "currencyCode": "USD",
                "currentBalance": "400.00",
                "lastPayment": "500.00",
                "note": null,
                "paymentDifference": "-100.00",
                "paymentGroupPayment": {
                    "paymentGroupPaymentId": "11",
                    "paymentName": "Payment Group 11"
                },
                "paymentGroupPaymentAccountId": "5",
                "percentDifference": "-20.00",
                "priorPaymentGroupPayment": {
                    "paymentGroupPaymentId": "10",
                    "paymentName": "Unposted payment group"
                },
                "paymentStatus": "Failure",
                "paymentErrorCode": "Error",
                "balanceAfterTax": "265.24",
                "taxWithholding": null,
                "vatAmount": "55.55",
                "closingBalanceStatementPeriod": {
                    "statementPeriodId": "333",
                    "statementPeriodName": "Jan 2023"
                },
                "currentStatementPeriod": {
                    "statementPeriodId": "293",
                    "statementPeriodName": "May 2023"
                },
                "lastStatementPeriod": {
                    "statementPeriodId": "292",
                    "statementPeriodName": "April 2023"
                }
            },
            {
                "account": {
                    "accountId": "456",
                    "accountName": "Other Test Account Name"
                },
                "currencyCode": "CAD",
                "currentBalance": "499.00",
                "lastPayment": "450.00",
                "note": "Test Note",
                "paymentDifference": "49.00",
                "paymentGroupPayment": {
                    "paymentGroupPaymentId": "11",
                    "paymentName": "Payment Group 11"
                },
                "paymentGroupPaymentAccountId": "6",
                "percentDifference": "10.88",
                "priorPaymentGroupPayment": null,
                "paymentStatus": "Canceled",
                "paymentErrorCode": "Payment Rejected",
                "balanceAfterTax": "65.24",
                "taxWithholding": null,
                "vatAmount": "66.66",
                "closingBalanceStatementPeriod": {
                    "statementPeriodId": "334",
                    "statementPeriodName": "Feb 2023"
                },
                "currentStatementPeriod": {
                    "statementPeriodId": "25",
                    "statementPeriodName": "May 2022"
                },
                "lastStatementPeriod": {
                    "statementPeriodId": "292",
                    "statementPeriodName": "April 2023"
                }
            }
        ],
        "totalCount": 5
    }
}
