POST /api/v1/addons/mortgagebrain/mortgage-search
application/json

Body

  • applicants array[object] Required

    The applicants for the mortgage search. Must be at least one and no more than two.

    Hide applicants attributes Show applicants attributes object
    • account_uuid string(uuid)

      The UUID of the applicant

    • title string

      The title of the applicant

      Value Description
      mr MR
      mrs MRS
      miss MISS
      ms MS
      mx MX
      dr DR
      dame DAME
      father FATHER
      madam MADAM
      lord LORD
      sir SIR
      prof PROF

      Values are mr, mrs, miss, ms, mx, dr, dame, father, madam, lord, sir, or prof.

  • case_uuids array[string(uuid)]

    An optional array of case UUIDs to associate to the mortgage search

  • oauth_connection_uuid string(uuid)

    An optional OAuth2 connection UUID to overwrite the default behaviour (which is to pick the first Mortgage Brain OAuth2 connection)

  • proceed boolean Required

    This parameter can be used to indicate whether to proceed with creating the mortgage search or not. If false, a 202 response will be returned without creating the search. This can be used to validate the data before continuing.

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • uuid string

      The UUID of the resource.

    • created_at string

      The timestamp of when the resource was created.

    • updated_at string

      The timestamp of when the resource was updated.

    • status string

      The status of the mortgage search

    • provider string

      The provider that the mortgage search is for

    • provider_reference string

      The provider reference of the mortgage search

    • provider_data array

      Any provider data related to the mortgage search

    • applicants array[object]

      The applicants of the mortgage search

      Hide applicants attributes Show applicants attributes object
      • uuid string
      • created_at string
      • updated_at string
      • account string
    • cases array[object]

      The cases that are related to the mortgage search

      Hide cases attributes Show cases attributes object
      • uuid string
      • created_at string
      • updated_at string
      • name string
      • slug string
      • status string
      • type string
      • review_at string
      • assigned_to_uuids array[string]
      • group_uuids array[string]
      • completed_at string
      • value object
        Hide value attributes Show value attributes object
        • amount object
          Hide amount attributes Show amount attributes object
          • example string
          • description string
        • formatted object
          Hide formatted attributes Show formatted attributes object
          • example string
          • description string
        • currency object
          Hide currency attributes Show currency attributes object
          • example string
          • description string
      • status_position integer
      • participants_count integer
      • participants string
      • task_board_uuid string
      • plans string
      • custom_fields string
POST /api/v1/addons/mortgagebrain/mortgage-search
curl \
 --request POST 'https://api.plannrcrm.com/api/v1/addons/mortgagebrain/mortgage-search' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"applicants":[{"title":"mr","account_uuid":"cbc0e442-c2fb-49ed-a5ec-51d67b865f72"}],"case_uuids":["cc19616d-5beb-4671-b645-614d0ac43312","3ab98bc7-1a54-4c48-bb43-d529becbcab1","e9cbdc27-d47d-4836-b12c-4c5f3c762a9f"],"oauth_connection_uuid":"25bb55ee-4829-400e-aaf3-a5a12f50616a","proceed":true}'
Request examples
{
  "applicants": [
    {
      "title": "mr",
      "account_uuid": "cbc0e442-c2fb-49ed-a5ec-51d67b865f72"
    }
  ],
  "case_uuids": [
    "cc19616d-5beb-4671-b645-614d0ac43312",
    "3ab98bc7-1a54-4c48-bb43-d529becbcab1",
    "e9cbdc27-d47d-4836-b12c-4c5f3c762a9f"
  ],
  "oauth_connection_uuid": "25bb55ee-4829-400e-aaf3-a5a12f50616a",
  "proceed": true
}
Response examples (200)
{
  "uuid": "da908778-c446-4164-b331-d55f79acf2ee",
  "cases": [
    {
      "name": "finance",
      "slug": "finance",
      "type": "App\\Http\\Resources\\CasesTypeResource",
      "uuid": "c6695af2-5f2c-4488-abf9-ea122bb40993",
      "plans": "App\\Http\\Resources\\Plans\\PlanResource",
      "value": {
        "amount": {
          "example": "4000",
          "description": "Money amount at their lowest denominator (for example: pennies)"
        },
        "currency": {
          "example": "GBP",
          "description": "Currency of the money"
        },
        "formatted": {
          "example": "£40.00",
          "description": "Money amount formatted with currency"
        }
      },
      "status": "App\\Http\\Resources\\CasesStatusResource",
      "review_at": "2026-01-19T20:52:27+00:00",
      "created_at": "2026-01-19T20:52:27+00:00",
      "updated_at": "2026-01-19T20:52:27+00:00",
      "group_uuids": [
        "db3898c2-633b-4df9-ba5b-2e103dde7c56"
      ],
      "completed_at": "2026-01-19T20:52:27+00:00",
      "participants": "App\\Http\\Resources\\AccountResource",
      "custom_fields": "App\\Http\\Resources\\CustomFieldValueResource",
      "status_position": 4,
      "task_board_uuid": "a9997bef-d40e-4832-9e47-1096067ad7b7",
      "assigned_to_uuids": [
        "32202154-cbd5-4812-93ae-bdf04afc13eb"
      ],
      "participants_count": 4
    }
  ],
  "status": "pending",
  "provider": "Mortgage Brain",
  "applicants": [
    {
      "uuid": "c5652c2c-f92e-4573-bc55-47769b808cad",
      "account": "App\\Http\\Resources\\MinimalAccountResource",
      "created_at": "2026-01-19T20:52:27+00:00",
      "updated_at": "2026-01-19T20:52:27+00:00"
    }
  ],
  "created_at": "2026-01-19T20:52:27+00:00",
  "updated_at": "2026-01-19T20:52:27+00:00",
  "provider_data": [],
  "provider_reference": "123456789"
}