{"info":{"_postman_id":"760a6bf6-44f3-4600-a0a0-e64380141d06","name":"API documentation","description":"<html><head></head><body><h1 id=\"overview\">📄 Overview</h1>\n<hr>\n<p>The API attempts to conform to the design principles of Representational State Transfer (REST). Methods to retrieve data from the API require a GET request. Methods that submit, change, or destroy data require a POST or PUT. A DELETE request is required for methods that destroy data. API Methods that require a particular HTTP method will return an error if you do not make your request with the correct one. HTTP Response Codes are meaningful.</p>\n<h2 id=\"endpoints\"><strong>Endpoints</strong></h2>\n<p>HTTPS endpoints are available for all APIs.</p>\n<p>The current endpoint for the API is: <code>https://api.realestate.co.nz/1/</code></p>\n<ul>\n<li><p>You must use a valid API Key to send requests to the API endpoints.</p>\n</li>\n<li><p>The API has rate and usage limits.</p>\n</li>\n<li><p>All request parameter values should be converted to UTF-8 and URL encoded. All request paths should include a trailing <code>/</code>.</p>\n</li>\n</ul>\n<h2 id=\"authentication\">Authentication</h2>\n<p>All API calls must be signed. Each application/developer will be issued with an API key (public) and an API secret (private). The process of signing is as follows:</p>\n<ol>\n<li><p>Make sure any URL request parameters (GET) are UTF-8 &amp; URL encoded.</p>\n</li>\n<li><p>Sort your URL argument list into alphabetical (ASCII) order based on the parameter name and value.<br> <code>e.g. max_results=100, listing_type_id=1, format=full sorts to format=full, listing_type_id=1, max_results=100</code></p>\n</li>\n<li><p>Concatenate the below items into a single string, ensuring it is in lower case:</p>\n<ol>\n<li><p>your API secret (private)</p>\n</li>\n<li><p>the request path, including a trailing slash (eg. /1/listings/)</p>\n</li>\n<li><p>sorted URL argument name-value pairs, if any<br> <code>e.g. ApiSecret/1/listings/formatfulllisting_type_id1max_results100</code></p>\n</li>\n</ol>\n</li>\n<li><p>Calculate the MD5 hash of this string<br> <code>e.g. &amp;api_sig=20f6224cb85693ecab0297f1c0fc9207</code></p>\n</li>\n<li><p>The final request URL should resemble the below:<br> <code>https://api.realestate.co.nz/1/listings/?format=full&amp;listing_type_id=1&amp;max_results=100&amp;api_key=PublicApiKey&amp;api_sig=20f6224cb85693ecab0297f1c0fc9207</code></p>\n</li>\n</ol>\n<h3 id=\"authentication-error-response\">Authentication error response</h3>\n<p>If an API key is missing, malformed, or invalid, you will receive an HTTP 400 response code.</p>\n<h2 id=\"responses\"><strong>Responses</strong></h2>\n<p>All responses will be in JSON format by default. To request a different format pass a HTTP Accept header with the appropriate <code>content-type</code> as part of the request. Acceptable content types are: * JSON: <code>application/json</code></p>\n<p>HTTP Status codes should be used wherever possible to give an overview of the result of the request. In addition, <code>4xx</code> or <code>5xx</code> responses include a human-readable error description as well, with a response in the following format.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": false,\n  \"message\": \"Api signature is invalid.\"\n}\n\n</code></pre>\n<h2 id=\"common-response-codes\">Common Response Codes</h2>\n<ul>\n<li><p>200 OK - the request completed successfully.</p>\n</li>\n<li><p>204 No Content - the request completed successfully, and there’s nothing more to say.</p>\n</li>\n<li><p>400 Bad Request - if one or more parameters are missing or invalid.</p>\n</li>\n<li><p>401 Not Authorized - the requester is not authorised to access the resource. The API signature does not match the parameters included in the request.</p>\n</li>\n<li><p>403 Forbidden - the requester is not authorised to access the resource.</p>\n</li>\n<li><p>404 Not Found - the resource or method wasn’t found.</p>\n</li>\n<li><p>500 Server Error - there was an error processing the request.</p>\n</li>\n<li><p>502 Bad Gateway - there was an error processing the request.</p>\n</li>\n<li><p>504 Gateway Timeout - request timed out.</p>\n</li>\n</ul>\n<p>If the users passes an <code>Accept-Encoding=gzip</code> request header, the response should be gzip encoded appropriately.</p>\n<h2 id=\"rate-and-usage-limits\">Rate and usage limits</h2>\n<p>API access rate limits apply at a per-API key basis in unit time. The limit is 1000 requests per minute. If you exceed the limit, your request will return an HTTP 502 bad gateway or 504 gateway time out.</p>\n<h3 id=\"need-some-help\"><strong>Need some help?</strong></h3>\n<p>Our Platform support team are available via email (<a href=\"https://mailto:platform@realstate.co.nz\">platform@realstate.co.nz</a>) or Slack. Contact via email if your company doesn't have a support Slack channel yet.</p>\n<h1 id=\"images\">Images</h1>\n<p>Images are returned as an md5 image ID:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">\"images_md5\": [\n  \"dc2cb56eeff397fdc9a616321372ed06\",\n  \"22ab49c3c313124775e632f4cc8d463c\",\n  \"bba32d9a0baac02b22fd99bfadfd50c1\"\n],\n\"image\": \"59de79cc8f197e48cfe2ae05108e74b2\",\n\n</code></pre>\n<p>To generate the correct URL for the image concatenate the host, object type, image md5, transformations and image type:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">https://images16.realestate.co.nz///...jpg\nhttps://images16.realestate.co.nz///.jpg\n\n</code></pre>\n<ul>\n<li><p><code>https://images16.realestate.co.nz/</code> is the production image server.</p>\n</li>\n<li><p>use <code>listings</code> for listing images and <code>per_orgs</code> for agent and office logos.</p>\n</li>\n<li><p>the ID of the listing/agent/office</p>\n</li>\n<li><p>the MD5 of the image</p>\n</li>\n<li><p>the resize mode:</p>\n<ul>\n<li><p><code>scale</code></p>\n</li>\n<li><p><code>crop</code></p>\n</li>\n<li><p><code>auto</code></p>\n</li>\n</ul>\n</li>\n<li><p>the image size. Required size arguments depend on resize mode.</p>\n<ul>\n<li><p><code>100x100</code> specifying width &amp; height</p>\n</li>\n<li><p><code>x100</code> specifying only height</p>\n</li>\n<li><p><code>100x</code> specifying only width</p>\n</li>\n</ul>\n</li>\n</ul>\n<p>Note:</p>\n<p>For Example:</p>\n<ul>\n<li><p><code>https://images16.realestate.co.nz/listings/181319/dc2cb56eeff397fdc9a616321372ed06.scale.400x.jpg</code></p>\n</li>\n<li><p><code>https://images16.realestate.co.nz/per_orgs/17432/cd47f7bc6527cec7e1d884227484cef6.scale.400x.jpg</code></p>\n</li>\n</ul>\n<h1 id=\"regions-get-regions\">Regions - GET /regions/</h1>\n<p>Returns a list of available regions. The response should only return enabled &amp; non-Confidential regions.</p>\n<h2 id=\"request\">Request</h2>\n<p>No parameters</p>\n<h2 id=\"response\">Response</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n {\n  id: 89,\n  name: \"Auckland\",\n  slug: \"auckland\",\n  bounds: null\n },\n ...\n]\n\n</code></pre>\n<h1 id=\"districts-get-districts\">Districts - GET /districts/</h1>\n<p>Returns a list of available districts and the id of the region it belongs to. The response should only return enabled &amp; non-Confidential districts.</p>\n<h2 id=\"request-1\">Request</h2>\n<p>No parameters</p>\n<h2 id=\"response-1\">Response</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n {\n  id: 678,\n  name: \"Auckland City\",\n  slug: \"auckland-city\",\n  region_id: 89\n  bounds: null\n },\n ...\n]\n\n</code></pre>\n<h1 id=\"suburbs-get-suburbs\">Suburbs - GET /suburbs/</h1>\n<p>Returns a list of available suburbs and the id's of the district/region it belongs to, also returns the id's of nearby suburbs. The response should only return enabled &amp; non-Confidential suburbs.</p>\n<h2 id=\"request-2\">Request</h2>\n<p>No parameters</p>\n<h2 id=\"response-2\">Response</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n  {\n    \"id\": 34567,\n      \"name\": \"Balmoral\",\n      \"slug\": \"balmoral\",\n      \"district_id\": 678,\n      \"region_id\": 89,\n      \"bounds\": null,\n      \"nearby_suburbs\": [1234,5678]\n  },\n ...\n]\n\n</code></pre>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Region Name</td>\n<td>Region the suburb belongs to.</td>\n</tr>\n<tr>\n<td>District Name</td>\n<td>District the suburb belongs to.</td>\n</tr>\n<tr>\n<td>Base Suburb Name</td>\n<td>The actual suburb/locality.</td>\n</tr>\n<tr>\n<td>API Surburb ID</td>\n<td>The API suburb ID</td>\n</tr>\n<tr>\n<td>FTP SDN</td>\n<td>The FTP suburb ID (Deprecated)</td>\n</tr>\n<tr>\n<td>Displayed As</td>\n<td>The suburb that appears on the site.</td>\n</tr>\n<tr>\n<td>Is Deprecated?</td>\n<td>Deprecated suburbs will be removed from the list at a later date. Only non-deprecated suburbs can be used with the API</td>\n</tr>\n</tbody>\n</table>\n</div></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"📄 Overview","slug":"overview"},{"content":"Images","slug":"images"},{"content":"Regions - GET /regions/","slug":"regions-get-regions"},{"content":"Districts - GET /districts/","slug":"districts-get-districts"},{"content":"Suburbs - GET /suburbs/","slug":"suburbs-get-suburbs"}],"owner":"7106971","collectionId":"760a6bf6-44f3-4600-a0a0-e64380141d06","publishedId":"2sAXxY48ii","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-10-21T21:38:59.000Z"},"item":[{"name":"Listings","event":[{"listen":"test","script":{"id":"7703c7b6-059b-441e-8f1e-984c02234fb8","exec":[""],"type":"text/javascript","packages":{}}}],"id":"5172682e-06cc-4166-964f-97a96e829710","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api_key"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.realestate.co.nz/1/listings/?format=full&api_sig=","description":"<h1 id=\"listing-search---get-listings\">Listing Search - GET /listings/</h1>\n<p>Get a list of listings based on a range of search criteria.</p>\n<h2 id=\"request\">Request</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Values</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td><code>[integer]</code></td>\n<td>No</td>\n<td>Listing ID</td>\n</tr>\n<tr>\n<td>agent_id</td>\n<td><code>[integer]</code></td>\n<td>No</td>\n<td>Agent ID</td>\n</tr>\n<tr>\n<td>office_id</td>\n<td><code>[integer]</code></td>\n<td>No</td>\n<td>Office ID</td>\n</tr>\n<tr>\n<td>listing_no</td>\n<td><code>[reference]</code></td>\n<td>No</td>\n<td>Agent’s reference to the listing (string).</td>\n</tr>\n<tr>\n<td>listing_status</td>\n<td><code>[active or withdrawn or sold]</code></td>\n<td>No</td>\n<td>Listing status. Default is active.</td>\n</tr>\n<tr>\n<td>live_listings_only</td>\n<td><code>[true or false]</code></td>\n<td>No</td>\n<td>Whether to return all or only live_listings. Default is true.</td>\n</tr>\n<tr>\n<td>listed_after</td>\n<td><code>[timestamp]</code></td>\n<td>No</td>\n<td>Listed after (=) specified date.</td>\n</tr>\n<tr>\n<td>listed_before</td>\n<td><code>[timestamp]</code></td>\n<td>No</td>\n<td>Listed before (=) specified date.</td>\n</tr>\n<tr>\n<td>changed_after</td>\n<td><code>[timestamp]</code></td>\n<td>No</td>\n<td>Last changed after (=) specified date.</td>\n</tr>\n<tr>\n<td>changed_before</td>\n<td><code>[timestamp]</code></td>\n<td>No</td>\n<td>Last changed before (=) specified date.</td>\n</tr>\n<tr>\n<td>val_ref</td>\n<td><code>[val-ref]</code></td>\n<td>No</td>\n<td>Valuation reference string. Pass the parameter with no value to find entries without val-refs.</td>\n</tr>\n<tr>\n<td>sort_order</td>\n<td><code>[price_min or -price_min or listing_date or -listing_date or featured]</code></td>\n<td>No</td>\n<td>Sort order of the results. A “-“ prefix indicates descending. Default is an undefined sort order.</td>\n</tr>\n<tr>\n<td>max_results</td>\n<td><code>[count]</code></td>\n<td>No</td>\n<td>Maximum number of results to return. Default is 100, max is 1000.</td>\n</tr>\n<tr>\n<td>offset</td>\n<td><code>[offset]</code></td>\n<td>No</td>\n<td>0-based offset into the result set. Use with max_results to page through the results. Make sure you pass a sort_order for sane results. Pagination is only supported up to 10,000 records.</td>\n</tr>\n<tr>\n<td>format</td>\n<td><code>[id or basic or full]</code></td>\n<td>No</td>\n<td>How much detail to return about a listing - see examples below. Default is id.</td>\n</tr>\n</tbody>\n</table>\n</div><p>Timestamps included in requests should be in the format YYYY-MM-DD, for example: <code>2010-12-01</code> (Date only)</p>\n<p>Requested filter parameters are <code>AND</code>ed together to produce the results. Each request parameter may be included only once, except for the following parameters. If a parameter is specified more than once, the values are <code>OR</code>ed within that parameter, then <code>AND</code>ed with other parameters:</p>\n<ul>\n<li><p>id</p>\n</li>\n<li><p>listing_type_id</p>\n</li>\n<li><p>listing_subtype_id</p>\n</li>\n<li><p>listing_no</p>\n</li>\n<li><p>val_ref</p>\n</li>\n<li><p>agent_id</p>\n</li>\n<li><p>office_id</p>\n</li>\n</ul>\n<h1 id=\"listings---get-listingslisting-id\">Listings - GET /listings/[listing-id]/</h1>\n<p>Retrieve the details available for a single listing.</p>\n<h2 id=\"request-1\">Request</h2>\n<p><code>listing-id</code> is the ID of the listing to retrieve details for.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Values</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>format</td>\n<td><code>[id or basic or full]</code></td>\n<td>No</td>\n<td>How much detail to return about a listing - see below. Default is basic.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response\">Response</h3>\n<p>Please see example responses.</p>\n<h3 id=\"listing-field-descriptions\">Listing Field Descriptions</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field Name</strong></th>\n<th><strong>Mandatory</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Validation</strong></th>\n<th><strong>Example</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>Yes</td>\n<td>The unique identifier for this listing</td>\n<td>integer</td>\n<td>1234567</td>\n</tr>\n<tr>\n<td>teaser</td>\n<td>Yes</td>\n<td>Header for advertising text displayed on Realestate.co.nz sites. Natural English language text only. Reduced to 50 characters for enhanced display in saved search emails and on the Realestate App.</td>\n<td>string</td>\n<td>Pretty as a Picture</td>\n</tr>\n<tr>\n<td>description</td>\n<td>Yes</td>\n<td>Primary description for the listing.Natural English language text and HTML allowed.</td>\n<td>string</td>\n<td>North facing this property is a warm retreat after a head day in the office. A must see.</td>\n</tr>\n<tr>\n<td>updated_date</td>\n<td>Yes</td>\n<td>Date the listing was last updated</td>\n<td>Date string</td>\n<td>2024-08-28</td>\n</tr>\n<tr>\n<td>created_date</td>\n<td>Yes</td>\n<td>Date the listing was created</td>\n<td>Date string</td>\n<td>2024-08-28</td>\n</tr>\n<tr>\n<td>listing_date</td>\n<td>Yes</td>\n<td>Date the listing was published</td>\n<td>Date string</td>\n<td>2024-08-28</td>\n</tr>\n<tr>\n<td>status_change_date</td>\n<td>Yes</td>\n<td>Date the listing status was last changed</td>\n<td>Date string</td>\n<td>2024-08-28</td>\n</tr>\n<tr>\n<td>external_url</td>\n<td>No</td>\n<td>URL to external website with additional listing info.</td>\n<td>url</td>\n<td><a href=\"https://example.com\">https://example.com</a></td>\n</tr>\n<tr>\n<td>listing_status</td>\n<td>Yes</td>\n<td>Current status of the listing</td>\n<td>string</td>\n<td>active</td>\n</tr>\n<tr>\n<td>price:  <br />- tender_date  <br />- auction_date  <br />- price_search  <br />- price_full  <br />- price_gst_included  <br />- price_gst  <br />- pricing_method_id  <br />- price  <br />- text_description</td>\n<td>Yes</td>\n<td>An array of information about the listing price</td>\n<td>object</td>\n<td>\"tender_date\": null,  <br />\"auction_date\": null,  <br />\"price_search\": 830000,  <br />\"price_full\": \"Deadline Sale\",  <br />\"price_gst_included\": true,  <br />\"price_gst\": \"830000\",  <br />\"pricing_method_id\": 7,  <br />\"price\": 830000,  <br />\"text_description\": null</td>\n</tr>\n<tr>\n<td>address:  <br />- val_ref  <br />- street  <br />- subpremises  <br />- street_number_text  <br />- street_number  <br />- unit  <br />- accuracy  <br />- publish_address  <br />- re_nzfs_suburb_id  <br />- suburb_id  <br />- district_id  <br />- region_id  <br />- region  <br />- locality  <br />- district  <br />- suburb  <br />- post_code  <br />- text</td>\n<td>Yes</td>\n<td>An array of address data for the listing</td>\n<td>Object</td>\n<td>See sample request</td>\n</tr>\n<tr>\n<td>location</td>\n<td>Yes</td>\n<td>Geo co-ordinates for the listing</td>\n<td>Array</td>\n<td>[-40.8903851, 174.99772]</td>\n</tr>\n<tr>\n<td>listing_subtype_id</td>\n<td>Yes</td>\n<td>Listing property type</td>\n<td>Integer</td>\n<td>Refer table below</td>\n</tr>\n<tr>\n<td>bathrooms</td>\n<td>Yes</td>\n<td>Number of bathrooms</td>\n<td>Integer</td>\n<td>2</td>\n</tr>\n<tr>\n<td>bedrooms</td>\n<td>Yes</td>\n<td>Number of  <br />bedrooms</td>\n<td>Integer</td>\n<td>2</td>\n</tr>\n<tr>\n<td>car_spaces</td>\n<td>No</td>\n<td>Number of car parking spaces</td>\n<td>Integer</td>\n<td>1</td>\n</tr>\n<tr>\n<td>floor_area</td>\n<td>No</td>\n<td>Floor are in sqm</td>\n<td>Integer</td>\n<td>315</td>\n</tr>\n<tr>\n<td>listing_type_id</td>\n<td>Yes</td>\n<td>Listing category</td>\n<td>Integer</td>\n<td>See table below</td>\n</tr>\n<tr>\n<td>listing_no</td>\n<td>Yes</td>\n<td>External listing number. Listing numbers restricted to alpha numeric only. No spaces or symbols allowed. Max 10 characters.</td>\n<td>String</td>\n<td>567XYZ</td>\n</tr>\n<tr>\n<td>property_id</td>\n<td>No</td>\n<td>DPID used by Post Office</td>\n<td>Integer</td>\n<td>12345</td>\n</tr>\n<tr>\n<td>url</td>\n<td>Yes</td>\n<td>URL for the listing on <a href=\"http://www.realestate.co.nz\">www.realestate.co.nz</a></td>\n<td>String</td>\n<td>See sample request below</td>\n</tr>\n<tr>\n<td>images_md5</td>\n<td>Yes</td>\n<td>md5 hash of the images of the listing</td>\n<td>Array</td>\n<td>See sample request below</td>\n</tr>\n<tr>\n<td>images</td>\n<td>Yes</td>\n<td>Partial URL of the images</td>\n<td>Array</td>\n<td>See sample request below</td>\n</tr>\n<tr>\n<td>offices:  <br />- street_address  <br />- country  <br />- postcode  <br />- address  <br />- logo_md5  <br />- logo  <br />- website  <br />- email  <br />- phone  <br />- name  <br />- id</td>\n<td>Yes</td>\n<td>Details of the listing office</td>\n<td>Object</td>\n<td>See sample request below</td>\n</tr>\n<tr>\n<td>features  <br />- category  <br />- description</td>\n<td>No</td>\n<td>Additional features of the property</td>\n<td>Object</td>\n<td>See sample request below</td>\n</tr>\n</tbody>\n</table>\n</div><p><img src=\"https://content.pstmn.io/f66c5149-a40d-40e4-913e-3aaedbbb18bf/TGlzdGluZyBUeXBlLkpQRw==\" alt=\"Listing%20Type\n&lt;br&gt;\n&lt;br&gt;\" /><img src=\"https://content.pstmn.io/d1e77cf3-6fd1-4e61-8c9a-4c9c52cf2c2e/TGlzdGluZyBTdWIgVHlwZS5qcGc=\" alt=\"Listing%20Sub%20Type\" /></p>\n","urlObject":{"protocol":"https","path":["1","listings",""],"host":["api","realestate","co","nz"],"query":[{"disabled":true,"description":{"content":"<p>Listing id</p>\n","type":"text/plain"},"key":"id","value":""},{"disabled":true,"description":{"content":"<p>Agent id</p>\n","type":"text/plain"},"key":"agent_id","value":""},{"disabled":true,"description":{"content":"<p>Office id</p>\n","type":"text/plain"},"key":"office_id","value":""},{"disabled":true,"description":{"content":"<p>Agents reference to the listing</p>\n","type":"text/plain"},"key":"listing_no","value":""},{"disabled":true,"description":{"content":"<p>Listing Status. Default is active. </p>\n","type":"text/plain"},"key":"listing_status","value":""},{"disabled":true,"description":{"content":"<p>Whether to return all or live listings. Default is true</p>\n","type":"text/plain"},"key":"live_listings_only","value":""},{"disabled":true,"description":{"content":"<p>Listed after specific date &gt;= </p>\n","type":"text/plain"},"key":"listed_after","value":"2024-10-01"},{"disabled":true,"description":{"content":"<p>Listed before specific date &lt;</p>\n","type":"text/plain"},"key":"listed_before","value":"2024-10-01"},{"disabled":true,"description":{"content":"<p>Last changed after a specific date &gt;=</p>\n","type":"text/plain"},"key":"changed_after","value":"2024-10-01"},{"disabled":true,"description":{"content":"<p>Last changed before a specific date &lt;</p>\n","type":"text/plain"},"key":"changed_before","value":""},{"disabled":true,"description":{"content":"<p>Valuation reference. Pass the parameter with no value to find entries without val-refs</p>\n","type":"text/plain"},"key":"val_ref","value":""},{"disabled":true,"description":{"content":"<p>Sort order of results. A \"-\" refix indicates descending order. Default is undefined</p>\n","type":"text/plain"},"key":"sort_order","value":""},{"disabled":true,"description":{"content":"<p>Maximum number of results to return. Default is 100, Max is 1000</p>\n","type":"text/plain"},"key":"max_results","value":""},{"disabled":true,"description":{"content":"<p>Zero based offset into the result set. Make sure you pass a sort_order for sane results. Pagination is only supported upto 10000 records</p>\n","type":"text/plain"},"key":"offset","value":""},{"key":"format","value":"full"},{"key":"api_sig","value":""}],"variable":[]}},"response":[{"id":"7aef6bf6-f16a-437a-97fd-eff54c70f0da","name":"Format = id","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"id","value":"12345678","type":"text"}],"url":{"raw":"https://api.realestate.co.nz/1/listings/?id=12345678&format=id&api_sig=","protocol":"https","host":["api","realestate","co","nz"],"path":["1","listings",""],"query":[{"key":"id","value":"12345678","description":"Listing id"},{"key":"agent_id","value":"","description":"Agent id","disabled":true},{"key":"office_id","value":"","description":"Office id","disabled":true},{"key":"listing_no","value":"","description":"Agents reference to the listing","disabled":true},{"key":"listing_status","value":"","description":"Listing Status. Default is active. ","disabled":true},{"key":"live_listings_only","value":"","description":"Whether to return all or live listings. Default is true","disabled":true},{"key":"listed_after","value":"2024-10-01","description":"Listed after specific date >= ","disabled":true},{"key":"listed_before","value":"2024-10-01","description":"Listed before specific date <","disabled":true},{"key":"changed_after","value":"2024-10-01","description":"Last changed after a specific date >=","disabled":true},{"key":"changed_before","value":"","description":"Last changed before a specific date <","disabled":true},{"key":"val_ref","value":"","description":"Valuation reference. Pass the parameter with no value to find entries without val-refs","disabled":true},{"key":"sort_order","value":"","description":"Sort order of results. A \"-\" refix indicates descending order. Default is undefined","disabled":true},{"key":"max_results","value":"","description":"Maximum number of results to return. Default is 100, Max is 1000","disabled":true},{"key":"offset","value":"","description":"Zero based offset into the result set. Make sure you pass a sort_order for sane results. Pagination is only supported upto 10000 records","disabled":true},{"key":"format","value":"id"},{"key":"api_sig","value":""}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": 12345678\n}"},{"id":"8c263006-060d-4c35-9902-9f5b1891b26e","name":"Format = basic","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"id","value":"12345678","type":"text"}],"url":{"raw":"https://api.realestate.co.nz/1/listings/?id=41620443&format=full&api_sig=","protocol":"https","host":["api","realestate","co","nz"],"path":["1","listings",""],"query":[{"key":"id","value":"41620443","description":"Listing id"},{"key":"agent_id","value":"","description":"Agent id","disabled":true},{"key":"office_id","value":"","description":"Office id","disabled":true},{"key":"listing_no","value":"","description":"Agents reference to the listing","disabled":true},{"key":"listing_status","value":"","description":"Listing Status. Default is active. ","disabled":true},{"key":"live_listings_only","value":"","description":"Whether to return all or live listings. Default is true","disabled":true},{"key":"listed_after","value":"2024-10-01","description":"Listed after specific date >= ","disabled":true},{"key":"listed_before","value":"2024-10-01","description":"Listed before specific date <","disabled":true},{"key":"changed_after","value":"2024-10-01","description":"Last changed after a specific date >=","disabled":true},{"key":"changed_before","value":"","description":"Last changed before a specific date <","disabled":true},{"key":"val_ref","value":"","description":"Valuation reference. Pass the parameter with no value to find entries without val-refs","disabled":true},{"key":"sort_order","value":"","description":"Sort order of results. A \"-\" refix indicates descending order. Default is undefined","disabled":true},{"key":"max_results","value":"","description":"Maximum number of results to return. Default is 100, Max is 1000","disabled":true},{"key":"offset","value":"","description":"Zero based offset into the result set. Make sure you pass a sort_order for sane results. Pagination is only supported upto 10000 records","disabled":true},{"key":"format","value":"full"},{"key":"api_sig","value":""}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": 41620443,\n    \"teaser\": \"Family Home!\",\n    \"description\": \"This fully renovated property offers a harmonious combination of flexible living arrangements, space and privacy.  Ideal for busy families, multigenerational / blended family living,  and co-owners\\nFive double bedrooms with inbuilt wardrobes. Fully equipped kitchen with open plan lounge and dining areas. Three bathrooms and Two laundries. Two heatpumps. Single internal access garage. A lush orchard with an amazing variety of fruit trees. So close to the following:\\n Beach School,  College and Shops, Transport, Day Care and Playcentre \\n\",\n    \"listing_date\": \"2024-01-08\",\n    \"listing_status\": \"active\",\n    \"price\": {\n        \"tender_date\": null,\n        \"auction_date\": null,\n        \"price_search\": 1830000,\n        \"price_full\": \"Deadline Sale\",\n        \"price_gst_included\": true,\n        \"price_gst\": \"1830000\",\n        \"pricing_method_id\": 7,\n        \"price\": 830000,\n        \"text_description\": null\n    },\n    \"address\": {\n        \"accuracy\": 10,\n        \"text\": [\n            \"106T API Lane, Para Beach\",\n            \"Paraparaumu Beach\",\n            \"Kapiti Coast\",\n            \"Wellington 5032\"\n        ]\n    },\n    \"location\": [\n        -41.8903851,\n        173.99772\n    ],\n    \"listing_subtype_id\": 1,\n    \"bathrooms\": 3,\n    \"bedrooms\": 5,\n    \"car_spaces\": 3,\n    \"listing_type_id\": 1,\n    \"listing_no\": \"TEST001\",\n    \"property_id\": null,\n    \"url\": \"https://www.realestate.co.nz/41620443/residential/sale/106t-api-lane-paraparaumu-beach-paraparaumu-beach\"\n}"},{"id":"2314c217-c5be-4837-8d43-06c19cb5c60f","name":"Format = full","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://api.realestate.co.nz/1/listings/?id=41620443&format=full&api_sig=","protocol":"https","host":["api","realestate","co","nz"],"path":["1","listings",""],"query":[{"key":"id","value":"41620443","description":"Listing id"},{"key":"agent_id","value":"","description":"Agent id","disabled":true},{"key":"office_id","value":"","description":"Office id","disabled":true},{"key":"listing_no","value":"","description":"Agents reference to the listing","disabled":true},{"key":"listing_status","value":"","description":"Listing Status. Default is active. ","disabled":true},{"key":"live_listings_only","value":"","description":"Whether to return all or live listings. Default is true","disabled":true},{"key":"listed_after","value":"2024-10-01","description":"Listed after specific date >= ","disabled":true},{"key":"listed_before","value":"2024-10-01","description":"Listed before specific date <","disabled":true},{"key":"changed_after","value":"2024-10-01","description":"Last changed after a specific date >=","disabled":true},{"key":"changed_before","value":"","description":"Last changed before a specific date <","disabled":true},{"key":"val_ref","value":"","description":"Valuation reference. Pass the parameter with no value to find entries without val-refs","disabled":true},{"key":"sort_order","value":"","description":"Sort order of results. A \"-\" refix indicates descending order. Default is undefined","disabled":true},{"key":"max_results","value":"","description":"Maximum number of results to return. Default is 100, Max is 1000","disabled":true},{"key":"offset","value":"","description":"Zero based offset into the result set. Make sure you pass a sort_order for sane results. Pagination is only supported upto 10000 records","disabled":true},{"key":"format","value":"full"},{"key":"api_sig","value":""}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": 41620443,\n    \"teaser\": \"Family Home!\",\n    \"description\": \"This fully renovated property offers a harmonious combination of flexible living arrangements, space and privacy.  Ideal for busy families, multigenerational / blended family living,  and co-owners\\nFive double bedrooms with inbuilt wardrobes. Fully equipped kitchen with open plan lounge and dining areas. Three bathrooms and Two laundries. Two heatpumps. Single internal access garage. A lush orchard with an amazing variety of fruit trees. So close to the following:\\n Beach School,  College and Shops, Transport, Day Care and Playcentre \\n\",\n    \"updated_date\": \"2024-08-08\",\n    \"created_date\": \"2024-08-08\",\n    \"listing_date\": \"2024-08-08\",\n    \"status_change_date\": \"2024-08-08\",\n    \"external_url\": \"https://real.estate/T29903918\",\n    \"listing_status\": \"active\",\n    \"price\": {\n        \"tender_date\": null,\n        \"auction_date\": null,\n        \"price_search\": 830000,\n        \"price_full\": \"Deadline Sale\",\n        \"price_gst_included\": true,\n        \"price_gst\": \"830000\",\n        \"pricing_method_id\": 7,\n        \"price\": 830000,\n        \"text_description\": null\n    },\n    \"address\": {\n        \"val_ref\": \"\",\n        \"street\": \"API Road, Para Beach\",\n        \"subpremises\": null,\n        \"street_number_text\": \"106T\",\n        \"street_number\": \"106T\",\n        \"unit\": \"\",\n        \"accuracy\": 10,\n        \"publish_address\": true,\n        \"re_nzfs_suburb_id\": 263,\n        \"suburb_id\": 263,\n        \"district_id\": 261,\n        \"region_id\": 42,\n        \"region\": \"Wellington\",\n        \"locality\": \"Wellington\",\n        \"district\": \"Kapiti Coast\",\n        \"suburb\": \"Paraparaumu Beach\",\n        \"post_code\": \"5032\",\n        \"text\": [\n            \"106T API Lane, Para Beach\",\n            \"Paraparaumu Beach\",\n            \"Kapiti Coast\",\n            \"Wellington 5032\"\n        },\n        \"location\": [\n            -41.8903851,\n            173.99772\n        ],\n        \"listing_subtype_id\": 1,\n        \"bathrooms\": 3,\n        \"bedrooms\": 4,\n        \"car_spaces\": 3,\n        \"floor_area\": 177,\n        \"listing_type_id\": 1,\n        \"listing_no\": \"TEST001\",\n        \"property_id\": null,\n        \"url\": \"https://www.realestate.co.nz/41620443/residential/sale/106t-api-lane-paraparaumu-beach-paraparaumu-beach\",\n        \"images_md5\": [\n            \"1939a2cc1786a9e31282d77dec95a4be\",\n            \"f43cb9f556b836003c36b224cec82383\",\n            \"caf1ad6e5faa83fb14939a15840181b5\"\n        ],\n        \"images\": [\n            \"https://images16.realestate.co.nz/listings/41620443/1939a2cc1786a9e31282d77dec95a4be\",\n            \"https://images16.realestate.co.nz/listings/41620443/f43cb9f556b836003c36b224cec82383\",\n            \"https://images16.realestate.co.nz/listings/41620443/caf1ad6e5faa83fb14939a15840181b5\",\n        ],\n        \"offices\": [\n            {\n                \"street_address\": {\n                    \"country\": null,\n                    \"postcode\": \"5032\",\n                    \"address\": [\n                        \"Coastlands Parade\",\n                        null,\n                        \"Paraparaumu\"\n                    ]\n                },\n                \"logo_md5\": \"041f1a8f2c43f4d5d05b3fb15e5b9681\",\n                \"logo\": \"https://images16.realestate.co.nz/pid/1234/\",\n                \"website\": \"http://www.real.estate.co.nz\",\n                \"email\": \"paraparaumu@real.estate.co.nz\",\n                \"phone\": \"04 000 0000\",\n                \"name\": \"Team Real Estate Ltd (Licensed: REAA 2008)\",\n                \"id\": 1234\n            }\n        ],\n        \"features\": [\n            {\n                \"category\": \"Other Features\",\n                \"description\": \"2 x Wall Heaters\"\n            }\n        ]\n    }\n}"}],"_postman_id":"5172682e-06cc-4166-964f-97a96e829710"},{"name":"Offices","event":[{"listen":"test","script":{"id":"9716a402-df6c-409f-8bdc-e15733ac4e5a","exec":[""],"type":"text/javascript","packages":{}}}],"id":"0e2631ea-d3d0-4c99-8320-918263e0281c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api_key"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.realestate.co.nz/1/offices/?format=full&api_sig","description":"<h1 id=\"office-search---get-offices\">Office Search - GET /offices/</h1>\n<p>Get a list of offices based on a range of search criteria.</p>\n<h2 id=\"request\">Request</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Values</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>office_code</code></td>\n<td><code>[code]</code></td>\n<td>No</td>\n<td>Office short code</td>\n</tr>\n<tr>\n<td><code>office_id</code></td>\n<td><code>[integer]</code></td>\n<td>No</td>\n<td>Office ID</td>\n</tr>\n<tr>\n<td><code>max_results</code></td>\n<td><code>[integer]</code></td>\n<td>No</td>\n<td>Maximum number of results to return. Default is 10, max is 1000.</td>\n</tr>\n<tr>\n<td><code>offset</code></td>\n<td><code>[integer]</code></td>\n<td>No</td>\n<td>0-based offset into the result set. Use with max_results to page through the results.</td>\n</tr>\n<tr>\n<td><code>format</code></td>\n<td><code>['id' or 'full']</code></td>\n<td>No</td>\n<td>How much detail to return about an office - see sample request below. Default is id.</td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p>Requested filter parameters are <code>AND</code>ed together to produce the results. Each request parameter may be included only once, except for the following parameters. If a parameter is specified more than once, the values are <code>OR</code>ed within that parameter, then <code>AND</code>ed with other parameters: * office_id * office_code</p>\n<p>Response</p>\n<p><code>more</code> indicates whether there are additional results available by re-querying with <code>offset=([current-offset] + max_results</code>).</p>\n<p><code>count</code> is the total number of records matching the search, regardless of the <code>max_results</code> parameter.</p>\n<h1 id=\"office---get-officesoffice-id\">Office - GET /offices/[office-id]/</h1>\n<p>Retrieve the details for a single office.</p>\n<h2 id=\"request-1\">Request</h2>\n<p>Supply the <code>office-id</code> in the url.</p>\n<h2 id=\"response\">Response</h2>\n<p>Where <code>format = id</code>.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  id: 1234,\n  code: \"92546-A\"\n} \n\n</code></pre>\n<p>Where <code>format = full</code>.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\": 105,\n  \"parent_id\": null,\n  \"code\": \"92546-A\",\n  \"name\": \"TestAgents Ltd (Licensed: REAA 2008) - Real Estate, Auckland\",\n  \"brand_name\": \"Test Agents \",\n  \"email\": \"test@realestate.co.nz\",\n  \"image\": null,\n  \"website\": \"https://www.realestate.co.nz/\",\n  \"office_status\": \"active\",\n  \"phone_numbers\": {\n    \"phone\": \"09 123 0007\",\n    \"fax\": \"09 123 0008\",\n    \"rentals_ddi\": \"09 123 0007\"\n  },\n  \"addresses\": {\n    \"street\": {\n      \"location\": [-57.685638, 186.168246],\n      \"postcode\": null,\n      \"city\": \"Auckland\",\n      \"address_line_3\": \"\",\n      \"address_line_2\": \"\",\n      \"address_line_1\": \"155 Khyber Pass Road\"\n    },\n    \"postal\": {\n      \"postcode\": null,\n      \"city\": \"Auckland\",\n      \"address_line_3\": \"\",\n      \"address_line_2\": \"\",\n      \"address_line_1\": \"155 Khyber Pass Road\"\n    }\n  }\n}\n\n</code></pre>\n<h3 id=\"office-field-descriptions\">Office Field Descriptions</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field Name</strong></th>\n<th><strong>Mandatory</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Validation</strong></th>\n<th><strong>Example</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>Y</td>\n<td>Id of the office</td>\n<td>Integer</td>\n<td>59875</td>\n</tr>\n<tr>\n<td>parent_id</td>\n<td>N</td>\n<td>ID of the parent account</td>\n<td>string</td>\n<td>897562</td>\n</tr>\n<tr>\n<td>code</td>\n<td>N</td>\n<td>Office short code</td>\n<td>code</td>\n<td>94566-1</td>\n</tr>\n<tr>\n<td>name</td>\n<td>Y</td>\n<td>Name of the office</td>\n<td>string</td>\n<td>realestate - REA &amp; Co</td>\n</tr>\n<tr>\n<td>brand_name</td>\n<td>N</td>\n<td>Brand office is associated with</td>\n<td>string</td>\n<td>REA &amp; Co</td>\n</tr>\n<tr>\n<td>email</td>\n<td>Y</td>\n<td>Office email address</td>\n<td>string</td>\n<td><a href=\"https://mailto:rea@realestate.co.nz\">rea@realestate.co.nz</a></td>\n</tr>\n<tr>\n<td>image</td>\n<td>N</td>\n<td>MD5 of the office logo</td>\n<td>string</td>\n<td>316646774f4e9cfb546515dff6bb08f0</td>\n</tr>\n<tr>\n<td>website</td>\n<td>N</td>\n<td>URL of Office</td>\n<td>string</td>\n<td><a href=\"http://www.realestate.co.nz\">www.realestate.co.nz</a></td>\n</tr>\n<tr>\n<td>office_status</td>\n<td>Y</td>\n<td>Status of the office</td>\n<td>string</td>\n<td>Active</td>\n</tr>\n<tr>\n<td>Addresses:  <br />Postal/Street:  <br />- Location  <br />- Address Line 1  <br />- Address Line 2  <br />- Address Line 3  <br />- City  <br />- Postcode</td>\n<td>N</td>\n<td>An array of addresses of the office.</td>\n<td>object</td>\n<td>[-38.006334, 175.313968]  <br />155 Khyber Pass Road  <br />Grafton  <br />Auckland  <br />1023</td>\n</tr>\n<tr>\n<td>Phone Numbers Array:  <br />- phone  <br />- fax</td>\n<td>Y</td>\n<td>An array of a phone numbers for the office.</td>\n<td>Object</td>\n<td>09000000  <br />020000000</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["1","offices",""],"host":["api","realestate","co","nz"],"query":[{"disabled":true,"description":{"content":"<p>Office short code</p>\n","type":"text/plain"},"key":"office_code","value":""},{"disabled":true,"description":{"content":"<p>Office id</p>\n","type":"text/plain"},"key":"office_id","value":""},{"disabled":true,"description":{"content":"<p>Maximum results to return. Default is 10, max is 1000</p>\n","type":"text/plain"},"key":"max_results","value":""},{"disabled":true,"description":{"content":"<p>Zero based offset into the result set</p>\n","type":"text/plain"},"key":"offset","value":""},{"description":{"content":"<p>How much detail to return about an office. Default is id</p>\n","type":"text/plain"},"key":"format","value":"full"},{"disabled":true,"description":{"content":"<p>Defaults to return only active offices</p>\n","type":"text/plain"},"key":"office_status","value":""},{"description":{"content":"<p>Calcaluted API signature</p>\n","type":"text/plain"},"key":"api_sig","value":null}],"variable":[]}},"response":[{"id":"3bcd6c91-9d8b-4e51-bc5d-56a93d16b803","name":"Format = id","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://api.realestate.co.nz/1/offices/?office_id=1234&format=id&api_sig","protocol":"https","host":["api","realestate","co","nz"],"path":["1","offices",""],"query":[{"key":"office_code","value":"","description":"Office short code","disabled":true},{"key":"office_id","value":"1234","description":"Office id"},{"key":"max_results","value":"","description":"Maximum results to return. Default is 10, max is 1000","disabled":true},{"key":"offset","value":"","description":"Zero based offset into the result set","disabled":true},{"key":"format","value":"id","description":"How much detail to return about an office. Default is id"},{"key":"office_status","value":"","description":"Defaults to return only active offices","disabled":true},{"key":"api_sig","value":null,"description":"Calcaluted API signature"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n  id: 1234,\r\n  code: \"92546-A\"\r\n}"},{"id":"70ed125e-5363-419d-885c-5db2b859177b","name":"Format = full","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://api.realestate.co.nz/1/offices/?office_id=1234&format=full&api_sig","protocol":"https","host":["api","realestate","co","nz"],"path":["1","offices",""],"query":[{"key":"office_code","value":"","description":"Office short code","disabled":true},{"key":"office_id","value":"1234","description":"Office id"},{"key":"max_results","value":"","description":"Maximum results to return. Default is 10, max is 1000","disabled":true},{"key":"offset","value":"","description":"Zero based offset into the result set","disabled":true},{"key":"format","value":"full","description":"How much detail to return about an office. Default is id"},{"key":"office_status","value":"","description":"Defaults to return only active offices","disabled":true},{"key":"api_sig","value":null,"description":"Calcaluted API signature"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"id\": 105,\r\n    \"parent_id\": null,\r\n    \"code\": \"92546-A\",\r\n    \"name\": \"TestAgents Ltd (Licensed: REAA 2008) - Real Estate, Auckland\",\r\n    \"brand_name\": \"Test Agents \",\r\n    \"email\": \"test@realestate.co.nz\",\r\n    \"image\": null,\r\n    \"website\": \"https://www.realestate.co.nz/\",\r\n    \"office_status\": \"active\",\r\n    \"phone_numbers\": {\r\n        \"phone\": \"09 123 0007\",\r\n        \"fax\": \"09 123 0008\",\r\n        \"rentals_ddi\": \"09 123 0007\"\r\n    },\r\n    \"addresses\": {\r\n        \"street\": {\r\n            \"location\": [\r\n                -57.685638,\r\n                186.168246\r\n            ],\r\n            \"postcode\": null,\r\n            \"city\": \"Auckland\",\r\n            \"address_line_3\": \"\",\r\n            \"address_line_2\": \"\",\r\n            \"address_line_1\": \"155 Khyber Pass Road\"\r\n        },\r\n        \"postal\": {\r\n            \"postcode\": null,\r\n            \"city\": \"Auckland\",\r\n            \"address_line_3\": \"\",\r\n            \"address_line_2\": \"\",\r\n            \"address_line_1\": \"155 Khyber Pass Road\"\r\n        }\r\n    }\r\n}"}],"_postman_id":"0e2631ea-d3d0-4c99-8320-918263e0281c"},{"name":"Agents","event":[{"listen":"test","script":{"id":"dd5ef79e-d187-4ff9-bb4e-6f66de6f4c0c","exec":[""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"f2aabf86-74ea-49b8-a30e-e53019c5ccaf","exec":[""],"type":"text/javascript","packages":{}}}],"id":"ecfe8975-2039-452d-81fa-09c0e06c9e3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"api_key"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.realestate.co.nz/1/agents/?format=full&api_sig=","description":"<h1 id=\"agent-search---get-agents\">Agent Search - GET /agents/</h1>\n<p>Get a list of agents based on a range of search criteria.</p>\n<h2 id=\"request\">Request</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Values</th>\n<th>Required?</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>agent_id</code></td>\n<td><code>[integer]</code></td>\n<td>No</td>\n<td>Agent ID</td>\n</tr>\n<tr>\n<td><code>office_id</code></td>\n<td><code>[integer]</code></td>\n<td>No</td>\n<td>Office ID</td>\n</tr>\n<tr>\n<td><code>code</code></td>\n<td><code>[string]</code></td>\n<td>No</td>\n<td>External agent code</td>\n</tr>\n<tr>\n<td><code>changed_after</code></td>\n<td><code>[timestamp]</code>  <br />MM-DD-YYYY</td>\n<td>No</td>\n<td>On return agents changed after a certain time.</td>\n</tr>\n<tr>\n<td><code>max_results</code></td>\n<td><code>[integer]</code></td>\n<td>No</td>\n<td>Maximum number of results to return. Default is 10, max is 1000.</td>\n</tr>\n<tr>\n<td><code>offset</code></td>\n<td><code>[integer]</code></td>\n<td>No</td>\n<td>0-based offset into the result set. Use with max_results to page through the results.</td>\n</tr>\n<tr>\n<td><code>format</code></td>\n<td><code>['id' or 'full']</code></td>\n<td>No</td>\n<td>How much detail to return about an agent - see the Agent Detail API. Default is id.</td>\n</tr>\n</tbody>\n</table>\n</div><p>| <code>agent_status</code> | <code>[all,active]</code> | No | All does not return inactive agents for subscriber key need to check for other key types |</p>\n<p>Requested filter parameters are <code>AND</code>ed together to produce the results. Each request parameter may be included only once, except for the following parameters. If a parameter is specified more than once, the values are <code>OR</code>ed within that parameter, then <code>AND</code>ed with other parameters: * agent_id * office_id * agent_code * region_id * district_id * suburb_id *</p>\n<p>Response</p>\n<p><code>more</code> indicates whether there are additional results available by re-querying with <code>offset=([current-offset] + max_results</code>).</p>\n<p><code>count</code> is the total number of records matching the search, regardless of the <code>max_results</code> parameter.</p>\n<h1 id=\"agent---get-agentsagent-id\">Agent - GET /agents/[agent-id]/</h1>\n<p>Retrieve the details for a single agent.</p>\n<h2 id=\"request-1\">Request</h2>\n<p>Supply the <code>agent-id</code> in the url.</p>\n<h2 id=\"response\">Response</h2>\n<p>Where <code>format = id</code>.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  id: 12345,\n  code: \"BFT_1234\"\n} \n\n</code></pre>\n<p>Where <code>format = full</code>.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\": 12345,\n  \"code\": \"BFT_123\",\n  \"title\": null,\n  \"first_name\": \"Test\",\n  \"last_name\": \"Agent\",\n  \"login\": \"test.agent@realestate.co.nz\",\n  \"primary_class_code\": \"REP\",\n  \"primary_job_title\": null,\n  \"image\": \"34ba0f48a7e69d7f0ebc80f69f21fced\",\n  \"agent_status\": \"active\",\n  \"bio\": \"Allow myself to introduce myself...\", \n  \"addresses\": {\n    \"postal\": {\n      \"address_line_1\": null,\n      \"address_line_2\": null,\n      \"address_line_3\": null,\n      \"city\": null,\n      \"postcode\": null\n    },\n    \"street\": {\n      \"address_line_1\": null,\n      \"address_line_2\": null,\n      \"address_line_3\": null,\n      \"city\": null,\n      \"postcode\": null\n    }\n  },\n  \"phone_numbers\": {\n    \"office_ddi\": \"09 000 0000\",\n    \"mobile\": \"020 000 0000\"\n  },\n  \"email_addresses\": {\n    \"contact\": \"test.agent@realestate.co.nz\",\n    \"enquiries\": \"test.agent@realestate.co.nz\",\n    \"other-email\": \"test.agent@realestate.co.nz\"\n  },\n  \"links\": {\n    \"website\": \"steve.tinyhomes.co.nz\",\n    \"blog\": \"voices.realestate.co.nz/tinysteve\",\n    \"linked_in\": \"www.linkedin.com/in/tinysteve\",\n    \"facebook_profile\": \"https://www.facebook.com/profile\"\n  \"relationships\": [\n    {\n      \"is_primary\": true,\n      \"primary_job_title\": \"Licensee Salesperson\",\n      \"primary_class_code\": \"REP\",\n      \"office_id\": 98765\n    },\n    {\n      \"is_primary\": false,\n      \"primary_job_title\": \"Licensee Salesperson\",\n      \"primary_class_code\": \"REP\",\n      \"office_id\": 23456\n    }\n  ]\n}\n\n</code></pre>\n<h3 id=\"agent-field-descriptions\">Agent Field Descriptions</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field Name</strong></th>\n<th><strong>Mandatory</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Validation</strong></th>\n<th><strong>Example</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Code</td>\n<td>Y</td>\n<td>The unique identifier for this agent</td>\n<td>string</td>\n<td>BFT_123</td>\n</tr>\n<tr>\n<td>Title</td>\n<td>N</td>\n<td>Salutation</td>\n<td>string</td>\n<td>Mr/Ms</td>\n</tr>\n<tr>\n<td>First Name</td>\n<td>Y</td>\n<td>First name of the agent.</td>\n<td>string</td>\n<td>James</td>\n</tr>\n<tr>\n<td>Last Name</td>\n<td>Y</td>\n<td>Last name of the agent.</td>\n<td>string</td>\n<td>Bond</td>\n</tr>\n<tr>\n<td>Login</td>\n<td>N</td>\n<td>Login email address of the agent.</td>\n<td>Must be a valid email address</td>\n<td><a href=\"https://mailto:james.bond@realestate.co.nz\">james.bond@realestate.co.nz</a></td>\n</tr>\n<tr>\n<td>Primary Class Code</td>\n<td>Y</td>\n<td>What role does the agent have. Possible options are REP - Salesperson, OMGR - Office Manager, LICN - Licensee</td>\n<td>string (format enum)</td>\n<td>OMGR</td>\n</tr>\n<tr>\n<td>Primary Job Title</td>\n<td>N</td>\n<td>The job title of the agent</td>\n<td>string</td>\n<td>Branch Manager</td>\n</tr>\n<tr>\n<td>Image</td>\n<td>N</td>\n<td>Md5 of the agent profile photo</td>\n<td>string</td>\n<td>34ba0f48a7e69d7f0ebc80f69f21fced</td>\n</tr>\n<tr>\n<td>Agent Status</td>\n<td>Y</td>\n<td>Status of the agent</td>\n<td>string</td>\n<td>Active</td>\n</tr>\n<tr>\n<td>Addresses:  <br />Postal/Street:  <br />- Address Line 1  <br />- Address Line 2  <br />- Address Line 3  <br />- City  <br />- Postcode</td>\n<td>N</td>\n<td>An array of addresses of the agent.</td>\n<td>object</td>\n<td>155 Khyber Pass Road  <br />Grafton  <br />Auckland  <br />1023</td>\n</tr>\n<tr>\n<td>Phone Numbers Array:  <br />- Office DDI  <br />- Mobile</td>\n<td>Y</td>\n<td>An array of a phone numbers for the agent.</td>\n<td>Object</td>\n<td>09000000  <br />020000000</td>\n</tr>\n<tr>\n<td>Email Addresses Array:  <br />- Contact  <br />- Enquiries  <br />- Other email</td>\n<td>Y</td>\n<td>An array of a email addresses for the agent.</td>\n<td>Object</td>\n<td><a href=\"https://mailto:james.bond@realestate.co.nz\">james.bond@realestate.co.nz</a></td>\n</tr>\n<tr>\n<td>Relationships Array:  <br />- Is Primary  <br />- Primary Job Title  <br />- Primary Class Code  <br />- Office ID</td>\n<td>Y</td>\n<td>An array of an agent's associations to offices</td>\n<td>Object</td>\n<td>See sample request</td>\n</tr>\n<tr>\n<td>Links Array:  <br />- Website  <br />- Facebook  <br />- LinkedIn  <br />- Blog</td>\n<td>N</td>\n<td>Links to external sites.</td>\n<td>Object</td>\n<td>See sample request</td>\n</tr>\n<tr>\n<td>Bio</td>\n<td>N</td>\n<td>Agent profile bio.</td>\n<td>String</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["1","agents",""],"host":["api","realestate","co","nz"],"query":[{"disabled":true,"description":{"content":"<p>Agent ID</p>\n","type":"text/plain"},"key":"agent_id","value":""},{"disabled":true,"description":{"content":"<p>Office ID</p>\n","type":"text/plain"},"key":"office_id","value":""},{"disabled":true,"description":{"content":"<p>External Agent Code</p>\n","type":"text/plain"},"key":"code","value":""},{"disabled":true,"description":{"content":"<p>Returns agents changed after a certain time. Format - mm-dd-yyyy</p>\n","type":"text/plain"},"key":"changed_after","value":""},{"disabled":true,"description":{"content":"<p>Maximum number of results to return. Default is 10</p>\n","type":"text/plain"},"key":"max_results","value":""},{"disabled":true,"description":{"content":"<p>Zero based offset into the result set</p>\n","type":"text/plain"},"key":"offset","value":""},{"description":{"content":"<p>How much detail to return about an agent. id or full. Default is id</p>\n","type":"text/plain"},"key":"format","value":"full"},{"disabled":true,"description":{"content":"<p>All or active. Default is active</p>\n","type":"text/plain"},"key":"agent_status","value":""},{"description":{"content":"<p>Calcaluted API signature</p>\n","type":"text/plain"},"key":"api_sig","value":""}],"variable":[]}},"response":[{"id":"25e8143c-db46-4d70-8022-ace1e34e507f","name":"Format = id","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.realestate.co.nz/1/agents/?agent_id=12345&format=id&api_sig=","protocol":"https","host":["api","realestate","co","nz"],"path":["1","agents",""],"query":[{"key":"agent_id","value":"12345","description":"Agent ID"},{"key":"office_id","value":"","description":"Office ID","disabled":true},{"key":"code","value":"","description":"External Agent Code","disabled":true},{"key":"changed_after","value":"","description":"Returns agents changed after a certain time. Format - mm-dd-yyyy","disabled":true},{"key":"max_results","value":"","description":"Maximum number of results to return. Default is 10","disabled":true},{"key":"offset","value":"","description":"Zero based offset into the result set","disabled":true},{"key":"format","value":"id","description":"How much detail to return about an agent. id or full. Default is id"},{"key":"agent_status","value":"","description":"All or active. Default is active","disabled":true},{"key":"api_sig","value":"","description":"Calcaluted API signature"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n  id: 12345,\r\n  code: \"BFT_1234\"\r\n}"},{"id":"940b4c3b-4439-4f35-95f3-96f90a5513b0","name":"Format = full","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.realestate.co.nz/1/agents/?agent_id=12345&format=full&api_sig=","protocol":"https","host":["api","realestate","co","nz"],"path":["1","agents",""],"query":[{"key":"agent_id","value":"12345","description":"Agent ID"},{"key":"office_id","value":"","description":"Office ID","disabled":true},{"key":"code","value":"","description":"External Agent Code","disabled":true},{"key":"changed_after","value":"","description":"Returns agents changed after a certain time. Format - mm-dd-yyyy","disabled":true},{"key":"max_results","value":"","description":"Maximum number of results to return. Default is 10","disabled":true},{"key":"offset","value":"","description":"Zero based offset into the result set","disabled":true},{"key":"format","value":"full","description":"How much detail to return about an agent. id or full. Default is id"},{"key":"agent_status","value":"","description":"All or active. Default is active","disabled":true},{"key":"api_sig","value":"","description":"Calcaluted API signature"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n  \"id\": 12345,\r\n  \"code\": \"BFT_123\",\r\n  \"title\": null,\r\n  \"first_name\": \"Test\",\r\n  \"last_name\": \"Agent\",\r\n  \"login\": \"test.agent@realestate.co.nz\",\r\n  \"primary_class_code\": \"REP\",\r\n  \"primary_job_title\": null,\r\n  \"image\": \"34ba0f48a7e69d7f0ebc80f69f21fced\",\r\n  \"agent_status\": \"active\",\r\n  \"bio\": \"Allow myself to introduce myself...\", \r\n  \"addresses\": {\r\n    \"postal\": {\r\n      \"address_line_1\": null,\r\n      \"address_line_2\": null,\r\n      \"address_line_3\": null,\r\n      \"city\": null,\r\n      \"postcode\": null\r\n    },\r\n    \"street\": {\r\n      \"address_line_1\": null,\r\n      \"address_line_2\": null,\r\n      \"address_line_3\": null,\r\n      \"city\": null,\r\n      \"postcode\": null\r\n    }\r\n  },\r\n  \"phone_numbers\": {\r\n    \"office_ddi\": \"09 000 0000\",\r\n    \"mobile\": \"020 000 0000\"\r\n  },\r\n  \"email_addresses\": {\r\n    \"contact\": \"test.agent@realestate.co.nz\",\r\n    \"enquiries\": \"test.agent@realestate.co.nz\",\r\n    \"other-email\": \"test.agent@realestate.co.nz\"\r\n  },\r\n  \"links\": {\r\n    \"website\": \"steve.tinyhomes.co.nz\",\r\n    \"blog\": \"voices.realestate.co.nz/tinysteve\",\r\n    \"linked_in\": \"www.linkedin.com/in/tinysteve\",\r\n    \"facebook_profile\": \"https://www.facebook.com/profile\"\r\n  \"relationships\": [\r\n    {\r\n      \"is_primary\": true,\r\n      \"primary_job_title\": \"Licensee Salesperson\",\r\n      \"primary_class_code\": \"REP\",\r\n      \"office_id\": 98765\r\n    },\r\n    {\r\n      \"is_primary\": false,\r\n      \"primary_job_title\": \"Licensee Salesperson\",\r\n      \"primary_class_code\": \"REP\",\r\n      \"office_id\": 23456\r\n    }\r\n  ]\r\n}"}],"_postman_id":"ecfe8975-2039-452d-81fa-09c0e06c9e3c"}],"auth":{"type":"apikey","apikey":{"basicConfig":[]}},"event":[{"listen":"prerequest","script":{"id":"f0cdbb14-210b-4435-bca7-8b684c5e3558","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"97c2692e-9e7a-4634-a742-b97d368ad683","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"https://api.realestate.co.nz/1/"}]}