POST Agents/Appointment/RequestForInfo
• 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
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: sv
Content-Type: application/json; charset=utf-8
{
"AssociateIdForNewContact": 158,
"Channel": "totam",
"Regarding": "architecto",
"ContactName": "O'Hara Group",
"PersonFirstname": "Maggie",
"PersonLastname": "Kulas",
"EmailAddress": "lelah@huels.us",
"PhoneNumber": "1248947"
}
Sample response
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"RequestedContacts": [
{
"ContactId": 613,
"Name": "Kub-Johns",
"OrgNr": "1449059",
"Department": "",
"URL": "http://www.example.com/",
"City": "blanditiis",
"DirectPhone": "383.381.1722",
"AssociateId": 475,
"CountryId": 291,
"EmailAddress": "mary.corkery@stiedemann.com",
"Kananame": "ut",
"EmailAddressName": "korey.zulauf@mohr.us",
"URLName": "http://www.example.com/",
"AssociateFullName": "Francisca Fadel",
"BusinessName": "Information Technology",
"CategoryName": "VIP Customer",
"CountryName": "Sokovia",
"Address": null,
"FormattedAddress": "aut",
"FullName": "Clinton Heller",
"IsOwnerContact": true,
"ActiveErpLinks": 908,
"Number1": "813475",
"Number2": "1304102",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 89
}
}
}
],
"RequestedPerson": null,
"SalesRep": null,
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 117
}
}
}