Download OpenAPI specification:Download
Lead API allows an agent to view all the leads received for his/her agency offices.
Initially, the leads are received from Etuovi.com and they are viewing only. In the future, this API will be extended to manage leads arriving from several sources.
If you have any questions, comments or feedback regarding our APIs, please contact developer@ovipro.fi.
Below is the summary of most common error codes included in the response's errorCode
field.
HTTP status code | Error code | Meaning |
---|---|---|
400 | BAD_REQUEST_PARAMETERS |
Invalid request with e.g. missing mandatory parameters. |
400 | BAD_REQUEST_BODY |
Invalid request body with e.g. missing mandatory fields. |
400 | VALUE_REQUIRED |
Mandatory value missing for the request. |
400 | INVALID_TYPE |
Invalid data type provided for the value in the request. |
400 | INVALID_STATUS |
Unable to perform the request operation due to invalid state. |
401 | UNAUTHORIZED |
Unauthorized request. |
404 | INVALID_ID |
Missing or invalid identifier. |
404 | INVALID_API_KEY |
Missing or invalid API key. |
415 | UNSUPPORTED_MEDIA_TYPE |
Unsupported media type. |
500 | TECHNICAL_ERROR |
A technical error has occurred. |
An agent can fetch all the leads for his/her agency officies for the past three months.
agentId required | string <uuid> Example: agentId=b0d2a485-6a73-468a-9acc-d8ce9b620b3d A unique id which identifies the agent. |
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. |
{- "agentId": "fce8cfe4-7a3d-4a72-86bd-d5d7d653e7af",
- "leads": [
- {
- "leadId": "809f0e72-84a9-4ca1-8d14-276b093aef65",
- "creationTime": "2021-06-08T08:04:44+00:00",
- "leadTypeCode": "DETAILS_ABOUT_THE_PROPERTY",
- "leadSourceTypeCode": "ANNOUNCEMENT",
- "message": "Onko asunnossa ilmastointia tai jäähdytystä?",
- "sender": {
- "name": "Matti Virtanen",
- "emailAddress": "matti.virtanen@gmail.com",
- "phoneNumber": "+358404213412"
}, - "recipient": {
- "agencyOfficeId": "34dc84a3-4e61-49d0-83f8-bcd7eeb0b8e7",
- "name": "Kiinteistöykkönen Pirkkala",
- "emailAddress": "info@kiinteistoykkönen.fi"
}, - "realty": {
- "realtyId": "ddc25849-7bc7-43c0-9c3b-602cb03f7806",
- "friendlyId": "D66927",
- "streetAddress": "Hämeenkatu 24",
- "postcode": "33100",
- "postalArea": "Tampere",
- "countryCode": "FI"
}
}
]
}