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

# 105202

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

      <td class="table-content">
        Card number: invalid format
      </td>
    </tr>

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

      <td class="table-content">
        The card number’s format provided for the card registration is invalid.
      </td>
    </tr>

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

      <td class="table-content">
        Card registration
      </td>
    </tr>
  </tbody>
</table>

#### Causes

This error may occur when the end user:

* Makes a mistake when entering their card number
* Tries to provide a card which does not correspond to the selected card type (and therefore the format doesn’t match)

#### What to do

In such cases, end users need to check their card information and retry.

#### Example

In the example below, the end user tried to register a card “Mastercard” (16 numbers) as an “AMEX” (15 numbers).

**`API Response`**

```json API Response
{
    "Id":"236699957",
    "Tag":null,
    "CreationDate":1650633567,
    "UserId":"999924896",
    "AccessKey":"1X0m87dmM2LiwFgxPLBJ",
    "PreregistrationData":"dtxlzFRSvUcdNkJimn-i_E9CO8GG2_UkinMagHuUUTmnXzGFUsakUMAhT2m7ywSD2ddFLVXdicolcUIkv_kKEA",
    "RegistrationData":"errorCode=02625",
    "CardId":null,
    "CardType":"AMEX",
    "CardRegistrationURL":"https://webpayment.payline.com/webpayment/getToken",
    "ResultCode":"105202",
    "ResultMessage":"Card number: invalid format",
    "Currency":"EUR",
    "Status":"ERROR"
}
```