CheckoutRecurring

Get tokens for stored payment details

GET
/storedPaymentMethods

Lists the tokens for stored payment details for the shopper identified in the path, if there are any available. The token ID can be used with payment requests for the shopper's payment. A summary of the stored details is included.

Authorization

AuthorizationBasic <token>

In: header

Query Parameters

shopperReference?string

Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters.

Your reference must not include personally identifiable information (PII), for example name or email address.

merchantAccount?string

Your merchant account.

Response Body

application/json

curl -X GET "https://example.com/storedPaymentMethods"
{  "merchantAccount": "YOUR_MERCHANT_ACCOUNT",  "shopperReference": "YOUR_SHOPPER_REFERENCE",  "storedPaymentMethods": [    {      "brand": "visa",      "expiryMonth": "10",      "expiryYear": "30",      "holderName": "John Smith",      "id": "7219687191761347",      "issuerName": "ISSUER_NAME",      "lastFour": "1111",      "name": "VISA",      "shopperEmail": "john.smith@example.com",      "shopperReference": "YOUR_SHOPPER_REFERENCE",      "supportedRecurringProcessingModels": [        "CardOnFile",        "Subscription",        "UnscheduledCardOnFile"      ],      "type": "scheme"    }  ]}