Create a mortgage search with the Mortgage Brain provider Run in API Explorer
Ask AI
Body
-
The applicants for the mortgage search. Must be at least one and no more than two.
-
An optional array of case UUIDs to associate to the mortgage search
-
An optional OAuth2 connection UUID to overwrite the default behaviour (which is to pick the first Mortgage Brain OAuth2 connection)
-
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.
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":[{"account_uuid":"0eb8d9c6-7e5a-43f0-88c8-cecf50e0d228","title":"mr","date_of_birth":"1999-01-01","birth_gender":"male","salutation":"John","retirement_age":65,"employment_status":"employed","annual_salary_amount":3000000}],"case_uuids":["4a5a39bc-c462-45b1-a98e-8bd6293f9750","44175520-fc45-4bbd-87c6-856f36281cbc","f31223d1-9e21-4d38-bd84-289f9351ad9f"],"oauth_connection_uuid":"9409c1bf-09f3-4620-815e-63b707c07e82","proceed":true}'
Request examples
{
"applicants": [
{
"account_uuid": "0eb8d9c6-7e5a-43f0-88c8-cecf50e0d228",
"title": "mr",
"date_of_birth": "1999-01-01",
"birth_gender": "male",
"salutation": "John",
"retirement_age": 65,
"employment_status": "employed",
"annual_salary_amount": 3000000
}
],
"case_uuids": [
"4a5a39bc-c462-45b1-a98e-8bd6293f9750",
"44175520-fc45-4bbd-87c6-856f36281cbc",
"f31223d1-9e21-4d38-bd84-289f9351ad9f"
],
"oauth_connection_uuid": "9409c1bf-09f3-4620-815e-63b707c07e82",
"proceed": true
}
Response examples (200)
{
"uuid": "9db0dd0d-5fd2-4bd0-b21a-1896dcbc5733",
"created_at": "2026-06-12T16:03:58+01:00",
"updated_at": "2026-06-12T16:03:58+01:00",
"name": "My Mortgage Search",
"status": "pending",
"provider": "Mortgage Brain",
"provider_reference": "123456789",
"provider_data": [],
"applicants": [
{
"uuid": "b69acc86-09b0-4038-9e97-5d3c136b9eb6",
"created_at": "2026-06-12T16:03:58+01:00",
"updated_at": "2026-06-12T16:03:58+01:00",
"account": "App\\Http\\Resources\\MinimalAccountResource"
}
],
"cases": [
{
"uuid": "3cc621fe-f836-41e0-bf40-eb8f0a958e57",
"created_at": "2026-06-12T16:03:58+01:00",
"updated_at": "2026-06-12T16:03:58+01:00",
"name": "finance",
"slug": "finance",
"status": "App\\Http\\Resources\\CasesStatusResource",
"type": "App\\Http\\Resources\\CasesTypeResource",
"review_at": "2026-06-12T16:03:58+01:00",
"assigned_to_uuids": [
"76b22a0a-8a90-4a90-8d00-d18acd7b0a02"
],
"group_uuids": [
"a85879c3-49be-4d1e-b26a-5957a2b27386"
],
"completed_at": "2026-06-12T16:03:58+01:00",
"value": {
"amount": {
"example": "4000",
"description": "Money amount at their lowest denominator (for example: pennies)"
},
"formatted": {
"example": "£40.00",
"description": "Money amount formatted with currency"
},
"currency": {
"example": "GBP",
"description": "Currency of the money"
}
},
"status_position": 4,
"participants_count": 4,
"participants": "App\\Http\\Resources\\AccountResource",
"task_board_uuid": "a9306f25-a9fc-44b8-837c-92f6611fdd7c",
"plans": "App\\Http\\Resources\\Plans\\PlanResource",
"custom_fields": "App\\Http\\Resources\\CustomFieldValueResource"
}
],
"products": [
{
"uuid": "61ab6517-0128-4eb8-a54a-fe3337619690",
"created_at": "2026-06-12T16:03:58+01:00",
"updated_at": "2026-06-12T16:03:58+01:00",
"provider_reference": "example-reference",
"provider_scenario_name": "Single Applicant, Small Deposit",
"provider_scenario_data": [],
"lender_name": "HSBC",
"product_title": "5% Fixed Rate - 5 year",
"files": "App\\Http\\Resources\\FileResource"
}
],
"files": [
{
"uuid": "1f066268-cb7c-43b2-a530-959898c0517a",
"created_at": "2026-06-12T16:03:58+01:00",
"original_created_at": "2026-06-12T16:03:58+01:00",
"updated_at": "2026-06-12T16:03:58+01:00",
"uploaded_at": "2026-06-12T16:03:58+01:00",
"status": "uploaded",
"filename": "Welcome to Plannr.pdf",
"name": "Welcome to Plannr",
"extension": "pdf",
"type": "type",
"size": "21691783",
"path": "Gareth Thompson/Subfolder/Welcome to Plannr.pdf",
"last_modified": "2026-06-12T16:03:58+01:00",
"progress": "100",
"download_url": "https://api.plannrcrm.com/file/1f0e1d91-a116-4d2b-ab86-4c724726414a/download",
"folder_name": "folder 2",
"folder": "App\\Http\\Resources\\FolderResource",
"documentable_type": "account",
"documentable": "Object",
"navigator": {
"model_type": "account",
"model_uuid": "93289a9b-8769-41d3-b472-626b98ca7a09"
},
"firm": "App\\Http\\Resources\\FirmResource",
"account": "App\\Http\\Resources\\MinimalAccountResource",
"tags": "App\\Http\\Resources\\TagResource"
}
]
}