Every published listing is stored in our database under its Id. You can eventually unpublish it (Zonaprop API > DELETE aviso ), republish it (Zonaprop API > PUT aviso ) or modify it without losing the data.

This web service is used to get the status of a Zonaprop listing.

Headers

TypeDescription
AuthorizationProperty API authorization token

Production

Resource information
AuthenticationRequired
HTTP MethodGET
ResponseJSON
Version1

Resource URL

https://api-navent.mapaprop.com/property-api/navent/get-property-status

Parameters - URL

NameTypeRequiredDescription
propertyIdstringyesThe property id
apiKeystringyesThe access token for the Zonaprop API
custIdstringyesThe Zonaprop zone id
brandstringyesThe app name

Response

A string indicating the current status of the listing

ObjectFieldTypeDescription
ResponsesuccessstringA JSON with the property information.
errorstringA text indicating where the error occurred

Sample Code

To get the status of a listing we must first have the listing published from our application.

We will make a GET request to the endpoint

//Authorization required
//METHOD GET

//Endpoint
https://api-navent.mapaprop.com/property-api/navent/get-property-status?brand=mapaprop&propertyId=111&custId=1&apiKey=xxxx

//Parameters
//* brand
//* propertyId
//* custId
//* apiKey

Finally we receive the listing as response.

{
    "message": "Request failed with status code 404",
    "name": "AxiosError",
    "stack": "AxiosError: Request failed with status code 404\n    at settle (/opt/nodejs/node_modules/axios/dist/node/axios.cjs:1859:12)\n    at BrotliDecompress.handleStreamEnd (/opt/nodejs/node_modules/axios/dist/node/axios.cjs:2723:11)\n    at BrotliDecompress.emit (node:events:531:35)\n    at endReadableNT (node:internal/streams/readable:1696:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)",
    "config": {
        "transitional": {
            "silentJSONParsing": true,
            "forcedJSONParsing": true,
            "clarifyTimeoutError": false
        },
        "adapter": [
            "xhr",
            "http"
        ],
        "transformRequest": [
            null
        ],
        "transformResponse": [
            null
        ],
        "timeout": 0,
        "xsrfCookieName": "XSRF-TOKEN",
        "xsrfHeaderName": "X-XSRF-TOKEN",
        "maxContentLength": -1,
        "maxBodyLength": -1,
        "env": {},
        "headers": {
            "Accept": "*/*",
            "Content-Type": "application/json",
            "User-Agent": "axios/1.2.2",
            "Accept-Encoding": "gzip, compress, deflate, br"
        },
        "method": "get",
        "url": "https://api-zp-open.navent.com/v1/inmobiliarias/8550/avisos/status/243053___mapaprop?access_token={REDACTED}"
    },
    "code": "ERR_BAD_REQUEST",
    "status": 404
}