Update a Customer’s contact information

Use this method to update a Customer’s contact information.

Valid Tokens: Company.


Request


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

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.


contactId (required) (integer:20)

Contact ID.

You can get this value from the customer.contact.add API method.


name (required)(string:200)

The contact’s name.


type (required)(string:200)

The contact type. You must to send an existing contact type.

Example: A/P, Buyer, etc. 


phone (optional)(string:200)

Contact’s phone number.


ext (optional)(string:50)

Contact’s phone number extension.


mobile (optional)(string:50)

Contact’s mobile phone number.


fax (optional)(string:50)

Contact’s fax number.


email (optional)(string:50)

Contact’s e-mail address.


description (optional)(string:200)

Additional information. 


instantMessaging (optional)(string:200)

Instant messaging number. 


emailPOD (optional)(boolean)

Choose if the contact should receive PODs via email.


{ "authenticationToken": "token_info_goes_here", "customerId":6326, "contactId":32535, "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.


{ "status": 1, "message": "Contact was successfully updated", "contactId": 4535434 }

Peacock