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":"02320c61-1d93-4dcf-9fc4-c196586f54be","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":["2233c16d-3b2b-4918-856c-89f503a5cb56","0c176604-c307-4e3f-b28d-2320d277fc60","5e2dba22-a904-44d0-8311-4114c35c60a5"],"oauth_connection_uuid":"d26ff664-55c1-474e-8866-b1ae328ce8e0","proceed":true}'
Request examples
{
"applicants": [
{
"account_uuid": "02320c61-1d93-4dcf-9fc4-c196586f54be",
"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": [
"2233c16d-3b2b-4918-856c-89f503a5cb56",
"0c176604-c307-4e3f-b28d-2320d277fc60",
"5e2dba22-a904-44d0-8311-4114c35c60a5"
],
"oauth_connection_uuid": "d26ff664-55c1-474e-8866-b1ae328ce8e0",
"proceed": true
}
Response examples (200)
{
"uuid": "b9713539-3b13-484f-ab28-ac53269859ce",
"created_at": "2026-04-30T17:33:16+01:00",
"updated_at": "2026-04-30T17:33:16+01:00",
"name": "My Mortgage Search",
"status": "pending",
"provider": "Mortgage Brain",
"provider_reference": "123456789",
"provider_data": [],
"applicants": [
{
"uuid": "0cfc6c4a-3e99-4b78-84fa-63dfef8cbae5",
"created_at": "2026-04-30T17:33:16+01:00",
"updated_at": "2026-04-30T17:33:16+01:00",
"account": "App\\Http\\Resources\\MinimalAccountResource"
}
],
"cases": [
{
"uuid": "6daf260b-f135-42dc-8f4b-12aec4c5ecde",
"created_at": "2026-04-30T17:33:16+01:00",
"updated_at": "2026-04-30T17:33:16+01:00",
"name": "finance",
"slug": "finance",
"status": "App\\Http\\Resources\\CasesStatusResource",
"type": "App\\Http\\Resources\\CasesTypeResource",
"review_at": "2026-04-30T17:33:16+01:00",
"assigned_to_uuids": [
"731b79a3-2fcd-40c4-be27-b669c252bc67"
],
"group_uuids": [
"6960a04d-7a81-461e-a704-8470ac88d754"
],
"completed_at": "2026-04-30T17:33:16+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": "1895c75c-c7e7-4e4f-a814-b11c4ec10dfe",
"plans": "App\\Http\\Resources\\Plans\\PlanResource",
"custom_fields": "App\\Http\\Resources\\CustomFieldValueResource"
}
],
"products": [
{
"uuid": "5c463261-1be9-44f5-9ef9-00077e0fe211",
"created_at": "2026-04-30T17:33:16+01:00",
"updated_at": "2026-04-30T17:33:16+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": "0f283949-8b99-42a6-8a69-529ae212232a",
"created_at": "2026-04-30T17:33:16+01:00",
"original_created_at": "2026-04-30T17:33:16+01:00",
"updated_at": "2026-04-30T17:33:16+01:00",
"uploaded_at": "2026-04-30T17:33:16+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-04-30T17:33:16+01:00",
"progress": "100",
"download_url": "https://api.plannrcrm.com/file/a29a4d4e-cff8-402b-a19a-a71feb5c100b/download",
"folder_name": "folder 2",
"folder": "App\\Http\\Resources\\FolderResource",
"documentable_type": "account",
"documentable": "Object",
"navigator": {
"model_type": "account",
"model_uuid": "d397f002-c3ca-4004-88c3-b80766016f54"
},
"firm": "App\\Http\\Resources\\FirmResource",
"account": "App\\Http\\Resources\\MinimalAccountResource",
"tags": "App\\Http\\Resources\\TagResource"
}
]
}