# Mass Payment Failed

**URL:** <https://discuss.dwolla.com/t/mass-payment-failed/8213>\
**Category:** General\
**Created:** [July 11, 2022, 9:40pm UTC](https://discuss.dwolla.com/t/mass-payment-failed/8213 "2022-07-11T21:40:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohanraj](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/mohanraj/32/3543_2.png) [@Mohanraj](https://discuss.dwolla.com/u/Mohanraj)\
**Post date:** [July 11, 2022, 9:40pm UTC](https://discuss.dwolla.com/t/mass-payment-failed/8213/1 "2022-07-11T21:40:12Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![shreya](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/shreya/32/2154_2.png) [@shreya](https://discuss.dwolla.com/u/shreya)\
**Post date:** [July 12, 2022, 4:43pm UTC](https://discuss.dwolla.com/t/mass-payment-failed/8213/2 "2022-07-12T16:43:07Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Mohanraj](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/mohanraj/32/3543_2.png) [@Mohanraj](https://discuss.dwolla.com/u/Mohanraj)\
**Post date:** [July 13, 2022, 5:32am UTC](https://discuss.dwolla.com/t/mass-payment-failed/8213/3 "2022-07-13T05:32:46Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![shreya](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/shreya/32/2154_2.png) [@shreya](https://discuss.dwolla.com/u/shreya)\
**Post date:** [July 13, 2022, 3:19pm UTC](https://discuss.dwolla.com/t/mass-payment-failed/8213/4 "2022-07-13T15:19:23Z")

</div>

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:

```auto
{
    "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.

---

<div class="post-metadata">

**Author:** ![shreya](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/shreya/32/2154_2.png) [@shreya](https://discuss.dwolla.com/u/shreya)\
**Post date:** [July 13, 2022, 3:20pm UTC](https://discuss.dwolla.com/t/mass-payment-failed/8213/5 "2022-07-13T15:20:07Z")

</div>

Catching these failed items is explained in this post - [Mass Payments - Pay 5,000 People in Five Simple Steps](https://discuss.dwolla.com/t/mass-payments-pay-5-000-people-in-five-simple-steps/5281#step-2-let-the-mass-payment-job-to-complete-4)
