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":[{"title":"mr","salutation":"John","account_uuid":"c67b8eaa-55ed-41db-b85a-2f41f111165c","birth_gender":"male","date_of_birth":"1999-01-01","retirement_age":65,"employment_status":"employed","annual_salary_amount":3000000}],"case_uuids":["f250d720-33d8-4842-ab2e-96d462279809","3970eec3-6d53-4588-a214-f895ce4ff579","c97fc198-559c-49f6-a923-a97cd77343f1"],"oauth_connection_uuid":"49a63470-1cf6-4b7e-893a-ae88c6b94d9a","proceed":true}'
Request examples
{
"applicants": [
{
"title": "mr",
"salutation": "John",
"account_uuid": "c67b8eaa-55ed-41db-b85a-2f41f111165c",
"birth_gender": "male",
"date_of_birth": "1999-01-01",
"retirement_age": 65,
"employment_status": "employed",
"annual_salary_amount": 3000000
}
],
"case_uuids": [
"f250d720-33d8-4842-ab2e-96d462279809",
"3970eec3-6d53-4588-a214-f895ce4ff579",
"c97fc198-559c-49f6-a923-a97cd77343f1"
],
"oauth_connection_uuid": "49a63470-1cf6-4b7e-893a-ae88c6b94d9a",
"proceed": true
}
Response examples (200)
{
"name": "My Mortgage Search",
"uuid": "e16bb2a2-e093-4219-92d5-35d5fe973a72",
"cases": [
{
"name": "finance",
"slug": "finance",
"type": "App\\Http\\Resources\\CasesTypeResource",
"uuid": "b62ba605-9ebe-4da7-a11d-08cdae6c6518",
"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-04-09T17:35:06+01:00",
"created_at": "2026-04-09T17:35:06+01:00",
"updated_at": "2026-04-09T17:35:06+01:00",
"group_uuids": [
"8d320698-2978-4665-9d66-a27e83bb37b3"
],
"completed_at": "2026-04-09T17:35:06+01:00",
"participants": "App\\Http\\Resources\\AccountResource",
"custom_fields": "App\\Http\\Resources\\CustomFieldValueResource",
"status_position": 4,
"task_board_uuid": "3c01504b-0d46-4672-b93c-87f31fe8396f",
"assigned_to_uuids": [
"6c4385ed-506c-4cb7-89b7-abf48174d8d9"
],
"participants_count": 4
}
],
"files": [
{
"firm": "App\\Http\\Resources\\FirmResource",
"name": "Welcome to Plannr",
"path": "Gareth Thompson/Subfolder/Welcome to Plannr.pdf",
"size": "21691783",
"tags": "App\\Http\\Resources\\TagResource",
"type": "type",
"uuid": "3c992248-60f9-4876-adb1-b1ca6d91b03f",
"folder": "App\\Http\\Resources\\FolderResource",
"status": "uploaded",
"account": "App\\Http\\Resources\\MinimalAccountResource",
"filename": "Welcome to Plannr.pdf",
"progress": "100",
"extension": "pdf",
"navigator": {
"model_type": "account",
"model_uuid": "0c431f48-b00a-4535-947f-4f646ca0e280"
},
"created_at": "2026-04-09T17:35:06+01:00",
"updated_at": "2026-04-09T17:35:06+01:00",
"folder_name": "folder 2",
"uploaded_at": "2026-04-09T17:35:06+01:00",
"documentable": "Object",
"download_url": "https://api.plannrcrm.com/file/1789155d-06db-4b37-8d11-862869c5301e/download",
"last_modified": "2026-04-09T17:35:06+01:00",
"documentable_type": "account",
"original_created_at": "2026-04-09T17:35:06+01:00"
}
],
"status": "pending",
"products": [
{
"uuid": "35b523ea-759d-4681-8ea4-45d69eab71bf",
"files": "App\\Http\\Resources\\FileResource",
"created_at": "2026-04-09T17:35:06+01:00",
"updated_at": "2026-04-09T17:35:06+01:00",
"lender_name": "HSBC",
"product_title": "5% Fixed Rate - 5 year",
"provider_reference": "example-reference",
"provider_scenario_data": [],
"provider_scenario_name": "Single Applicant, Small Deposit"
}
],
"provider": "Mortgage Brain",
"applicants": [
{
"uuid": "e550fdf8-af96-48a0-9709-5359a6b54d8d",
"account": "App\\Http\\Resources\\MinimalAccountResource",
"created_at": "2026-04-09T17:35:06+01:00",
"updated_at": "2026-04-09T17:35:06+01:00"
}
],
"created_at": "2026-04-09T17:35:06+01:00",
"updated_at": "2026-04-09T17:35:06+01:00",
"provider_data": [],
"provider_reference": "123456789"
}