---
title: "Add Adyen payment details [Legacy]"
method: POST
path: "/connectors/adyen/payment_details"
---

# Add Adyen payment details \[Legacy\]

`POST /connectors/adyen/payment_details`

## Request

- Base URL: `https://mediastoreapi-sandbox.cleeng.com`
- URL: `https://mediastoreapi-sandbox.cleeng.com/connectors/adyen/payment_details`
- Auth: API key in header `Authorization`

Use this method to add Adyen payment details, so that new payment details can be used for recurring payments.

Example use cases:  a customer updates a card or wants to switch payment method to a card. For more information, see the [docs](https://developers.cleeng.com/docs/payment-information#customer-payment-details).


<span style="color:red">**WARNING:**</span>
**This is a legacy endpoint. For new integrations, please use [/connectors/adyen/payment-details](https://developers.cleeng.com/reference/adyen-add-payment-details) (see [Adyen Payment Setup](doc:extended-adyen-payment-setup) for more information). For legacy integrations, please see the [migration guide](https://developers.cleeng.com/docs/extended-adyen-payment-setup#migration-guide).**

## Request body

- object
  - `paymentMethodId` integer, required: Publisher Adyen payment method ID
  - `card` object, required: Card object containing Adyen tokens. It is returned from Adyen component. [Here](https://developers.cleeng.com/docs/adyen-payment-setup#set-up-adyen-component) is an instruction how to render this component
    - `encryptedCardNumber` string, required
    - `encryptedExpiryMonth` string, required
    - `encryptedExpiryYear` string, required
    - `encryptedSecurityCode` string, required
    - `type` string, required
    - `holderName` string, required
  - `customerIP` string: The IP address of the end-user signing up for your service. Please note this IP address is also used to prevent fraud. (Make sure you send the end-user IP, and not those of any possible middleware)

## Response `200`

200

- object
  - `responseData` object
    - `id` integer
    - `paymentGateway` string
    - `paymentMethod` string
    - `paymentMethodSpecificParams` object
      - `variant` string
      - `lastCardFourDigits` string
      - `holderName` string
      - `cardExpirationDate` string
      - `socialSecurityNumber` string
    - `paymentMethodId` integer
    - `active` boolean
  - `errors` unknown[]
    - unknown

## Other responses

- `400`: 400
- `401`: 401
- `404`: 404
- `422`: 422

## Changes

- **2026-11-03** `b4b65aa4f14c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cleeng/apis/mediastore-api/changes/connectors/adyen/payment_details/post.md)

---

[API](https://skmtc.dev/cleeng/apis/mediastore-api.md) - [All operations](https://skmtc.dev/cleeng/apis/mediastore-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cleeng/apis/mediastore-api/revisions/b4b65aa4f14c?raw)
