Valuations

Get all Valuations

Changed on

This endpoint retrieves multiple paginated valuations along with meta and pagination information.

get/valuations

Request

Query parameters

filter[branch]string uuid

Filter the Valuations by Branch.

filter[type]'sales' | 'lettings'

Filter Valuations by either Sales or Lettings.

filter[status]string[]

Filter the Valuations by their status.

filter[booked_from]string date-time

Filter by results booked before the provided date.

filter[booked_to]string date-time

Filter by results booked before the provided date.

filter[trashed]'with' | 'only'

Optionally return result WITH deleted results or return ONLY deleted results.

filter[cancelled]'with' | 'only'

Optionally return result WITH cancelled results or return ONLY cancelled results.

filter[created_from]string date-time

Filter by results created after the provided date.

filter[created_to]string date-time

Filter by results created before the provided date.

filter[updated_from]string date-time

Filter by results updated after the provided date.

filter[updated_to]string date-time

Filter by results updated before the provided date.

includestring[]

Optional related entities to include in the results, e.g. property,branch,notes,followUp,owner,valuer

page[size]number
Example:25

Set the number of results per page.

page[number]number
Example:3

Set the page number.

Response

OK.

Example response

{
  "data": [
    {
      "attributes": {
        "address": {
          "single_line": "19 Lansdowne Road, Monton, Manchester",
          "anon_single_line": "Lansdowne Road, Monton, Manchester",
          "building_number": "19",
          "line_1": "19 Lansdowne Road",
          "line_2": "Monton",
          "line_3": "Manchester",
          "town": "Manchester",
          "country": "United Kingdom",
          "postcode": "M30 9PA",
          "udprn": "28327204",
          "geo": {
            "lat": 0.2365698,
            "lng": 53.023654
          }
        },
        "work_done": [
          "Cosmetic (decorating etc...)"
        ]
      },
      "relationships": {
        "branch": {
          "data": {
            "id": "a827a3ae-4c74-4c32-8b42-42248d4010d3"
          }
        },
        "property": {
          "data": {
            "id": "a827a3ae-4c74-4c32-8b42-42248d4010d3"
          }
        },
        "owner": {
          "data": {
            "id": "a827a3ae-4c74-4c32-8b42-42248d4010d3"
          }
        },
        "notes": {
          "data": [
            {
              "id": "a827a3ae-4c74-4c32-8b42-42248d4010d3"
            }
          ]
        },
        "follow-up": {
          "data": {
            "id": "a827a3ae-4c74-4c32-8b42-42248d4010d3"
          }
        },
        "salesReport": {
          "data": {
            "id": "a827a3ae-4c74-4c32-8b42-42248d4010d3"
          }
        },
        "lettingsReport": {
          "data": {
            "id": "a827a3ae-4c74-4c32-8b42-42248d4010d3"
          }
        },
        "salesInstruction": {
          "data": {
            "id": "a827a3ae-4c74-4c32-8b42-42248d4010d3"
          }
        },
        "lettingsInstruction": {
          "data": {
            "id": "a827a3ae-4c74-4c32-8b42-42248d4010d3"
          }
        },
        "valuer": {
          "data": {
            "id": "a827a3ae-4c74-4c32-8b42-42248d4010d3"
          }
        },
        "lostValuationDetail": {
          "data": {
            "id": "a827a3ae-4c74-4c32-8b42-42248d4010d3"
          }
        }
      }
    }
  ],
  "included": [
    {
      "attributes": {
        "address": {
          "single_line": "19 Lansdowne Road, Monton, Manchester",
          "anon_single_line": "Lansdowne Road, Monton, Manchester",
          "building_number": "19",
          "line_1": "19 Lansdowne Road",
          "line_2": "Monton",
          "line_3": "Manchester",
          "town": "Manchester",
          "country": "United Kingdom",
          "postcode": "M30 9PA",
          "udprn": "28327204",
          "geo": {
            "lat": 0.2365698,
            "lng": 53.023654
          }
        }
      }
    }
  ],
  "links": {
    "self": "http://localhost:3000/users?page[number]=2&page[size]=25&page[number]=2",
    "first": "http://localhost:3000/users?page[number]=2&page[size]=25&page[number]=1",
    "next": "http://localhost:3000/users?page[number]=2&page[size]=25&page[number]=1",
    "prev": "http://localhost:3000/users?page[number]=2&page[size]=25&page[number]=3",
    "last": "http://localhost:3000/users?page[number]=2&page[size]=25&page[number]=9"
  },
  "meta": {
    "pagination": {
      "total": 226,
      "count": 10,
      "per_page": 10,
      "current_page": 1,
      "total_pages": 23
    }
  }
}

Changes

    • info

      added the optional property ///// to the response with the status

    • info

      added the optional property ///// to the response with the status

    • info

      added the optional property ////// to the response with the status

    • info

      added the optional property ////// to the response with the status

    • info

      added the optional property ///// to the response with the status

    • info

      added the optional property ///// to the response with the status