Secure Payments API – GET Billing Card

General

Pulling the billing credit card tied to your account is one of the billing credit card options available through the Secure Payments API.

How To

To pull billing card information, send a GET request to the following endpoint:

GET http://securepayments.loanpro.io/api/billing-card/{YOUR-TOKEN}

In this endpoint, you will need to replace {YOUR-TOKEN} with the billing card's token.

Since it's a GET request, there won't be a payload body. Here's a cURL request showing the formatting for the header and endpoint:

curl -X GET --header 'Accept: application/json' --header 'authorization: YOUR AUTH' --header 'secret: YOUR SECRET' 'https://securepayments.loanpro.io/api/billing-card/YOUR-TOKEN'

The response will look something like this, and the card number will be masked except for the last four digits:

{
"card_number": "XXXXXXXXXXXX1111",
"type": "VISA",
"address": "123 Sample Road",
"city": "Salt Lake City",
"state": "UT",
"zipcode": "84101",
"country": "USA",
"primary": true
}


How did we do?


Powered by HelpDocs (opens in a new tab)