Create a token to store payment details

post/storedPaymentMethods

Creates a token to store the shopper's payment details. This token can be used for the shopper's future payments.

Endpoint destination URL
https://checkout-test.adyen.com/v52/storedPaymentMethods
Click to copy

Header Parameters

Idempotency-Keystring

A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).

Request Parameters

merchantAccountstringRequired

The merchant account identifier, with which you want to process the transaction.

paymentMethodobjectRequired

Contains the information required to store a payment method.

shopperEmailstring

The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks.

shopperIPstring

The IP address of a shopper.

shopperReferencestringRequired

A unique identifier for the shopper (for example, user ID or account ID).

storingMethodobject

Only for the Token Connect feature. Contains the information required to store a payment method.

Response parameters

After submitting a call, you receive a response message to inform you that your request was received and processed.

Depending on the HTTP status code of the response message, it is helpful to build some logic to handle any errors that a request or the system may return.

HTTP Responses

  • 201 - Created

    The request has been fulfilled and has resulted in one or more new resources being created.

    Show moreShow less