Secure Payments API – GET Credit Card


You can pull credit card information via the Secure Payments API. However, information such as credit card number will be encrypted. And to ensure security, you can only pull credit card information if you have the token provided when the payment profile was created.

In this article, we'll explain how to pull credit card information.

How To

To get an existing credit card's details, you will need to have the credit card token provided to you when you created the credit card as a payment method. Once you have the token, send a GET request to the following endpoint:


Just replace {token} with the unique Secure Payments token for that card.

Here's a sample of the request in a cURL format:

curl -X GET --header 'Accept: application/json' --header 'secret: your-secret' --header 'authorization: your-token' ''

The response will include the address, bank, and other information for the card. The card number itself will be redacted, only showing the last four digits. Here's a sample response:

"card_number": "XXXXXXXXXXXX1111",
"type": "VISA",
"address": "1234 Cool Street",
"city": "LAYTON",
"state": "UT",
"zipcode": "84041",
"country": "USA",
"card-data": {
"category": "",
"avs": "null",
"bank_phone": "1-800-432-3117",
"type": "CREDIT",
"brand": "VISA",
"card": "{\"pull\":{\"enabled\":false},\"push\":{\"enabled\":false}}",
"bin": "411111",
"issuer": "JPMORGAN CHASE BANK, N.A.",
"fees": "null",
"verify": null,
"bank_url": "",
"country": "United States"

A masked card number will be returned with only the last four digits visible.

How did we do?

Powered by HelpDocs (opens in a new tab)