Secure Payments API – GET Credit Card

General

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:

GET https://pciwallet.simnang.com/api/credit-card/{token}

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' 'https://pciwallet.simnang.com/api/credit-card/CiCVDqG5QNK%2BZhpBI3fNrwHkwiWdtqO5Nb1OQctzK3SzhRKnAQEBAwB4lQ6huUDSvmYaQSN3za8B5MIlnbajuTW9TkHLcyt0s4UAAAB%2BMHwGCSqGSIb3DQEHBqBvMG0CAQAwaAYJKoZIhvcNAQcBMB4GCWCGSAFlAwQBLjARBAwncgs%2FWX4X2NKs%2FgYCARCAO2tZFeqyjkH%2BIvHQqX0XT7z0QtJupvGVYNinIBzUCDa1tQpUruRLZlpTwh5exQahFLbO3lXnP%2F6%2BGW9d.eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJ1cGRhdGVkIjoxNDQ5ODU1NzE2LCJjcmVhdGVkIjoxNDQ5ODU1NzE2LCJ6aXBjb2RlIjoiODMxNDUiLCJpZCI6MiwidXNlcl9pZCI6NSwiY291bnRyeSI6IlVTQSJ9.w1n3XoJ754oZrUGHzxJPA8unC-yVvewzk8NfSnXvEas'

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": "www.chase.com",
"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)