GET Contact/{id}
Some tooltip text!
• 10 minutes to read
• 10 minutes to read
GET /api/v1/Contact/{id}
Gets a ContactEntity object.
Calls the Contact agent service GetContactEntity. NsApiSlow threshold: 2000 ms.
| Path Part | Type | Description |
|---|---|---|
| id | int32 | The id of the ContactEntity to return. Required |
Query String Parameters
| Parameter Name | Type | Description |
|---|---|---|
| $select | string | Optional comma separated list of properties to include in the result. Other fields are then nulled out to reduce payload size: "Name,department,category" Default = show all fields. |
| fk | bool | Load foreign keys on this entity into the ExtraFields property as 'app.device.keyname'='123' pairs. |
GET /api/v1/Contact/{id}?$select=name,department,category/id
GET /api/v1/Contact/{id}?fk=False
Request Headers
| Parameter Name | Description |
|---|---|
| Authorization | Supports 'Basic', 'SoTicket' and 'Bearer' schemes, depending on installation type. |
| X-XSRF-TOKEN | If not using Authorization header, you must provide XSRF value from cookie or hidden input field |
| Accept | Content-type(s) you would like the response in: application/json, text/json, application/xml, text/xml, application/json-patch+json, application/merge-patch+json |
| Accept-Language | Convert string references and multi-language values into a specified language (iso2) code. |
| SO-Language | Convert string references and multi-language values into a specified language (iso2) code. Overrides Accept-Language value. |
| SO-Culture | Number, date formatting in a specified culture (iso2 language) code. Partially overrides SO-Language/Accept-Language value. Ignored if no Language set. |
| SO-TimeZone | Specify the timezone code that you would like date/time responses converted to. |
| SO-AppToken | The application token that identifies the partner app. Used when calling Online WebAPI from a server. |
Response:
ContactEntity found.
| Response | Description |
|---|---|
| 200 | ContactEntity found. |
| 304 | ContactEntity has not changed since the requested If-Modified-Since date. |
| 404 | Not Found. |
Response body: ContactEntityWithLinks
| Property Name | Type | Description |
|---|---|---|
| ContactId | int32 | Primary key |
| Name | string | Contact name |
| Department | string | Department |
| OrgNr | string | VAT number or similar |
| Number1 | string | Alphanumeric user field |
| Number2 | string | Alphanumeric user field |
| UpdatedDate | date-time | Date last updated in UTC. |
| CreatedDate | date-time | Date registered in UTC. |
| Emails | array | The contact's email |
| Interests | array | The contact's available and selected interests. Use MDO List name "contint" to get list items. |
| Urls | array | The contact's internet adresses |
| Phones | array | The contact's phone numbers |
| Faxes | array | The contact's fax numbers |
| Description | string | Description of the contact. Usually shown as a postit note. |
| UpdatedBy | Associate | The user that last updated the contact |
| CreatedBy | Associate | The user that created the contact |
| Associate | Associate | The user that owns this contact. Use MDO List name "associate" to get list items. |
| Business | Business | The business that the contact is associated with. The GUI forces the user to enter a business type. Use MDO List name "business" to get list items. |
| Category | Category | The category that is set on the company. The GUI forces the user to enter a category type Use MDO List name "category" to get list items. |
| Country | Country | The country this contact is located in. The country a contact is saved with, affects the phone number format, and the address layout. Use MDO List name "country" to get list items. |
| Persons | array | The persons belonging to the contact. |
| NoMailing | bool | Spam filter. Indicates if this contact should retrieve advertising. |
| Kananame | string | Contact kana name, used in Japanese versions only |
| Xstop | bool | STOP flag |
| ActiveInterests | int32 | The number of active interests. |
| GroupId | int32 | Group id of original owning associate, semantics like appnt.grp_id |
| ActiveStatusMonitorId | int32 | Active status monitor identity with the lowest rank for contact |
| SupportAssociate | Associate | Use MDO List name "associate" to get list items. |
| TicketPriority | TicketPriority | Use MDO List name "ticketpriority" to get list items. |
| CustomerLanguage | CustomerLanguage | customerlanguage |
| Deleted | int32 | If nonzero, then this contact is 'deleted' and should generally not be shown |
| DbiAgentId | int32 | Integration agent (eJournal) |
| DbiLastSyncronized | date-time | Last external syncronization. |
| DbiKey | string | The primary key for the integrated entry in the external datasource. |
| DbiLastModified | date-time | When the entry was last modified. |
| SupportPerson | Person | Carrier object for Person. Services for the Person Carrier is available from the Person Agent. |
| Address | Address | Street and/or Postal address, in both formatted and structured forms. You only need to modify one of the two for the change to be registered. Carrier object for Address. |
| Source | int32 | How did we get this contact? For future integration needs |
| ActiveErpLinks | int32 | The number of active erp links |
| BounceEmails | array | Email addresses with a positive bounce counter. |
| Domains | array | Web domains for this contact, ordered in array by rank |
| UtmParameters | SavedUtmParameters | Utm parameters when creating first person and contact, readonly field |
| UserDefinedFields | object | Deprecated: Use {SuperOffice.CRM.Services.ContactEntity.CustomFields} instead. Dictionary of user defined field data. The key string is the ProgId of the UdefField, or if the ProgId is empty it is a string of the format "SuperOffice:[UdefFieldIdentity]", e.g. "SuperOffice:1234" |
| ExtraFields | object | Deprecated: Use {SuperOffice.CRM.Services.ContactEntity.CustomFields} instead. Extra fields added to the carrier. This could be data from Plug-ins, the foreign key system, external applications, etc. |
| CustomFields | object | Udef + Extra fields added to the carrier. Extra fields as defined by changes to database schema + user-defined fields as defined by admin. Custom fields combines user defined fields and extra fields into one bucket. The individual {SuperOffice.CRM.Services.ContactEntity.ExtraFields} and UserDefinedFields properties are deprecated in favor of this combined collection. |
| TableRight | TableRight | The carrier's table right |
| FieldProperties | object | Field property dictionary mapping field names to field access rights. |
| _Links | object |
Sample request
GET /api/v1/Contact/{id}
Authorization: Basic dGplMDpUamUw
Accept: application/json; charset=utf-8
Accept-Language: sv
Sample response
HTTP/1.1 200 ContactEntity found.
Content-Type: application/json; charset=utf-8
Last-Modified: Sun, 02 Feb 2003 14:34:01 G2T
{
"ContactId": 912,
"Name": "TechCorp Solutions",
"Department": "Sales",
"OrgNr": "608698",
"Number1": "1158970",
"Number2": "553902",
"UpdatedDate": "2003-02-02T14:34:01.7525885+01:00",
"CreatedDate": "2007-10-04T14:34:01.7525885+02:00",
"Emails": [
{
"Value": "eum",
"StrippedValue": "accusamus",
"Description": "Progressive eco-centric success",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 220
}
}
},
{
"Value": "eum",
"StrippedValue": "accusamus",
"Description": "Progressive eco-centric success",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 220
}
}
}
],
"Interests": [
{
"Id": 53,
"Name": "Innovation Systems",
"ToolTip": "Vel doloremque excepturi.",
"Deleted": false,
"Rank": 566,
"Type": "sed",
"ColorBlock": 610,
"IconHint": "quisquam",
"Selected": true,
"LastChanged": "1998-08-29T14:34:01.7525885+02:00",
"ChildItems": [
{},
{}
],
"ExtraInfo": "rem",
"StyleHint": "excepturi",
"Hidden": true,
"FullName": "Clement Shields",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 414
}
}
}
],
"Urls": [
{
"Value": "vel",
"StrippedValue": "eius",
"Description": "De-engineered incremental info-mediaries",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 10
}
}
},
{
"Value": "vel",
"StrippedValue": "eius",
"Description": "De-engineered incremental info-mediaries",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 10
}
}
}
],
"Phones": [
{
"Value": "corrupti",
"StrippedValue": "vel",
"Description": "Polarised non-volatile function",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 557
}
}
},
{
"Value": "corrupti",
"StrippedValue": "vel",
"Description": "Polarised non-volatile function",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 557
}
}
}
],
"Faxes": [
{
"Value": "totam",
"StrippedValue": "www.acmecorp.com",
"Description": "Sharable fault-tolerant solution",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 829
}
}
},
{
"Value": "totam",
"StrippedValue": "www.acmecorp.com",
"Description": "Sharable fault-tolerant solution",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 829
}
}
}
],
"Description": "Adaptive empowering function",
"UpdatedBy": null,
"CreatedBy": null,
"Associate": null,
"Business": null,
"Category": null,
"Country": null,
"Persons": [
{
"Position": "illum",
"PersonId": 430,
"Mrmrs": "quae",
"Firstname": "Kay",
"Lastname": "Hettinger",
"MiddleName": "Huels, Kshlerin and Mohr",
"Title": "officiis",
"Description": "Robust next generation data-warehouse",
"Email": "esther@eichmannwill.uk",
"FullName": "Maryse Willa Murphy II",
"DirectPhone": "699.980.9442",
"FormalName": "Wilderman-Hahn",
"CountryId": 588,
"ContactId": 395,
"ContactName": "Miller-Rosenbaum",
"Retired": 898,
"Rank": 627,
"ActiveInterests": 852,
"ContactDepartment": "",
"ContactCountryId": 441,
"ContactOrgNr": "1060844",
"FaxPhone": "1-085-148-4593",
"MobilePhone": "301.734.7019 x8669",
"ContactPhone": "429-146-4299",
"AssociateName": "Hudson-Franecki",
"AssociateId": 954,
"UsePersonAddress": true,
"ContactFax": "quidem",
"Kanafname": "debitis",
"Kanalname": "facere",
"Post1": "sequi",
"Post2": "cumque",
"Post3": "numquam",
"EmailName": "alfreda@renner.com",
"ContactFullName": "Mr. Carson Durgan",
"ActiveErpLinks": 341,
"TicketPriorityId": 714,
"SupportLanguageId": 33,
"SupportAssociateId": 776,
"CategoryName": "VIP Customer",
"PersonNumber": "1333860",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 413
}
}
}
],
"NoMailing": false,
"Kananame": "aperiam",
"Xstop": true,
"ActiveInterests": 926,
"GroupId": 647,
"ActiveStatusMonitorId": 50,
"SupportAssociate": null,
"TicketPriority": null,
"CustomerLanguage": null,
"Deleted": 688,
"DbiAgentId": 364,
"DbiLastSyncronized": "2016-09-06T14:34:01.7525885+02:00",
"DbiKey": "facere",
"DbiLastModified": "2016-07-26T14:34:01.7525885+02:00",
"SupportPerson": null,
"Address": null,
"Source": 1,
"ActiveErpLinks": 470,
"BounceEmails": [
"jettie@nicolas.info",
"lina.zieme@price.com"
],
"Domains": [
"corrupti",
"saepe"
],
"UtmParameters": null,
"UserDefinedFields": {
"SuperOffice:1": "Dr. Felicia Carolyne Kuphal",
"SuperOffice:2": "Jovani Blanda"
},
"ExtraFields": {
"ExtraFields1": "vel",
"ExtraFields2": "ex"
},
"CustomFields": {
"CustomFields1": "recusandae",
"CustomFields2": "repellendus"
},
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 483
}
},
"_Links": {
"Self": "https://www.example.com/api/v1/contact/321",
"Archive": "https://www.example.com/api/v1/contact"
}
}