POST Person/Validate
Some tooltip text!
• 12 minutes to read
• 12 minutes to read
POST /api/v1/Person/Validate
Check that entity is ready for saving, return error messages by field.
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: personEntity
Entity to be checked for errors.
Property Name | Type | Description |
---|---|---|
PersonId | Integer | Primary key |
Firstname | String | First name |
MiddleName | String | Middle name or 'van' etc. |
Lastname | String | Last name |
Mrmrs | String | e.g. Mrs sex_title |
Title | String | Title |
UpdatedDate | String | Last updated date in UTC. |
CreatedDate | String | Registered date in UTC. |
BirthDate | String | The Person birth date as UTC Date. Year 1 = Null. Year 2 = unknown year. |
CreatedBy | Associate | The user that created the person object |
Emails | Array | A collection of the person's emails |
Description | String | The actual text, max 2047 significant characters even though it is stored as a larger data type on some databases |
IsAssociate | Boolean | Checks if the person object is an associate. The property is read-only. |
PrivatePhones | Array | Returns a collection of phone numbers that belong to the contact person. |
Faxes | Array | Returns a collection of fax numbers that belong to the contact person. |
MobilePhones | Array | Returns a collection of mobile phone numbers that belong to the contact person. |
OfficePhones | Array | Returns a collection of office phone numbers that belong to the contact person. |
OtherPhones | Array | Returns a collection of pagers that belong to the contact person. |
Position | Position | The position. This is a predefined SuperOffice value, different from Title |
UpdatedBy | Associate | The person that last updated the person object |
Contact | Contact | The contact the contact person is registered on. This is required unless the 'MandatoryContactOnPerson' preference is set. |
Country | Country | The country this contact person is located in. |
Interests | Array | The person's available and selected interests. |
PersonNumber | String | Alphanumeric user field |
FullName | String | The person's full name localized to the current culture/country. (internal name used in clients for employees) |
NoMailing | Boolean | Spam filter. Indicates if this person should retrieve advertising. |
UsePersonAddress | Boolean | True if the person's address should be used as mailing address, instead of the contact's address. |
Retired | Boolean | True if the user is retired and should have no rights, not appear in lists, etc. |
Urls | Array | The urls related to this person. |
FormalName | String | Get formal name for a person, as used in labels. (Full name + person title + academic title) |
Address | Address | Structure holding formatted address data. The layout of the array structure indicates the layout of the localized address. |
Post3 | String | Postal address, used in Japanese versions only |
Post2 | String | Postal address, used in Japanese versions only |
Post1 | String | Postal address, used in Japanese versions only |
Kanalname | String | Kana last name, used in Japanese versions only |
Kanafname | String | Kana first name, used in Japanese versions only |
CorrespondingAssociate | Associate | The associate corresponding to this person. Will be empty if the person is not a user (internal associate user, external user). |
Category | Category | Person's category. Usually null. Refer to the Contact.Category instead. Intended for use when individual persons are created. (i.e. when Person.Contact is blank) |
Business | Business | Person's business - usually blank. Use Contact.Business instead. Intended for use when individual persons are created. (i.e. when Person.Contact is blank) |
Associate | Associate | The associate owning this person (similar to contact.Associate) - usually blank. Use the Person.Contact.Associate instead. Intended for use when individual persons are created (i.e. when Person.Contact is blank) |
Salutation | String | Academic title, populated from Salutation list but can be overwritten with anything at all |
ActiveInterests | Integer | The number of active interests. |
SupportAssociate | Associate | |
TicketPriority | TicketPriority | |
CustomerLanguage | CustomerLanguage | |
DbiAgentId | Integer | Integration agent (eJournal) |
DbiKey | String | The primary key for the integrated entry in the external datasource. |
DbiLastModified | String | When the entry was last modified. |
DbiLastSyncronized | String | Last external syncronization. |
SentInfo | Integer | Has information on username/password been sent (ejournal) |
ShowContactTickets | Integer | Should tickets related to the company be shown to this person |
UserInfo | UserInfo | Information about the user if this person is a user. If IsAssociate (e.g. is user is true) the UserInfo will be provided. |
ChatEmails | Array | |
InternetPhones | Array | |
Source | Integer | How did we get this person? For future integration needs |
ActiveErpLinks | Integer | How many active ERP links are there for this person? |
ShipmentTypes | Array | The person's available and selected shipment types. |
Consents | Array | The person's available consent information. Missing consents are not deleted. To remove a consent, mark its legalbase as 'WITHDRAWN' |
BounceEmails | Array | Email addresses with a positive bounce counter. |
ActiveStatusMonitorId | Integer | Active status monitor identity with the lowest rank for person |
CreatedByFormId | Integer | The form id of the form that created the person |
UserDefinedFields | Object | Deprecated: Use {SuperOffice.CRM.Services.PersonEntity.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.PersonEntity.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.PersonEntity.ExtraFields} and |
Response:object
OK
Response | Description |
---|---|
200 | OK |
Response body: object
Sample request
POST /api/v1/Person/Validate
Authorization: Basic dGplMDpUamUw
Accept: application/json; charset=utf-8
Accept-Language: en
Content-Type: application/json; charset=utf-8
{
"PersonId": 752,
"Firstname": "Reese",
"MiddleName": "Durgan-Kris",
"Lastname": "Wehner",
"Mrmrs": "voluptas",
"Title": "et",
"UpdatedDate": "2015-01-01T17:54:08.3668296+01:00",
"CreatedDate": "2007-01-28T17:54:08.3668296+01:00",
"BirthDate": "1999-12-26T17:54:08.3668296+01:00",
"CreatedBy": null,
"Emails": [
{
"Value": "ipsam",
"StrippedValue": "aut",
"Description": "Diverse even-keeled secured line"
},
{
"Value": "ipsam",
"StrippedValue": "aut",
"Description": "Diverse even-keeled secured line"
}
],
"Description": "Robust systemic utilisation",
"IsAssociate": true,
"PrivatePhones": [
{
"Value": "laudantium",
"StrippedValue": "et",
"Description": "Total well-modulated projection"
},
{
"Value": "laudantium",
"StrippedValue": "et",
"Description": "Total well-modulated projection"
}
],
"Faxes": [
{
"Value": "aliquid",
"StrippedValue": "expedita",
"Description": "Phased fresh-thinking array"
},
{
"Value": "aliquid",
"StrippedValue": "expedita",
"Description": "Phased fresh-thinking array"
}
],
"MobilePhones": [
{
"Value": "sit",
"StrippedValue": "qui",
"Description": "Diverse exuding archive"
},
{
"Value": "sit",
"StrippedValue": "qui",
"Description": "Diverse exuding archive"
}
],
"OfficePhones": [
{
"Value": "voluptatem",
"StrippedValue": "neque",
"Description": "Visionary reciprocal model"
},
{
"Value": "voluptatem",
"StrippedValue": "neque",
"Description": "Visionary reciprocal model"
}
],
"OtherPhones": [
{
"Value": "perferendis",
"StrippedValue": "a",
"Description": "Compatible foreground firmware"
},
{
"Value": "perferendis",
"StrippedValue": "a",
"Description": "Compatible foreground firmware"
}
],
"Position": null,
"UpdatedBy": null,
"Contact": null,
"Country": null,
"Interests": [
{
"Id": 812,
"Name": "Robel-Kessler",
"ToolTip": "Eos ipsum odit earum consequatur dolor.",
"Deleted": false,
"Rank": 91,
"Type": "et",
"ColorBlock": 96,
"IconHint": "molestiae",
"Selected": false,
"LastChanged": "2016-04-27T17:54:08.3668296+02:00",
"ChildItems": [
{},
{}
],
"ExtraInfo": "non",
"StyleHint": "doloremque",
"Hidden": false,
"FullName": "Norberto Ward"
}
],
"PersonNumber": "939909",
"FullName": "Zackery Hodkiewicz",
"NoMailing": true,
"UsePersonAddress": false,
"Retired": false,
"Urls": [
{
"Value": "reprehenderit",
"StrippedValue": "expedita",
"Description": "Organized intermediate migration"
},
{
"Value": "reprehenderit",
"StrippedValue": "expedita",
"Description": "Organized intermediate migration"
}
],
"FormalName": "Schoen Inc and Sons",
"Address": null,
"Post3": "et",
"Post2": "voluptate",
"Post1": "cupiditate",
"Kanalname": "totam",
"Kanafname": "culpa",
"CorrespondingAssociate": null,
"Category": null,
"Business": null,
"Associate": null,
"Salutation": "alias",
"ActiveInterests": 819,
"SupportAssociate": null,
"TicketPriority": null,
"CustomerLanguage": null,
"DbiAgentId": 773,
"DbiKey": "velit",
"DbiLastModified": "2015-04-12T17:54:08.3668296+02:00",
"DbiLastSyncronized": "2019-03-01T17:54:08.3668296+01:00",
"SentInfo": 776,
"ShowContactTickets": 572,
"UserInfo": null,
"ChatEmails": [
{
"Value": "vero",
"StrippedValue": "ipsum",
"Description": "Sharable demand-driven array"
},
{
"Value": "vero",
"StrippedValue": "ipsum",
"Description": "Sharable demand-driven array"
}
],
"InternetPhones": [
{
"Value": "quod",
"StrippedValue": "est",
"Description": "Polarised mission-critical help-desk"
},
{
"Value": "quod",
"StrippedValue": "est",
"Description": "Polarised mission-critical help-desk"
}
],
"Source": 173,
"ActiveErpLinks": 418,
"ShipmentTypes": [
{
"Id": 710,
"Name": "Oberbrunner Inc and Sons",
"ToolTip": "Aut eum quis et neque doloremque quia.",
"Deleted": false,
"Rank": 709,
"Type": "facilis",
"ColorBlock": 96,
"IconHint": "velit",
"Selected": false,
"LastChanged": "2019-11-17T17:54:08.3668296+01:00",
"ChildItems": [
{},
{}
],
"ExtraInfo": "velit",
"StyleHint": "voluptate",
"Hidden": false,
"FullName": "Louisa Raynor"
}
],
"Consents": [
{
"ConsentPersonId": 966,
"Comment": "aperiam",
"Registered": "2016-08-30T17:54:08.3668296+02:00",
"RegisteredAssociateId": 813,
"Updated": "2002-11-24T17:54:08.3668296+01:00",
"UpdatedAssociateId": 437,
"LegalBaseId": 80,
"LegalBaseKey": "nesciunt",
"LegalBaseName": "Halvorson-Grimes",
"ConsentPurposeId": 677,
"ConsentPurposeKey": "ipsum",
"ConsentPurposeName": "Gibson-Turner",
"ConsentSourceId": 209,
"ConsentSourceKey": "quia",
"ConsentSourceName": "Anderson Inc and Sons"
}
],
"BounceEmails": [
"arthur@gutkowskiheaney.ca",
"brooks_daniel@reichel.us"
],
"ActiveStatusMonitorId": 906,
"CreatedByFormId": 99,
"UserDefinedFields": {
"SuperOffice:1": "False",
"SuperOffice:2": "Paolo Robel"
},
"ExtraFields": {
"ExtraFields1": "quod",
"ExtraFields2": "et"
},
"CustomFields": {
"CustomFields1": "consequatur",
"CustomFields2": "amet"
}
}
Sample response
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"1": "ipsa",
"2": "dignissimos"
}