Secure Payments API – GET Credit Card


Getting credit card info is one of the credit card options available through the Secure Payments (formerly PCI Wallet) API.

How To

To get an existing credit card details you have to have the credit card token given to you when you created the credit card as a payment method. Send a GET request to the endpoint:


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

Here's a sample cURL request:

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.

To test it out in our demo API tenant, visit our ReadMe page: Get Credit Card

How did we do?

Powered by HelpDocs (opens in a new tab)