SearchStakeHolderResponseBody
Response body for stakeholder search operations
Error message (present only if there was an error)
##defaultYour request could not be processed. Please try again later or contact support.result object[]
Collection of stakeholders matching the search criteria
Unique identifier of the stakeholder
##default123e4567-e89b-12d3-a456-426614174000Type of stakeholder (person or company)
##defaultpersonFirst name of the stakeholder (null for companies)
##defaultJohnLast name of the stakeholder (null for companies)
##defaultDoeFull name of the stakeholder (null for person, company name required)
##defaultStonalSIREN number of the companies (null for persons)
##default123456789Address of the company
##defaultPostal code of the company
##defaultCity of the company
##defaultExternal code of the company
##defaultcontactsDetails object[]
List of contact details of the stakeholder
Phone number of the contact
##default0123456789Additional infos of the contact
##defaultSome additional infosEmail address required for person and company
##defaultjohn.doe@example.comDate of creation of the contact
##default2020-01-01contracts object[]
Stakeholder contracts list
Id of the contract
##defaultType of the contract
##defaultLEASECode of the contract
##defaultLabel of the contract
##defaultAsset stonal ids linked of the contract
##defaultActive status of the stakeholder
falseFax of the company
##defaultFunction of the person
##defaultDate of creation of the stakeholder
##default2024-01-15Date of last update of the stakeholder
##default2024-11-10T14:30:00Total number of stakeholders matching the search criteria
##default42Total number of pages available
##default5pageRequested object
Information about the requested page
Page number (zero-based)
##default0Number of items per page
##default10Field used for sorting
##defaultnameSort direction (ASC or DESC)
##defaultASC{
"error": "Your request could not be processed. Please try again later or contact support.",
"result": [
{
"uid": "123e4567-e89b-12d3-a456-426614174000",
"type": "person",
"firstName": "John",
"lastName": "Doe",
"name": "Stonal",
"siren": "123456789",
"address": "##default",
"postalCode": "##default",
"city": "##default",
"externalCode": "##default",
"contactsDetails": [
{
"phoneNumber": "0123456789",
"additionalInfos": "Some additional infos",
"email": "john.doe@example.com",
"creationDate": "2020-01-01"
}
],
"contracts": [
{
"id": "##default",
"type": "LEASE",
"code": "##default",
"label": "##default",
"assetUids": [
"string"
]
}
],
"isActive": false,
"fax": "##default",
"function": "##default",
"creationDate": "2024-01-15",
"updatedAt": "2024-11-10T14:30:00"
}
],
"total": 42,
"totalPages": 5,
"pageRequested": {
"page": 0,
"size": 10,
"sort": "name",
"direction": "ASC"
}
}