Difference between revisions of "API:Contact:New"
Greg Donald (talk | contribs) (Created page with " == New Contact == '''URL:''' <nowiki>https://app.callproof.com/contact/new/</nowiki> '''Method:''' POST '''Required Fields:''' * '''''key''''' - API Key * '''''secret''''...") |
(No difference)
|
Revision as of 11:25, 16 September 2014
New Contact
URL: https://app.callproof.com/contact/new/
Method: POST
Required Fields:
- key - API Key
- secret - API Key Secret
- contact[contact_type] - Contact custom contact type (https://app.callproof.com/contact_types/)
- contact[first_name] - Contact first name
- contact[last_name] - Contact last name
- contact[company_name] - Contact company name
Optional Fields:
- contact[title] - Contact title (e.g. CEO)
- contact[email] - Contact email address (e.g. fred@aol.com)
- contact[account] - Contact account number (e.g. 123456)
- contact[invoice] - Contact invoice number (e.g. 123456)
- contact[website] - Contact website URL (e.g. http://example.com/)
- contact[address] - Contact address
- contact[address2] - Contact address2
- contact[city] - Contact city
- contact[state] - Contact two letter state name (e.g. TN, FL, CA)
- contact[zip] - Contact zip code
- contact[country] - Contact country
- contact[latitude] - Contact latitude
- contact[longitude] - Contact longitude
- contact[unknown] - Set to '1' if Contact is unknown
- contact[do_not_sms] - Set to '1' if Contact should not be sent SM messages
- contact[last_contacted] - Contact last contacted date/time (e.g. '2014-08-10 12:34:56')
- contact[default_phone][phone_number] - Contact default phone number (e.g. 6158675309)
- contact[default_phone][type] - Contact default phone type (cell, home, office, fax, headquartes, other)
Data Returned:
- results - Contact as provided
- errors - Array of errors produced by the request
- code - HTTP request status