• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Edit
Show / Hide Table of Contents

POST Agents/Contact/GetMyContacts

Some tooltip text!
• 4 minutes to read
 • 4 minutes to read
POST /api/v1/Agents/Contact/GetMyContacts

Getting the contacts where the user currently logged in is set as contact owner.

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.
POST /api/v1/Agents/Contact/GetMyContacts?$select=name,department,category/id

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:array

OK

Response Description
200 OK

Response body: array

Property Name Type Description
ContactId int32 Primary key
Name string Contact name
OrgNr string VAT number or similar
Department string Department
URL string The internet address to this contact
City string City corresponding to zip code
DirectPhone string The contacts phone
AssociateId int32 Our contact
CountryId int32 Country
EmailAddress string The contact email address
Kananame string Contact kana name, used in Japanese versions only
EmailAddressName string Visible field
URLName string Visible field
AssociateFullName string The associate's culture formatted fullname (firstname, middleName and lastname)
BusinessName string The business list item name
CategoryName string The category list item name
CountryName string Name of country in installed language
Address Address Contact address as a list of LocalizedFieldList objects. Used to store localized information such as formatted address data. Suitable for passing to an address control for display.
FormattedAddress string The contact's address, formatted with linebreaks and spaces into a single string.
FullName string
IsOwnerContact bool Is the contact an owner contact. This means that all persons on this contact can on only be internal users and not external users.
ActiveErpLinks int32 The number of active erp links
Number1 string Alphanumeric user field
Number2 string Alphanumeric user field
TableRight TableRight The carrier's table right
FieldProperties object Field property dictionary mapping field names to field access rights.

Sample request

POST /api/v1/Agents/Contact/GetMyContacts
Authorization: Basic dGplMDpUamUw
Accept: application/json; charset=utf-8
Accept-Language: en

Sample response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

[
  {
    "ContactId": 283,
    "Name": "Schroeder LLC",
    "OrgNr": "317892",
    "Department": "",
    "URL": "http://www.example.com/",
    "City": "sed",
    "DirectPhone": "927-217-2457 x171",
    "AssociateId": 876,
    "CountryId": 337,
    "EmailAddress": "hattie@goldner.co.uk",
    "Kananame": "sunt",
    "EmailAddressName": "albertha@vandervorthills.us",
    "URLName": "http://www.example.com/",
    "AssociateFullName": "Genoveva Austyn Padberg I",
    "BusinessName": "Information Technology",
    "CategoryName": "VIP Customer",
    "CountryName": "Sokovia",
    "Address": null,
    "FormattedAddress": "alias",
    "FullName": "Catalina Bailey",
    "IsOwnerContact": false,
    "ActiveErpLinks": 154,
    "Number1": "1175645",
    "Number2": "756570",
    "TableRight": null,
    "FieldProperties": {
      "fieldName": {
        "FieldRight": null,
        "FieldType": "System.Int32",
        "FieldLength": 324
      }
    }
  }
]
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top