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

POST Agents/Appointment/RequestForInfo

Some tooltip text!
• 4 minutes to read
 • 4 minutes to read
POST /api/v1/Agents/Appointment/RequestForInfo

Submits a request for information.

The request is added to the task list of the user that is responsible for this contact. Based on wether the person the request is made for is found or not, the following happens: If the person is found, the person, person's contact and sales representative is returned. If neither the person nor the contact is found a new person and contact is created (if sufficient data is supplied), and the person, person's contact and sales representative is returned. If the contact and not the person is found a new person is created on this contact, and the contact, salesrep, and person is returned (if there was enough data to return the person). If more than one contact is found a list of contacts is returned.

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/Appointment/RequestForInfo?$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
Content-Type Content-type of the request body: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded, application/json-patch+json, application/merge-patch+json
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.

Request Body: request

AssociateIdForNewContact, Channel, Regarding, ContactName, PersonFirstname, PersonLastname, EmailAddress, PhoneNumber

Property Name Type Description
AssociateIdForNewContact Integer
Channel String
Regarding String
ContactName String
PersonFirstname String
PersonLastname String
EmailAddress String
PhoneNumber String

Response:

OK

Response Description
200 OK

Response body: SalesActivity

Property Name Type Description
RequestedContacts array The companies that match the request
RequestedPerson Person The person that matches the request.
SalesRep Person The sales representative for the person that matches the request.
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/Appointment/RequestForInfo
Authorization: Basic dGplMDpUamUw
Accept: application/json; charset=utf-8
Accept-Language: en
Content-Type: application/json; charset=utf-8

{
  "AssociateIdForNewContact": 213,
  "Channel": "earum",
  "Regarding": "deleniti",
  "ContactName": "Zulauf-Block",
  "PersonFirstname": "Katheryn",
  "PersonLastname": "Koepp",
  "EmailAddress": "wallace@rice.com",
  "PhoneNumber": "553715"
}

Sample response

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

{
  "RequestedContacts": [
    {
      "ContactId": 666,
      "Name": "Mills, Schaefer and Padberg",
      "OrgNr": "1246629",
      "Department": "",
      "URL": "http://www.example.com/",
      "City": "repellat",
      "DirectPhone": "138.268.5447",
      "AssociateId": 480,
      "CountryId": 217,
      "EmailAddress": "vanessa_sporer@kunze.biz",
      "Kananame": "animi",
      "EmailAddressName": "marilou_mcclure@sengerlowe.name",
      "URLName": "http://www.example.com/",
      "AssociateFullName": "Willy Wunsch",
      "BusinessName": "Information Technology",
      "CategoryName": "VIP Customer",
      "CountryName": "Sokovia",
      "Address": null,
      "FormattedAddress": "maiores",
      "FullName": "Mrs. Gardner Hallie Pagac DDS",
      "IsOwnerContact": true,
      "ActiveErpLinks": 979,
      "Number1": "637728",
      "Number2": "490065",
      "TableRight": null,
      "FieldProperties": {
        "fieldName": {
          "FieldRight": null,
          "FieldType": "System.Int32",
          "FieldLength": 414
        }
      }
    }
  ],
  "RequestedPerson": null,
  "SalesRep": null,
  "TableRight": null,
  "FieldProperties": {
    "fieldName": {
      "FieldRight": null,
      "FieldType": "System.String",
      "FieldLength": 434
    }
  }
}
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top