API reference
All operations
CONTACT

Creates, updates, or deletes a contact matched by its ID in your external system (upsert).

The contact is matched on `ExternalId`: * Match found: the contact's name, title, position, department, email, phone, cell and fax are replaced with the values sent (omitted values are cleared), and its additional phone numbers and email addresses are removed. Sending Deleted: false restores a deleted contact. * No match and AddRecordIfMatchNotFound is true or omitted: a new contact is created under the company whose account number equals AccountNumber; if no company has that account number, a new company is created with it. AccountNumber is required to create a contact. * Deleted: true with a matching, non-deleted contact: the contact is deleted and an empty contact object is returned.

POST/api/v2/external/contacts

Authentication

Choose one supported method for this request.

OAuth 2.0 client credentialsAPI key

Request body

application/jsonrequired

The external contact details. `ExternalId` is required.

UpdateContactExternalIdRequest
  • deletedbooleannullable
  • sequenceNumberinteger · int32nullable
  • externalIdstringnullable
  • externalProviderstringnullable
  • modifySourcestringnullable
  • accountNumberstringnullable
  • firstNamestringnullable
  • middleNamestringnullable
  • lastNamestringnullable
  • nickNamestringnullable
  • phonestringnullable
  • cellstringnullable
  • faxstringnullable
  • emailstringnullable
  • titlestringnullable
  • positionstringnullable
  • departmentstringnullable
  • addRecordIfMatchNotFoundbooleannullable

Responses

Contact created, updated, or deleted successfully.

Standard response envelopeisSuccessmessageerrorsdata

Read the result from data. When isSuccess is false, errors lists what went wrong. Handling errors

dataContactDto
  • contactIdinteger · int32
  • companyIdinteger · int32
  • companyDisplaystring
  • firstNamestring
  • middleNamestring
  • lastNamestring
  • fullNamestring
  • nickNamestring
  • phonestring
  • cellstring
  • faxstring
  • emailstring
  • titlestring
  • positionstring
  • departmentstring
  • deletedboolean
  • activeboolean
  • enteredstring · date-time
  • lastModifiedstring · date-time
  • completeboolean
  • externalIdstring
  • globalUnsubscribeboolean
  • linkedboolean
  • lastTouchUserstring
  • lastTouchDatestring · datenullable