Logo
Adyen APIs API Documentation

Store encrypted card details for subscription payments

POST {{baseUrl}}/storedPaymentMethods

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

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string
Idempotency-Key
null A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).




RESPONSES

status Created

{ "expiryMonth": "03", "expiryYear": "2030", "holderName": "John Smith", "id": "KHQC5N7G84BLNK43", "lastFour": "1111", "shopperReference": "YOUR_SHOPPER_REFERENCE", "type": "scheme" }



Curl
curl -X POST 'https://checkout-test.adyen.com/v71/storedPaymentMethods' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Idempotency-Key: ' -d '{"merchantAccount":"","shopperReference":"YOUR_SHOPPER_REFERENCE","paymentMethod":{"type":"scheme","number":"4111111111111111","expiryMonth":"03","expiryYear":"2030","cvc":"737","holderName":"John Smith"},"recurringProcessingModel":"Subscription","shopperEmail":"s.hopper@test.com","shopperIP":"192.0.2.1"}'

ENDPOINTS