> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.mangopay.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.mangopay.com/_mcp/server.

# 001830

<table>
  <tbody>
    <tr>
      <th class="header">
        Error message
      </th>

      <td class="table-content">
        There are insufficient funds in the bank account
      </td>
    </tr>

    <tr>
      <th class="header">
        Description
      </th>

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

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

      <td class="table-content">
        Mandate

        \


        Direct debit
      </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:

**`API Response`**

```json API Response
{
    "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"
}
```