Secure Payments API – GET Customers

General

Getting customers is one of the customer options available through the Secure Payments API.

How To

To get all the customers stored in Secure Payments, send a GET request to the endpoint:

GET  https://securepayments.loanpro.io/api/customers

Since this is a GET request, there will be no body payload; but make sure you have your token and secret in the header.

Here's a sample cURL request:

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

The response will include a long list of customers. Here's an abbreviated response showing just two:

[
{
"primary_zipcode": "12345",
"birthdate": "01/01/1975",
"email": "support@simnang.com",
"first_name": "Andrew",
"mail_address1": "123 Oak Lane",
"generation_code": "none",
"updated": "2018-07-31 20:25:48",
"primary_address1": "123 Oak Lane",
"ssn": "123456789",
"created": "2018-07-31 20:17:00",
"middle_name": "",
"company_name": "",
"mail_zipcode": "12345",
"mail_state": "NY",
"primary_address2": "",
"primary_city": "SCHENECTADY",
"mail_city": "SCHENECTADY",
"mail_country": "USA",
"contact_name": "",
"id": 243544,
"mail_address2": "",
"last_name": "Goodson",
"gender": "male",
"driver_license": "",
"primary_state": "NY",
"primary_country": "USA",
"credit_limit": 0.0
},
{
"primary_zipcode": "94510",
"birthdate": "",
"email": "",
"first_name": "John",
"mail_address1": "",
"generation_code": "",
"updated": "2018-08-01 14:37:54",
"primary_address1": "123 Oak Lane",
"ssn": "",
"created": "2018-08-01 14:37:54",
"middle_name": "",
"company_name": "",
"mail_zipcode": "",
"mail_state": "",
"primary_address2": "",
"primary_city": "Benicia",
"mail_city": "",
"mail_country": "",
"contact_name": "",
"id": 244466,
"mail_address2": "",
"last_name": "Doe",
"gender": "",
"driver_license": "",
"primary_state": "CA",
"primary_country": "USA",
"credit_limit": 0.0
}
]

Note the "id" field. That value will be used in the endpoints for any requests specific to that customer. Those features are listed in our article Secure Payments API – Customers.


How did we do?


Powered by HelpDocs (opens in a new tab)