Mass Payment Failed

Mass payment completely fails even if one of the account detail seems to be Invalid. Is there any option to execute payment for other users in the group? Any suggestions @shreya Please take a look this query, thanks in advance.

Hi @Mohanraj – the masspayment request isn’t able to execute unless there are no errors with the syntax of the body. Say, if the amount supplied to one of the items is invalid with special characters, then the masspayment won’t be created until it is corrected. After the masspayment is created, any error with the resource, like removed funding-source, is caught when the masspayment is processed.

Hope that helps! Let me know if you have any questions!

1 Like

@shreya Thank you for the information, we have noticed that syntax error while implementing we have fixed that and our major concern is what if any single funding source id is invalid and what if the single customer account is not reachable? in this scenario mass payment will be created? Or it will partially executed.

Hi @Mohanraj – if any of the IDs are invalid, then the API will throw a Validation error with an embedded error that denotes what the error is. It will not create the masspayment partially. For example, here’s an error response when one of the destination funding-source IDs is invalid:

{
    "code": "ValidationError",
    "message": "Validation error(s) present. See embedded errors list for more details.",
    "_embedded": {
        "errors": [
            {
                "code": "Invalid",
                "message": "Invalid destination funding source.",
                "path": "/items/destination/href",
                "_links": {}
            }
        ]
    }
}

However, if you provide all correct IDs, but say a customer has been deactivated and cannot create transfers, then the masspayment resource will be created, but the individual item will fail.

1 Like

Catching these failed items is explained in this post - Mass Payments - Pay 5,000 People in Five Simple Steps

1 Like