Secure Payments API POST Customers

General

Creating new customers is one of the customer options available through the Secure Payments (formerly PCI Wallet) API.

POST /customers

Create a customer:

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'authorization: YOUR AUTH' --header 'secret: YOUR SECRET' -d '{ \
"customer": { \
"birthdate": "01/01/1970", \
"email": "sample%40gmail.com", \
"first_name": "Sample", \
"last_name": "Customer", \
"gender": "male", \
"driver_license": "12-123123123", \
"credit_limit": 0, \
"primary-address": { \
"address1": "123 Sample Road", \
"address2": "", \
"city": "Salt Lake City", \
"state": "Utah", \
"zipcode": "84101", \
"country": "usa" \
}, \
"generation_code": "iv", \
"ssn": "123456789", \
"middle_name": "Q.", \
"company_name": "Sample Co. LLC", \
"contact_name": "Sample Customer", \
"mail-address": { \
"address1": "123 Sample Road", \
"address2": "", \
"city": "Salt Lake City", \
"state": "Utah", \
"zipcode": "84101", \
"country": "usa" \
} \
} \
}' 'https://pciwallet.simnang.com/api/customers'

Response:

{
"primary_zipcode": "",
"birthdate": "01/01/1970",
"email": "sample@gmail.com",
"first_name": "Sample",
"mail_address1": "",
"generation_code": "iv",
"updated": "2017-6-14 22:49:42",
"primary_address1": "",
"ssn": "123456789",
"created": "2017-6-14 22:49:42",
"middle_name": "Q.",
"company_name": "Sample Co. LLC",
"mail_zipcode": "",
"mail_state": "",
"primary_address2": "",
"primary_city": "",
"mail_city": "",
"mail_country": "",
"contact_name": "Sample Customer",
"id": 11,
"mail_address2": "",
"last_name": "Customer",
"gender": "male",
"driver_license": "12-123123123",
"primary_state": "",
"primary_country": "",
"credit_limit": 0
}


How did we do?


Powered by HelpDocs (opens in a new tab)