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

# 001505

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

      <td class="table-content">
        The PayIn DebitedFunds can't be higher than the PreAuthorization remaining amount
      </td>
    </tr>

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

      <td class="table-content">
        The captured funds amount cannot be higher than the preauthorization remaining amount.
      </td>
    </tr>

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

      <td class="table-content">
        Preauthorization

        \


        Pay-in
      </td>
    </tr>
  </tbody>
</table>

#### Causes

This error occurs when the preauthorized pay-in amount is higher than the preauthorization remaining funds amount.

#### What to do

In such cases, the platform needs to debit the relevant amount, whether it is the initial preauthorized funds for a full capture or the remaining funds in cases of multiple partial captures.

#### Example

In the example below, a preauthorized pay-in was made with a debited funds Amount higher than the Preauthorization remaining funds Amount.

**`Failed pay-in response`**

```json Failed pay-in response
{
    "Id": "156684537",
    "Tag": "custom meta",
    "CreationDate": 1669115134,
    "ResultCode": "001505",
    "ResultMessage": "The PayIn DebitedFunds can't be higher than the PreAuthorization remaining amount",
    "AuthorId": "156671158",
    "CreditedUserId": "156671912",
    "DebitedFunds": {
        "Currency": "EUR",
        "Amount": 700
    },
    "CreditedFunds": {
        "Currency": "EUR",
        "Amount": 700
    },
    "Fees": {
        "Currency": "EUR",
        "Amount": 0
    },
    "Status": "FAILED",
    "ExecutionDate": null,
    "Type": "PAYIN",
    "Nature": "REGULAR",
    "CreditedWalletId": "156683554",
    "DebitedWalletId": null,
    "PaymentType": "PREAUTHORIZED",
    "ExecutionType": "DIRECT",
    "PreauthorizationId": "156679832"
}
```

**`Preauthorization object`**

```json Preauthorization object
{
    "Id": "156679832",
    "Tag": null,
    "CreationDate": 1669113387,
    "AuthorId": "156671158",
    "DebitedFunds": {
        "Currency": "EUR",
        "Amount": 1000
    },
    "RemainingFunds": {
        "Currency": "EUR",
        "Amount": 0
    },
    "AuthorizationDate": 1669113494,
    "Status": "SUCCEEDED",
    "PaymentStatus": "VALIDATED",
    "ExpirationDate": 1669675094,
    "PayInId": "156683388",
    "ResultCode": "000000",
    "ResultMessage": "Success",
    "SecureMode": "FORCE",
    "CardId": "156672588",
    "SecureModeReturnURL": "http://example.com?preAuthorizationId=156679832",
    "SecureModeRedirectURL": null,
    "SecureModeNeeded": true,
    "PaymentType": "CARD",
    "ExecutionType": "DIRECT",
    "StatementDescriptor": null,
    "Culture": "EN",
    "SecurityInfo": {
        "AVSResult": "NO_CHECK"
    },
    "MultiCapture": true,
    "BrowserInfo": {
        "AcceptHeader": "text/html, application/xhtml+xml, application/xml;q=0.9, /;q=0.8",
        "JavaEnabled": true,
        "Language": "FR-FR",
        "ColorDepth": 4,
        "ScreenHeight": 1800,
        "ScreenWidth": 400,
        "TimeZoneOffset": 60,
        "UserAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148",
        "JavascriptEnabled": true
    },
    "IpAddress": "80.236.38.245",
    "Billing": {
        "FirstName": "Payer",
        "LastName": "One",
        "Address": {
            "AddressLine1": "34 rue de Caulaincourt",
            "AddressLine2": null,
            "City": "Paris",
            "Region": "Île-de-France",
            "PostalCode": "75001",
            "Country": "FR"
        }
    },
    "Shipping": {
        "FirstName": "Payer",
        "LastName": "One",
        "Address": {
            "AddressLine1": "34 rue de Caulaincourt",
            "AddressLine2": null,
            "City": "Paris",
            "Region": "Île-de-France",
            "PostalCode": "75001",
            "Country": "FR"
        }
    },
    "Requested3DSVersion": null,
    "Applied3DSVersion": "V2_1"
}
```