MLS Listing

Listing (/mls/listing)

list

URI

/list

HTTP method

GET

Parameters

swo.id

Result

Array of listing objects

{
//if sessionId provided
inCart: (boolean)
}

Description


fullList

URI

/fullList

HTTP method

GET

Parameters

swo.id
start (integer)
limit (integer, max 200)

Result

Array of listing objects

{
//if sessionId provided
inCart: (boolean)
}

Description


shortList

URI

/shortList

HTTP method

GET

Parameters

swo.id
start (integer)
limit (integer, max 200)

Result

Array of listing objects

{
//if sessionId provided
inCart: (boolean)
}

Description


create

URI

/create

HTTP method

POST

Parameters

section* (dictionary Section)
country.id * (integer) (id for Poland = 34)
location.id* (integer)
street.id (integer)
foreignLocation* (string)
foreignStreet (string)
geoLat* (float)
geoLng* (float)
houseNumber (string)
flatNumber (string)
lotNumber (string)
districtNumber (string)
vacantFromDate (date)
contractType (dictionary ContractType)
contractNumber (string)
contractRegisterNumber (string)
contractDate (date)
contractExpirationDate (date)
ownershipType (dictionary ContractType)
kwRegisterNumber (string)
description (string)
privateDescription (string)
englishDescription (string)
extListingId (string)
contract.id (integer)
//additional fields for sections based on /mls/listing/get

Result

Id of listing

{id: (integer)}

Description

Creates listing.

Ids for location data should be fetched from Location service:
location.id - /location/findExactLocations
street.id - /location/findStreets

update

URI

/update

HTTP method

POST

Parameters

id (integer)* - id of listing
same parameters as create

Result

{"success":true,"data":{}}

Description


update (publish in SWO)

URI

/update

HTTP method

POST

Parameters

id (integer)* - id of listing
publishInSwo: true
swoCommissionPercent (integer)
swoCommissionPercentType: Netto
swoCommissionMoney.amount (money)
swoCommissionMoney.currency: PLN

Result

{"success":true,"data":{}}

Description


get

URI

/get

HTTP method

GET

Parameters

id (integer)* - id of listing

Result

{"success":true,"data":{}}

Description

Listing details.

cancel

URI

/cancel

HTTP method

POST

Parameters

id (integer)* - id of listing

Result


Description

Cancel listing

close

URI

/close

HTTP method

POST

Parameters

id (integer)* - id of listing
closingDate (format yyyy-mm-dd HH:mm:ss)

Result


Description

Closes listing with given parameters.

activate

URI

/activate

HTTP method

POST

Access scope

privilege Edit

Parameters

id (integer)* - id of listing

Result


Description

Activates listing.

block

URI

/block

HTTP method

POST

Access scope

privilege Edit

Parameters

id (integer)* - id of listing
to (format yyyy-mm-dd)

Result


Description

Blocks listing.