> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mangopay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 001830

> <small>&#8249; [All error codes](/errors/codes#direct-debit)</small>

<table>
  <tbody>
    <tr>
      <th class="header"><strong>Error message</strong></th>
      <td class="table-content">There are insufficient funds in the bank account</td>
    </tr>

    <tr>
      <th class="header"><strong>Description</strong></th>
      <td class="table-content">The pay-in failed due to insufficient funds in the bank account.</td>
    </tr>

    <tr>
      <th class="header"><strong>Categories</strong></th>

      <td class="table-content">
        <div class="label">Mandate</div>\
        <div class="label">Direct debit</div>
      </td>
    </tr>
  </tbody>
</table>

#### Causes

This error occurs when the end user’s bank account doesn’t hold sufficient funds in order for the direct-debit to be processed.

#### What to do

In such cases, the platform needs to contact its customers and ask them to either:

* Add the necessary funds
* Use another payment method.

#### Testing

In order to trigger this error in your Sandbox, please follow the following steps:

* Create a user whose `FirstName` is “Penniless”
* Make sure to create a Bank Account and a Wallet for this user.
* Create the Mandate for this User and confirm it using the `RedirectURL`
* Make a Direct Debit PayIn using all the previous information.

The resulting pay-in fails with the `001830` result code returned:

```json API Response theme={null}
{
    "Id": "157399478",
    "CreationDate": 1669966558,
    "AuthorId": "157399076",
    "CreditedUserId": "157399076",
    "Status": "FAILED",
    "ExecutionDate": null,
    "ChargeDate": 1670371200,
    "Type": "PAYIN",
    "Nature": "REGULAR",
    "CreditedWalletId": "157399408",
    "DebitedWalletId": null,
    "CreditedFunds": {
        "Currency": "EUR",
        "Amount": 1188
    },
    "DebitedFunds": {
        "Currency": "EUR",
        "Amount": 1200
    },
    "Fees": {
        "Currency": "EUR",
        "Amount": 12
    },
    "ResultCode": "001830",
    "ResultMessage": "There are insufficient funds in the bank account",
    "PaymentType": "DIRECT_DEBIT",
    "ExecutionType": "DIRECT",
    "Tag": null,
    "MandateId": "157399114",
    "StatementDescriptor": "Nov2016"
}
```
