Create a mortgage search with the Mortgage Brain provider Run in API Explorer
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 UUID of the case the mortgage search is being launched from. When supplied, the user is returned to that case after finishing in Mortgage Brain instead of the first applicant's contact page.
-
An optional UUID of the circle the mortgage search is being launched from. When supplied, the user is returned to that circle after finishing in Mortgage Brain instead of the first applicant's contact page. Takes precedence over case_uuid.
-
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.
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": "c56816e7-f484-406c-a42b-8415ce740fe7",
"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": [
"8103f7bb-c223-4c67-958a-02ff32a747f7",
"2ce97934-779c-4657-b376-8c9af500ea2b",
"5641c72b-b252-410c-b6f7-a49862b90a33"
],
"case_uuid": "ec7c71f5-64cd-4dcc-b11a-84950968d294",
"circle_uuid": "14d015e3-4f53-4963-86c7-89c15e54b768",
"oauth_connection_uuid": "9f701b0d-8eeb-46ba-8c64-fe2d773bd728",
"proceed": true
}'
{
"applicants": [
{
"account_uuid": "c56816e7-f484-406c-a42b-8415ce740fe7",
"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": [
"8103f7bb-c223-4c67-958a-02ff32a747f7",
"2ce97934-779c-4657-b376-8c9af500ea2b",
"5641c72b-b252-410c-b6f7-a49862b90a33"
],
"case_uuid": "ec7c71f5-64cd-4dcc-b11a-84950968d294",
"circle_uuid": "14d015e3-4f53-4963-86c7-89c15e54b768",
"oauth_connection_uuid": "9f701b0d-8eeb-46ba-8c64-fe2d773bd728",
"proceed": true
}
{
"uuid": "9556d3a7-21f4-4306-9d0d-a3a847a236bb",
"created_at": "2026-09-18T09:00:13+01:00",
"updated_at": "2026-09-18T09:00:13+01:00",
"name": "My Mortgage Search",
"status": "pending",
"provider": "Mortgage Brain",
"provider_reference": "123456789",
"provider_data": [],
"applicants": [
{
"uuid": "fbc5e389-d4e4-4298-9062-0bce8c3d8fcd",
"created_at": "2026-09-18T09:00:13+01:00",
"updated_at": "2026-09-18T09:00:13+01:00",
"account": {
"uuid": "7840ad25-f1bb-4ea8-aac1-c6b33ee37f01",
"created_at": "2026-09-18T09:00:17+01:00",
"updated_at": "2026-09-18T09:00:17+01:00",
"type": "client",
"role": "client",
"first_name": "Gareth",
"last_name": "Thompson",
"name": "Gareth Thompson",
"email": "gareth@codepotato.co.uk",
"photo_url": "https://eu.ui-avatars.com/api/?name=Gareth+Thompson"
}
}
],
"cases": [
{
"uuid": "11b935f4-a251-4df8-b9ca-01fceaba2b40",
"created_at": "2026-09-18T09:00:13+01:00",
"updated_at": "2026-09-18T09:00:13+01:00",
"name": "finance",
"slug": "finance",
"status": {
"uuid": "346d0556-fc69-4ba4-857c-f588b0d5d6b0",
"created_at": "2026-09-18T09:00:17+01:00",
"updated_at": "2026-09-18T09:00:17+01:00",
"name": "To Be Reviewed",
"colour": "#23852B",
"position": 5,
"is_type_completed": false
},
"type": {
"uuid": null,
"name": "Mortgage Plan",
"created_at": "2026-09-18T09:00:17+01:00",
"updated_at": "2026-09-18T09:00:17+01:00"
},
"review_at": "2026-09-18T09:00:13+01:00",
"assigned_to_uuids": [
"6f1fd2b1-7450-4dd7-bc2d-4227951d6ef2"
],
"group_uuids": [
"246ed04e-a8c8-45ec-83c8-7b43cb3bd380"
],
"completed_at": "2026-09-18T09:00:13+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": {
"uuid": "09271b9d-7714-43c8-9ba5-23b37ff3621e",
"created_at": "2026-09-18T09:00:17+01:00",
"updated_at": "2026-09-18T09:00:17+01:00",
"type": "client",
"role": "client",
"first_name": "Gareth",
"last_name": "Thompson",
"name": "Gareth Thompson",
"email": "gareth@codepotato.co.uk",
"photo_url": "https://eu.ui-avatars.com/api/?name=gareth+thompson",
"first_contact_date": "2026-09-18T09:00:17+01:00",
"next_review_date": "2026-09-18T09:00:17+01:00",
"previous_review_date": "2026-09-18T09:00:17+01:00",
"anniversary_review_date": "2026-09-18T09:00:17+01:00",
"terms_of_business_at": "2026-09-18T09:00:17+01:00",
"client_agreement_at": "2026-09-18T09:00:17+01:00",
"with_login": true,
"has_joint_account": true,
"can_be_deleted": "false",
"ownership_percentage": 100.0,
"inactive_at": "2026-09-18",
"last_interaction_at": "2026-09-18 09:00:17",
"referral_code": "ABC12345",
"is_out_of_office": true,
"out_of_office_from": "2026-09-18T09:00:17+01:00",
"out_of_office_until": "2026-09-18T09:00:17+01:00",
"out_of_office_message": "I am away this week. For urgent matters please contact the office.",
"is_pending_fact_find_account": false,
"permissions": {
"firm:read": [
"firm"
],
"network:read": [
"network:uuid"
]
}
},
"task_board_uuid": "07a3b55f-6d67-40ca-b3fa-01c4f8509ff6",
"plans": {
"uuid": "26abbf28-5f98-471b-aeb2-71cc0789bcf4",
"created_at": "2026-09-18T09:00:17+01:00",
"updated_at": "2026-09-18T09:00:17+01:00",
"opened_at": "2026-09-18T09:00:17+01:00",
"name": "Johns ISA",
"type": "cash_account",
"sub_type": "lifetime isa",
"abstract_type": "asset",
"policy_number": "AVIVA-123",
"proposal_reference": "AB123456",
"status": "inactive",
"inactive_at": "2026-09-18T09:00:17+01:00",
"inactive_reason": "claimed",
"agency_in_your_name": true,
"agency_in_your_name_from": "2025-09-18",
"originally_sold_by_firm": true,
"under_advice": true,
"visible_on_client_portal": true,
"include_in_client_valuation": true,
"show_on_joint": true,
"shown_on_circles": true,
"review_date": "2025-09-18",
"on_panel": true,
"is_group_scheme": false,
"is_sub_group_scheme": false,
"is_group_scheme_member": false,
"advice_area": "non_investment_insurance",
"total_benefit_amount": {
"amount": {
"example": "25000000",
"description": "Money amount at their lowest denominator (for example: pennies)"
},
"formatted": {
"example": "£250,000.00",
"description": "Money amount formatted with currency"
},
"currency": {
"example": null,
"description": "Currency of the money"
}
},
"total_benefits": {
"critical_illness": {
"amount": {
"example": "15000000",
"description": "Money amount at their lowest denominator (for example: pennies)"
},
"formatted": {
"example": "£150,000.00",
"description": "Money amount formatted with currency"
},
"currency": {
"example": null,
"description": "Currency of the money"
}
},
"family_income_benefit": {
"amount": {
"example": "10000000",
"description": "Money amount at their lowest denominator (for example: pennies)"
},
"formatted": {
"example": "£100,000.00",
"description": "Money amount formatted with currency"
},
"currency": {
"example": null,
"description": "Currency of the money"
}
}
},
"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": null,
"description": "Currency of the money"
}
},
"valued_at": "2026-09-18T09:00:17+01:00",
"original_valued_at": "2026-09-17T09:00:17+01:00",
"statistics": {
"recent_growth": 100
},
"is_wrap_product": false,
"is_wrap_child": false,
"can_be_deleted": "false"
},
"custom_fields": {
"uuid": null,
"created_at": "2026-09-18T09:00:17+01:00",
"updated_at": "2026-09-18T09:00:17+01:00",
"type": "string",
"name": "Favourite Drink",
"reference": "favourite_drink",
"is_required": false,
"value": "Coffee",
"selection_options": [
"Coffee",
"Tea",
"Water"
],
"help_text": "This is the client's favourite drink."
}
}
],
"products": [
{
"uuid": "4992bf5c-4144-4c25-a137-db1965ef7a10",
"created_at": "2026-09-18T09:00:13+01:00",
"updated_at": "2026-09-18T09:00:13+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": {
"uuid": "cf5cd343-bf87-438d-8fa6-6242dd36dd33",
"created_at": "2026-09-18T09:00:17+01:00",
"original_created_at": "2026-09-18T09:00:17+01:00",
"updated_at": "2026-09-18T09:00:17+01:00",
"uploaded_at": "2026-09-18T09:00:17+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-09-18T09:00:17+01:00",
"progress": "100",
"download_url": "https://api.plannrcrm.com/file/e08f579f-2691-4789-bcba-7966b92c5746/download",
"preview_url": "https://api.plannrcrm.com/file/28a9f3a1-2a72-4245-9396-1b4bd0a96be2/preview",
"folder_name": "folder 2",
"documentable_type": "account",
"documentable": "Object",
"navigator": {
"model_type": "account",
"model_uuid": null
}
},
"plan": {
"uuid": "6669e8ab-b4a9-4f36-8a44-ae141701a430",
"created_at": "2026-09-18T09:00:17+01:00",
"updated_at": "2026-09-18T09:00:17+01:00",
"opened_at": "2026-09-18T09:00:17+01:00",
"name": "Johns ISA",
"type": "cash_account",
"sub_type": "lifetime isa",
"abstract_type": "asset",
"policy_number": "AVIVA-123",
"proposal_reference": "AB123456",
"status": "inactive",
"inactive_at": "2026-09-18T09:00:17+01:00",
"inactive_reason": "claimed",
"is_group_scheme": false,
"is_sub_group_scheme": false,
"is_group_scheme_member": false,
"is_wrap_product": false,
"is_wrap_child": false
},
"mortgage_search": {
"uuid": "ef961691-b29e-4146-9746-0c016834ffd2",
"created_at": "2026-09-18T09:00:17+01:00",
"updated_at": "2026-09-18T09:00:17+01:00",
"name": "My Mortgage Search",
"status": "pending",
"provider": "Mortgage Brain",
"provider_reference": "123456789",
"provider_data": []
}
}
],
"plans": [
{
"uuid": "dead485c-78b2-4150-89b2-a46f2aad2796",
"created_at": "2026-09-18T09:00:13+01:00",
"updated_at": "2026-09-18T09:00:13+01:00",
"opened_at": "2026-09-18T09:00:13+01:00",
"name": "Johns ISA",
"type": "cash_account",
"sub_type": "lifetime isa",
"abstract_type": "asset",
"policy_number": "AVIVA-123",
"proposal_reference": "AB123456",
"status": "inactive",
"inactive_at": "2026-09-18T09:00:13+01:00",
"inactive_reason": "claimed",
"is_group_scheme": false,
"is_sub_group_scheme": false,
"is_group_scheme_member": false,
"is_wrap_product": false,
"is_wrap_child": false
}
],
"files": [
{
"uuid": "87dfa3e1-5adf-49b2-890c-f397df372310",
"created_at": "2026-09-18T09:00:13+01:00",
"original_created_at": "2026-09-18T09:00:13+01:00",
"updated_at": "2026-09-18T09:00:13+01:00",
"uploaded_at": "2026-09-18T09:00:13+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-09-18T09:00:13+01:00",
"progress": "100",
"download_url": "https://api.plannrcrm.com/file/6cc46256-cf25-4513-9ddb-f1b5f0cd8c4e/download",
"preview_url": "https://api.plannrcrm.com/file/98a5df35-7095-4914-bbdd-95e95286e784/preview",
"folder_name": "folder 2",
"folder": {
"uuid": "664a79e2-0a18-44cd-a4c2-02d302be5560",
"created_at": "2026-09-18T09:00:17+01:00",
"updated_at": "2026-09-18T09:00:17+01:00",
"name": "Important Documents",
"slug": "important-documents",
"path": "Codepotato/Important Documents",
"clients_read": true,
"clients_write": true,
"show_client_permissions": true,
"is_system_folder": true,
"is_pseudo_folder": true,
"is_root_folder": true,
"documentable_type": "account",
"documentable_uuid": "account",
"documentable": "Object",
"participants_count": 3,
"folders_count": 5,
"files_count": 8,
"depth": 5,
"owned": false
},
"documentable_type": "account",
"documentable": "Object",
"navigator": {
"model_type": "account",
"model_uuid": "5621615b-7bc3-40c4-beda-89b42450fa76"
},
"firm": {
"uuid": "be357285-de5e-4d35-95b0-4a4d8f80b228",
"created_at": "2026-09-18T09:00:17+01:00",
"updated_at": "2026-09-18T09:00:17+01:00",
"name": "Codepotato",
"slug": "codepotato",
"address_1": "Suite E, 5 The Briars",
"address_2": "Waterberry Drive",
"town_city": "Waterlooville",
"county": "Hampshire",
"postcode": "PO7 7YH",
"country": "United Kingdom",
"regulatory_text": "Regulatory text",
"logo": "https://api.plannrcrm.com/images/plannr.jpg",
"logo_icon": "https://api.plannrcrm.com/images/plannr-icon.jpg",
"brand_colours": {
"sidebar_background": "#0E0E56",
"sidebar_accent": "#36367E",
"sidebar_text": "#FFFFFF",
"sidebar_hover": "#0A0A42",
"sidebar_active": "#53DBB8",
"sidebar_title_background": "#36367E",
"sidebar_title_primary": "#FFC634",
"sidebar_title_secondary": "#FFFFFF",
"sidebar_title_secondary_hover": "#FFFFFF",
"email_background": "#0E0E56",
"email_logo_background_panel": "#36367E",
"email_sub_text": "#FFFFFF",
"email_button_background": "#36367E",
"email_button_text": "#FFFFFF",
"portal_sidebar_button_background": "#F6F6F6",
"portal_sidebar_button_hover": "#FFFFFF",
"portal_sidebar_button_active": "#FFFFFF",
"portal_brand_title": "#323B4B",
"portal_brand_sub_title": "#828994",
"portal_sidebar_title": "#11151D",
"portal_sidebar_text": "#323B4B",
"portal_sidebar_text_hover": "#323B4B",
"portal_sidebar_text_active": "#323B4B",
"portal_sidebar_icon": "#828994",
"portal_sidebar_icon_hover": "#828994",
"portal_sidebar_icon_active": "#828994",
"portal_background": "#F6F6F6",
"portal_sidebar_account_title": "#11151D",
"portal_sidebar_account_email": "#828994",
"portal_sidebar_divider": "#E3E5E9",
"portal_dashboard_bg_one": "#EF4583",
"portal_dashboard_bg_two": "#FFC634",
"portal_sidebar_collapse_button": "#828994",
"portal_sidebar_collapse_button_hover": "#B3B9C4",
"portal_sidebar_user_select_background": "#F6F6F6",
"portal_sidebar_user_select_hover": "#F6F6F6",
"portal_sidebar_user_select_text": "#323B4B",
"portal_sidebar_user_select_text_hover": "#323B4B",
"portal_sidebar_user_select_border": "#EEEEEE",
"portal_sidebar_user_select_border_hover": "#828994"
},
"factfind_pdf_header_background": "#0E0E56",
"factfind_pdf_header_text": "#ffffff",
"factfind_pdf_logo": "https://api.plannrcrm.com/images/plannr.jpg",
"is_subscribed": true,
"keep_deleted_files_for": 30,
"tax": 17.5,
"month_end": 25,
"statement_frequency": "monthly",
"billing": {
"invoice_address_1": "Suite E, 5 The Briars",
"invoice_address_2": "Waterberry Drive",
"invoice_town_city": "Waterlooville",
"invoice_county": "Hampshire",
"invoice_postcode": "PO7 7YH",
"invoice_country": "United Kingdom",
"invoice_email": "gareth@codepotato.co.uk"
},
"ip_whitelist": [
"192.168.0.1",
"127.0.0.1"
],
"welcome_paragraph_html": "<h1>Welcome.</h1>",
"email_welcome_paragraph_html": "Welcome to Plannr!",
"show_fact_find_illustrations": true,
"cc_email_addresses": [
"jack@example.com",
"jill@example.com"
],
"bcc_email_addresses": [
"jack@example.com",
"jill@example.com"
],
"reply_to_email_address": "jack@example.com",
"mobile_app_support_number": "01234 567890",
"mobile_app_support_email": "support@example.com"
},
"account": {
"uuid": "7840ad25-f1bb-4ea8-aac1-c6b33ee37f01",
"created_at": "2026-09-18T09:00:17+01:00",
"updated_at": "2026-09-18T09:00:17+01:00",
"type": "client",
"role": "client",
"first_name": "Gareth",
"last_name": "Thompson",
"name": "Gareth Thompson",
"email": "gareth@codepotato.co.uk",
"photo_url": "https://eu.ui-avatars.com/api/?name=Gareth+Thompson"
},
"tags": {
"uuid": "5c9d9f6f-4a9f-401f-8b2a-88fbcfd03b35",
"created_at": "2026-09-18T09:00:17+01:00",
"updated_at": "2026-09-18T09:00:17+01:00",
"name": "Mortgage",
"slug": "mortgage",
"colour": "#ef4582"
}
}
]
}
{
"message": "The given data was invalid.",
"errors": {
"field": [
"The field is invalid."
]
}
}