Applicants

Get all Sales Applicants

Changed on

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

get/sales-applicants

Request

Query parameters

filter[branch]string uuid

Filter the Applicants by Branch.

filter[areas]string[]

Filter the Applicants by a comma-separated list of area names.

filter[price_from]integer

Filter results by their minimum budget.

filter[price_to]integer

Filter results by their maximum budget.

filter[min_bedrooms]integer

Filter results by the minimum number of bedrooms they require

filter[buying_position]string[]

Filter the Applicants by their buying position.

Available values are:

  • FTB (First-time buyer)
  • INV (Investor)
  • BTLI (Buy to let investor)
  • NPTS (No property to sell)
  • NOM (In process of selling - Valuation)
  • OTM (In process of selling - On the market)
  • SSTC (In process of selling - Sold STC)
  • UO (In process of selling - Under Offer)
  • PTS (Property to sell)
  • DEV (Developer)
  • BUY (Buying Agent)
filter[financial_position]string[]

Filter the Applicants by their financial position.

Available values are:

  • NIP (Nothing in place)
  • SOAQ (Seeking own advice / quotes)
  • SAMA (Currently seeing agent’s mortgage advisor)
  • AIP (Agreement in Principle in place)
  • NFCB (Does not need Finance (Cash Buyer))
  • CBFS (Cash Buyer, proceeds from Sale)
  • PMTG (Porting Mortgage)
filter[trashed]'with' | 'only'

Optionally return result WITH deleted results or return ONLY deleted 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. branch,offers,viewings,people,notes,sales

page[size]number
Example:25

Set the number of results per page.

page[number]number
Example:3

Set the page number.

filter[follow_ups_due_from]string date

Filter results to applicants with a follow up after the provided ISO8601 date.

filter[follow_ups_due_to]string date

Filter results to applicants with a follow up before the provided ISO8601 date.

filter[lead_rating]string[]

Filter applicants by their lead rating. Accepts: hot, warm, cold, or null. Can pass multiple values.

Response

OK.

Example response

{
  "data": [
    {
      "attributes": {
        "name": "Dave Smith & Helen Bloggs",
        "financial_position": "Agreement in Principle in place",
        "buying_position": "Property to sell",
        "requirements": {
          "property_type_preference": {
            "house": "Don't Mind",
            "flat": "Might Consider",
            "semi_detached": "Would Prefer"
          },
          "new_property_type_preference": {
            "house": "Don't Mind",
            "flat": "Might Consider",
            "semi_detached": "Would Prefer"
          },
          "areas": [
            "Ellesmere Park"
          ]
        }
      },
      "relationships": {
        "branch": {
          "data": {
            "id": "a827a3ae-4c74-4c32-8b42-42248d4010d3"
          }
        },
        "viewings": {
          "data": [
            {
              "id": "a827a3ae-4c74-4c32-8b42-42248d4010d3"
            }
          ]
        },
        "offers": {
          "data": [
            {
              "id": "a827a3ae-4c74-4c32-8b42-42248d4010d3"
            }
          ]
        },
        "people": {
          "data": [
            {
              "id": "a827a3ae-4c74-4c32-8b42-42248d4010d3"
            }
          ]
        },
        "notes": {
          "data": [
            {
              "id": "a827a3ae-4c74-4c32-8b42-42248d4010d3"
            }
          ]
        },
        "sales": {
          "data": [
            {
              "id": "a827a3ae-4c74-4c32-8b42-42248d4010d3"
            }
          ]
        },
        "followUps": {
          "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