---
title: "(Deprecated) Register a Card for Direct Payments (PCI-DSS compliant only)"
method: POST
path: "/v2/moneyins/card/register"
tags: ["MoneyIns | Cards"]
---

# (Deprecated) Register a Card for Direct Payments (PCI-DSS compliant only)

`POST /v2/moneyins/card/register`

## Request

- Base URL: `https://ws.lemonway.fr/mb/env-name/prod/directkitrest`
- URL: `https://ws.lemonway.fr/mb/env-name/prod/directkitrest/v2/moneyins/card/register`
- Auth: none declared. Required headers: `Authorization`, `PSU-IP-Address`

Register a card and associate it with a Payment Account. The end-user does not have to re-enter their card details for future payments.<br /><b>Important:</b> Ensure your website login is secured to avoid any security breach that may causes unauthorized access (for example, phishing). <br /><b>Note:</b> Lemonway does not recommend you use the MoneyIn method from January 2021. You should now use POST /moneyins/card/direct/3dini and PUT /moneyins/card/direct/{transactionid}/3dconfirm only.

## Headers

- `Authorization` string, required
- `PSU-Accept-Language` string
- `PSU-IP-Address` string, required
- `PSU-User-Agent` string

## Request body

- RegisterCardInput
  - `accountId` string, required: Payment Account ID
  - `card` CardInfo, required
    - `cardType` 0 | 1 | 2, required: Card Type<br/>0 = CB.<br/>1 = Visa.<br/>2 = Mastercard.<br/>
    - `cardNumber` string, required: Card Number
    - `cardCode` string, required: CVV Code
    - `cardDate` string, required: Card Expiration Date
  - `specialConfiguration` string: Leave Empty

## Response `200`

OK

- RegisterCardOutput
  - `card` Card
    - `id` integer
    - `is3DS` boolean: Card with 3-DS authentication
    - `country` string: Card issuing country
    - `authorizationNumber` string: Authorization number
    - `maskedNumber` string: Masked card number
    - `expiration` string: Expiration date (if available)
    - `type` string: Card type (example: Visa or Mastercard)
    - `isRegistered` boolean: Card is registered
    - `holderName` string: Card's holder name
  - `error` Error
    - `code` integer
    - `message` string
    - `psp` PSP
      - `message` string: Get the Error Message from PSP

## Other responses

- `401`: Unauthorized
- `500`: InternalServerError

---

[API](https://skmtc.dev/lemonway/apis/lemonway-directkit-api-2-0.md) - [All operations](https://skmtc.dev/lemonway/apis/lemonway-directkit-api-2-0/llms.txt) - [OpenAPI document](https://skmtc.dev/lemonway/apis/lemonway-directkit-api-2-0/revisions/82551a0a77b8?raw)
