Use this method to add a new contact to an existing Customer in Komet Sales.

Valid Tokens: Company.


Request


URL: https://api.kometsales.com/api/customer.contact.add

Method: POST

Content-Type: application/JSON


Input Parameters

authenticationToken (required)(string:50)

Komet Sales security token.


customerId (required) (integer:20)

The Customer ID.

You can get this value from the customer.list API method.


name (required)(string:200)

Contact’s name.


type (required)(string:200)

Contact type. You must send a contact-type that is already registered in the system. 

For example: A/P, Buyer, etc.


phone (optional)(string:200)

Contact’s phone number.


ext (optional)(string:50)

The extension number of the contact.


mobile (optional)(string:50)

The contact’s mobile phone number.


fax (optional)(string:50)

Contact’s fax number.


email (optional)(string:50)

The contact’s e-mail address.


description (optional)(string:200)

The contact’s additional information. 


instantMessaging (optional)(string:200)

Instant messaging number. 


emailPOD (optional)(boolean)

Choose if the contact should receive PODs. 


{
    "authenticationToken": "token_info_goes_here", 
    "customerId":6326, 
    "name": "Joe Smith",
    "type": "Buyer",
    "phone": "594-123-0982",
    "ext": "345",
    "mobile": "305-0112-0982",
    "fax": "594-123-0112",
    "email": "contact@mydomain.com",
    "description": "nothing special",
    "instantMessaging": "594-123-0982",
    "emailPOD": false
  }

Response


status (integer:1)

Transaction status.

Valid values: 1 = Success | 0 = Failure


message (string:500)

Transaction status description.


contactId (integer:20)

Internal Contact ID that was just added.


{
  "status": 1,
  "message": "Contact was successfully saved",
  "contactId": 4535434
 }
defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock07eb841f-7aa8-4745-987e-4c2dbacd86a2ari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock816410de-4198-41e2-b0e6-2225351b2103defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock07eb841f-7aa8-4745-987e-4c2dbacd86a2ari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock816410de-4198-41e2-b0e6-2225351b2103