Follow

POST /customers

Add a customer.

Parameters

requirednameformatdescription
  companyName Text, Max Length 64 Company name
  custom1 Text, Max Length 32 Custom field
  email Email (1), Max Length 128 Email
  identifier Text, Max Length 64 Identifier used by merchant to identify the customer
  firstName Text, Max Length 16 First name
  jobTitle Text, Max Length 32 Job Title
  lastName Text, Max Length 32 Last Name
  middleName Text, Max Length 32 Middle Name
  phone Phone Number, Max Length 24, Must contain at least 10 digits Phone
  phone2 Phone Number, Max Length 24, Must contain at least 10 digits Phone 2
  website Text, Max Length 128 Website

 

Example Response

{
      "customerId": 10079, 
      "uri": "https://api.payjunction.com/customers/10079", 
      "firstName": "John", 
      "lastName": "Keats", 
      "companyName": "PayJunction", 
      "email": "jkeats@payjunction.com", 
      "phone": "800-601-0230", 
      "phone2": "800-771-3821", 
      "jobTitle": "Poet", 
      "website": "https://www.payjunction.com", 
      "custom1": "custom-field", 
      "created": "2012-02-09T02:12:14Z", 
      "lastModified": "2012-02-09T02:12:14Z"
}