Meeting API (1.0)

Download OpenAPI specification:Download

Introduction

Meeting API allows an agent to manage meetings

Contact

If you have any questions, comments or feedback regarding our APIs, please contact developer@ovipro.fi.

Meeting

Meeting API allows you to manage meetings

Create a new meeting

Create a new meeting.

Authorizations:
bearerAuth
header Parameters
Request-ID
required
string <uuid>
Example: 9031d1c5-7d40-41dd-b2b8-7919a2fc4fe9

A unique id which identifies the HTTP request. The value of this header must be created by the client. This identifier is used for troubleshooting purposes.

Request Body schema: application/json
required

Request body contains details of the meeting.

typeCode
required
string (MeetingTypeCode)
Enum: "SALES_MEETING" "EVALUATION_VISIT"

The type of meeting.

statusCode
required
string (StatusCode)
Enum: "WAITING" "WON" "LOST" "CANCELLED"

The status of the meeting.

  • WAITING. Meeting is waiting for the next action.
  • WON. Meeting have been won. In this state meeting statusCode can only be changed to LOST and parties and visitTime can't be modified anymore.
  • LOST. Meeting have been lost. In this state meeting statusCode can only be changed to WON and parties and visitTime can't be modified anymore.
  • CANCELLED. Meeting have been cancelled. Meeting status will be locked and parties and visitTime can't be modified anymore.
required
Array of objects non-empty

The parties related to the meeting.

realtyId
string <uuid>

The realty id related to the meeting.

visitTime
required
string <date-time>

The date and time of the meeting.

agencyOfficeId
required
string <uuid>

The agency office id related to the meeting.

required
Array of objects non-empty

The agents related to the meeting.

sourceTypeCode
required
string (SourceTypeCode)
Enum: "ETUOVI" "OIKOTIE" "ASUNTOJENMYYNTI_FI" "ASUNTOJENHINNAT_FI" "NELIOHINTA_FI" "ASUNTOARVIO_FI" "HOME_PAGE" "CHATBOT" "BANK_COOPERATION" "SHOWING" "BOUGHT_FROM_US" "OLD_CUSTOMER" "RECOMMENDATION" "DIRECT_CONTACT" "AGENT_CONTACT"

The source of the meeting.

required
object (MeetingRealty)
object (PriceEstimate)

Price estimate of the realty related to meeting.

notes
string

Notes about meeting.

Responses

Request samples

Content type
application/json
{
  • "typeCode": "SALES_MEETING",
  • "statusCode": "WAITING",
  • "parties": [
    ],
  • "realtyId": "123e4567-e89b-12d3-a456-426655440000",
  • "visitTime": "2022-12-31T23:59:59Z",
  • "agencyOfficeId": "123e4567-e89b-12d3-a456-426655440000",
  • "agents": [
    ],
  • "sourceTypeCode": "ETUOVI",
  • "meetingRealty": {
    },
  • "priceEstimate": {
    },
  • "notes": "string"
}

Response samples

Content type
application/json
{
  • "meetingId": "c6d2288d-2ecb-448a-aef3-fd5144920e0b"
}

Search meetings

Search meetings.

Authorizations:
bearerAuth
query Parameters
sourceTypeCode
Array of strings (SourceTypeCode)
Items Enum: "ETUOVI" "OIKOTIE" "ASUNTOJENMYYNTI_FI" "ASUNTOJENHINNAT_FI" "NELIOHINTA_FI" "ASUNTOARVIO_FI" "HOME_PAGE" "CHATBOT" "BANK_COOPERATION" "SHOWING" "BOUGHT_FROM_US" "OLD_CUSTOMER" "RECOMMENDATION" "DIRECT_CONTACT" "AGENT_CONTACT"
Example: sourceTypeCode=ETUOVI
statusCode
Array of strings (StatusCode)
Items Enum: "WAITING" "WON" "LOST" "CANCELLED"
Example: statusCode=WAITING
agencyOfficeId
Array of strings <uuid> [ items <uuid > ]
Example: agencyOfficeId=123e4567-e89b-12d3-a456-426655440000

Search by the agency office id to get a list of meetings.

partyId
Array of strings <uuid> [ items <uuid > ]
Example: partyId=75596cf8-9372-4d20-a420-500b9eed403a

Search by the party id to get a list of meetings.

agentId
Array of strings <uuid> [ items <uuid > ]
Example: agentId=6d648e58-edcc-47c2-93c1-6f5568bac85f

Search by the agent id to get a list of meetings.

typeCode
Array of strings (MeetingTypeCode)
Items Enum: "SALES_MEETING" "EVALUATION_VISIT"
Example: typeCode=SALES_MEETING
freeTextSearch
string

Search with free text to match meeting information with the given search text.

visitTimeBefore
string <date-time>

Search by the date to get a list of meeting happening before the given date.

visitTimeAfter
string <date-time>

Search by the date to get a list of meeting happening after the given date.

modifiedAfter
string <date-time>

Search by the modification time to get a list of meetings that were modified after given timestamp.

startIndex
integer <int32> >= 0
Default: 0
Example: startIndex=20

Paginate returned meetings starting from this index. Index starts from 0.

size
integer <int32> [ 1 .. 100 ]
Default: 50
Example: size=40

Meetings returned per page.

sort
Array of strings
Example: sort=visitTime|desc

Sort meetings based on the specified fields. Each fields must also include a sort order as follows:

sort={fieldName}|{asc|desc}&sort={anotherFieldName}|{asc|desc}

Supported sort fields are:

  • visitTime
  • modificationTime
header Parameters
Request-ID
required
string <uuid>
Example: 9031d1c5-7d40-41dd-b2b8-7919a2fc4fe9

A unique id which identifies the HTTP request. The value of this header must be created by the client. This identifier is used for troubleshooting purposes.

Responses

Response samples

Content type
application/json
{
  • "meetings": [
    ],
  • "totalCount": 10
}

Get details of a meeting

Get details of a meeting.

Authorizations:
bearerAuth
path Parameters
meetingId
required
string <uuid>
Example: 9031d1c5-7d40-41dd-b2b8-7919a2fc4fe9

Identifier of the meeting

header Parameters
Request-ID
required
string <uuid>
Example: 9031d1c5-7d40-41dd-b2b8-7919a2fc4fe9

A unique id which identifies the HTTP request. The value of this header must be created by the client. This identifier is used for troubleshooting purposes.

Responses

Response samples

Content type
application/json
{
  • "meetingId": "c6d2288d-2ecb-448a-aef3-fd5144920e0b",
  • "typeCode": "SALES_MEETING",
  • "statusCode": "WAITING",
  • "parties": [
    ],
  • "realtyId": "123e4567-e89b-12d3-a456-426655440000",
  • "visitTime": "2022-12-31T23:59:59Z",
  • "agencyOfficeId": "123e4567-e89b-12d3-a456-426655440000",
  • "agents": [
    ],
  • "sourceTypeCode": "ETUOVI",
  • "meetingRealty": {
    },
  • "priceEstimate": {
    },
  • "notes": "string"
}

Delete a meeting

Delete a meeting. Meeting can be deleted only if it is in WAITING state.

Authorizations:
bearerAuth
path Parameters
meetingId
required
string <uuid>
Example: 9031d1c5-7d40-41dd-b2b8-7919a2fc4fe9

Identifier of the meeting

header Parameters
Request-ID
required
string <uuid>
Example: 9031d1c5-7d40-41dd-b2b8-7919a2fc4fe9

A unique id which identifies the HTTP request. The value of this header must be created by the client. This identifier is used for troubleshooting purposes.

Responses

Response samples

Content type
application/json
{
  • "errorCode": "BAD_REQUEST_PARAMETERS",
  • "message": "Invalid request parameters",
  • "description": "Request parameters are missing or have invalid type.",
  • "errors": [
    ]
}

Update a meeting

Update a meeting. Note that when meetings statusCode is set to WON or LOST "parties" and "visitTime" can't be modified anymore.

Authorizations:
bearerAuth
path Parameters
meetingId
required
string <uuid>
Example: 9031d1c5-7d40-41dd-b2b8-7919a2fc4fe9

Identifier of the meeting

header Parameters
Request-ID
required
string <uuid>
Example: 9031d1c5-7d40-41dd-b2b8-7919a2fc4fe9

A unique id which identifies the HTTP request. The value of this header must be created by the client. This identifier is used for troubleshooting purposes.

Request Body schema: application/json
required

Request body contains details of the meeting.

typeCode
required
string (MeetingTypeCode)
Enum: "SALES_MEETING" "EVALUATION_VISIT"

The type of meeting.

statusCode
required
string (StatusCode)
Enum: "WAITING" "WON" "LOST" "CANCELLED"

The status of the meeting.

  • WAITING. Meeting is waiting for the next action.
  • WON. Meeting have been won. In this state meeting statusCode can only be changed to LOST and parties and visitTime can't be modified anymore.
  • LOST. Meeting have been lost. In this state meeting statusCode can only be changed to WON and parties and visitTime can't be modified anymore.
  • CANCELLED. Meeting have been cancelled. Meeting status will be locked and parties and visitTime can't be modified anymore.
required
Array of objects non-empty

The parties related to the meeting.

realtyId
string <uuid>

The realty id related to the meeting.

visitTime
required
string <date-time>

The date and time of the meeting.

agencyOfficeId
required
string <uuid>

The agency office id related to the meeting.

required
Array of objects non-empty

The agents related to the meeting.

sourceTypeCode
required
string (SourceTypeCode)
Enum: "ETUOVI" "OIKOTIE" "ASUNTOJENMYYNTI_FI" "ASUNTOJENHINNAT_FI" "NELIOHINTA_FI" "ASUNTOARVIO_FI" "HOME_PAGE" "CHATBOT" "BANK_COOPERATION" "SHOWING" "BOUGHT_FROM_US" "OLD_CUSTOMER" "RECOMMENDATION" "DIRECT_CONTACT" "AGENT_CONTACT"

The source of the meeting.

required
object (MeetingRealty)
object (PriceEstimate)

Price estimate of the realty related to meeting.

notes
string

Notes about meeting.

Responses

Request samples

Content type
application/json
{
  • "typeCode": "SALES_MEETING",
  • "statusCode": "WAITING",
  • "parties": [
    ],
  • "realtyId": "123e4567-e89b-12d3-a456-426655440000",
  • "visitTime": "2022-12-31T23:59:59Z",
  • "agencyOfficeId": "123e4567-e89b-12d3-a456-426655440000",
  • "agents": [
    ],
  • "sourceTypeCode": "ETUOVI",
  • "meetingRealty": {
    },
  • "priceEstimate": {
    },
  • "notes": "string"
}

Response samples

Content type
application/json
{
  • "errorCode": "BAD_REQUEST_PARAMETERS",
  • "message": "Invalid request parameters",
  • "description": "Request parameters are missing or have invalid type.",
  • "errors": [
    ]
}