{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Perch Developer Platform","colors":{"primary":"#327766","light":"#4A9B8E","dark":"#225544"},"logo":{"light":"https://mintcdn.com/perch/aarm0-0z3T7Cpqsa/logo/light.svg?fit=max\u0026auto=format\u0026n=aarm0-0z3T7Cpqsa\u0026q=85\u0026s=9888bee08d7235bfc8b62134afbbcd38","dark":"https://mintcdn.com/perch/aarm0-0z3T7Cpqsa/logo/dark.svg?fit=max\u0026auto=format\u0026n=aarm0-0z3T7Cpqsa\u0026q=85\u0026s=3581a78d9a09760d968114a698c5d1ab"},"favicon":"https://mintcdn.com/perch/aarm0-0z3T7Cpqsa/favicon.svg?fit=max\u0026auto=format\u0026n=aarm0-0z3T7Cpqsa\u0026q=85\u0026s=23972ee76b34e87f01ac89a6b0d2bfe4","api":{"examples":{"prefill":true}},"navbar":{"links":[{"href":"mailto:support@myperch.io","label":"Contact Support"}],"primary":{"type":"button","label":"Client Portal","href":"https://app.myperch.io"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/perchcanada","facebook":"https://www.facebook.com/PerchCanada"}},"styling":{"latex":false},"navigation":{"global":{},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"perch","hasAudioNarration":false,"actualSubdomain":"perch","customDomains":["docs.myperch.io"],"gitSource":{"type":"github","owner":"myperch","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a91bd89ef81b33a53331a04","collectionId":"43308cb4-8866-450d-bb72-dbb772d24f85","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6a91bd89ef81b33a53331a04"},"entitlements":{},"buildId":"6a91bd89ef81b33a53331a04","clientVersion":"0.0.3971","searchFilterCounts":[{"language":"default","tag":"Get Started","count":17},{"language":"default","tag":"Lead","count":12},{"language":"default","tag":"Realtor API","count":9},{"language":"default","tag":"Realtor API Reference","count":9},{"language":"default","tag":"Core API","count":8},{"language":"default","tag":"Partner API","count":8},{"language":"default","tag":"Partner API Reference","count":8},{"language":"default","tag":"Embeds","count":5},{"language":"default","tag":"Plan","count":4},{"language":"default","tag":"Welcome","count":3}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"realtor-api/lead/create-lead-for-firm","slug":"/realtor-api/lead/create-lead-for-firm","pageMetadata":{"title":"Create Lead for Firm","description":"Creates a record in the Lead table based on passed parameters and implicit access controls.","deprecated":null,"version":null,"openapi":"https://perch-api-docs.s3.ca-central-1.amazonaws.com/perch-realtor.spec.json post /firms/{id}/leads","href":"/realtor-api/lead/create-lead-for-firm","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Creates a record in the Lead table based on passed parameters and implicit access controls.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create Lead for Firm","description":"Creates a record in the Lead table based on passed parameters and implicit access controls.","deprecated":null,"version":null,"openapi":"https://perch-api-docs.s3.ca-central-1.amazonaws.com/perch-realtor.spec.json post /firms/{id}/leads","href":"/realtor-api/lead/create-lead-for-firm","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"post-leads-for-firms","summary":"Create Lead for Firm","description":"Creates a record in the Lead table based on passed parameters and implicit access controls.","tags":["Lead"],"responses":{"201":"73d4bf5c-7dcb-40a8-84f1-a782c8ac6103"},"parameters":["263f6efb-5233-4c92-9890-6b44aa431fe3"],"requestBody":"8ddeb9dd-0365-475f-b33f-28d8267b9602","method":"post","type":"path","servers":["18c5d4e1-deaa-4890-bc94-c2204b93ef8d","9d392550-dc71-4133-b76d-4feb64028bdf"],"security":["d37efc51-92a8-4fd2-9ef1-2565790d59ab"],"path":"/firms/{id}/leads","baseUrlOptions":["https://api.realtor.dit.myperch.io/v1","https://api.realtor.myperch.io/v1"],"title":"Create Lead for Firm","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.email":"client1+74049788@example.com","body.firstName":"Amya","body.lastName":"Williamson","body.resourceType":"Firm","body.resourceId":"qSBKZzUi","body.phone.oneOf.0.number":"2925655632","body.phone.oneOf.0.extension.oneOf.0":"562","body.clientData.oneOf.0.citizenship.oneOf.0":"Permanent Legal Resident (PR)","body.clientData.oneOf.0.creditScoreEstimation.oneOf.0":"142","body.clientData.oneOf.0.dateOfBirth.oneOf.0":"1987-07-13","body.clientData.oneOf.0.maritalStatus.oneOf.0":"Married","body.clientData.oneOf.0.prefix.oneOf.0":"Ms.","body.clientData.oneOf.0.sin.oneOf.0":"004877852"}]},"dependencies":{"parameters":{"263f6efb-5233-4c92-9890-6b44aa431fe3":{"in":"path","name":"id","description":"The id of the record to retrieve.","required":true,"schema":{"type":"string","example":"abc123","isRequired":true,"description":"The id of the record to retrieve.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"description":"The data to create the record with.","content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","description":"The client's email address","example":"client1+74049788@example.com","isRequired":true,"uniqueKey":"email","typeLabel":"string\u003cemail>"},"firstName":{"type":"string","description":"The client's first name","example":"Amya","isRequired":true,"uniqueKey":"firstName","typeLabel":"string"},"lastName":{"type":"string","description":"The client's last name","example":"Williamson","isRequired":true,"uniqueKey":"lastName","typeLabel":"string"},"resourceType":{"type":"string","description":"The resource type of the lead owner","enum":["ClientProfile","Firm","FirmMember"],"example":"Firm","isRequired":true,"uniqueKey":"resourceType","typeLabel":"enum\u003cstring>"},"resourceId":{"type":"string","description":"The resource ID of the lead owner","example":"qSBKZzUi","isRequired":true,"uniqueKey":"resourceId","typeLabel":"string"},"phone":{"oneOf":[{"type":"object","description":"The client's phone number","properties":{"number":{"type":"string","description":"Phone number without country code","isRequired":true,"uniqueKey":"phone.oneOf.0.number","typeLabel":"string"},"extension":{"oneOf":[{"type":"string","description":"Phone number extension","uniqueKey":"phone.oneOf.0.extension.oneOf.0","typeLabel":"string"},{"type":"null","description":"Phone number extension","uniqueKey":"phone.oneOf.0.extension.oneOf.1","typeLabel":"null"}],"uniqueKey":"phone.oneOf.0.extension","typeLabel":"string | null"}},"required":["number"],"uniqueKey":"phone.oneOf.0","typeLabel":"object"},{"type":"null","description":"The client's phone number","properties":{"number":{"type":"string","description":"Phone number without country code"},"extension":{"oneOf":[{"type":"string","description":"Phone number extension"},{"type":"null","description":"Phone number extension"}]}},"required":["number"],"uniqueKey":"phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"phone","typeLabel":"object | null"},"clientData":{"oneOf":[{"type":"object","description":"The user data for the lead","properties":{"advisorProfileId":{"oneOf":[{"type":"string","pattern":"^[a-zA-Z0-9]{8}$","description":"The Perch ID of the advisor (a FirmMember with a 'Advisory' firmType) that the client is working with.","uniqueKey":"clientData.oneOf.0.advisorProfileId.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[a-zA-Z0-9]{8}$","description":"The Perch ID of the advisor (a FirmMember with a 'Advisory' firmType) that the client is working with.","uniqueKey":"clientData.oneOf.0.advisorProfileId.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.advisorProfileId","typeLabel":"string | null"},"citizenship":{"oneOf":[{"type":"string","enum":["Canadian Citizen","Permanent Legal Resident (PR)","Work VISA","Other","Student VISA"],"description":"The client's citizenship status. See enum for available types.","example":"Canadian Citizen","uniqueKey":"clientData.oneOf.0.citizenship.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["Canadian Citizen","Permanent Legal Resident (PR)","Work VISA","Other","Student VISA"],"description":"The client's citizenship status. See enum for available types.","example":"Canadian Citizen","uniqueKey":"clientData.oneOf.0.citizenship.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.citizenship","typeLabel":"enum\u003cstring> | null"},"creditScoreEstimation":{"oneOf":[{"type":"string","pattern":"^[0-9]{3}$","description":"The client's credit score estimation. This should be a 3 digit number.","example":"700","uniqueKey":"clientData.oneOf.0.creditScoreEstimation.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[0-9]{3}$","description":"The client's credit score estimation. This should be a 3 digit number.","example":"700","uniqueKey":"clientData.oneOf.0.creditScoreEstimation.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.creditScoreEstimation","typeLabel":"string | null"},"dateOfBirth":{"oneOf":[{"type":"string","format":"date","description":"The client's date of birth.","example":"1980-01-01","uniqueKey":"clientData.oneOf.0.dateOfBirth.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","description":"The client's date of birth.","example":"1980-01-01","uniqueKey":"clientData.oneOf.0.dateOfBirth.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.dateOfBirth","typeLabel":"string\u003cdate> | null"},"isFirstTimeHomeBuyer":{"oneOf":[{"type":"boolean","description":"Whether or not the client is a first time home buyer.","example":true,"uniqueKey":"clientData.oneOf.0.isFirstTimeHomeBuyer.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether or not the client is a first time home buyer.","example":true,"uniqueKey":"clientData.oneOf.0.isFirstTimeHomeBuyer.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.isFirstTimeHomeBuyer","typeLabel":"boolean | null"},"maritalStatus":{"oneOf":[{"type":"string","enum":["Married","Single","Common-Law","Divorced","Widowed","Separated"],"description":"The client's marital status. See enum for available types.","example":"Married","uniqueKey":"clientData.oneOf.0.maritalStatus.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["Married","Single","Common-Law","Divorced","Widowed","Separated"],"description":"The client's marital status. See enum for available types.","example":"Married","uniqueKey":"clientData.oneOf.0.maritalStatus.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.maritalStatus","typeLabel":"enum\u003cstring> | null"},"prefix":{"oneOf":[{"type":"string","enum":["Mr.","Mrs.","Ms."],"description":"The client's prefix / title. See enum for available types.","example":"Mrs.","uniqueKey":"clientData.oneOf.0.prefix.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["Mr.","Mrs.","Ms."],"description":"The client's prefix / title. See enum for available types.","example":"Mrs.","uniqueKey":"clientData.oneOf.0.prefix.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.prefix","typeLabel":"enum\u003cstring> | null"},"sin":{"oneOf":[{"type":"string","pattern":"^[0-9]{9}$","description":"The client's social insurance number. This should be a 9 digit number.","example":"123456789","uniqueKey":"clientData.oneOf.0.sin.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[0-9]{9}$","description":"The client's social insurance number. This should be a 9 digit number.","example":"123456789","uniqueKey":"clientData.oneOf.0.sin.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.sin","typeLabel":"string | null"},"Assets":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Savings","Investment","Vehicle","Purchase Deposit","Gifted Funds","Other"],"description":"Type of the non-property asset","example":"Savings","isRequired":true,"uniqueKey":"clientData.oneOf.0.Assets.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Description of the asset","example":"Savings account at RBC","isRequired":true,"uniqueKey":"clientData.oneOf.0.Assets.oneOf.0.items.[INDEX].description","typeLabel":"string"},"value":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The value of the asset in CAD","example":10000,"isRequired":true,"uniqueKey":"clientData.oneOf.0.Assets.oneOf.0.items.[INDEX].value","typeLabel":"string"}},"required":["description","type","value"],"additionalProperties":false,"uniqueKey":"clientData.oneOf.0.Assets.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Assets of the Lead.","uniqueKey":"clientData.oneOf.0.Assets.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"type":{"type":"string","enum":["Savings","Investment","Vehicle","Purchase Deposit","Gifted Funds","Other"],"description":"Type of the non-property asset","example":"Savings"},"description":{"type":"string","description":"Description of the asset","example":"Savings account at RBC"},"value":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The value of the asset in CAD","example":10000}},"required":["description","type","value"],"additionalProperties":false},"description":"Assets of the Lead.","uniqueKey":"clientData.oneOf.0.Assets.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Assets","typeLabel":"object[] | null"},"Incomes":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"type":{"description":"The type of the income.","type":"string","enum":["Canada Child Benefit","Child Support","Disability","Employer Pension","Employment","Old Age Security","Other","Pension","Rental","Self-Employment","Spousal Support","Unemployment"],"example":"Employment","isRequired":true,"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"startedOn":{"description":"Date the client started receiving the income.","type":"string","format":"date","example":"2018-01-01","isRequired":true,"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].startedOn","typeLabel":"string\u003cdate>"},"endedOn":{"oneOf":[{"description":"Date the client stopped receiving the income.","type":"string","format":"date","example":"2022-12-31","uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].endedOn.oneOf.0","typeLabel":"string\u003cdate>"},{"description":"Date the client stopped receiving the income.","type":"null","format":"date","example":"2022-12-31","uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].endedOn.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].endedOn","typeLabel":"string\u003cdate> | null"},"description":{"oneOf":[{"description":"Description of the income. (Employer name, etc.)","type":"string","example":"Cyberdyne Systems","uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"description":"Description of the income. (Employer name, etc.)","type":"null","example":"Cyberdyne Systems","uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].description","typeLabel":"string | null"},"streams":{"oneOf":[{"type":"object","description":"Income source details; separated by year. The key is the year and the value is an array of income streams for that year. (e.g. `{ \"2026\": [ { \"type\": \"Base\", \"frequency\": \"Bi-weekly\", \"amount\": \"1000\" } ] }`)","patternProperties":{"^[0-9]{4}$":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Base","Additional","Total"],"description":"An income year must not include both “Base/Additional” and “Total” entries, and no duplicate entries of the same type are allowed. The “Total” income streams are strictly tied to a “Yearly” frequency, and for past years, only the “Total” type is valid. Special case: \"Self-Employment\" income for Corporations will use \"Base/Additional\" for the current year and past years Special case: \"Employer Pension\" income will use \"Base/Additional\" for the current year and past years","example":"Base"},"frequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Frequency of the income (e.g. \"Monthly\", \"Yearly\", etc.)","example":"Bi-Weekly"},"amount":{"type":"string","description":"Amount of the income received at each interval. Expressed in CAD.","example":"1000"}},"required":["type","frequency","amount"],"additionalProperties":false},"anyOf":[{"items":{"type":"object","properties":{"type":{"const":"Total"},"frequency":{"enum":["Yearly"]}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"items":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"allOf":[{"contains":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]}},{"contains":{"type":"object","properties":{"type":{"const":"Additional"}},"required":["type","frequency","amount"]}}],"minItems":2,"maxItems":2}],"errorMessage":{"anyOf":"An income year must include either one \"Total\" income stream, one \"Base\" income stream, or both \"Base\" and \"Additional\" income streams."}}},"required":[],"additionalProperties":false,"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].streams.oneOf.0","typeLabel":"object"},{"type":"null","description":"Income source details; separated by year. The key is the year and the value is an array of income streams for that year. (e.g. `{ \"2026\": [ { \"type\": \"Base\", \"frequency\": \"Bi-weekly\", \"amount\": \"1000\" } ] }`)","patternProperties":{"^[0-9]{4}$":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Base","Additional","Total"],"description":"An income year must not include both “Base/Additional” and “Total” entries, and no duplicate entries of the same type are allowed. The “Total” income streams are strictly tied to a “Yearly” frequency, and for past years, only the “Total” type is valid. Special case: \"Self-Employment\" income for Corporations will use \"Base/Additional\" for the current year and past years Special case: \"Employer Pension\" income will use \"Base/Additional\" for the current year and past years","example":"Base"},"frequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Frequency of the income (e.g. \"Monthly\", \"Yearly\", etc.)","example":"Bi-Weekly"},"amount":{"type":"string","description":"Amount of the income received at each interval. Expressed in CAD.","example":"1000"}},"required":["type","frequency","amount"],"additionalProperties":false},"anyOf":[{"items":{"type":"object","properties":{"type":{"const":"Total"},"frequency":{"enum":["Yearly"]}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"items":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"allOf":[{"contains":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]}},{"contains":{"type":"object","properties":{"type":{"const":"Additional"}},"required":["type","frequency","amount"]}}],"minItems":2,"maxItems":2}],"errorMessage":{"anyOf":"An income year must include either one \"Total\" income stream, one \"Base\" income stream, or both \"Base\" and \"Additional\" income streams."}}},"required":[],"additionalProperties":false,"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].streams.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].streams","typeLabel":"object | null"},"employmentDetails":{"oneOf":[{"type":"object","description":"Employment information","properties":{"type":{"type":"string","enum":["Salaried","Hourly","Contract"],"description":"Type of employment.","example":"Salaried","isRequired":true,"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.type","typeLabel":"enum\u003cstring>"},"jobTitle":{"type":"string","description":"Job title of the client at their place of employment.","example":"Accountant","isRequired":true,"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.jobTitle","typeLabel":"string"},"phone":{"type":"object","description":"Phone number of the client's place of employment.","properties":{"number":{"type":"string","description":"Phone number without country code","isRequired":true,"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.phone.number","typeLabel":"string"},"extension":{"oneOf":[{"type":"string","description":"Phone number extension","uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.phone.extension.oneOf.0","typeLabel":"string"},{"type":"null","description":"Phone number extension","uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.phone.extension.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.phone.extension","typeLabel":"string | null"}},"additionalProperties":false,"required":["number"],"example":"{\"number\":\"6471234567\",\"extension\":\"123\"}","isRequired":true,"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.phone","typeLabel":"object"},"sector":{"type":"string","enum":["Agriculture","Arts \u0026 Entertainment","Construction","Educational Services","Financial Services","Healthcare","IT \u0026 Telecom","Manufacturing","Natural Resources","Public Services","Real Estate \u0026 Property Management","Retail \u0026 Wholesale","Science \u0026 Technology","Transportation","Travel \u0026 Tourism","Utilities","Student","Other"],"description":"The economic sector of the client's place of work.","example":"Financial Services","isRequired":true,"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.sector","typeLabel":"enum\u003cstring>"},"businessName":{"type":"string","description":"Name of the business. Only applicable to self-employed clients.","example":"Acme Inc.","isRequired":true,"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.businessName","typeLabel":"string"},"address":{"type":"object","properties":{"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number","uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.unitNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address - Unit number","uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.unitNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.unitNumber","typeLabel":"string | null"},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number","uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.streetNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address - Street number","uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.streetNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.streetNumber","typeLabel":"string | null"},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction","uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.streetName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address - Street name including direction","uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.streetName.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.streetName","typeLabel":"string | null"},"locality":{"type":"string","description":"Address - City, town, or village","uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.locality","typeLabel":"string"},"administrativeArea":{"type":"string","description":"Address - State or province","uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.administrativeArea","typeLabel":"string"},"postalCode":{"type":"string","description":"Address - Postal code or zip code","uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.postalCode","typeLabel":"string"},"country":{"type":"string","description":"Address - Country name","uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.country","typeLabel":"string"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc.","uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.premise.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address - Apartment, building, floor, etc.","uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.premise.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.premise","typeLabel":"string | null"},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID","uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.googlePlaceId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Google Place ID","uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.googlePlaceId.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.googlePlaceId","typeLabel":"string | null"},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point","isRequired":true,"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.locationGeometry.oneOf.0.type","typeLabel":"string"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number","uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.locationGeometry.oneOf.0.coordinates.items.[INDEX]","typeLabel":"number"},"minItems":2,"maxItems":2,"isRequired":true,"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.locationGeometry.oneOf.0.coordinates","typeLabel":"number[]"}},"required":["type","coordinates"],"additionalProperties":false,"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.locationGeometry.oneOf.0","typeLabel":"object"},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false,"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.locationGeometry.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.locationGeometry","typeLabel":"object | null"}},"required":[],"additionalProperties":false,"isRequired":true,"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address","typeLabel":"object"},"businessType":{"oneOf":[{"type":"string","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship","uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.businessType.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship","uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.businessType.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.businessType","typeLabel":"enum\u003cstring> | null"},"businessEstablishedOn":{"oneOf":[{"type":"string","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01","uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.businessEstablishedOn.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01","uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.businessEstablishedOn.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.businessEstablishedOn","typeLabel":"string\u003cdate> | null"},"businessAnnualGrossRevenue":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000","uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.businessAnnualGrossRevenue.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000","uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.businessAnnualGrossRevenue.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.businessAnnualGrossRevenue","typeLabel":"string | null"},"probationEndsOn":{"oneOf":[{"type":"string","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01","uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.probationEndsOn.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01","uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.probationEndsOn.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.probationEndsOn","typeLabel":"string\u003cdate> | null"}},"required":["type","jobTitle","phone","sector","businessName","address"],"additionalProperties":false,"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0","typeLabel":"object"},{"type":"null","description":"Employment information","properties":{"type":{"type":"string","enum":["Salaried","Hourly","Contract"],"description":"Type of employment.","example":"Salaried"},"jobTitle":{"type":"string","description":"Job title of the client at their place of employment.","example":"Accountant"},"phone":{"type":"object","description":"Phone number of the client's place of employment.","properties":{"number":{"type":"string","description":"Phone number without country code"},"extension":{"oneOf":[{"type":"string","description":"Phone number extension"},{"type":"null","description":"Phone number extension"}]}},"additionalProperties":false,"required":["number"],"example":"{\"number\":\"6471234567\",\"extension\":\"123\"}"},"sector":{"type":"string","enum":["Agriculture","Arts \u0026 Entertainment","Construction","Educational Services","Financial Services","Healthcare","IT \u0026 Telecom","Manufacturing","Natural Resources","Public Services","Real Estate \u0026 Property Management","Retail \u0026 Wholesale","Science \u0026 Technology","Transportation","Travel \u0026 Tourism","Utilities","Student","Other"],"description":"The economic sector of the client's place of work.","example":"Financial Services"},"businessType":{"oneOf":[{"type":"string","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship"},{"type":"null","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship"}]},"businessEstablishedOn":{"oneOf":[{"type":"string","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01"},{"type":"null","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01"}]},"businessAnnualGrossRevenue":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000"},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000"}]},"businessName":{"type":"string","description":"Name of the business. Only applicable to self-employed clients.","example":"Acme Inc."},"probationEndsOn":{"oneOf":[{"type":"string","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01"},{"type":"null","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01"}]},"address":{"type":"object","properties":{"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number"},{"type":"null","description":"Address - Unit number"}]},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number"},{"type":"null","description":"Address - Street number"}]},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction"},{"type":"null","description":"Address - Street name including direction"}]},"locality":{"type":"string","description":"Address - City, town, or village"},"administrativeArea":{"type":"string","description":"Address - State or province"},"postalCode":{"type":"string","description":"Address - Postal code or zip code"},"country":{"type":"string","description":"Address - Country name"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc."},{"type":"null","description":"Address - Apartment, building, floor, etc."}]},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID"},{"type":"null","description":"Google Place ID"}]},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false}]}},"required":[],"additionalProperties":false}},"required":["type","jobTitle","phone","sector","businessName","address"],"additionalProperties":false,"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails","typeLabel":"object | null"}},"required":["type","startedOn"],"additionalProperties":false,"if":{"anyOf":[{"properties":{"type":{"const":"Employer Pension"}}},{"properties":{"type":{"const":"Self-Employment"},"employmentDetails":{"properties":{"businessType":{"const":"Corporation"}}}}}]},"then":{"properties":{"streams":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","description":"Income source details; separated by year. The key is the year and the value is an array of income streams.","example":{"2026":[{"type":"Base","frequency":"Bi-Weekly","amount":1000},{"type":"Additional","frequency":"Quarterly","amount":100}]},"patternProperties":{"^[0-9]{4}$":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Base","Additional"],"description":"Income streams for Corporate Business Self-Employment or Employer Pension must have a \"Base\" and \"Additional\" stream.","example":"Base"},"frequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Frequency of the income (e.g. \"Monthly\", \"Yearly\", etc.)","example":"Bi-Weekly"},"amount":{"type":"number","description":"Amount of the income received at each interval. Expressed in CAD.","example":1000}},"required":["type","frequency","amount"],"additionalProperties":false}}},"nullable":true,"required":[],"additionalProperties":false}}},"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"type":{"description":"The type of the income.","type":"string","enum":["Canada Child Benefit","Child Support","Disability","Employer Pension","Employment","Old Age Security","Other","Pension","Rental","Self-Employment","Spousal Support","Unemployment"],"example":"Employment"},"startedOn":{"description":"Date the client started receiving the income.","type":"string","format":"date","example":"2018-01-01"},"endedOn":{"oneOf":[{"description":"Date the client stopped receiving the income.","type":"string","format":"date","example":"2022-12-31"},{"description":"Date the client stopped receiving the income.","type":"null","format":"date","example":"2022-12-31"}]},"description":{"oneOf":[{"description":"Description of the income. (Employer name, etc.)","type":"string","example":"Cyberdyne Systems"},{"description":"Description of the income. (Employer name, etc.)","type":"null","example":"Cyberdyne Systems"}]},"streams":{"oneOf":[{"type":"object","description":"Income source details; separated by year. The key is the year and the value is an array of income streams for that year. (e.g. `{ \"2026\": [ { \"type\": \"Base\", \"frequency\": \"Bi-weekly\", \"amount\": \"1000\" } ] }`)","patternProperties":{"^[0-9]{4}$":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Base","Additional","Total"],"description":"An income year must not include both “Base/Additional” and “Total” entries, and no duplicate entries of the same type are allowed. The “Total” income streams are strictly tied to a “Yearly” frequency, and for past years, only the “Total” type is valid. Special case: \"Self-Employment\" income for Corporations will use \"Base/Additional\" for the current year and past years Special case: \"Employer Pension\" income will use \"Base/Additional\" for the current year and past years","example":"Base"},"frequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Frequency of the income (e.g. \"Monthly\", \"Yearly\", etc.)","example":"Bi-Weekly"},"amount":{"type":"string","description":"Amount of the income received at each interval. Expressed in CAD.","example":"1000"}},"required":["type","frequency","amount"],"additionalProperties":false},"anyOf":[{"items":{"type":"object","properties":{"type":{"const":"Total"},"frequency":{"enum":["Yearly"]}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"items":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"allOf":[{"contains":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]}},{"contains":{"type":"object","properties":{"type":{"const":"Additional"}},"required":["type","frequency","amount"]}}],"minItems":2,"maxItems":2}],"errorMessage":{"anyOf":"An income year must include either one \"Total\" income stream, one \"Base\" income stream, or both \"Base\" and \"Additional\" income streams."}}},"required":[],"additionalProperties":false},{"type":"null","description":"Income source details; separated by year. The key is the year and the value is an array of income streams for that year. (e.g. `{ \"2026\": [ { \"type\": \"Base\", \"frequency\": \"Bi-weekly\", \"amount\": \"1000\" } ] }`)","patternProperties":{"^[0-9]{4}$":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Base","Additional","Total"],"description":"An income year must not include both “Base/Additional” and “Total” entries, and no duplicate entries of the same type are allowed. The “Total” income streams are strictly tied to a “Yearly” frequency, and for past years, only the “Total” type is valid. Special case: \"Self-Employment\" income for Corporations will use \"Base/Additional\" for the current year and past years Special case: \"Employer Pension\" income will use \"Base/Additional\" for the current year and past years","example":"Base"},"frequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Frequency of the income (e.g. \"Monthly\", \"Yearly\", etc.)","example":"Bi-Weekly"},"amount":{"type":"string","description":"Amount of the income received at each interval. Expressed in CAD.","example":"1000"}},"required":["type","frequency","amount"],"additionalProperties":false},"anyOf":[{"items":{"type":"object","properties":{"type":{"const":"Total"},"frequency":{"enum":["Yearly"]}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"items":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"allOf":[{"contains":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]}},{"contains":{"type":"object","properties":{"type":{"const":"Additional"}},"required":["type","frequency","amount"]}}],"minItems":2,"maxItems":2}],"errorMessage":{"anyOf":"An income year must include either one \"Total\" income stream, one \"Base\" income stream, or both \"Base\" and \"Additional\" income streams."}}},"required":[],"additionalProperties":false}]},"employmentDetails":{"oneOf":[{"type":"object","description":"Employment information","properties":{"type":{"type":"string","enum":["Salaried","Hourly","Contract"],"description":"Type of employment.","example":"Salaried"},"jobTitle":{"type":"string","description":"Job title of the client at their place of employment.","example":"Accountant"},"phone":{"type":"object","description":"Phone number of the client's place of employment.","properties":{"number":{"type":"string","description":"Phone number without country code"},"extension":{"oneOf":[{"type":"string","description":"Phone number extension"},{"type":"null","description":"Phone number extension"}]}},"additionalProperties":false,"required":["number"],"example":"{\"number\":\"6471234567\",\"extension\":\"123\"}"},"sector":{"type":"string","enum":["Agriculture","Arts \u0026 Entertainment","Construction","Educational Services","Financial Services","Healthcare","IT \u0026 Telecom","Manufacturing","Natural Resources","Public Services","Real Estate \u0026 Property Management","Retail \u0026 Wholesale","Science \u0026 Technology","Transportation","Travel \u0026 Tourism","Utilities","Student","Other"],"description":"The economic sector of the client's place of work.","example":"Financial Services"},"businessType":{"oneOf":[{"type":"string","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship"},{"type":"null","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship"}]},"businessEstablishedOn":{"oneOf":[{"type":"string","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01"},{"type":"null","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01"}]},"businessAnnualGrossRevenue":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000"},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000"}]},"businessName":{"type":"string","description":"Name of the business. Only applicable to self-employed clients.","example":"Acme Inc."},"probationEndsOn":{"oneOf":[{"type":"string","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01"},{"type":"null","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01"}]},"address":{"type":"object","properties":{"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number"},{"type":"null","description":"Address - Unit number"}]},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number"},{"type":"null","description":"Address - Street number"}]},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction"},{"type":"null","description":"Address - Street name including direction"}]},"locality":{"type":"string","description":"Address - City, town, or village"},"administrativeArea":{"type":"string","description":"Address - State or province"},"postalCode":{"type":"string","description":"Address - Postal code or zip code"},"country":{"type":"string","description":"Address - Country name"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc."},{"type":"null","description":"Address - Apartment, building, floor, etc."}]},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID"},{"type":"null","description":"Google Place ID"}]},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false}]}},"required":[],"additionalProperties":false}},"required":["type","jobTitle","phone","sector","businessName","address"],"additionalProperties":false},{"type":"null","description":"Employment information","properties":{"type":{"type":"string","enum":["Salaried","Hourly","Contract"],"description":"Type of employment.","example":"Salaried"},"jobTitle":{"type":"string","description":"Job title of the client at their place of employment.","example":"Accountant"},"phone":{"type":"object","description":"Phone number of the client's place of employment.","properties":{"number":{"type":"string","description":"Phone number without country code"},"extension":{"oneOf":[{"type":"string","description":"Phone number extension"},{"type":"null","description":"Phone number extension"}]}},"additionalProperties":false,"required":["number"],"example":"{\"number\":\"6471234567\",\"extension\":\"123\"}"},"sector":{"type":"string","enum":["Agriculture","Arts \u0026 Entertainment","Construction","Educational Services","Financial Services","Healthcare","IT \u0026 Telecom","Manufacturing","Natural Resources","Public Services","Real Estate \u0026 Property Management","Retail \u0026 Wholesale","Science \u0026 Technology","Transportation","Travel \u0026 Tourism","Utilities","Student","Other"],"description":"The economic sector of the client's place of work.","example":"Financial Services"},"businessType":{"oneOf":[{"type":"string","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship"},{"type":"null","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship"}]},"businessEstablishedOn":{"oneOf":[{"type":"string","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01"},{"type":"null","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01"}]},"businessAnnualGrossRevenue":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000"},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000"}]},"businessName":{"type":"string","description":"Name of the business. Only applicable to self-employed clients.","example":"Acme Inc."},"probationEndsOn":{"oneOf":[{"type":"string","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01"},{"type":"null","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01"}]},"address":{"type":"object","properties":{"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number"},{"type":"null","description":"Address - Unit number"}]},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number"},{"type":"null","description":"Address - Street number"}]},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction"},{"type":"null","description":"Address - Street name including direction"}]},"locality":{"type":"string","description":"Address - City, town, or village"},"administrativeArea":{"type":"string","description":"Address - State or province"},"postalCode":{"type":"string","description":"Address - Postal code or zip code"},"country":{"type":"string","description":"Address - Country name"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc."},{"type":"null","description":"Address - Apartment, building, floor, etc."}]},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID"},{"type":"null","description":"Google Place ID"}]},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false}]}},"required":[],"additionalProperties":false}},"required":["type","jobTitle","phone","sector","businessName","address"],"additionalProperties":false}]}},"required":["type","startedOn"],"additionalProperties":false,"if":{"anyOf":[{"properties":{"type":{"const":"Employer Pension"}}},{"properties":{"type":{"const":"Self-Employment"},"employmentDetails":{"properties":{"businessType":{"const":"Corporation"}}}}}]},"then":{"properties":{"streams":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","description":"Income source details; separated by year. The key is the year and the value is an array of income streams.","example":{"2026":[{"type":"Base","frequency":"Bi-Weekly","amount":1000},{"type":"Additional","frequency":"Quarterly","amount":100}]},"patternProperties":{"^[0-9]{4}$":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Base","Additional"],"description":"Income streams for Corporate Business Self-Employment or Employer Pension must have a \"Base\" and \"Additional\" stream.","example":"Base"},"frequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Frequency of the income (e.g. \"Monthly\", \"Yearly\", etc.)","example":"Bi-Weekly"},"amount":{"type":"number","description":"Amount of the income received at each interval. Expressed in CAD.","example":1000}},"required":["type","frequency","amount"],"additionalProperties":false}}},"nullable":true,"required":[],"additionalProperties":false}}}},"uniqueKey":"clientData.oneOf.0.Incomes.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Incomes","typeLabel":"object[] | null"},"ClientResidencies":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"occupancyType":{"description":"The status of the client's residency. Residers do not own or rent the property.","type":"string","enum":["Owner","Renter","Resider"],"example":"Resider","isRequired":true,"uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].occupancyType","typeLabel":"enum\u003cstring>"},"startsOn":{"description":"Date the client moved into the location","type":"string","format":"date","example":"2018-01-01","isRequired":true,"uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].startsOn","typeLabel":"string\u003cdate>"},"locality":{"type":"string","description":"Address - City, town, or village","isRequired":true,"uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].locality","typeLabel":"string"},"administrativeArea":{"type":"string","description":"Address - State or province","isRequired":true,"uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].administrativeArea","typeLabel":"string"},"postalCode":{"type":"string","description":"Address - Postal code or zip code","isRequired":true,"uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].postalCode","typeLabel":"string"},"country":{"type":"string","description":"Address - Country name","isRequired":true,"uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].country","typeLabel":"string"},"endsOn":{"oneOf":[{"description":"Date the client moved out of the location","type":"string","format":"date","example":"2022-12-31","uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].endsOn.oneOf.0","typeLabel":"string\u003cdate>"},{"description":"Date the client moved out of the location","type":"null","format":"date","example":"2022-12-31","uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].endsOn.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].endsOn","typeLabel":"string\u003cdate> | null"},"monthlyRent":{"oneOf":[{"description":"The monthly rent amount when occupancyType is \"Renter\"","type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","example":2000,"uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].monthlyRent.oneOf.0","typeLabel":"string"},{"description":"The monthly rent amount when occupancyType is \"Renter\"","type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","example":2000,"uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].monthlyRent.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].monthlyRent","typeLabel":"string | null"},"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number","uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].unitNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address - Unit number","uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].unitNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].unitNumber","typeLabel":"string | null"},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number","uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].streetNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address - Street number","uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].streetNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].streetNumber","typeLabel":"string | null"},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction","uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].streetName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address - Street name including direction","uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].streetName.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].streetName","typeLabel":"string | null"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc.","uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].premise.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address - Apartment, building, floor, etc.","uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].premise.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].premise","typeLabel":"string | null"},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID","uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].googlePlaceId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Google Place ID","uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].googlePlaceId.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].googlePlaceId","typeLabel":"string | null"},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point","isRequired":true,"uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].locationGeometry.oneOf.0.type","typeLabel":"string"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number","uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].locationGeometry.oneOf.0.coordinates.items.[INDEX]","typeLabel":"number"},"minItems":2,"maxItems":2,"isRequired":true,"uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].locationGeometry.oneOf.0.coordinates","typeLabel":"number[]"}},"required":["type","coordinates"],"additionalProperties":false,"uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].locationGeometry.oneOf.0","typeLabel":"object"},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false,"uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].locationGeometry.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].locationGeometry","typeLabel":"object | null"}},"required":["occupancyType","startsOn","locality","country","postalCode","administrativeArea"],"additionalProperties":false,"uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"occupancyType":{"description":"The status of the client's residency. Residers do not own or rent the property.","type":"string","enum":["Owner","Renter","Resider"],"example":"Resider"},"startsOn":{"description":"Date the client moved into the location","type":"string","format":"date","example":"2018-01-01"},"endsOn":{"oneOf":[{"description":"Date the client moved out of the location","type":"string","format":"date","example":"2022-12-31"},{"description":"Date the client moved out of the location","type":"null","format":"date","example":"2022-12-31"}]},"monthlyRent":{"oneOf":[{"description":"The monthly rent amount when occupancyType is \"Renter\"","type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","example":2000},{"description":"The monthly rent amount when occupancyType is \"Renter\"","type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","example":2000}]},"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number"},{"type":"null","description":"Address - Unit number"}]},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number"},{"type":"null","description":"Address - Street number"}]},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction"},{"type":"null","description":"Address - Street name including direction"}]},"locality":{"type":"string","description":"Address - City, town, or village"},"administrativeArea":{"type":"string","description":"Address - State or province"},"postalCode":{"type":"string","description":"Address - Postal code or zip code"},"country":{"type":"string","description":"Address - Country name"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc."},{"type":"null","description":"Address - Apartment, building, floor, etc."}]},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID"},{"type":"null","description":"Google Place ID"}]},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false}]}},"required":["occupancyType","startsOn","locality","country","postalCode","administrativeArea"],"additionalProperties":false},"uniqueKey":"clientData.oneOf.0.ClientResidencies.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.ClientResidencies","typeLabel":"object[] | null"},"Plans":{"oneOf":[{"type":"array","items":{"oneOf":[{"type":"object","title":"LeadBuyingPlan","required":["type"],"properties":{"type":{"type":"string","description":"The type of the plan. See enum for available types.","enum":["Buying"],"example":"Buying","isRequired":true,"uniqueKey":"clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"oneOf":[{"type":"string","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$","uniqueKey":"clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.0.id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$","uniqueKey":"clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.0.id.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.0.id","typeLabel":"string | null"},"leadId":{"oneOf":[{"type":"string","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$","uniqueKey":"clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.0.leadId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$","uniqueKey":"clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.0.leadId.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.0.leadId","typeLabel":"string | null"},"referralCodeId":{"oneOf":[{"type":"string","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$","uniqueKey":"clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.0.referralCodeId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$","uniqueKey":"clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.0.referralCodeId.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.0.referralCodeId","typeLabel":"string | null"},"realtorProfileId":{"oneOf":[{"type":"string","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans.","pattern":"^[a-zA-Z0-9]{8}$","uniqueKey":"clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.0.realtorProfileId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans.","pattern":"^[a-zA-Z0-9]{8}$","uniqueKey":"clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.0.realtorProfileId.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.0.realtorProfileId","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"LeadBuyingPlan · object"},{"type":"object","title":"LeadManagePlan","required":["type"],"properties":{"type":{"type":"string","description":"The type of the plan. See enum for available types.","enum":["Switching","Renewing","Refinancing"],"example":"Buying","isRequired":true,"uniqueKey":"clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"id":{"oneOf":[{"type":"string","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$","uniqueKey":"clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.1.id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$","uniqueKey":"clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.1.id.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.1.id","typeLabel":"string | null"},"leadId":{"oneOf":[{"type":"string","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$","uniqueKey":"clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.1.leadId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$","uniqueKey":"clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.1.leadId.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.1.leadId","typeLabel":"string | null"},"referralCodeId":{"oneOf":[{"type":"string","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$","uniqueKey":"clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.1.referralCodeId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$","uniqueKey":"clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.1.referralCodeId.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.1.referralCodeId","typeLabel":"string | null"},"realtorProfileId":{"oneOf":[{"type":"string","pattern":"^[a-zA-Z0-9]{8}$","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans.","uniqueKey":"clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.1.realtorProfileId.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[a-zA-Z0-9]{8}$","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans.","uniqueKey":"clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.1.realtorProfileId.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.1.realtorProfileId","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"LeadManagePlan · object"}],"uniqueKey":"clientData.oneOf.0.Plans.oneOf.0.items.[INDEX]","typeLabel":"LeadBuyingPlan · object | LeadManagePlan · object"},"description":"Plans associated with the Lead.","uniqueKey":"clientData.oneOf.0.Plans.oneOf.0","typeLabel":"(LeadBuyingPlan · object | LeadManagePlan · object)[]"},{"type":"null","items":{"oneOf":[{"type":"object","title":"LeadBuyingPlan","required":["type"],"properties":{"id":{"oneOf":[{"type":"string","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"}]},"leadId":{"oneOf":[{"type":"string","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"}]},"referralCodeId":{"oneOf":[{"type":"string","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$"}]},"type":{"type":"string","description":"The type of the plan. See enum for available types.","enum":["Buying"],"example":"Buying"},"realtorProfileId":{"oneOf":[{"type":"string","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans.","pattern":"^[a-zA-Z0-9]{8}$"}]}},"additionalProperties":false},{"type":"object","title":"LeadManagePlan","required":["type"],"properties":{"id":{"oneOf":[{"type":"string","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"}]},"leadId":{"oneOf":[{"type":"string","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"}]},"referralCodeId":{"oneOf":[{"type":"string","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$"}]},"type":{"type":"string","description":"The type of the plan. See enum for available types.","enum":["Switching","Renewing","Refinancing"],"example":"Buying"},"realtorProfileId":{"oneOf":[{"type":"string","pattern":"^[a-zA-Z0-9]{8}$","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans."},{"type":"null","pattern":"^[a-zA-Z0-9]{8}$","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans."}]}},"additionalProperties":false}]},"description":"Plans associated with the Lead.","uniqueKey":"clientData.oneOf.0.Plans.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Plans","typeLabel":"(LeadBuyingPlan · object | LeadManagePlan · object)[] | null"},"Properties":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Detached","Condo/Apartment","Townhouse","Semi-Detached","Other"],"description":"The type of the property.","example":"Detached","isRequired":true,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["Purchasing","Owned","Selling","Sold","Shortlisted"],"description":"Current state of the property","example":"Owned","isRequired":true,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"occupancyType":{"type":"string","enum":["Owner Occupied","Rental","Owner Occupied \u0026 Rental","Second Home"],"description":"The status of the occupant's residency","example":"Owner Occupied","isRequired":true,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].occupancyType","typeLabel":"enum\u003cstring>"},"purchasePrice":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The purchase price of the property in CAD","example":500000,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].purchasePrice.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The purchase price of the property in CAD","example":500000,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].purchasePrice.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].purchasePrice","typeLabel":"string | null"},"purchasedOn":{"oneOf":[{"type":"string","format":"date","description":"The date the agreement to purchase the property was accepted","example":"2018-01-01","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].purchasedOn.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","description":"The date the agreement to purchase the property was accepted","example":"2018-01-01","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].purchasedOn.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].purchasedOn","typeLabel":"string\u003cdate> | null"},"monthlyTotalRent":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Rental income from Property","example":2000,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].monthlyTotalRent.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Rental income from Property","example":2000,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].monthlyTotalRent.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].monthlyTotalRent","typeLabel":"string | null"},"costs":{"type":"object","properties":{"annualPropertyTaxes":{"oneOf":[{"type":"number","description":"The annual property taxes for the property in CAD","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].costs.annualPropertyTaxes.oneOf.0","typeLabel":"number"},{"type":"null","description":"The annual property taxes for the property in CAD","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].costs.annualPropertyTaxes.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].costs.annualPropertyTaxes","typeLabel":"number | null"},"monthlyMaintenanceFee":{"oneOf":[{"type":"number","description":"The monthly maintenance fee for condos/townhouses in CAD","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].costs.monthlyMaintenanceFee.oneOf.0","typeLabel":"number"},{"type":"null","description":"The monthly maintenance fee for condos/townhouses in CAD","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].costs.monthlyMaintenanceFee.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].costs.monthlyMaintenanceFee","typeLabel":"number | null"}},"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].costs","typeLabel":"object"},"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].unitNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address - Unit number","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].unitNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].unitNumber","typeLabel":"string | null"},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].streetNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address - Street number","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].streetNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].streetNumber","typeLabel":"string | null"},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].streetName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address - Street name including direction","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].streetName.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].streetName","typeLabel":"string | null"},"locality":{"type":"string","description":"Address - City, town, or village","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].locality","typeLabel":"string"},"administrativeArea":{"type":"string","description":"Address - State or province","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].administrativeArea","typeLabel":"string"},"postalCode":{"type":"string","description":"Address - Postal code or zip code","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].postalCode","typeLabel":"string"},"country":{"type":"string","description":"Address - Country name","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].country","typeLabel":"string"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc.","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].premise.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address - Apartment, building, floor, etc.","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].premise.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].premise","typeLabel":"string | null"},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].googlePlaceId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Google Place ID","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].googlePlaceId.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].googlePlaceId","typeLabel":"string | null"},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point","isRequired":true,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].locationGeometry.oneOf.0.type","typeLabel":"string"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].locationGeometry.oneOf.0.coordinates.items.[INDEX]","typeLabel":"number"},"minItems":2,"maxItems":2,"isRequired":true,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].locationGeometry.oneOf.0.coordinates","typeLabel":"number[]"}},"required":["type","coordinates"],"additionalProperties":false,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].locationGeometry.oneOf.0","typeLabel":"object"},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].locationGeometry.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].locationGeometry","typeLabel":"object | null"},"Liabilities":{"oneOf":[{"type":"array","items":{"type":"object","required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"properties":{"type":{"type":"string","enum":["Alimony","Car Lease","Car Finance","Child Support","Condo Fees","Heating Costs","HELOC","Mortgage","Personal Loan","Property Tax","Student Loan","Unsecured Line of Credit","Other"],"description":"The type of the liability.","isRequired":true,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability.","isRequired":true,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].balance","typeLabel":"string"},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types.","isRequired":true,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].creditLimit","typeLabel":"string"},"lenderName":{"type":"string","description":"The name of the lender.","isRequired":true,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].lenderName","typeLabel":"string"},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures.","isRequired":true,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].maturesOn","typeLabel":"string\u003cdate>"},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval.","isRequired":true,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].paymentAmount","typeLabel":"string"},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only.","isRequired":true,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].paymentDetails.isInterestOnly","typeLabel":"boolean"},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years.","isRequired":true,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].paymentDetails.isPropertyTaxIncluded","typeLabel":"boolean"}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false,"isRequired":true,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].paymentDetails","typeLabel":"object"},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability.","isRequired":true,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].paymentFrequency","typeLabel":"enum\u003cstring>"},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable","isRequired":true,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].rate","typeLabel":"number"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan","isRequired":true,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].rateType","typeLabel":"enum\u003cstring>"},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability.","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","description":"A helpful description of the liability.","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].description","typeLabel":"string | null"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].termMonths.oneOf.0","typeLabel":"number"},{"type":"null","description":"The term of the loan in months","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].termMonths.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].termMonths","typeLabel":"number | null"},"position":{"oneOf":[{"type":"integer","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability.","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].position.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability.","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].position.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].position","typeLabel":"integer | null"},"ChildLiabilities":{"oneOf":[{"type":"array","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination.","isRequired":true,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability.","isRequired":true,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].balance","typeLabel":"string"},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types.","isRequired":true,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].creditLimit","typeLabel":"string"},"lenderName":{"type":"string","description":"The name of the lender.","isRequired":true,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].lenderName","typeLabel":"string"},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures.","isRequired":true,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].maturesOn","typeLabel":"string\u003cdate>"},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval.","isRequired":true,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].paymentAmount","typeLabel":"string"},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only.","isRequired":true,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].paymentDetails.isInterestOnly","typeLabel":"boolean"},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years.","isRequired":true,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].paymentDetails.isPropertyTaxIncluded","typeLabel":"boolean"}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false,"isRequired":true,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].paymentDetails","typeLabel":"object"},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability.","isRequired":true,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].paymentFrequency","typeLabel":"enum\u003cstring>"},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable","isRequired":true,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].rate","typeLabel":"number"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan","isRequired":true,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].rateType","typeLabel":"enum\u003cstring>"},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability.","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","description":"A helpful description of the liability.","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].description","typeLabel":"string | null"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].termMonths.oneOf.0","typeLabel":"number"},{"type":"null","description":"The term of the loan in months","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].termMonths.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].termMonths","typeLabel":"number | null"}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false},"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities","typeLabel":"object[] | null"}},"additionalProperties":false,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"properties":{"type":{"type":"string","enum":["Alimony","Car Lease","Car Finance","Child Support","Condo Fees","Heating Costs","HELOC","Mortgage","Personal Loan","Property Tax","Student Loan","Unsecured Line of Credit","Other"],"description":"The type of the liability."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]},"position":{"oneOf":[{"type":"integer","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability."},{"type":"null","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability."}]},"ChildLiabilities":{"oneOf":[{"type":"array","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false}},{"type":"null","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false}}]}},"additionalProperties":false},"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities","typeLabel":"object[] | null"}},"required":["type","status","occupancyType"],"additionalProperties":false,"uniqueKey":"clientData.oneOf.0.Properties.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Properties owned by the Lead.","uniqueKey":"clientData.oneOf.0.Properties.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"type":{"type":"string","enum":["Detached","Condo/Apartment","Townhouse","Semi-Detached","Other"],"description":"The type of the property.","example":"Detached"},"status":{"type":"string","enum":["Purchasing","Owned","Selling","Sold","Shortlisted"],"description":"Current state of the property","example":"Owned"},"occupancyType":{"type":"string","enum":["Owner Occupied","Rental","Owner Occupied \u0026 Rental","Second Home"],"description":"The status of the occupant's residency","example":"Owner Occupied"},"purchasePrice":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The purchase price of the property in CAD","example":500000},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The purchase price of the property in CAD","example":500000}]},"purchasedOn":{"oneOf":[{"type":"string","format":"date","description":"The date the agreement to purchase the property was accepted","example":"2018-01-01"},{"type":"null","format":"date","description":"The date the agreement to purchase the property was accepted","example":"2018-01-01"}]},"monthlyTotalRent":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Rental income from Property","example":2000},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Rental income from Property","example":2000}]},"costs":{"type":"object","properties":{"annualPropertyTaxes":{"oneOf":[{"type":"number","description":"The annual property taxes for the property in CAD"},{"type":"null","description":"The annual property taxes for the property in CAD"}]},"monthlyMaintenanceFee":{"oneOf":[{"type":"number","description":"The monthly maintenance fee for condos/townhouses in CAD"},{"type":"null","description":"The monthly maintenance fee for condos/townhouses in CAD"}]}}},"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number"},{"type":"null","description":"Address - Unit number"}]},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number"},{"type":"null","description":"Address - Street number"}]},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction"},{"type":"null","description":"Address - Street name including direction"}]},"locality":{"type":"string","description":"Address - City, town, or village"},"administrativeArea":{"type":"string","description":"Address - State or province"},"postalCode":{"type":"string","description":"Address - Postal code or zip code"},"country":{"type":"string","description":"Address - Country name"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc."},{"type":"null","description":"Address - Apartment, building, floor, etc."}]},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID"},{"type":"null","description":"Google Place ID"}]},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false}]},"Liabilities":{"oneOf":[{"type":"array","items":{"type":"object","required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"properties":{"type":{"type":"string","enum":["Alimony","Car Lease","Car Finance","Child Support","Condo Fees","Heating Costs","HELOC","Mortgage","Personal Loan","Property Tax","Student Loan","Unsecured Line of Credit","Other"],"description":"The type of the liability."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]},"position":{"oneOf":[{"type":"integer","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability."},{"type":"null","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability."}]},"ChildLiabilities":{"oneOf":[{"type":"array","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false}},{"type":"null","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false}}]}},"additionalProperties":false}},{"type":"null","items":{"type":"object","required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"properties":{"type":{"type":"string","enum":["Alimony","Car Lease","Car Finance","Child Support","Condo Fees","Heating Costs","HELOC","Mortgage","Personal Loan","Property Tax","Student Loan","Unsecured Line of Credit","Other"],"description":"The type of the liability."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]},"position":{"oneOf":[{"type":"integer","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability."},{"type":"null","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability."}]},"ChildLiabilities":{"oneOf":[{"type":"array","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false}},{"type":"null","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false}}]}},"additionalProperties":false}}]}},"required":["type","status","occupancyType"],"additionalProperties":false},"description":"Properties owned by the Lead.","uniqueKey":"clientData.oneOf.0.Properties.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.Properties","typeLabel":"object[] | null"},"notes":{"oneOf":[{"description":"Notes about the Lead","type":"string","uniqueKey":"clientData.oneOf.0.notes.oneOf.0","typeLabel":"string"},{"description":"Notes about the Lead","type":"null","uniqueKey":"clientData.oneOf.0.notes.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData.oneOf.0.notes","typeLabel":"string | null"}},"required":[],"uniqueKey":"clientData.oneOf.0","typeLabel":"object"},{"type":"null","description":"The user data for the lead","properties":{"advisorProfileId":{"oneOf":[{"type":"string","pattern":"^[a-zA-Z0-9]{8}$","description":"The Perch ID of the advisor (a FirmMember with a 'Advisory' firmType) that the client is working with."},{"type":"null","pattern":"^[a-zA-Z0-9]{8}$","description":"The Perch ID of the advisor (a FirmMember with a 'Advisory' firmType) that the client is working with."}]},"citizenship":{"oneOf":[{"type":"string","enum":["Canadian Citizen","Permanent Legal Resident (PR)","Work VISA","Other","Student VISA"],"description":"The client's citizenship status. See enum for available types.","example":"Canadian Citizen"},{"type":"null","enum":["Canadian Citizen","Permanent Legal Resident (PR)","Work VISA","Other","Student VISA"],"description":"The client's citizenship status. See enum for available types.","example":"Canadian Citizen"}]},"creditScoreEstimation":{"oneOf":[{"type":"string","pattern":"^[0-9]{3}$","description":"The client's credit score estimation. This should be a 3 digit number.","example":"700"},{"type":"null","pattern":"^[0-9]{3}$","description":"The client's credit score estimation. This should be a 3 digit number.","example":"700"}]},"dateOfBirth":{"oneOf":[{"type":"string","format":"date","description":"The client's date of birth.","example":"1980-01-01"},{"type":"null","format":"date","description":"The client's date of birth.","example":"1980-01-01"}]},"isFirstTimeHomeBuyer":{"oneOf":[{"type":"boolean","description":"Whether or not the client is a first time home buyer.","example":true},{"type":"null","description":"Whether or not the client is a first time home buyer.","example":true}]},"maritalStatus":{"oneOf":[{"type":"string","enum":["Married","Single","Common-Law","Divorced","Widowed","Separated"],"description":"The client's marital status. See enum for available types.","example":"Married"},{"type":"null","enum":["Married","Single","Common-Law","Divorced","Widowed","Separated"],"description":"The client's marital status. See enum for available types.","example":"Married"}]},"prefix":{"oneOf":[{"type":"string","enum":["Mr.","Mrs.","Ms."],"description":"The client's prefix / title. See enum for available types.","example":"Mrs."},{"type":"null","enum":["Mr.","Mrs.","Ms."],"description":"The client's prefix / title. See enum for available types.","example":"Mrs."}]},"sin":{"oneOf":[{"type":"string","pattern":"^[0-9]{9}$","description":"The client's social insurance number. This should be a 9 digit number.","example":"123456789"},{"type":"null","pattern":"^[0-9]{9}$","description":"The client's social insurance number. This should be a 9 digit number.","example":"123456789"}]},"Assets":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Savings","Investment","Vehicle","Purchase Deposit","Gifted Funds","Other"],"description":"Type of the non-property asset","example":"Savings"},"description":{"type":"string","description":"Description of the asset","example":"Savings account at RBC"},"value":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The value of the asset in CAD","example":10000}},"required":["description","type","value"],"additionalProperties":false},"description":"Assets of the Lead."},{"type":"null","items":{"type":"object","properties":{"type":{"type":"string","enum":["Savings","Investment","Vehicle","Purchase Deposit","Gifted Funds","Other"],"description":"Type of the non-property asset","example":"Savings"},"description":{"type":"string","description":"Description of the asset","example":"Savings account at RBC"},"value":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The value of the asset in CAD","example":10000}},"required":["description","type","value"],"additionalProperties":false},"description":"Assets of the Lead."}]},"Incomes":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"type":{"description":"The type of the income.","type":"string","enum":["Canada Child Benefit","Child Support","Disability","Employer Pension","Employment","Old Age Security","Other","Pension","Rental","Self-Employment","Spousal Support","Unemployment"],"example":"Employment"},"startedOn":{"description":"Date the client started receiving the income.","type":"string","format":"date","example":"2018-01-01"},"endedOn":{"oneOf":[{"description":"Date the client stopped receiving the income.","type":"string","format":"date","example":"2022-12-31"},{"description":"Date the client stopped receiving the income.","type":"null","format":"date","example":"2022-12-31"}]},"description":{"oneOf":[{"description":"Description of the income. (Employer name, etc.)","type":"string","example":"Cyberdyne Systems"},{"description":"Description of the income. (Employer name, etc.)","type":"null","example":"Cyberdyne Systems"}]},"streams":{"oneOf":[{"type":"object","description":"Income source details; separated by year. The key is the year and the value is an array of income streams for that year. (e.g. `{ \"2026\": [ { \"type\": \"Base\", \"frequency\": \"Bi-weekly\", \"amount\": \"1000\" } ] }`)","patternProperties":{"^[0-9]{4}$":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Base","Additional","Total"],"description":"An income year must not include both “Base/Additional” and “Total” entries, and no duplicate entries of the same type are allowed. The “Total” income streams are strictly tied to a “Yearly” frequency, and for past years, only the “Total” type is valid. Special case: \"Self-Employment\" income for Corporations will use \"Base/Additional\" for the current year and past years Special case: \"Employer Pension\" income will use \"Base/Additional\" for the current year and past years","example":"Base"},"frequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Frequency of the income (e.g. \"Monthly\", \"Yearly\", etc.)","example":"Bi-Weekly"},"amount":{"type":"string","description":"Amount of the income received at each interval. Expressed in CAD.","example":"1000"}},"required":["type","frequency","amount"],"additionalProperties":false},"anyOf":[{"items":{"type":"object","properties":{"type":{"const":"Total"},"frequency":{"enum":["Yearly"]}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"items":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"allOf":[{"contains":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]}},{"contains":{"type":"object","properties":{"type":{"const":"Additional"}},"required":["type","frequency","amount"]}}],"minItems":2,"maxItems":2}],"errorMessage":{"anyOf":"An income year must include either one \"Total\" income stream, one \"Base\" income stream, or both \"Base\" and \"Additional\" income streams."}}},"required":[],"additionalProperties":false},{"type":"null","description":"Income source details; separated by year. The key is the year and the value is an array of income streams for that year. (e.g. `{ \"2026\": [ { \"type\": \"Base\", \"frequency\": \"Bi-weekly\", \"amount\": \"1000\" } ] }`)","patternProperties":{"^[0-9]{4}$":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Base","Additional","Total"],"description":"An income year must not include both “Base/Additional” and “Total” entries, and no duplicate entries of the same type are allowed. The “Total” income streams are strictly tied to a “Yearly” frequency, and for past years, only the “Total” type is valid. Special case: \"Self-Employment\" income for Corporations will use \"Base/Additional\" for the current year and past years Special case: \"Employer Pension\" income will use \"Base/Additional\" for the current year and past years","example":"Base"},"frequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Frequency of the income (e.g. \"Monthly\", \"Yearly\", etc.)","example":"Bi-Weekly"},"amount":{"type":"string","description":"Amount of the income received at each interval. Expressed in CAD.","example":"1000"}},"required":["type","frequency","amount"],"additionalProperties":false},"anyOf":[{"items":{"type":"object","properties":{"type":{"const":"Total"},"frequency":{"enum":["Yearly"]}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"items":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"allOf":[{"contains":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]}},{"contains":{"type":"object","properties":{"type":{"const":"Additional"}},"required":["type","frequency","amount"]}}],"minItems":2,"maxItems":2}],"errorMessage":{"anyOf":"An income year must include either one \"Total\" income stream, one \"Base\" income stream, or both \"Base\" and \"Additional\" income streams."}}},"required":[],"additionalProperties":false}]},"employmentDetails":{"oneOf":[{"type":"object","description":"Employment information","properties":{"type":{"type":"string","enum":["Salaried","Hourly","Contract"],"description":"Type of employment.","example":"Salaried"},"jobTitle":{"type":"string","description":"Job title of the client at their place of employment.","example":"Accountant"},"phone":{"type":"object","description":"Phone number of the client's place of employment.","properties":{"number":{"type":"string","description":"Phone number without country code"},"extension":{"oneOf":[{"type":"string","description":"Phone number extension"},{"type":"null","description":"Phone number extension"}]}},"additionalProperties":false,"required":["number"],"example":"{\"number\":\"6471234567\",\"extension\":\"123\"}"},"sector":{"type":"string","enum":["Agriculture","Arts \u0026 Entertainment","Construction","Educational Services","Financial Services","Healthcare","IT \u0026 Telecom","Manufacturing","Natural Resources","Public Services","Real Estate \u0026 Property Management","Retail \u0026 Wholesale","Science \u0026 Technology","Transportation","Travel \u0026 Tourism","Utilities","Student","Other"],"description":"The economic sector of the client's place of work.","example":"Financial Services"},"businessType":{"oneOf":[{"type":"string","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship"},{"type":"null","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship"}]},"businessEstablishedOn":{"oneOf":[{"type":"string","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01"},{"type":"null","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01"}]},"businessAnnualGrossRevenue":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000"},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000"}]},"businessName":{"type":"string","description":"Name of the business. Only applicable to self-employed clients.","example":"Acme Inc."},"probationEndsOn":{"oneOf":[{"type":"string","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01"},{"type":"null","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01"}]},"address":{"type":"object","properties":{"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number"},{"type":"null","description":"Address - Unit number"}]},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number"},{"type":"null","description":"Address - Street number"}]},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction"},{"type":"null","description":"Address - Street name including direction"}]},"locality":{"type":"string","description":"Address - City, town, or village"},"administrativeArea":{"type":"string","description":"Address - State or province"},"postalCode":{"type":"string","description":"Address - Postal code or zip code"},"country":{"type":"string","description":"Address - Country name"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc."},{"type":"null","description":"Address - Apartment, building, floor, etc."}]},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID"},{"type":"null","description":"Google Place ID"}]},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false}]}},"required":[],"additionalProperties":false}},"required":["type","jobTitle","phone","sector","businessName","address"],"additionalProperties":false},{"type":"null","description":"Employment information","properties":{"type":{"type":"string","enum":["Salaried","Hourly","Contract"],"description":"Type of employment.","example":"Salaried"},"jobTitle":{"type":"string","description":"Job title of the client at their place of employment.","example":"Accountant"},"phone":{"type":"object","description":"Phone number of the client's place of employment.","properties":{"number":{"type":"string","description":"Phone number without country code"},"extension":{"oneOf":[{"type":"string","description":"Phone number extension"},{"type":"null","description":"Phone number extension"}]}},"additionalProperties":false,"required":["number"],"example":"{\"number\":\"6471234567\",\"extension\":\"123\"}"},"sector":{"type":"string","enum":["Agriculture","Arts \u0026 Entertainment","Construction","Educational Services","Financial Services","Healthcare","IT \u0026 Telecom","Manufacturing","Natural Resources","Public Services","Real Estate \u0026 Property Management","Retail \u0026 Wholesale","Science \u0026 Technology","Transportation","Travel \u0026 Tourism","Utilities","Student","Other"],"description":"The economic sector of the client's place of work.","example":"Financial Services"},"businessType":{"oneOf":[{"type":"string","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship"},{"type":"null","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship"}]},"businessEstablishedOn":{"oneOf":[{"type":"string","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01"},{"type":"null","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01"}]},"businessAnnualGrossRevenue":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000"},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000"}]},"businessName":{"type":"string","description":"Name of the business. Only applicable to self-employed clients.","example":"Acme Inc."},"probationEndsOn":{"oneOf":[{"type":"string","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01"},{"type":"null","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01"}]},"address":{"type":"object","properties":{"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number"},{"type":"null","description":"Address - Unit number"}]},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number"},{"type":"null","description":"Address - Street number"}]},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction"},{"type":"null","description":"Address - Street name including direction"}]},"locality":{"type":"string","description":"Address - City, town, or village"},"administrativeArea":{"type":"string","description":"Address - State or province"},"postalCode":{"type":"string","description":"Address - Postal code or zip code"},"country":{"type":"string","description":"Address - Country name"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc."},{"type":"null","description":"Address - Apartment, building, floor, etc."}]},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID"},{"type":"null","description":"Google Place ID"}]},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false}]}},"required":[],"additionalProperties":false}},"required":["type","jobTitle","phone","sector","businessName","address"],"additionalProperties":false}]}},"required":["type","startedOn"],"additionalProperties":false,"if":{"anyOf":[{"properties":{"type":{"const":"Employer Pension"}}},{"properties":{"type":{"const":"Self-Employment"},"employmentDetails":{"properties":{"businessType":{"const":"Corporation"}}}}}]},"then":{"properties":{"streams":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","description":"Income source details; separated by year. The key is the year and the value is an array of income streams.","example":{"2026":[{"type":"Base","frequency":"Bi-Weekly","amount":1000},{"type":"Additional","frequency":"Quarterly","amount":100}]},"patternProperties":{"^[0-9]{4}$":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Base","Additional"],"description":"Income streams for Corporate Business Self-Employment or Employer Pension must have a \"Base\" and \"Additional\" stream.","example":"Base"},"frequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Frequency of the income (e.g. \"Monthly\", \"Yearly\", etc.)","example":"Bi-Weekly"},"amount":{"type":"number","description":"Amount of the income received at each interval. Expressed in CAD.","example":1000}},"required":["type","frequency","amount"],"additionalProperties":false}}},"nullable":true,"required":[],"additionalProperties":false}}}}},{"type":"null","items":{"type":"object","properties":{"type":{"description":"The type of the income.","type":"string","enum":["Canada Child Benefit","Child Support","Disability","Employer Pension","Employment","Old Age Security","Other","Pension","Rental","Self-Employment","Spousal Support","Unemployment"],"example":"Employment"},"startedOn":{"description":"Date the client started receiving the income.","type":"string","format":"date","example":"2018-01-01"},"endedOn":{"oneOf":[{"description":"Date the client stopped receiving the income.","type":"string","format":"date","example":"2022-12-31"},{"description":"Date the client stopped receiving the income.","type":"null","format":"date","example":"2022-12-31"}]},"description":{"oneOf":[{"description":"Description of the income. (Employer name, etc.)","type":"string","example":"Cyberdyne Systems"},{"description":"Description of the income. (Employer name, etc.)","type":"null","example":"Cyberdyne Systems"}]},"streams":{"oneOf":[{"type":"object","description":"Income source details; separated by year. The key is the year and the value is an array of income streams for that year. (e.g. `{ \"2026\": [ { \"type\": \"Base\", \"frequency\": \"Bi-weekly\", \"amount\": \"1000\" } ] }`)","patternProperties":{"^[0-9]{4}$":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Base","Additional","Total"],"description":"An income year must not include both “Base/Additional” and “Total” entries, and no duplicate entries of the same type are allowed. The “Total” income streams are strictly tied to a “Yearly” frequency, and for past years, only the “Total” type is valid. Special case: \"Self-Employment\" income for Corporations will use \"Base/Additional\" for the current year and past years Special case: \"Employer Pension\" income will use \"Base/Additional\" for the current year and past years","example":"Base"},"frequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Frequency of the income (e.g. \"Monthly\", \"Yearly\", etc.)","example":"Bi-Weekly"},"amount":{"type":"string","description":"Amount of the income received at each interval. Expressed in CAD.","example":"1000"}},"required":["type","frequency","amount"],"additionalProperties":false},"anyOf":[{"items":{"type":"object","properties":{"type":{"const":"Total"},"frequency":{"enum":["Yearly"]}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"items":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"allOf":[{"contains":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]}},{"contains":{"type":"object","properties":{"type":{"const":"Additional"}},"required":["type","frequency","amount"]}}],"minItems":2,"maxItems":2}],"errorMessage":{"anyOf":"An income year must include either one \"Total\" income stream, one \"Base\" income stream, or both \"Base\" and \"Additional\" income streams."}}},"required":[],"additionalProperties":false},{"type":"null","description":"Income source details; separated by year. The key is the year and the value is an array of income streams for that year. (e.g. `{ \"2026\": [ { \"type\": \"Base\", \"frequency\": \"Bi-weekly\", \"amount\": \"1000\" } ] }`)","patternProperties":{"^[0-9]{4}$":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Base","Additional","Total"],"description":"An income year must not include both “Base/Additional” and “Total” entries, and no duplicate entries of the same type are allowed. The “Total” income streams are strictly tied to a “Yearly” frequency, and for past years, only the “Total” type is valid. Special case: \"Self-Employment\" income for Corporations will use \"Base/Additional\" for the current year and past years Special case: \"Employer Pension\" income will use \"Base/Additional\" for the current year and past years","example":"Base"},"frequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Frequency of the income (e.g. \"Monthly\", \"Yearly\", etc.)","example":"Bi-Weekly"},"amount":{"type":"string","description":"Amount of the income received at each interval. Expressed in CAD.","example":"1000"}},"required":["type","frequency","amount"],"additionalProperties":false},"anyOf":[{"items":{"type":"object","properties":{"type":{"const":"Total"},"frequency":{"enum":["Yearly"]}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"items":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"allOf":[{"contains":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]}},{"contains":{"type":"object","properties":{"type":{"const":"Additional"}},"required":["type","frequency","amount"]}}],"minItems":2,"maxItems":2}],"errorMessage":{"anyOf":"An income year must include either one \"Total\" income stream, one \"Base\" income stream, or both \"Base\" and \"Additional\" income streams."}}},"required":[],"additionalProperties":false}]},"employmentDetails":{"oneOf":[{"type":"object","description":"Employment information","properties":{"type":{"type":"string","enum":["Salaried","Hourly","Contract"],"description":"Type of employment.","example":"Salaried"},"jobTitle":{"type":"string","description":"Job title of the client at their place of employment.","example":"Accountant"},"phone":{"type":"object","description":"Phone number of the client's place of employment.","properties":{"number":{"type":"string","description":"Phone number without country code"},"extension":{"oneOf":[{"type":"string","description":"Phone number extension"},{"type":"null","description":"Phone number extension"}]}},"additionalProperties":false,"required":["number"],"example":"{\"number\":\"6471234567\",\"extension\":\"123\"}"},"sector":{"type":"string","enum":["Agriculture","Arts \u0026 Entertainment","Construction","Educational Services","Financial Services","Healthcare","IT \u0026 Telecom","Manufacturing","Natural Resources","Public Services","Real Estate \u0026 Property Management","Retail \u0026 Wholesale","Science \u0026 Technology","Transportation","Travel \u0026 Tourism","Utilities","Student","Other"],"description":"The economic sector of the client's place of work.","example":"Financial Services"},"businessType":{"oneOf":[{"type":"string","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship"},{"type":"null","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship"}]},"businessEstablishedOn":{"oneOf":[{"type":"string","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01"},{"type":"null","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01"}]},"businessAnnualGrossRevenue":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000"},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000"}]},"businessName":{"type":"string","description":"Name of the business. Only applicable to self-employed clients.","example":"Acme Inc."},"probationEndsOn":{"oneOf":[{"type":"string","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01"},{"type":"null","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01"}]},"address":{"type":"object","properties":{"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number"},{"type":"null","description":"Address - Unit number"}]},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number"},{"type":"null","description":"Address - Street number"}]},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction"},{"type":"null","description":"Address - Street name including direction"}]},"locality":{"type":"string","description":"Address - City, town, or village"},"administrativeArea":{"type":"string","description":"Address - State or province"},"postalCode":{"type":"string","description":"Address - Postal code or zip code"},"country":{"type":"string","description":"Address - Country name"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc."},{"type":"null","description":"Address - Apartment, building, floor, etc."}]},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID"},{"type":"null","description":"Google Place ID"}]},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false}]}},"required":[],"additionalProperties":false}},"required":["type","jobTitle","phone","sector","businessName","address"],"additionalProperties":false},{"type":"null","description":"Employment information","properties":{"type":{"type":"string","enum":["Salaried","Hourly","Contract"],"description":"Type of employment.","example":"Salaried"},"jobTitle":{"type":"string","description":"Job title of the client at their place of employment.","example":"Accountant"},"phone":{"type":"object","description":"Phone number of the client's place of employment.","properties":{"number":{"type":"string","description":"Phone number without country code"},"extension":{"oneOf":[{"type":"string","description":"Phone number extension"},{"type":"null","description":"Phone number extension"}]}},"additionalProperties":false,"required":["number"],"example":"{\"number\":\"6471234567\",\"extension\":\"123\"}"},"sector":{"type":"string","enum":["Agriculture","Arts \u0026 Entertainment","Construction","Educational Services","Financial Services","Healthcare","IT \u0026 Telecom","Manufacturing","Natural Resources","Public Services","Real Estate \u0026 Property Management","Retail \u0026 Wholesale","Science \u0026 Technology","Transportation","Travel \u0026 Tourism","Utilities","Student","Other"],"description":"The economic sector of the client's place of work.","example":"Financial Services"},"businessType":{"oneOf":[{"type":"string","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship"},{"type":"null","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship"}]},"businessEstablishedOn":{"oneOf":[{"type":"string","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01"},{"type":"null","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01"}]},"businessAnnualGrossRevenue":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000"},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000"}]},"businessName":{"type":"string","description":"Name of the business. Only applicable to self-employed clients.","example":"Acme Inc."},"probationEndsOn":{"oneOf":[{"type":"string","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01"},{"type":"null","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01"}]},"address":{"type":"object","properties":{"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number"},{"type":"null","description":"Address - Unit number"}]},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number"},{"type":"null","description":"Address - Street number"}]},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction"},{"type":"null","description":"Address - Street name including direction"}]},"locality":{"type":"string","description":"Address - City, town, or village"},"administrativeArea":{"type":"string","description":"Address - State or province"},"postalCode":{"type":"string","description":"Address - Postal code or zip code"},"country":{"type":"string","description":"Address - Country name"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc."},{"type":"null","description":"Address - Apartment, building, floor, etc."}]},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID"},{"type":"null","description":"Google Place ID"}]},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false}]}},"required":[],"additionalProperties":false}},"required":["type","jobTitle","phone","sector","businessName","address"],"additionalProperties":false}]}},"required":["type","startedOn"],"additionalProperties":false,"if":{"anyOf":[{"properties":{"type":{"const":"Employer Pension"}}},{"properties":{"type":{"const":"Self-Employment"},"employmentDetails":{"properties":{"businessType":{"const":"Corporation"}}}}}]},"then":{"properties":{"streams":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","description":"Income source details; separated by year. The key is the year and the value is an array of income streams.","example":{"2026":[{"type":"Base","frequency":"Bi-Weekly","amount":1000},{"type":"Additional","frequency":"Quarterly","amount":100}]},"patternProperties":{"^[0-9]{4}$":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Base","Additional"],"description":"Income streams for Corporate Business Self-Employment or Employer Pension must have a \"Base\" and \"Additional\" stream.","example":"Base"},"frequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Frequency of the income (e.g. \"Monthly\", \"Yearly\", etc.)","example":"Bi-Weekly"},"amount":{"type":"number","description":"Amount of the income received at each interval. Expressed in CAD.","example":1000}},"required":["type","frequency","amount"],"additionalProperties":false}}},"nullable":true,"required":[],"additionalProperties":false}}}}}]},"ClientResidencies":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"occupancyType":{"description":"The status of the client's residency. Residers do not own or rent the property.","type":"string","enum":["Owner","Renter","Resider"],"example":"Resider"},"startsOn":{"description":"Date the client moved into the location","type":"string","format":"date","example":"2018-01-01"},"endsOn":{"oneOf":[{"description":"Date the client moved out of the location","type":"string","format":"date","example":"2022-12-31"},{"description":"Date the client moved out of the location","type":"null","format":"date","example":"2022-12-31"}]},"monthlyRent":{"oneOf":[{"description":"The monthly rent amount when occupancyType is \"Renter\"","type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","example":2000},{"description":"The monthly rent amount when occupancyType is \"Renter\"","type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","example":2000}]},"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number"},{"type":"null","description":"Address - Unit number"}]},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number"},{"type":"null","description":"Address - Street number"}]},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction"},{"type":"null","description":"Address - Street name including direction"}]},"locality":{"type":"string","description":"Address - City, town, or village"},"administrativeArea":{"type":"string","description":"Address - State or province"},"postalCode":{"type":"string","description":"Address - Postal code or zip code"},"country":{"type":"string","description":"Address - Country name"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc."},{"type":"null","description":"Address - Apartment, building, floor, etc."}]},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID"},{"type":"null","description":"Google Place ID"}]},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false}]}},"required":["occupancyType","startsOn","locality","country","postalCode","administrativeArea"],"additionalProperties":false}},{"type":"null","items":{"type":"object","properties":{"occupancyType":{"description":"The status of the client's residency. Residers do not own or rent the property.","type":"string","enum":["Owner","Renter","Resider"],"example":"Resider"},"startsOn":{"description":"Date the client moved into the location","type":"string","format":"date","example":"2018-01-01"},"endsOn":{"oneOf":[{"description":"Date the client moved out of the location","type":"string","format":"date","example":"2022-12-31"},{"description":"Date the client moved out of the location","type":"null","format":"date","example":"2022-12-31"}]},"monthlyRent":{"oneOf":[{"description":"The monthly rent amount when occupancyType is \"Renter\"","type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","example":2000},{"description":"The monthly rent amount when occupancyType is \"Renter\"","type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","example":2000}]},"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number"},{"type":"null","description":"Address - Unit number"}]},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number"},{"type":"null","description":"Address - Street number"}]},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction"},{"type":"null","description":"Address - Street name including direction"}]},"locality":{"type":"string","description":"Address - City, town, or village"},"administrativeArea":{"type":"string","description":"Address - State or province"},"postalCode":{"type":"string","description":"Address - Postal code or zip code"},"country":{"type":"string","description":"Address - Country name"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc."},{"type":"null","description":"Address - Apartment, building, floor, etc."}]},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID"},{"type":"null","description":"Google Place ID"}]},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false}]}},"required":["occupancyType","startsOn","locality","country","postalCode","administrativeArea"],"additionalProperties":false}}]},"Plans":{"oneOf":[{"type":"array","items":{"oneOf":[{"type":"object","title":"LeadBuyingPlan","required":["type"],"properties":{"id":{"oneOf":[{"type":"string","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"}]},"leadId":{"oneOf":[{"type":"string","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"}]},"referralCodeId":{"oneOf":[{"type":"string","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$"}]},"type":{"type":"string","description":"The type of the plan. See enum for available types.","enum":["Buying"],"example":"Buying"},"realtorProfileId":{"oneOf":[{"type":"string","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans.","pattern":"^[a-zA-Z0-9]{8}$"}]}},"additionalProperties":false},{"type":"object","title":"LeadManagePlan","required":["type"],"properties":{"id":{"oneOf":[{"type":"string","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"}]},"leadId":{"oneOf":[{"type":"string","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"}]},"referralCodeId":{"oneOf":[{"type":"string","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$"}]},"type":{"type":"string","description":"The type of the plan. See enum for available types.","enum":["Switching","Renewing","Refinancing"],"example":"Buying"},"realtorProfileId":{"oneOf":[{"type":"string","pattern":"^[a-zA-Z0-9]{8}$","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans."},{"type":"null","pattern":"^[a-zA-Z0-9]{8}$","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans."}]}},"additionalProperties":false}]},"description":"Plans associated with the Lead."},{"type":"null","items":{"oneOf":[{"type":"object","title":"LeadBuyingPlan","required":["type"],"properties":{"id":{"oneOf":[{"type":"string","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"}]},"leadId":{"oneOf":[{"type":"string","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"}]},"referralCodeId":{"oneOf":[{"type":"string","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$"}]},"type":{"type":"string","description":"The type of the plan. See enum for available types.","enum":["Buying"],"example":"Buying"},"realtorProfileId":{"oneOf":[{"type":"string","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans.","pattern":"^[a-zA-Z0-9]{8}$"}]}},"additionalProperties":false},{"type":"object","title":"LeadManagePlan","required":["type"],"properties":{"id":{"oneOf":[{"type":"string","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"}]},"leadId":{"oneOf":[{"type":"string","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"}]},"referralCodeId":{"oneOf":[{"type":"string","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$"}]},"type":{"type":"string","description":"The type of the plan. See enum for available types.","enum":["Switching","Renewing","Refinancing"],"example":"Buying"},"realtorProfileId":{"oneOf":[{"type":"string","pattern":"^[a-zA-Z0-9]{8}$","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans."},{"type":"null","pattern":"^[a-zA-Z0-9]{8}$","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans."}]}},"additionalProperties":false}]},"description":"Plans associated with the Lead."}]},"Properties":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Detached","Condo/Apartment","Townhouse","Semi-Detached","Other"],"description":"The type of the property.","example":"Detached"},"status":{"type":"string","enum":["Purchasing","Owned","Selling","Sold","Shortlisted"],"description":"Current state of the property","example":"Owned"},"occupancyType":{"type":"string","enum":["Owner Occupied","Rental","Owner Occupied \u0026 Rental","Second Home"],"description":"The status of the occupant's residency","example":"Owner Occupied"},"purchasePrice":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The purchase price of the property in CAD","example":500000},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The purchase price of the property in CAD","example":500000}]},"purchasedOn":{"oneOf":[{"type":"string","format":"date","description":"The date the agreement to purchase the property was accepted","example":"2018-01-01"},{"type":"null","format":"date","description":"The date the agreement to purchase the property was accepted","example":"2018-01-01"}]},"monthlyTotalRent":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Rental income from Property","example":2000},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Rental income from Property","example":2000}]},"costs":{"type":"object","properties":{"annualPropertyTaxes":{"oneOf":[{"type":"number","description":"The annual property taxes for the property in CAD"},{"type":"null","description":"The annual property taxes for the property in CAD"}]},"monthlyMaintenanceFee":{"oneOf":[{"type":"number","description":"The monthly maintenance fee for condos/townhouses in CAD"},{"type":"null","description":"The monthly maintenance fee for condos/townhouses in CAD"}]}}},"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number"},{"type":"null","description":"Address - Unit number"}]},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number"},{"type":"null","description":"Address - Street number"}]},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction"},{"type":"null","description":"Address - Street name including direction"}]},"locality":{"type":"string","description":"Address - City, town, or village"},"administrativeArea":{"type":"string","description":"Address - State or province"},"postalCode":{"type":"string","description":"Address - Postal code or zip code"},"country":{"type":"string","description":"Address - Country name"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc."},{"type":"null","description":"Address - Apartment, building, floor, etc."}]},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID"},{"type":"null","description":"Google Place ID"}]},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false}]},"Liabilities":{"oneOf":[{"type":"array","items":{"type":"object","required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"properties":{"type":{"type":"string","enum":["Alimony","Car Lease","Car Finance","Child Support","Condo Fees","Heating Costs","HELOC","Mortgage","Personal Loan","Property Tax","Student Loan","Unsecured Line of Credit","Other"],"description":"The type of the liability."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]},"position":{"oneOf":[{"type":"integer","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability."},{"type":"null","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability."}]},"ChildLiabilities":{"oneOf":[{"type":"array","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false}},{"type":"null","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false}}]}},"additionalProperties":false}},{"type":"null","items":{"type":"object","required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"properties":{"type":{"type":"string","enum":["Alimony","Car Lease","Car Finance","Child Support","Condo Fees","Heating Costs","HELOC","Mortgage","Personal Loan","Property Tax","Student Loan","Unsecured Line of Credit","Other"],"description":"The type of the liability."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]},"position":{"oneOf":[{"type":"integer","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability."},{"type":"null","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability."}]},"ChildLiabilities":{"oneOf":[{"type":"array","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false}},{"type":"null","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false}}]}},"additionalProperties":false}}]}},"required":["type","status","occupancyType"],"additionalProperties":false},"description":"Properties owned by the Lead."},{"type":"null","items":{"type":"object","properties":{"type":{"type":"string","enum":["Detached","Condo/Apartment","Townhouse","Semi-Detached","Other"],"description":"The type of the property.","example":"Detached"},"status":{"type":"string","enum":["Purchasing","Owned","Selling","Sold","Shortlisted"],"description":"Current state of the property","example":"Owned"},"occupancyType":{"type":"string","enum":["Owner Occupied","Rental","Owner Occupied \u0026 Rental","Second Home"],"description":"The status of the occupant's residency","example":"Owner Occupied"},"purchasePrice":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The purchase price of the property in CAD","example":500000},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The purchase price of the property in CAD","example":500000}]},"purchasedOn":{"oneOf":[{"type":"string","format":"date","description":"The date the agreement to purchase the property was accepted","example":"2018-01-01"},{"type":"null","format":"date","description":"The date the agreement to purchase the property was accepted","example":"2018-01-01"}]},"monthlyTotalRent":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Rental income from Property","example":2000},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Rental income from Property","example":2000}]},"costs":{"type":"object","properties":{"annualPropertyTaxes":{"oneOf":[{"type":"number","description":"The annual property taxes for the property in CAD"},{"type":"null","description":"The annual property taxes for the property in CAD"}]},"monthlyMaintenanceFee":{"oneOf":[{"type":"number","description":"The monthly maintenance fee for condos/townhouses in CAD"},{"type":"null","description":"The monthly maintenance fee for condos/townhouses in CAD"}]}}},"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number"},{"type":"null","description":"Address - Unit number"}]},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number"},{"type":"null","description":"Address - Street number"}]},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction"},{"type":"null","description":"Address - Street name including direction"}]},"locality":{"type":"string","description":"Address - City, town, or village"},"administrativeArea":{"type":"string","description":"Address - State or province"},"postalCode":{"type":"string","description":"Address - Postal code or zip code"},"country":{"type":"string","description":"Address - Country name"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc."},{"type":"null","description":"Address - Apartment, building, floor, etc."}]},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID"},{"type":"null","description":"Google Place ID"}]},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false}]},"Liabilities":{"oneOf":[{"type":"array","items":{"type":"object","required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"properties":{"type":{"type":"string","enum":["Alimony","Car Lease","Car Finance","Child Support","Condo Fees","Heating Costs","HELOC","Mortgage","Personal Loan","Property Tax","Student Loan","Unsecured Line of Credit","Other"],"description":"The type of the liability."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]},"position":{"oneOf":[{"type":"integer","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability."},{"type":"null","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability."}]},"ChildLiabilities":{"oneOf":[{"type":"array","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false}},{"type":"null","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false}}]}},"additionalProperties":false}},{"type":"null","items":{"type":"object","required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"properties":{"type":{"type":"string","enum":["Alimony","Car Lease","Car Finance","Child Support","Condo Fees","Heating Costs","HELOC","Mortgage","Personal Loan","Property Tax","Student Loan","Unsecured Line of Credit","Other"],"description":"The type of the liability."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]},"position":{"oneOf":[{"type":"integer","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability."},{"type":"null","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability."}]},"ChildLiabilities":{"oneOf":[{"type":"array","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false}},{"type":"null","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false}}]}},"additionalProperties":false}}]}},"required":["type","status","occupancyType"],"additionalProperties":false},"description":"Properties owned by the Lead."}]},"notes":{"oneOf":[{"description":"Notes about the Lead","type":"string"},{"description":"Notes about the Lead","type":"null"}]}},"required":[],"uniqueKey":"clientData.oneOf.1","typeLabel":"null"}],"uniqueKey":"clientData","typeLabel":"object | null"}},"required":["email","firstName","lastName","resourceType","resourceId"],"uniqueKey":"","typeLabel":"object"},"example":{"email":"client1+74049788@example.com","firstName":"Amya","lastName":"Williamson","phone":{"number":"2925655632","extension":"562"},"clientData":{"sin":"004877852","prefix":"Ms.","citizenship":"Permanent Legal Resident (PR)","dateOfBirth":"1987-07-13","maritalStatus":"Married","creditScoreEstimation":"142"},"resourceType":"Firm","resourceId":"qSBKZzUi"},"examples":{"Example":{"title":"Example","value":{"email":"client1+74049788@example.com","firstName":"Amya","lastName":"Williamson","phone":{"number":"2925655632","extension":"562"},"clientData":{"sin":"004877852","prefix":"Ms.","citizenship":"Permanent Legal Resident (PR)","dateOfBirth":"1987-07-13","maritalStatus":"Married","creditScoreEstimation":"142"},"resourceType":"Firm","resourceId":"qSBKZzUi"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"73d4bf5c-7dcb-40a8-84f1-a782c8ac6103":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the record","example":"38owigkM","isRequired":true,"uniqueKey":"data.id","typeLabel":"string"},"createdAt":{"type":"string","format":"date-time","description":"Date and time the record was created","example":"2026-03-05T19:39:18.389Z","isRequired":true,"uniqueKey":"data.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","description":"Date and time the record was last updated","example":"2026-03-05T19:39:18.389Z","isRequired":true,"uniqueKey":"data.updatedAt","typeLabel":"string\u003cdate-time>"},"email":{"type":"string","format":"email","description":"The client's email address","example":"client1+74049788@example.com","isRequired":true,"uniqueKey":"data.email","typeLabel":"string\u003cemail>"},"firstName":{"type":"string","description":"The client's first name","example":"Amya","isRequired":true,"uniqueKey":"data.firstName","typeLabel":"string"},"lastName":{"type":"string","description":"The client's last name","example":"Williamson","isRequired":true,"uniqueKey":"data.lastName","typeLabel":"string"},"resourceType":{"type":"string","description":"The resource type of the lead owner","enum":["ClientProfile","Firm","FirmMember"],"example":"Firm","isRequired":true,"uniqueKey":"data.resourceType","typeLabel":"enum\u003cstring>"},"resourceId":{"type":"string","description":"The resource ID of the lead owner","example":"qSBKZzUi","isRequired":true,"uniqueKey":"data.resourceId","typeLabel":"string"},"deletedAt":{"oneOf":[{"type":"string","format":"date-time","description":"Date and time the record was soft deleted","uniqueKey":"data.deletedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Date and time the record was soft deleted","uniqueKey":"data.deletedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.deletedAt","typeLabel":"string\u003cdate-time> | null"},"phone":{"oneOf":[{"type":"object","description":"The client's phone number","properties":{"number":{"type":"string","description":"Phone number without country code","isRequired":true,"uniqueKey":"data.phone.oneOf.0.number","typeLabel":"string"},"extension":{"oneOf":[{"type":"string","description":"Phone number extension","uniqueKey":"data.phone.oneOf.0.extension.oneOf.0","typeLabel":"string"},{"type":"null","description":"Phone number extension","uniqueKey":"data.phone.oneOf.0.extension.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.phone.oneOf.0.extension","typeLabel":"string | null"}},"required":["number"],"uniqueKey":"data.phone.oneOf.0","typeLabel":"object"},{"type":"null","description":"The client's phone number","properties":{"number":{"type":"string","description":"Phone number without country code"},"extension":{"oneOf":[{"type":"string","description":"Phone number extension"},{"type":"null","description":"Phone number extension"}]}},"required":["number"],"uniqueKey":"data.phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.phone","typeLabel":"object | null"},"clientData":{"oneOf":[{"type":"object","description":"The user data for the lead","properties":{"advisorProfileId":{"oneOf":[{"type":"string","pattern":"^[a-zA-Z0-9]{8}$","description":"The Perch ID of the advisor (a FirmMember with a 'Advisory' firmType) that the client is working with.","uniqueKey":"data.clientData.oneOf.0.advisorProfileId.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[a-zA-Z0-9]{8}$","description":"The Perch ID of the advisor (a FirmMember with a 'Advisory' firmType) that the client is working with.","uniqueKey":"data.clientData.oneOf.0.advisorProfileId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.advisorProfileId","typeLabel":"string | null"},"citizenship":{"oneOf":[{"type":"string","enum":["Canadian Citizen","Permanent Legal Resident (PR)","Work VISA","Other","Student VISA"],"description":"The client's citizenship status. See enum for available types.","example":"Canadian Citizen","uniqueKey":"data.clientData.oneOf.0.citizenship.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["Canadian Citizen","Permanent Legal Resident (PR)","Work VISA","Other","Student VISA"],"description":"The client's citizenship status. See enum for available types.","example":"Canadian Citizen","uniqueKey":"data.clientData.oneOf.0.citizenship.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.citizenship","typeLabel":"enum\u003cstring> | null"},"creditScoreEstimation":{"oneOf":[{"type":"string","pattern":"^[0-9]{3}$","description":"The client's credit score estimation. This should be a 3 digit number.","example":"700","uniqueKey":"data.clientData.oneOf.0.creditScoreEstimation.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[0-9]{3}$","description":"The client's credit score estimation. This should be a 3 digit number.","example":"700","uniqueKey":"data.clientData.oneOf.0.creditScoreEstimation.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.creditScoreEstimation","typeLabel":"string | null"},"dateOfBirth":{"oneOf":[{"type":"string","format":"date","description":"The client's date of birth.","example":"1980-01-01","uniqueKey":"data.clientData.oneOf.0.dateOfBirth.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","description":"The client's date of birth.","example":"1980-01-01","uniqueKey":"data.clientData.oneOf.0.dateOfBirth.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.dateOfBirth","typeLabel":"string\u003cdate> | null"},"isFirstTimeHomeBuyer":{"oneOf":[{"type":"boolean","description":"Whether or not the client is a first time home buyer.","example":true,"uniqueKey":"data.clientData.oneOf.0.isFirstTimeHomeBuyer.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether or not the client is a first time home buyer.","example":true,"uniqueKey":"data.clientData.oneOf.0.isFirstTimeHomeBuyer.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.isFirstTimeHomeBuyer","typeLabel":"boolean | null"},"maritalStatus":{"oneOf":[{"type":"string","enum":["Married","Single","Common-Law","Divorced","Widowed","Separated"],"description":"The client's marital status. See enum for available types.","example":"Married","uniqueKey":"data.clientData.oneOf.0.maritalStatus.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["Married","Single","Common-Law","Divorced","Widowed","Separated"],"description":"The client's marital status. See enum for available types.","example":"Married","uniqueKey":"data.clientData.oneOf.0.maritalStatus.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.maritalStatus","typeLabel":"enum\u003cstring> | null"},"prefix":{"oneOf":[{"type":"string","enum":["Mr.","Mrs.","Ms."],"description":"The client's prefix / title. See enum for available types.","example":"Mrs.","uniqueKey":"data.clientData.oneOf.0.prefix.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["Mr.","Mrs.","Ms."],"description":"The client's prefix / title. See enum for available types.","example":"Mrs.","uniqueKey":"data.clientData.oneOf.0.prefix.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.prefix","typeLabel":"enum\u003cstring> | null"},"sin":{"oneOf":[{"type":"string","pattern":"^[0-9]{9}$","description":"The client's social insurance number. This should be a 9 digit number.","example":"123456789","uniqueKey":"data.clientData.oneOf.0.sin.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[0-9]{9}$","description":"The client's social insurance number. This should be a 9 digit number.","example":"123456789","uniqueKey":"data.clientData.oneOf.0.sin.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.sin","typeLabel":"string | null"},"Assets":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Savings","Investment","Vehicle","Purchase Deposit","Gifted Funds","Other"],"description":"Type of the non-property asset","example":"Savings","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Assets.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Description of the asset","example":"Savings account at RBC","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Assets.oneOf.0.items.[INDEX].description","typeLabel":"string"},"value":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The value of the asset in CAD","example":10000,"isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Assets.oneOf.0.items.[INDEX].value","typeLabel":"string"}},"required":["description","type","value"],"additionalProperties":false,"uniqueKey":"data.clientData.oneOf.0.Assets.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Assets of the Lead.","uniqueKey":"data.clientData.oneOf.0.Assets.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"type":{"type":"string","enum":["Savings","Investment","Vehicle","Purchase Deposit","Gifted Funds","Other"],"description":"Type of the non-property asset","example":"Savings"},"description":{"type":"string","description":"Description of the asset","example":"Savings account at RBC"},"value":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The value of the asset in CAD","example":10000}},"required":["description","type","value"],"additionalProperties":false},"description":"Assets of the Lead.","uniqueKey":"data.clientData.oneOf.0.Assets.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Assets","typeLabel":"object[] | null"},"Incomes":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"type":{"description":"The type of the income.","type":"string","enum":["Canada Child Benefit","Child Support","Disability","Employer Pension","Employment","Old Age Security","Other","Pension","Rental","Self-Employment","Spousal Support","Unemployment"],"example":"Employment","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"startedOn":{"description":"Date the client started receiving the income.","type":"string","format":"date","example":"2018-01-01","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].startedOn","typeLabel":"string\u003cdate>"},"endedOn":{"oneOf":[{"description":"Date the client stopped receiving the income.","type":"string","format":"date","example":"2022-12-31","uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].endedOn.oneOf.0","typeLabel":"string\u003cdate>"},{"description":"Date the client stopped receiving the income.","type":"null","format":"date","example":"2022-12-31","uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].endedOn.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].endedOn","typeLabel":"string\u003cdate> | null"},"description":{"oneOf":[{"description":"Description of the income. (Employer name, etc.)","type":"string","example":"Cyberdyne Systems","uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"description":"Description of the income. (Employer name, etc.)","type":"null","example":"Cyberdyne Systems","uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].description","typeLabel":"string | null"},"streams":{"oneOf":[{"type":"object","description":"Income source details; separated by year. The key is the year and the value is an array of income streams for that year. (e.g. `{ \"2026\": [ { \"type\": \"Base\", \"frequency\": \"Bi-weekly\", \"amount\": \"1000\" } ] }`)","patternProperties":{"^[0-9]{4}$":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Base","Additional","Total"],"description":"An income year must not include both “Base/Additional” and “Total” entries, and no duplicate entries of the same type are allowed. The “Total” income streams are strictly tied to a “Yearly” frequency, and for past years, only the “Total” type is valid. Special case: \"Self-Employment\" income for Corporations will use \"Base/Additional\" for the current year and past years Special case: \"Employer Pension\" income will use \"Base/Additional\" for the current year and past years","example":"Base"},"frequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Frequency of the income (e.g. \"Monthly\", \"Yearly\", etc.)","example":"Bi-Weekly"},"amount":{"type":"string","description":"Amount of the income received at each interval. Expressed in CAD.","example":"1000"}},"required":["type","frequency","amount"],"additionalProperties":false},"anyOf":[{"items":{"type":"object","properties":{"type":{"const":"Total"},"frequency":{"enum":["Yearly"]}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"items":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"allOf":[{"contains":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]}},{"contains":{"type":"object","properties":{"type":{"const":"Additional"}},"required":["type","frequency","amount"]}}],"minItems":2,"maxItems":2}],"errorMessage":{"anyOf":"An income year must include either one \"Total\" income stream, one \"Base\" income stream, or both \"Base\" and \"Additional\" income streams."}}},"required":[],"additionalProperties":false,"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].streams.oneOf.0","typeLabel":"object"},{"type":"null","description":"Income source details; separated by year. The key is the year and the value is an array of income streams for that year. (e.g. `{ \"2026\": [ { \"type\": \"Base\", \"frequency\": \"Bi-weekly\", \"amount\": \"1000\" } ] }`)","patternProperties":{"^[0-9]{4}$":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Base","Additional","Total"],"description":"An income year must not include both “Base/Additional” and “Total” entries, and no duplicate entries of the same type are allowed. The “Total” income streams are strictly tied to a “Yearly” frequency, and for past years, only the “Total” type is valid. Special case: \"Self-Employment\" income for Corporations will use \"Base/Additional\" for the current year and past years Special case: \"Employer Pension\" income will use \"Base/Additional\" for the current year and past years","example":"Base"},"frequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Frequency of the income (e.g. \"Monthly\", \"Yearly\", etc.)","example":"Bi-Weekly"},"amount":{"type":"string","description":"Amount of the income received at each interval. Expressed in CAD.","example":"1000"}},"required":["type","frequency","amount"],"additionalProperties":false},"anyOf":[{"items":{"type":"object","properties":{"type":{"const":"Total"},"frequency":{"enum":["Yearly"]}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"items":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"allOf":[{"contains":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]}},{"contains":{"type":"object","properties":{"type":{"const":"Additional"}},"required":["type","frequency","amount"]}}],"minItems":2,"maxItems":2}],"errorMessage":{"anyOf":"An income year must include either one \"Total\" income stream, one \"Base\" income stream, or both \"Base\" and \"Additional\" income streams."}}},"required":[],"additionalProperties":false,"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].streams.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].streams","typeLabel":"object | null"},"employmentDetails":{"oneOf":[{"type":"object","description":"Employment information","properties":{"type":{"type":"string","enum":["Salaried","Hourly","Contract"],"description":"Type of employment.","example":"Salaried","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.type","typeLabel":"enum\u003cstring>"},"jobTitle":{"type":"string","description":"Job title of the client at their place of employment.","example":"Accountant","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.jobTitle","typeLabel":"string"},"phone":{"type":"object","description":"Phone number of the client's place of employment.","properties":{"number":{"type":"string","description":"Phone number without country code","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.phone.number","typeLabel":"string"},"extension":{"oneOf":[{"type":"string","description":"Phone number extension","uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.phone.extension.oneOf.0","typeLabel":"string"},{"type":"null","description":"Phone number extension","uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.phone.extension.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.phone.extension","typeLabel":"string | null"}},"additionalProperties":false,"required":["number"],"example":"{\"number\":\"6471234567\",\"extension\":\"123\"}","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.phone","typeLabel":"object"},"sector":{"type":"string","enum":["Agriculture","Arts \u0026 Entertainment","Construction","Educational Services","Financial Services","Healthcare","IT \u0026 Telecom","Manufacturing","Natural Resources","Public Services","Real Estate \u0026 Property Management","Retail \u0026 Wholesale","Science \u0026 Technology","Transportation","Travel \u0026 Tourism","Utilities","Student","Other"],"description":"The economic sector of the client's place of work.","example":"Financial Services","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.sector","typeLabel":"enum\u003cstring>"},"businessName":{"type":"string","description":"Name of the business. Only applicable to self-employed clients.","example":"Acme Inc.","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.businessName","typeLabel":"string"},"address":{"type":"object","properties":{"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number","uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.unitNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address - Unit number","uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.unitNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.unitNumber","typeLabel":"string | null"},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number","uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.streetNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address - Street number","uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.streetNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.streetNumber","typeLabel":"string | null"},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction","uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.streetName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address - Street name including direction","uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.streetName.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.streetName","typeLabel":"string | null"},"locality":{"type":"string","description":"Address - City, town, or village","uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.locality","typeLabel":"string"},"administrativeArea":{"type":"string","description":"Address - State or province","uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.administrativeArea","typeLabel":"string"},"postalCode":{"type":"string","description":"Address - Postal code or zip code","uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.postalCode","typeLabel":"string"},"country":{"type":"string","description":"Address - Country name","uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.country","typeLabel":"string"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc.","uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.premise.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address - Apartment, building, floor, etc.","uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.premise.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.premise","typeLabel":"string | null"},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID","uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.googlePlaceId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Google Place ID","uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.googlePlaceId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.googlePlaceId","typeLabel":"string | null"},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.locationGeometry.oneOf.0.type","typeLabel":"string"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number","uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.locationGeometry.oneOf.0.coordinates.items.[INDEX]","typeLabel":"number"},"minItems":2,"maxItems":2,"isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.locationGeometry.oneOf.0.coordinates","typeLabel":"number[]"}},"required":["type","coordinates"],"additionalProperties":false,"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.locationGeometry.oneOf.0","typeLabel":"object"},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false,"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.locationGeometry.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address.locationGeometry","typeLabel":"object | null"}},"required":[],"additionalProperties":false,"isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.address","typeLabel":"object"},"businessType":{"oneOf":[{"type":"string","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship","uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.businessType.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship","uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.businessType.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.businessType","typeLabel":"enum\u003cstring> | null"},"businessEstablishedOn":{"oneOf":[{"type":"string","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01","uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.businessEstablishedOn.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01","uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.businessEstablishedOn.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.businessEstablishedOn","typeLabel":"string\u003cdate> | null"},"businessAnnualGrossRevenue":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000","uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.businessAnnualGrossRevenue.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000","uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.businessAnnualGrossRevenue.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.businessAnnualGrossRevenue","typeLabel":"string | null"},"probationEndsOn":{"oneOf":[{"type":"string","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01","uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.probationEndsOn.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01","uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.probationEndsOn.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0.probationEndsOn","typeLabel":"string\u003cdate> | null"}},"required":["type","jobTitle","phone","sector","businessName","address"],"additionalProperties":false,"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.0","typeLabel":"object"},{"type":"null","description":"Employment information","properties":{"type":{"type":"string","enum":["Salaried","Hourly","Contract"],"description":"Type of employment.","example":"Salaried"},"jobTitle":{"type":"string","description":"Job title of the client at their place of employment.","example":"Accountant"},"phone":{"type":"object","description":"Phone number of the client's place of employment.","properties":{"number":{"type":"string","description":"Phone number without country code"},"extension":{"oneOf":[{"type":"string","description":"Phone number extension"},{"type":"null","description":"Phone number extension"}]}},"additionalProperties":false,"required":["number"],"example":"{\"number\":\"6471234567\",\"extension\":\"123\"}"},"sector":{"type":"string","enum":["Agriculture","Arts \u0026 Entertainment","Construction","Educational Services","Financial Services","Healthcare","IT \u0026 Telecom","Manufacturing","Natural Resources","Public Services","Real Estate \u0026 Property Management","Retail \u0026 Wholesale","Science \u0026 Technology","Transportation","Travel \u0026 Tourism","Utilities","Student","Other"],"description":"The economic sector of the client's place of work.","example":"Financial Services"},"businessType":{"oneOf":[{"type":"string","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship"},{"type":"null","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship"}]},"businessEstablishedOn":{"oneOf":[{"type":"string","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01"},{"type":"null","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01"}]},"businessAnnualGrossRevenue":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000"},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000"}]},"businessName":{"type":"string","description":"Name of the business. Only applicable to self-employed clients.","example":"Acme Inc."},"probationEndsOn":{"oneOf":[{"type":"string","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01"},{"type":"null","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01"}]},"address":{"type":"object","properties":{"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number"},{"type":"null","description":"Address - Unit number"}]},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number"},{"type":"null","description":"Address - Street number"}]},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction"},{"type":"null","description":"Address - Street name including direction"}]},"locality":{"type":"string","description":"Address - City, town, or village"},"administrativeArea":{"type":"string","description":"Address - State or province"},"postalCode":{"type":"string","description":"Address - Postal code or zip code"},"country":{"type":"string","description":"Address - Country name"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc."},{"type":"null","description":"Address - Apartment, building, floor, etc."}]},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID"},{"type":"null","description":"Google Place ID"}]},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false}]}},"required":[],"additionalProperties":false}},"required":["type","jobTitle","phone","sector","businessName","address"],"additionalProperties":false,"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX].employmentDetails","typeLabel":"object | null"}},"required":["type","startedOn"],"additionalProperties":false,"if":{"anyOf":[{"properties":{"type":{"const":"Employer Pension"}}},{"properties":{"type":{"const":"Self-Employment"},"employmentDetails":{"properties":{"businessType":{"const":"Corporation"}}}}}]},"then":{"properties":{"streams":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","description":"Income source details; separated by year. The key is the year and the value is an array of income streams.","example":{"2026":[{"type":"Base","frequency":"Bi-Weekly","amount":1000},{"type":"Additional","frequency":"Quarterly","amount":100}]},"patternProperties":{"^[0-9]{4}$":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Base","Additional"],"description":"Income streams for Corporate Business Self-Employment or Employer Pension must have a \"Base\" and \"Additional\" stream.","example":"Base"},"frequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Frequency of the income (e.g. \"Monthly\", \"Yearly\", etc.)","example":"Bi-Weekly"},"amount":{"type":"number","description":"Amount of the income received at each interval. Expressed in CAD.","example":1000}},"required":["type","frequency","amount"],"additionalProperties":false}}},"nullable":true,"required":[],"additionalProperties":false}}},"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"type":{"description":"The type of the income.","type":"string","enum":["Canada Child Benefit","Child Support","Disability","Employer Pension","Employment","Old Age Security","Other","Pension","Rental","Self-Employment","Spousal Support","Unemployment"],"example":"Employment"},"startedOn":{"description":"Date the client started receiving the income.","type":"string","format":"date","example":"2018-01-01"},"endedOn":{"oneOf":[{"description":"Date the client stopped receiving the income.","type":"string","format":"date","example":"2022-12-31"},{"description":"Date the client stopped receiving the income.","type":"null","format":"date","example":"2022-12-31"}]},"description":{"oneOf":[{"description":"Description of the income. (Employer name, etc.)","type":"string","example":"Cyberdyne Systems"},{"description":"Description of the income. (Employer name, etc.)","type":"null","example":"Cyberdyne Systems"}]},"streams":{"oneOf":[{"type":"object","description":"Income source details; separated by year. The key is the year and the value is an array of income streams for that year. (e.g. `{ \"2026\": [ { \"type\": \"Base\", \"frequency\": \"Bi-weekly\", \"amount\": \"1000\" } ] }`)","patternProperties":{"^[0-9]{4}$":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Base","Additional","Total"],"description":"An income year must not include both “Base/Additional” and “Total” entries, and no duplicate entries of the same type are allowed. The “Total” income streams are strictly tied to a “Yearly” frequency, and for past years, only the “Total” type is valid. Special case: \"Self-Employment\" income for Corporations will use \"Base/Additional\" for the current year and past years Special case: \"Employer Pension\" income will use \"Base/Additional\" for the current year and past years","example":"Base"},"frequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Frequency of the income (e.g. \"Monthly\", \"Yearly\", etc.)","example":"Bi-Weekly"},"amount":{"type":"string","description":"Amount of the income received at each interval. Expressed in CAD.","example":"1000"}},"required":["type","frequency","amount"],"additionalProperties":false},"anyOf":[{"items":{"type":"object","properties":{"type":{"const":"Total"},"frequency":{"enum":["Yearly"]}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"items":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"allOf":[{"contains":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]}},{"contains":{"type":"object","properties":{"type":{"const":"Additional"}},"required":["type","frequency","amount"]}}],"minItems":2,"maxItems":2}],"errorMessage":{"anyOf":"An income year must include either one \"Total\" income stream, one \"Base\" income stream, or both \"Base\" and \"Additional\" income streams."}}},"required":[],"additionalProperties":false},{"type":"null","description":"Income source details; separated by year. The key is the year and the value is an array of income streams for that year. (e.g. `{ \"2026\": [ { \"type\": \"Base\", \"frequency\": \"Bi-weekly\", \"amount\": \"1000\" } ] }`)","patternProperties":{"^[0-9]{4}$":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Base","Additional","Total"],"description":"An income year must not include both “Base/Additional” and “Total” entries, and no duplicate entries of the same type are allowed. The “Total” income streams are strictly tied to a “Yearly” frequency, and for past years, only the “Total” type is valid. Special case: \"Self-Employment\" income for Corporations will use \"Base/Additional\" for the current year and past years Special case: \"Employer Pension\" income will use \"Base/Additional\" for the current year and past years","example":"Base"},"frequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Frequency of the income (e.g. \"Monthly\", \"Yearly\", etc.)","example":"Bi-Weekly"},"amount":{"type":"string","description":"Amount of the income received at each interval. Expressed in CAD.","example":"1000"}},"required":["type","frequency","amount"],"additionalProperties":false},"anyOf":[{"items":{"type":"object","properties":{"type":{"const":"Total"},"frequency":{"enum":["Yearly"]}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"items":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"allOf":[{"contains":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]}},{"contains":{"type":"object","properties":{"type":{"const":"Additional"}},"required":["type","frequency","amount"]}}],"minItems":2,"maxItems":2}],"errorMessage":{"anyOf":"An income year must include either one \"Total\" income stream, one \"Base\" income stream, or both \"Base\" and \"Additional\" income streams."}}},"required":[],"additionalProperties":false}]},"employmentDetails":{"oneOf":[{"type":"object","description":"Employment information","properties":{"type":{"type":"string","enum":["Salaried","Hourly","Contract"],"description":"Type of employment.","example":"Salaried"},"jobTitle":{"type":"string","description":"Job title of the client at their place of employment.","example":"Accountant"},"phone":{"type":"object","description":"Phone number of the client's place of employment.","properties":{"number":{"type":"string","description":"Phone number without country code"},"extension":{"oneOf":[{"type":"string","description":"Phone number extension"},{"type":"null","description":"Phone number extension"}]}},"additionalProperties":false,"required":["number"],"example":"{\"number\":\"6471234567\",\"extension\":\"123\"}"},"sector":{"type":"string","enum":["Agriculture","Arts \u0026 Entertainment","Construction","Educational Services","Financial Services","Healthcare","IT \u0026 Telecom","Manufacturing","Natural Resources","Public Services","Real Estate \u0026 Property Management","Retail \u0026 Wholesale","Science \u0026 Technology","Transportation","Travel \u0026 Tourism","Utilities","Student","Other"],"description":"The economic sector of the client's place of work.","example":"Financial Services"},"businessType":{"oneOf":[{"type":"string","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship"},{"type":"null","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship"}]},"businessEstablishedOn":{"oneOf":[{"type":"string","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01"},{"type":"null","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01"}]},"businessAnnualGrossRevenue":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000"},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000"}]},"businessName":{"type":"string","description":"Name of the business. Only applicable to self-employed clients.","example":"Acme Inc."},"probationEndsOn":{"oneOf":[{"type":"string","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01"},{"type":"null","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01"}]},"address":{"type":"object","properties":{"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number"},{"type":"null","description":"Address - Unit number"}]},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number"},{"type":"null","description":"Address - Street number"}]},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction"},{"type":"null","description":"Address - Street name including direction"}]},"locality":{"type":"string","description":"Address - City, town, or village"},"administrativeArea":{"type":"string","description":"Address - State or province"},"postalCode":{"type":"string","description":"Address - Postal code or zip code"},"country":{"type":"string","description":"Address - Country name"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc."},{"type":"null","description":"Address - Apartment, building, floor, etc."}]},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID"},{"type":"null","description":"Google Place ID"}]},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false}]}},"required":[],"additionalProperties":false}},"required":["type","jobTitle","phone","sector","businessName","address"],"additionalProperties":false},{"type":"null","description":"Employment information","properties":{"type":{"type":"string","enum":["Salaried","Hourly","Contract"],"description":"Type of employment.","example":"Salaried"},"jobTitle":{"type":"string","description":"Job title of the client at their place of employment.","example":"Accountant"},"phone":{"type":"object","description":"Phone number of the client's place of employment.","properties":{"number":{"type":"string","description":"Phone number without country code"},"extension":{"oneOf":[{"type":"string","description":"Phone number extension"},{"type":"null","description":"Phone number extension"}]}},"additionalProperties":false,"required":["number"],"example":"{\"number\":\"6471234567\",\"extension\":\"123\"}"},"sector":{"type":"string","enum":["Agriculture","Arts \u0026 Entertainment","Construction","Educational Services","Financial Services","Healthcare","IT \u0026 Telecom","Manufacturing","Natural Resources","Public Services","Real Estate \u0026 Property Management","Retail \u0026 Wholesale","Science \u0026 Technology","Transportation","Travel \u0026 Tourism","Utilities","Student","Other"],"description":"The economic sector of the client's place of work.","example":"Financial Services"},"businessType":{"oneOf":[{"type":"string","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship"},{"type":"null","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship"}]},"businessEstablishedOn":{"oneOf":[{"type":"string","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01"},{"type":"null","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01"}]},"businessAnnualGrossRevenue":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000"},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000"}]},"businessName":{"type":"string","description":"Name of the business. Only applicable to self-employed clients.","example":"Acme Inc."},"probationEndsOn":{"oneOf":[{"type":"string","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01"},{"type":"null","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01"}]},"address":{"type":"object","properties":{"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number"},{"type":"null","description":"Address - Unit number"}]},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number"},{"type":"null","description":"Address - Street number"}]},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction"},{"type":"null","description":"Address - Street name including direction"}]},"locality":{"type":"string","description":"Address - City, town, or village"},"administrativeArea":{"type":"string","description":"Address - State or province"},"postalCode":{"type":"string","description":"Address - Postal code or zip code"},"country":{"type":"string","description":"Address - Country name"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc."},{"type":"null","description":"Address - Apartment, building, floor, etc."}]},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID"},{"type":"null","description":"Google Place ID"}]},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false}]}},"required":[],"additionalProperties":false}},"required":["type","jobTitle","phone","sector","businessName","address"],"additionalProperties":false}]}},"required":["type","startedOn"],"additionalProperties":false,"if":{"anyOf":[{"properties":{"type":{"const":"Employer Pension"}}},{"properties":{"type":{"const":"Self-Employment"},"employmentDetails":{"properties":{"businessType":{"const":"Corporation"}}}}}]},"then":{"properties":{"streams":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","description":"Income source details; separated by year. The key is the year and the value is an array of income streams.","example":{"2026":[{"type":"Base","frequency":"Bi-Weekly","amount":1000},{"type":"Additional","frequency":"Quarterly","amount":100}]},"patternProperties":{"^[0-9]{4}$":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Base","Additional"],"description":"Income streams for Corporate Business Self-Employment or Employer Pension must have a \"Base\" and \"Additional\" stream.","example":"Base"},"frequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Frequency of the income (e.g. \"Monthly\", \"Yearly\", etc.)","example":"Bi-Weekly"},"amount":{"type":"number","description":"Amount of the income received at each interval. Expressed in CAD.","example":1000}},"required":["type","frequency","amount"],"additionalProperties":false}}},"nullable":true,"required":[],"additionalProperties":false}}}},"uniqueKey":"data.clientData.oneOf.0.Incomes.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Incomes","typeLabel":"object[] | null"},"ClientResidencies":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"occupancyType":{"description":"The status of the client's residency. Residers do not own or rent the property.","type":"string","enum":["Owner","Renter","Resider"],"example":"Resider","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].occupancyType","typeLabel":"enum\u003cstring>"},"startsOn":{"description":"Date the client moved into the location","type":"string","format":"date","example":"2018-01-01","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].startsOn","typeLabel":"string\u003cdate>"},"locality":{"type":"string","description":"Address - City, town, or village","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].locality","typeLabel":"string"},"administrativeArea":{"type":"string","description":"Address - State or province","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].administrativeArea","typeLabel":"string"},"postalCode":{"type":"string","description":"Address - Postal code or zip code","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].postalCode","typeLabel":"string"},"country":{"type":"string","description":"Address - Country name","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].country","typeLabel":"string"},"endsOn":{"oneOf":[{"description":"Date the client moved out of the location","type":"string","format":"date","example":"2022-12-31","uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].endsOn.oneOf.0","typeLabel":"string\u003cdate>"},{"description":"Date the client moved out of the location","type":"null","format":"date","example":"2022-12-31","uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].endsOn.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].endsOn","typeLabel":"string\u003cdate> | null"},"monthlyRent":{"oneOf":[{"description":"The monthly rent amount when occupancyType is \"Renter\"","type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","example":2000,"uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].monthlyRent.oneOf.0","typeLabel":"string"},{"description":"The monthly rent amount when occupancyType is \"Renter\"","type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","example":2000,"uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].monthlyRent.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].monthlyRent","typeLabel":"string | null"},"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number","uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].unitNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address - Unit number","uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].unitNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].unitNumber","typeLabel":"string | null"},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number","uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].streetNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address - Street number","uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].streetNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].streetNumber","typeLabel":"string | null"},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction","uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].streetName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address - Street name including direction","uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].streetName.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].streetName","typeLabel":"string | null"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc.","uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].premise.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address - Apartment, building, floor, etc.","uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].premise.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].premise","typeLabel":"string | null"},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID","uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].googlePlaceId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Google Place ID","uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].googlePlaceId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].googlePlaceId","typeLabel":"string | null"},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].locationGeometry.oneOf.0.type","typeLabel":"string"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number","uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].locationGeometry.oneOf.0.coordinates.items.[INDEX]","typeLabel":"number"},"minItems":2,"maxItems":2,"isRequired":true,"uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].locationGeometry.oneOf.0.coordinates","typeLabel":"number[]"}},"required":["type","coordinates"],"additionalProperties":false,"uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].locationGeometry.oneOf.0","typeLabel":"object"},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false,"uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].locationGeometry.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX].locationGeometry","typeLabel":"object | null"}},"required":["occupancyType","startsOn","locality","country","postalCode","administrativeArea"],"additionalProperties":false,"uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"occupancyType":{"description":"The status of the client's residency. Residers do not own or rent the property.","type":"string","enum":["Owner","Renter","Resider"],"example":"Resider"},"startsOn":{"description":"Date the client moved into the location","type":"string","format":"date","example":"2018-01-01"},"endsOn":{"oneOf":[{"description":"Date the client moved out of the location","type":"string","format":"date","example":"2022-12-31"},{"description":"Date the client moved out of the location","type":"null","format":"date","example":"2022-12-31"}]},"monthlyRent":{"oneOf":[{"description":"The monthly rent amount when occupancyType is \"Renter\"","type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","example":2000},{"description":"The monthly rent amount when occupancyType is \"Renter\"","type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","example":2000}]},"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number"},{"type":"null","description":"Address - Unit number"}]},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number"},{"type":"null","description":"Address - Street number"}]},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction"},{"type":"null","description":"Address - Street name including direction"}]},"locality":{"type":"string","description":"Address - City, town, or village"},"administrativeArea":{"type":"string","description":"Address - State or province"},"postalCode":{"type":"string","description":"Address - Postal code or zip code"},"country":{"type":"string","description":"Address - Country name"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc."},{"type":"null","description":"Address - Apartment, building, floor, etc."}]},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID"},{"type":"null","description":"Google Place ID"}]},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false}]}},"required":["occupancyType","startsOn","locality","country","postalCode","administrativeArea"],"additionalProperties":false},"uniqueKey":"data.clientData.oneOf.0.ClientResidencies.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.ClientResidencies","typeLabel":"object[] | null"},"Plans":{"oneOf":[{"type":"array","items":{"oneOf":[{"type":"object","title":"LeadBuyingPlan","required":["type"],"properties":{"type":{"type":"string","description":"The type of the plan. See enum for available types.","enum":["Buying"],"example":"Buying","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"oneOf":[{"type":"string","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$","uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.0.id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$","uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.0.id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.0.id","typeLabel":"string | null"},"leadId":{"oneOf":[{"type":"string","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$","uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.0.leadId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$","uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.0.leadId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.0.leadId","typeLabel":"string | null"},"referralCodeId":{"oneOf":[{"type":"string","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$","uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.0.referralCodeId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$","uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.0.referralCodeId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.0.referralCodeId","typeLabel":"string | null"},"realtorProfileId":{"oneOf":[{"type":"string","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans.","pattern":"^[a-zA-Z0-9]{8}$","uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.0.realtorProfileId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans.","pattern":"^[a-zA-Z0-9]{8}$","uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.0.realtorProfileId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.0.realtorProfileId","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"LeadBuyingPlan · object"},{"type":"object","title":"LeadManagePlan","required":["type"],"properties":{"type":{"type":"string","description":"The type of the plan. See enum for available types.","enum":["Switching","Renewing","Refinancing"],"example":"Buying","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"id":{"oneOf":[{"type":"string","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$","uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.1.id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$","uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.1.id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.1.id","typeLabel":"string | null"},"leadId":{"oneOf":[{"type":"string","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$","uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.1.leadId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$","uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.1.leadId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.1.leadId","typeLabel":"string | null"},"referralCodeId":{"oneOf":[{"type":"string","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$","uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.1.referralCodeId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$","uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.1.referralCodeId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.1.referralCodeId","typeLabel":"string | null"},"realtorProfileId":{"oneOf":[{"type":"string","pattern":"^[a-zA-Z0-9]{8}$","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans.","uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.1.realtorProfileId.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[a-zA-Z0-9]{8}$","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans.","uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.1.realtorProfileId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.1.realtorProfileId","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"LeadManagePlan · object"}],"uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0.items.[INDEX]","typeLabel":"LeadBuyingPlan · object | LeadManagePlan · object"},"description":"Plans associated with the Lead.","uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.0","typeLabel":"(LeadBuyingPlan · object | LeadManagePlan · object)[]"},{"type":"null","items":{"oneOf":[{"type":"object","title":"LeadBuyingPlan","required":["type"],"properties":{"id":{"oneOf":[{"type":"string","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"}]},"leadId":{"oneOf":[{"type":"string","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"}]},"referralCodeId":{"oneOf":[{"type":"string","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$"}]},"type":{"type":"string","description":"The type of the plan. See enum for available types.","enum":["Buying"],"example":"Buying"},"realtorProfileId":{"oneOf":[{"type":"string","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans.","pattern":"^[a-zA-Z0-9]{8}$"}]}},"additionalProperties":false},{"type":"object","title":"LeadManagePlan","required":["type"],"properties":{"id":{"oneOf":[{"type":"string","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"}]},"leadId":{"oneOf":[{"type":"string","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"}]},"referralCodeId":{"oneOf":[{"type":"string","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$"}]},"type":{"type":"string","description":"The type of the plan. See enum for available types.","enum":["Switching","Renewing","Refinancing"],"example":"Buying"},"realtorProfileId":{"oneOf":[{"type":"string","pattern":"^[a-zA-Z0-9]{8}$","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans."},{"type":"null","pattern":"^[a-zA-Z0-9]{8}$","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans."}]}},"additionalProperties":false}]},"description":"Plans associated with the Lead.","uniqueKey":"data.clientData.oneOf.0.Plans.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Plans","typeLabel":"(LeadBuyingPlan · object | LeadManagePlan · object)[] | null"},"Properties":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Detached","Condo/Apartment","Townhouse","Semi-Detached","Other"],"description":"The type of the property.","example":"Detached","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["Purchasing","Owned","Selling","Sold","Shortlisted"],"description":"Current state of the property","example":"Owned","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"occupancyType":{"type":"string","enum":["Owner Occupied","Rental","Owner Occupied \u0026 Rental","Second Home"],"description":"The status of the occupant's residency","example":"Owner Occupied","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].occupancyType","typeLabel":"enum\u003cstring>"},"purchasePrice":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The purchase price of the property in CAD","example":500000,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].purchasePrice.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The purchase price of the property in CAD","example":500000,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].purchasePrice.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].purchasePrice","typeLabel":"string | null"},"purchasedOn":{"oneOf":[{"type":"string","format":"date","description":"The date the agreement to purchase the property was accepted","example":"2018-01-01","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].purchasedOn.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","description":"The date the agreement to purchase the property was accepted","example":"2018-01-01","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].purchasedOn.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].purchasedOn","typeLabel":"string\u003cdate> | null"},"monthlyTotalRent":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Rental income from Property","example":2000,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].monthlyTotalRent.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Rental income from Property","example":2000,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].monthlyTotalRent.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].monthlyTotalRent","typeLabel":"string | null"},"costs":{"type":"object","properties":{"annualPropertyTaxes":{"oneOf":[{"type":"number","description":"The annual property taxes for the property in CAD","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].costs.annualPropertyTaxes.oneOf.0","typeLabel":"number"},{"type":"null","description":"The annual property taxes for the property in CAD","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].costs.annualPropertyTaxes.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].costs.annualPropertyTaxes","typeLabel":"number | null"},"monthlyMaintenanceFee":{"oneOf":[{"type":"number","description":"The monthly maintenance fee for condos/townhouses in CAD","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].costs.monthlyMaintenanceFee.oneOf.0","typeLabel":"number"},{"type":"null","description":"The monthly maintenance fee for condos/townhouses in CAD","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].costs.monthlyMaintenanceFee.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].costs.monthlyMaintenanceFee","typeLabel":"number | null"}},"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].costs","typeLabel":"object"},"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].unitNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address - Unit number","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].unitNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].unitNumber","typeLabel":"string | null"},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].streetNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address - Street number","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].streetNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].streetNumber","typeLabel":"string | null"},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].streetName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address - Street name including direction","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].streetName.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].streetName","typeLabel":"string | null"},"locality":{"type":"string","description":"Address - City, town, or village","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].locality","typeLabel":"string"},"administrativeArea":{"type":"string","description":"Address - State or province","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].administrativeArea","typeLabel":"string"},"postalCode":{"type":"string","description":"Address - Postal code or zip code","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].postalCode","typeLabel":"string"},"country":{"type":"string","description":"Address - Country name","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].country","typeLabel":"string"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc.","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].premise.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address - Apartment, building, floor, etc.","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].premise.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].premise","typeLabel":"string | null"},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].googlePlaceId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Google Place ID","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].googlePlaceId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].googlePlaceId","typeLabel":"string | null"},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].locationGeometry.oneOf.0.type","typeLabel":"string"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].locationGeometry.oneOf.0.coordinates.items.[INDEX]","typeLabel":"number"},"minItems":2,"maxItems":2,"isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].locationGeometry.oneOf.0.coordinates","typeLabel":"number[]"}},"required":["type","coordinates"],"additionalProperties":false,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].locationGeometry.oneOf.0","typeLabel":"object"},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].locationGeometry.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].locationGeometry","typeLabel":"object | null"},"Liabilities":{"oneOf":[{"type":"array","items":{"type":"object","required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"properties":{"type":{"type":"string","enum":["Alimony","Car Lease","Car Finance","Child Support","Condo Fees","Heating Costs","HELOC","Mortgage","Personal Loan","Property Tax","Student Loan","Unsecured Line of Credit","Other"],"description":"The type of the liability.","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability.","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].balance","typeLabel":"string"},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types.","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].creditLimit","typeLabel":"string"},"lenderName":{"type":"string","description":"The name of the lender.","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].lenderName","typeLabel":"string"},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures.","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].maturesOn","typeLabel":"string\u003cdate>"},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval.","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].paymentAmount","typeLabel":"string"},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only.","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].paymentDetails.isInterestOnly","typeLabel":"boolean"},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years.","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].paymentDetails.isPropertyTaxIncluded","typeLabel":"boolean"}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false,"isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].paymentDetails","typeLabel":"object"},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability.","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].paymentFrequency","typeLabel":"enum\u003cstring>"},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].rate","typeLabel":"number"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].rateType","typeLabel":"enum\u003cstring>"},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability.","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","description":"A helpful description of the liability.","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].description","typeLabel":"string | null"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].termMonths.oneOf.0","typeLabel":"number"},{"type":"null","description":"The term of the loan in months","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].termMonths.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].termMonths","typeLabel":"number | null"},"position":{"oneOf":[{"type":"integer","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability.","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].position.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability.","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].position.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].position","typeLabel":"integer | null"},"ChildLiabilities":{"oneOf":[{"type":"array","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination.","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability.","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].balance","typeLabel":"string"},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types.","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].creditLimit","typeLabel":"string"},"lenderName":{"type":"string","description":"The name of the lender.","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].lenderName","typeLabel":"string"},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures.","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].maturesOn","typeLabel":"string\u003cdate>"},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval.","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].paymentAmount","typeLabel":"string"},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only.","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].paymentDetails.isInterestOnly","typeLabel":"boolean"},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years.","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].paymentDetails.isPropertyTaxIncluded","typeLabel":"boolean"}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false,"isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].paymentDetails","typeLabel":"object"},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability.","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].paymentFrequency","typeLabel":"enum\u003cstring>"},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].rate","typeLabel":"number"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan","isRequired":true,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].rateType","typeLabel":"enum\u003cstring>"},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability.","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","description":"A helpful description of the liability.","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].description","typeLabel":"string | null"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].termMonths.oneOf.0","typeLabel":"number"},{"type":"null","description":"The term of the loan in months","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].termMonths.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX].termMonths","typeLabel":"number | null"}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false},"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX].ChildLiabilities","typeLabel":"object[] | null"}},"additionalProperties":false,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"properties":{"type":{"type":"string","enum":["Alimony","Car Lease","Car Finance","Child Support","Condo Fees","Heating Costs","HELOC","Mortgage","Personal Loan","Property Tax","Student Loan","Unsecured Line of Credit","Other"],"description":"The type of the liability."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]},"position":{"oneOf":[{"type":"integer","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability."},{"type":"null","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability."}]},"ChildLiabilities":{"oneOf":[{"type":"array","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false}},{"type":"null","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false}}]}},"additionalProperties":false},"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX].Liabilities","typeLabel":"object[] | null"}},"required":["type","status","occupancyType"],"additionalProperties":false,"uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Properties owned by the Lead.","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"type":{"type":"string","enum":["Detached","Condo/Apartment","Townhouse","Semi-Detached","Other"],"description":"The type of the property.","example":"Detached"},"status":{"type":"string","enum":["Purchasing","Owned","Selling","Sold","Shortlisted"],"description":"Current state of the property","example":"Owned"},"occupancyType":{"type":"string","enum":["Owner Occupied","Rental","Owner Occupied \u0026 Rental","Second Home"],"description":"The status of the occupant's residency","example":"Owner Occupied"},"purchasePrice":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The purchase price of the property in CAD","example":500000},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The purchase price of the property in CAD","example":500000}]},"purchasedOn":{"oneOf":[{"type":"string","format":"date","description":"The date the agreement to purchase the property was accepted","example":"2018-01-01"},{"type":"null","format":"date","description":"The date the agreement to purchase the property was accepted","example":"2018-01-01"}]},"monthlyTotalRent":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Rental income from Property","example":2000},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Rental income from Property","example":2000}]},"costs":{"type":"object","properties":{"annualPropertyTaxes":{"oneOf":[{"type":"number","description":"The annual property taxes for the property in CAD"},{"type":"null","description":"The annual property taxes for the property in CAD"}]},"monthlyMaintenanceFee":{"oneOf":[{"type":"number","description":"The monthly maintenance fee for condos/townhouses in CAD"},{"type":"null","description":"The monthly maintenance fee for condos/townhouses in CAD"}]}}},"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number"},{"type":"null","description":"Address - Unit number"}]},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number"},{"type":"null","description":"Address - Street number"}]},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction"},{"type":"null","description":"Address - Street name including direction"}]},"locality":{"type":"string","description":"Address - City, town, or village"},"administrativeArea":{"type":"string","description":"Address - State or province"},"postalCode":{"type":"string","description":"Address - Postal code or zip code"},"country":{"type":"string","description":"Address - Country name"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc."},{"type":"null","description":"Address - Apartment, building, floor, etc."}]},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID"},{"type":"null","description":"Google Place ID"}]},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false}]},"Liabilities":{"oneOf":[{"type":"array","items":{"type":"object","required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"properties":{"type":{"type":"string","enum":["Alimony","Car Lease","Car Finance","Child Support","Condo Fees","Heating Costs","HELOC","Mortgage","Personal Loan","Property Tax","Student Loan","Unsecured Line of Credit","Other"],"description":"The type of the liability."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]},"position":{"oneOf":[{"type":"integer","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability."},{"type":"null","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability."}]},"ChildLiabilities":{"oneOf":[{"type":"array","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false}},{"type":"null","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false}}]}},"additionalProperties":false}},{"type":"null","items":{"type":"object","required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"properties":{"type":{"type":"string","enum":["Alimony","Car Lease","Car Finance","Child Support","Condo Fees","Heating Costs","HELOC","Mortgage","Personal Loan","Property Tax","Student Loan","Unsecured Line of Credit","Other"],"description":"The type of the liability."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]},"position":{"oneOf":[{"type":"integer","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability."},{"type":"null","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability."}]},"ChildLiabilities":{"oneOf":[{"type":"array","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false}},{"type":"null","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false}}]}},"additionalProperties":false}}]}},"required":["type","status","occupancyType"],"additionalProperties":false},"description":"Properties owned by the Lead.","uniqueKey":"data.clientData.oneOf.0.Properties.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.Properties","typeLabel":"object[] | null"},"notes":{"oneOf":[{"description":"Notes about the Lead","type":"string","uniqueKey":"data.clientData.oneOf.0.notes.oneOf.0","typeLabel":"string"},{"description":"Notes about the Lead","type":"null","uniqueKey":"data.clientData.oneOf.0.notes.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData.oneOf.0.notes","typeLabel":"string | null"}},"required":[],"uniqueKey":"data.clientData.oneOf.0","typeLabel":"object"},{"type":"null","description":"The user data for the lead","properties":{"advisorProfileId":{"oneOf":[{"type":"string","pattern":"^[a-zA-Z0-9]{8}$","description":"The Perch ID of the advisor (a FirmMember with a 'Advisory' firmType) that the client is working with."},{"type":"null","pattern":"^[a-zA-Z0-9]{8}$","description":"The Perch ID of the advisor (a FirmMember with a 'Advisory' firmType) that the client is working with."}]},"citizenship":{"oneOf":[{"type":"string","enum":["Canadian Citizen","Permanent Legal Resident (PR)","Work VISA","Other","Student VISA"],"description":"The client's citizenship status. See enum for available types.","example":"Canadian Citizen"},{"type":"null","enum":["Canadian Citizen","Permanent Legal Resident (PR)","Work VISA","Other","Student VISA"],"description":"The client's citizenship status. See enum for available types.","example":"Canadian Citizen"}]},"creditScoreEstimation":{"oneOf":[{"type":"string","pattern":"^[0-9]{3}$","description":"The client's credit score estimation. This should be a 3 digit number.","example":"700"},{"type":"null","pattern":"^[0-9]{3}$","description":"The client's credit score estimation. This should be a 3 digit number.","example":"700"}]},"dateOfBirth":{"oneOf":[{"type":"string","format":"date","description":"The client's date of birth.","example":"1980-01-01"},{"type":"null","format":"date","description":"The client's date of birth.","example":"1980-01-01"}]},"isFirstTimeHomeBuyer":{"oneOf":[{"type":"boolean","description":"Whether or not the client is a first time home buyer.","example":true},{"type":"null","description":"Whether or not the client is a first time home buyer.","example":true}]},"maritalStatus":{"oneOf":[{"type":"string","enum":["Married","Single","Common-Law","Divorced","Widowed","Separated"],"description":"The client's marital status. See enum for available types.","example":"Married"},{"type":"null","enum":["Married","Single","Common-Law","Divorced","Widowed","Separated"],"description":"The client's marital status. See enum for available types.","example":"Married"}]},"prefix":{"oneOf":[{"type":"string","enum":["Mr.","Mrs.","Ms."],"description":"The client's prefix / title. See enum for available types.","example":"Mrs."},{"type":"null","enum":["Mr.","Mrs.","Ms."],"description":"The client's prefix / title. See enum for available types.","example":"Mrs."}]},"sin":{"oneOf":[{"type":"string","pattern":"^[0-9]{9}$","description":"The client's social insurance number. This should be a 9 digit number.","example":"123456789"},{"type":"null","pattern":"^[0-9]{9}$","description":"The client's social insurance number. This should be a 9 digit number.","example":"123456789"}]},"Assets":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Savings","Investment","Vehicle","Purchase Deposit","Gifted Funds","Other"],"description":"Type of the non-property asset","example":"Savings"},"description":{"type":"string","description":"Description of the asset","example":"Savings account at RBC"},"value":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The value of the asset in CAD","example":10000}},"required":["description","type","value"],"additionalProperties":false},"description":"Assets of the Lead."},{"type":"null","items":{"type":"object","properties":{"type":{"type":"string","enum":["Savings","Investment","Vehicle","Purchase Deposit","Gifted Funds","Other"],"description":"Type of the non-property asset","example":"Savings"},"description":{"type":"string","description":"Description of the asset","example":"Savings account at RBC"},"value":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The value of the asset in CAD","example":10000}},"required":["description","type","value"],"additionalProperties":false},"description":"Assets of the Lead."}]},"Incomes":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"type":{"description":"The type of the income.","type":"string","enum":["Canada Child Benefit","Child Support","Disability","Employer Pension","Employment","Old Age Security","Other","Pension","Rental","Self-Employment","Spousal Support","Unemployment"],"example":"Employment"},"startedOn":{"description":"Date the client started receiving the income.","type":"string","format":"date","example":"2018-01-01"},"endedOn":{"oneOf":[{"description":"Date the client stopped receiving the income.","type":"string","format":"date","example":"2022-12-31"},{"description":"Date the client stopped receiving the income.","type":"null","format":"date","example":"2022-12-31"}]},"description":{"oneOf":[{"description":"Description of the income. (Employer name, etc.)","type":"string","example":"Cyberdyne Systems"},{"description":"Description of the income. (Employer name, etc.)","type":"null","example":"Cyberdyne Systems"}]},"streams":{"oneOf":[{"type":"object","description":"Income source details; separated by year. The key is the year and the value is an array of income streams for that year. (e.g. `{ \"2026\": [ { \"type\": \"Base\", \"frequency\": \"Bi-weekly\", \"amount\": \"1000\" } ] }`)","patternProperties":{"^[0-9]{4}$":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Base","Additional","Total"],"description":"An income year must not include both “Base/Additional” and “Total” entries, and no duplicate entries of the same type are allowed. The “Total” income streams are strictly tied to a “Yearly” frequency, and for past years, only the “Total” type is valid. Special case: \"Self-Employment\" income for Corporations will use \"Base/Additional\" for the current year and past years Special case: \"Employer Pension\" income will use \"Base/Additional\" for the current year and past years","example":"Base"},"frequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Frequency of the income (e.g. \"Monthly\", \"Yearly\", etc.)","example":"Bi-Weekly"},"amount":{"type":"string","description":"Amount of the income received at each interval. Expressed in CAD.","example":"1000"}},"required":["type","frequency","amount"],"additionalProperties":false},"anyOf":[{"items":{"type":"object","properties":{"type":{"const":"Total"},"frequency":{"enum":["Yearly"]}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"items":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"allOf":[{"contains":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]}},{"contains":{"type":"object","properties":{"type":{"const":"Additional"}},"required":["type","frequency","amount"]}}],"minItems":2,"maxItems":2}],"errorMessage":{"anyOf":"An income year must include either one \"Total\" income stream, one \"Base\" income stream, or both \"Base\" and \"Additional\" income streams."}}},"required":[],"additionalProperties":false},{"type":"null","description":"Income source details; separated by year. The key is the year and the value is an array of income streams for that year. (e.g. `{ \"2026\": [ { \"type\": \"Base\", \"frequency\": \"Bi-weekly\", \"amount\": \"1000\" } ] }`)","patternProperties":{"^[0-9]{4}$":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Base","Additional","Total"],"description":"An income year must not include both “Base/Additional” and “Total” entries, and no duplicate entries of the same type are allowed. The “Total” income streams are strictly tied to a “Yearly” frequency, and for past years, only the “Total” type is valid. Special case: \"Self-Employment\" income for Corporations will use \"Base/Additional\" for the current year and past years Special case: \"Employer Pension\" income will use \"Base/Additional\" for the current year and past years","example":"Base"},"frequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Frequency of the income (e.g. \"Monthly\", \"Yearly\", etc.)","example":"Bi-Weekly"},"amount":{"type":"string","description":"Amount of the income received at each interval. Expressed in CAD.","example":"1000"}},"required":["type","frequency","amount"],"additionalProperties":false},"anyOf":[{"items":{"type":"object","properties":{"type":{"const":"Total"},"frequency":{"enum":["Yearly"]}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"items":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"allOf":[{"contains":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]}},{"contains":{"type":"object","properties":{"type":{"const":"Additional"}},"required":["type","frequency","amount"]}}],"minItems":2,"maxItems":2}],"errorMessage":{"anyOf":"An income year must include either one \"Total\" income stream, one \"Base\" income stream, or both \"Base\" and \"Additional\" income streams."}}},"required":[],"additionalProperties":false}]},"employmentDetails":{"oneOf":[{"type":"object","description":"Employment information","properties":{"type":{"type":"string","enum":["Salaried","Hourly","Contract"],"description":"Type of employment.","example":"Salaried"},"jobTitle":{"type":"string","description":"Job title of the client at their place of employment.","example":"Accountant"},"phone":{"type":"object","description":"Phone number of the client's place of employment.","properties":{"number":{"type":"string","description":"Phone number without country code"},"extension":{"oneOf":[{"type":"string","description":"Phone number extension"},{"type":"null","description":"Phone number extension"}]}},"additionalProperties":false,"required":["number"],"example":"{\"number\":\"6471234567\",\"extension\":\"123\"}"},"sector":{"type":"string","enum":["Agriculture","Arts \u0026 Entertainment","Construction","Educational Services","Financial Services","Healthcare","IT \u0026 Telecom","Manufacturing","Natural Resources","Public Services","Real Estate \u0026 Property Management","Retail \u0026 Wholesale","Science \u0026 Technology","Transportation","Travel \u0026 Tourism","Utilities","Student","Other"],"description":"The economic sector of the client's place of work.","example":"Financial Services"},"businessType":{"oneOf":[{"type":"string","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship"},{"type":"null","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship"}]},"businessEstablishedOn":{"oneOf":[{"type":"string","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01"},{"type":"null","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01"}]},"businessAnnualGrossRevenue":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000"},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000"}]},"businessName":{"type":"string","description":"Name of the business. Only applicable to self-employed clients.","example":"Acme Inc."},"probationEndsOn":{"oneOf":[{"type":"string","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01"},{"type":"null","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01"}]},"address":{"type":"object","properties":{"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number"},{"type":"null","description":"Address - Unit number"}]},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number"},{"type":"null","description":"Address - Street number"}]},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction"},{"type":"null","description":"Address - Street name including direction"}]},"locality":{"type":"string","description":"Address - City, town, or village"},"administrativeArea":{"type":"string","description":"Address - State or province"},"postalCode":{"type":"string","description":"Address - Postal code or zip code"},"country":{"type":"string","description":"Address - Country name"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc."},{"type":"null","description":"Address - Apartment, building, floor, etc."}]},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID"},{"type":"null","description":"Google Place ID"}]},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false}]}},"required":[],"additionalProperties":false}},"required":["type","jobTitle","phone","sector","businessName","address"],"additionalProperties":false},{"type":"null","description":"Employment information","properties":{"type":{"type":"string","enum":["Salaried","Hourly","Contract"],"description":"Type of employment.","example":"Salaried"},"jobTitle":{"type":"string","description":"Job title of the client at their place of employment.","example":"Accountant"},"phone":{"type":"object","description":"Phone number of the client's place of employment.","properties":{"number":{"type":"string","description":"Phone number without country code"},"extension":{"oneOf":[{"type":"string","description":"Phone number extension"},{"type":"null","description":"Phone number extension"}]}},"additionalProperties":false,"required":["number"],"example":"{\"number\":\"6471234567\",\"extension\":\"123\"}"},"sector":{"type":"string","enum":["Agriculture","Arts \u0026 Entertainment","Construction","Educational Services","Financial Services","Healthcare","IT \u0026 Telecom","Manufacturing","Natural Resources","Public Services","Real Estate \u0026 Property Management","Retail \u0026 Wholesale","Science \u0026 Technology","Transportation","Travel \u0026 Tourism","Utilities","Student","Other"],"description":"The economic sector of the client's place of work.","example":"Financial Services"},"businessType":{"oneOf":[{"type":"string","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship"},{"type":"null","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship"}]},"businessEstablishedOn":{"oneOf":[{"type":"string","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01"},{"type":"null","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01"}]},"businessAnnualGrossRevenue":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000"},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000"}]},"businessName":{"type":"string","description":"Name of the business. Only applicable to self-employed clients.","example":"Acme Inc."},"probationEndsOn":{"oneOf":[{"type":"string","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01"},{"type":"null","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01"}]},"address":{"type":"object","properties":{"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number"},{"type":"null","description":"Address - Unit number"}]},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number"},{"type":"null","description":"Address - Street number"}]},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction"},{"type":"null","description":"Address - Street name including direction"}]},"locality":{"type":"string","description":"Address - City, town, or village"},"administrativeArea":{"type":"string","description":"Address - State or province"},"postalCode":{"type":"string","description":"Address - Postal code or zip code"},"country":{"type":"string","description":"Address - Country name"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc."},{"type":"null","description":"Address - Apartment, building, floor, etc."}]},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID"},{"type":"null","description":"Google Place ID"}]},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false}]}},"required":[],"additionalProperties":false}},"required":["type","jobTitle","phone","sector","businessName","address"],"additionalProperties":false}]}},"required":["type","startedOn"],"additionalProperties":false,"if":{"anyOf":[{"properties":{"type":{"const":"Employer Pension"}}},{"properties":{"type":{"const":"Self-Employment"},"employmentDetails":{"properties":{"businessType":{"const":"Corporation"}}}}}]},"then":{"properties":{"streams":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","description":"Income source details; separated by year. The key is the year and the value is an array of income streams.","example":{"2026":[{"type":"Base","frequency":"Bi-Weekly","amount":1000},{"type":"Additional","frequency":"Quarterly","amount":100}]},"patternProperties":{"^[0-9]{4}$":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Base","Additional"],"description":"Income streams for Corporate Business Self-Employment or Employer Pension must have a \"Base\" and \"Additional\" stream.","example":"Base"},"frequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Frequency of the income (e.g. \"Monthly\", \"Yearly\", etc.)","example":"Bi-Weekly"},"amount":{"type":"number","description":"Amount of the income received at each interval. Expressed in CAD.","example":1000}},"required":["type","frequency","amount"],"additionalProperties":false}}},"nullable":true,"required":[],"additionalProperties":false}}}}},{"type":"null","items":{"type":"object","properties":{"type":{"description":"The type of the income.","type":"string","enum":["Canada Child Benefit","Child Support","Disability","Employer Pension","Employment","Old Age Security","Other","Pension","Rental","Self-Employment","Spousal Support","Unemployment"],"example":"Employment"},"startedOn":{"description":"Date the client started receiving the income.","type":"string","format":"date","example":"2018-01-01"},"endedOn":{"oneOf":[{"description":"Date the client stopped receiving the income.","type":"string","format":"date","example":"2022-12-31"},{"description":"Date the client stopped receiving the income.","type":"null","format":"date","example":"2022-12-31"}]},"description":{"oneOf":[{"description":"Description of the income. (Employer name, etc.)","type":"string","example":"Cyberdyne Systems"},{"description":"Description of the income. (Employer name, etc.)","type":"null","example":"Cyberdyne Systems"}]},"streams":{"oneOf":[{"type":"object","description":"Income source details; separated by year. The key is the year and the value is an array of income streams for that year. (e.g. `{ \"2026\": [ { \"type\": \"Base\", \"frequency\": \"Bi-weekly\", \"amount\": \"1000\" } ] }`)","patternProperties":{"^[0-9]{4}$":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Base","Additional","Total"],"description":"An income year must not include both “Base/Additional” and “Total” entries, and no duplicate entries of the same type are allowed. The “Total” income streams are strictly tied to a “Yearly” frequency, and for past years, only the “Total” type is valid. Special case: \"Self-Employment\" income for Corporations will use \"Base/Additional\" for the current year and past years Special case: \"Employer Pension\" income will use \"Base/Additional\" for the current year and past years","example":"Base"},"frequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Frequency of the income (e.g. \"Monthly\", \"Yearly\", etc.)","example":"Bi-Weekly"},"amount":{"type":"string","description":"Amount of the income received at each interval. Expressed in CAD.","example":"1000"}},"required":["type","frequency","amount"],"additionalProperties":false},"anyOf":[{"items":{"type":"object","properties":{"type":{"const":"Total"},"frequency":{"enum":["Yearly"]}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"items":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"allOf":[{"contains":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]}},{"contains":{"type":"object","properties":{"type":{"const":"Additional"}},"required":["type","frequency","amount"]}}],"minItems":2,"maxItems":2}],"errorMessage":{"anyOf":"An income year must include either one \"Total\" income stream, one \"Base\" income stream, or both \"Base\" and \"Additional\" income streams."}}},"required":[],"additionalProperties":false},{"type":"null","description":"Income source details; separated by year. The key is the year and the value is an array of income streams for that year. (e.g. `{ \"2026\": [ { \"type\": \"Base\", \"frequency\": \"Bi-weekly\", \"amount\": \"1000\" } ] }`)","patternProperties":{"^[0-9]{4}$":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Base","Additional","Total"],"description":"An income year must not include both “Base/Additional” and “Total” entries, and no duplicate entries of the same type are allowed. The “Total” income streams are strictly tied to a “Yearly” frequency, and for past years, only the “Total” type is valid. Special case: \"Self-Employment\" income for Corporations will use \"Base/Additional\" for the current year and past years Special case: \"Employer Pension\" income will use \"Base/Additional\" for the current year and past years","example":"Base"},"frequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Frequency of the income (e.g. \"Monthly\", \"Yearly\", etc.)","example":"Bi-Weekly"},"amount":{"type":"string","description":"Amount of the income received at each interval. Expressed in CAD.","example":"1000"}},"required":["type","frequency","amount"],"additionalProperties":false},"anyOf":[{"items":{"type":"object","properties":{"type":{"const":"Total"},"frequency":{"enum":["Yearly"]}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"items":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]},"minItems":1,"maxItems":1},{"allOf":[{"contains":{"type":"object","properties":{"type":{"const":"Base"}},"required":["type","frequency","amount"]}},{"contains":{"type":"object","properties":{"type":{"const":"Additional"}},"required":["type","frequency","amount"]}}],"minItems":2,"maxItems":2}],"errorMessage":{"anyOf":"An income year must include either one \"Total\" income stream, one \"Base\" income stream, or both \"Base\" and \"Additional\" income streams."}}},"required":[],"additionalProperties":false}]},"employmentDetails":{"oneOf":[{"type":"object","description":"Employment information","properties":{"type":{"type":"string","enum":["Salaried","Hourly","Contract"],"description":"Type of employment.","example":"Salaried"},"jobTitle":{"type":"string","description":"Job title of the client at their place of employment.","example":"Accountant"},"phone":{"type":"object","description":"Phone number of the client's place of employment.","properties":{"number":{"type":"string","description":"Phone number without country code"},"extension":{"oneOf":[{"type":"string","description":"Phone number extension"},{"type":"null","description":"Phone number extension"}]}},"additionalProperties":false,"required":["number"],"example":"{\"number\":\"6471234567\",\"extension\":\"123\"}"},"sector":{"type":"string","enum":["Agriculture","Arts \u0026 Entertainment","Construction","Educational Services","Financial Services","Healthcare","IT \u0026 Telecom","Manufacturing","Natural Resources","Public Services","Real Estate \u0026 Property Management","Retail \u0026 Wholesale","Science \u0026 Technology","Transportation","Travel \u0026 Tourism","Utilities","Student","Other"],"description":"The economic sector of the client's place of work.","example":"Financial Services"},"businessType":{"oneOf":[{"type":"string","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship"},{"type":"null","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship"}]},"businessEstablishedOn":{"oneOf":[{"type":"string","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01"},{"type":"null","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01"}]},"businessAnnualGrossRevenue":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000"},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000"}]},"businessName":{"type":"string","description":"Name of the business. Only applicable to self-employed clients.","example":"Acme Inc."},"probationEndsOn":{"oneOf":[{"type":"string","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01"},{"type":"null","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01"}]},"address":{"type":"object","properties":{"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number"},{"type":"null","description":"Address - Unit number"}]},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number"},{"type":"null","description":"Address - Street number"}]},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction"},{"type":"null","description":"Address - Street name including direction"}]},"locality":{"type":"string","description":"Address - City, town, or village"},"administrativeArea":{"type":"string","description":"Address - State or province"},"postalCode":{"type":"string","description":"Address - Postal code or zip code"},"country":{"type":"string","description":"Address - Country name"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc."},{"type":"null","description":"Address - Apartment, building, floor, etc."}]},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID"},{"type":"null","description":"Google Place ID"}]},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false}]}},"required":[],"additionalProperties":false}},"required":["type","jobTitle","phone","sector","businessName","address"],"additionalProperties":false},{"type":"null","description":"Employment information","properties":{"type":{"type":"string","enum":["Salaried","Hourly","Contract"],"description":"Type of employment.","example":"Salaried"},"jobTitle":{"type":"string","description":"Job title of the client at their place of employment.","example":"Accountant"},"phone":{"type":"object","description":"Phone number of the client's place of employment.","properties":{"number":{"type":"string","description":"Phone number without country code"},"extension":{"oneOf":[{"type":"string","description":"Phone number extension"},{"type":"null","description":"Phone number extension"}]}},"additionalProperties":false,"required":["number"],"example":"{\"number\":\"6471234567\",\"extension\":\"123\"}"},"sector":{"type":"string","enum":["Agriculture","Arts \u0026 Entertainment","Construction","Educational Services","Financial Services","Healthcare","IT \u0026 Telecom","Manufacturing","Natural Resources","Public Services","Real Estate \u0026 Property Management","Retail \u0026 Wholesale","Science \u0026 Technology","Transportation","Travel \u0026 Tourism","Utilities","Student","Other"],"description":"The economic sector of the client's place of work.","example":"Financial Services"},"businessType":{"oneOf":[{"type":"string","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship"},{"type":"null","enum":["Sole Proprietorship","Partnership","Corporation"],"description":"Type of business. Only applicable to self-employed clients.","example":"Sole Proprietorship"}]},"businessEstablishedOn":{"oneOf":[{"type":"string","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01"},{"type":"null","format":"date","description":"Date the business was established. Only applicable to self-employed clients.","example":"2019-01-01"}]},"businessAnnualGrossRevenue":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000"},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Annual gross revenue of the business. Only applicable to self-employed clients.","example":"10000"}]},"businessName":{"type":"string","description":"Name of the business. Only applicable to self-employed clients.","example":"Acme Inc."},"probationEndsOn":{"oneOf":[{"type":"string","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01"},{"type":"null","format":"date","description":"The date the probation period ends at their place of employment. Only required for \"Employment\" income type.","example":"2022-01-01"}]},"address":{"type":"object","properties":{"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number"},{"type":"null","description":"Address - Unit number"}]},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number"},{"type":"null","description":"Address - Street number"}]},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction"},{"type":"null","description":"Address - Street name including direction"}]},"locality":{"type":"string","description":"Address - City, town, or village"},"administrativeArea":{"type":"string","description":"Address - State or province"},"postalCode":{"type":"string","description":"Address - Postal code or zip code"},"country":{"type":"string","description":"Address - Country name"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc."},{"type":"null","description":"Address - Apartment, building, floor, etc."}]},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID"},{"type":"null","description":"Google Place ID"}]},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false}]}},"required":[],"additionalProperties":false}},"required":["type","jobTitle","phone","sector","businessName","address"],"additionalProperties":false}]}},"required":["type","startedOn"],"additionalProperties":false,"if":{"anyOf":[{"properties":{"type":{"const":"Employer Pension"}}},{"properties":{"type":{"const":"Self-Employment"},"employmentDetails":{"properties":{"businessType":{"const":"Corporation"}}}}}]},"then":{"properties":{"streams":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","description":"Income source details; separated by year. The key is the year and the value is an array of income streams.","example":{"2026":[{"type":"Base","frequency":"Bi-Weekly","amount":1000},{"type":"Additional","frequency":"Quarterly","amount":100}]},"patternProperties":{"^[0-9]{4}$":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Base","Additional"],"description":"Income streams for Corporate Business Self-Employment or Employer Pension must have a \"Base\" and \"Additional\" stream.","example":"Base"},"frequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Frequency of the income (e.g. \"Monthly\", \"Yearly\", etc.)","example":"Bi-Weekly"},"amount":{"type":"number","description":"Amount of the income received at each interval. Expressed in CAD.","example":1000}},"required":["type","frequency","amount"],"additionalProperties":false}}},"nullable":true,"required":[],"additionalProperties":false}}}}}]},"ClientResidencies":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"occupancyType":{"description":"The status of the client's residency. Residers do not own or rent the property.","type":"string","enum":["Owner","Renter","Resider"],"example":"Resider"},"startsOn":{"description":"Date the client moved into the location","type":"string","format":"date","example":"2018-01-01"},"endsOn":{"oneOf":[{"description":"Date the client moved out of the location","type":"string","format":"date","example":"2022-12-31"},{"description":"Date the client moved out of the location","type":"null","format":"date","example":"2022-12-31"}]},"monthlyRent":{"oneOf":[{"description":"The monthly rent amount when occupancyType is \"Renter\"","type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","example":2000},{"description":"The monthly rent amount when occupancyType is \"Renter\"","type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","example":2000}]},"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number"},{"type":"null","description":"Address - Unit number"}]},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number"},{"type":"null","description":"Address - Street number"}]},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction"},{"type":"null","description":"Address - Street name including direction"}]},"locality":{"type":"string","description":"Address - City, town, or village"},"administrativeArea":{"type":"string","description":"Address - State or province"},"postalCode":{"type":"string","description":"Address - Postal code or zip code"},"country":{"type":"string","description":"Address - Country name"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc."},{"type":"null","description":"Address - Apartment, building, floor, etc."}]},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID"},{"type":"null","description":"Google Place ID"}]},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false}]}},"required":["occupancyType","startsOn","locality","country","postalCode","administrativeArea"],"additionalProperties":false}},{"type":"null","items":{"type":"object","properties":{"occupancyType":{"description":"The status of the client's residency. Residers do not own or rent the property.","type":"string","enum":["Owner","Renter","Resider"],"example":"Resider"},"startsOn":{"description":"Date the client moved into the location","type":"string","format":"date","example":"2018-01-01"},"endsOn":{"oneOf":[{"description":"Date the client moved out of the location","type":"string","format":"date","example":"2022-12-31"},{"description":"Date the client moved out of the location","type":"null","format":"date","example":"2022-12-31"}]},"monthlyRent":{"oneOf":[{"description":"The monthly rent amount when occupancyType is \"Renter\"","type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","example":2000},{"description":"The monthly rent amount when occupancyType is \"Renter\"","type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","example":2000}]},"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number"},{"type":"null","description":"Address - Unit number"}]},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number"},{"type":"null","description":"Address - Street number"}]},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction"},{"type":"null","description":"Address - Street name including direction"}]},"locality":{"type":"string","description":"Address - City, town, or village"},"administrativeArea":{"type":"string","description":"Address - State or province"},"postalCode":{"type":"string","description":"Address - Postal code or zip code"},"country":{"type":"string","description":"Address - Country name"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc."},{"type":"null","description":"Address - Apartment, building, floor, etc."}]},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID"},{"type":"null","description":"Google Place ID"}]},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false}]}},"required":["occupancyType","startsOn","locality","country","postalCode","administrativeArea"],"additionalProperties":false}}]},"Plans":{"oneOf":[{"type":"array","items":{"oneOf":[{"type":"object","title":"LeadBuyingPlan","required":["type"],"properties":{"id":{"oneOf":[{"type":"string","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"}]},"leadId":{"oneOf":[{"type":"string","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"}]},"referralCodeId":{"oneOf":[{"type":"string","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$"}]},"type":{"type":"string","description":"The type of the plan. See enum for available types.","enum":["Buying"],"example":"Buying"},"realtorProfileId":{"oneOf":[{"type":"string","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans.","pattern":"^[a-zA-Z0-9]{8}$"}]}},"additionalProperties":false},{"type":"object","title":"LeadManagePlan","required":["type"],"properties":{"id":{"oneOf":[{"type":"string","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"}]},"leadId":{"oneOf":[{"type":"string","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"}]},"referralCodeId":{"oneOf":[{"type":"string","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$"}]},"type":{"type":"string","description":"The type of the plan. See enum for available types.","enum":["Switching","Renewing","Refinancing"],"example":"Buying"},"realtorProfileId":{"oneOf":[{"type":"string","pattern":"^[a-zA-Z0-9]{8}$","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans."},{"type":"null","pattern":"^[a-zA-Z0-9]{8}$","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans."}]}},"additionalProperties":false}]},"description":"Plans associated with the Lead."},{"type":"null","items":{"oneOf":[{"type":"object","title":"LeadBuyingPlan","required":["type"],"properties":{"id":{"oneOf":[{"type":"string","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"}]},"leadId":{"oneOf":[{"type":"string","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"}]},"referralCodeId":{"oneOf":[{"type":"string","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$"}]},"type":{"type":"string","description":"The type of the plan. See enum for available types.","enum":["Buying"],"example":"Buying"},"realtorProfileId":{"oneOf":[{"type":"string","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans.","pattern":"^[a-zA-Z0-9]{8}$"}]}},"additionalProperties":false},{"type":"object","title":"LeadManagePlan","required":["type"],"properties":{"id":{"oneOf":[{"type":"string","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The readonly ID of the plan. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"}]},"leadId":{"oneOf":[{"type":"string","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The ID of the lead that the plan is associated with. This will get set when the plan is created.","pattern":"^[a-zA-Z0-9]{8}$"}]},"referralCodeId":{"oneOf":[{"type":"string","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$"},{"type":"null","description":"The id of a Perch referral code that should be applied to the plan. This should be either the partner or realtor referral code.","pattern":"^[a-zA-Z0-9]{8}$"}]},"type":{"type":"string","description":"The type of the plan. See enum for available types.","enum":["Switching","Renewing","Refinancing"],"example":"Buying"},"realtorProfileId":{"oneOf":[{"type":"string","pattern":"^[a-zA-Z0-9]{8}$","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans."},{"type":"null","pattern":"^[a-zA-Z0-9]{8}$","description":"The Perch ID of the realtor (a FirmMember with a 'Realty' firmType) that the client is working with. This is only allowed for \"Buying\" plans."}]}},"additionalProperties":false}]},"description":"Plans associated with the Lead."}]},"Properties":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Detached","Condo/Apartment","Townhouse","Semi-Detached","Other"],"description":"The type of the property.","example":"Detached"},"status":{"type":"string","enum":["Purchasing","Owned","Selling","Sold","Shortlisted"],"description":"Current state of the property","example":"Owned"},"occupancyType":{"type":"string","enum":["Owner Occupied","Rental","Owner Occupied \u0026 Rental","Second Home"],"description":"The status of the occupant's residency","example":"Owner Occupied"},"purchasePrice":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The purchase price of the property in CAD","example":500000},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The purchase price of the property in CAD","example":500000}]},"purchasedOn":{"oneOf":[{"type":"string","format":"date","description":"The date the agreement to purchase the property was accepted","example":"2018-01-01"},{"type":"null","format":"date","description":"The date the agreement to purchase the property was accepted","example":"2018-01-01"}]},"monthlyTotalRent":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Rental income from Property","example":2000},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Rental income from Property","example":2000}]},"costs":{"type":"object","properties":{"annualPropertyTaxes":{"oneOf":[{"type":"number","description":"The annual property taxes for the property in CAD"},{"type":"null","description":"The annual property taxes for the property in CAD"}]},"monthlyMaintenanceFee":{"oneOf":[{"type":"number","description":"The monthly maintenance fee for condos/townhouses in CAD"},{"type":"null","description":"The monthly maintenance fee for condos/townhouses in CAD"}]}}},"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number"},{"type":"null","description":"Address - Unit number"}]},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number"},{"type":"null","description":"Address - Street number"}]},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction"},{"type":"null","description":"Address - Street name including direction"}]},"locality":{"type":"string","description":"Address - City, town, or village"},"administrativeArea":{"type":"string","description":"Address - State or province"},"postalCode":{"type":"string","description":"Address - Postal code or zip code"},"country":{"type":"string","description":"Address - Country name"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc."},{"type":"null","description":"Address - Apartment, building, floor, etc."}]},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID"},{"type":"null","description":"Google Place ID"}]},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false}]},"Liabilities":{"oneOf":[{"type":"array","items":{"type":"object","required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"properties":{"type":{"type":"string","enum":["Alimony","Car Lease","Car Finance","Child Support","Condo Fees","Heating Costs","HELOC","Mortgage","Personal Loan","Property Tax","Student Loan","Unsecured Line of Credit","Other"],"description":"The type of the liability."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]},"position":{"oneOf":[{"type":"integer","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability."},{"type":"null","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability."}]},"ChildLiabilities":{"oneOf":[{"type":"array","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false}},{"type":"null","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false}}]}},"additionalProperties":false}},{"type":"null","items":{"type":"object","required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"properties":{"type":{"type":"string","enum":["Alimony","Car Lease","Car Finance","Child Support","Condo Fees","Heating Costs","HELOC","Mortgage","Personal Loan","Property Tax","Student Loan","Unsecured Line of Credit","Other"],"description":"The type of the liability."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]},"position":{"oneOf":[{"type":"integer","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability."},{"type":"null","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability."}]},"ChildLiabilities":{"oneOf":[{"type":"array","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false}},{"type":"null","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false}}]}},"additionalProperties":false}}]}},"required":["type","status","occupancyType"],"additionalProperties":false},"description":"Properties owned by the Lead."},{"type":"null","items":{"type":"object","properties":{"type":{"type":"string","enum":["Detached","Condo/Apartment","Townhouse","Semi-Detached","Other"],"description":"The type of the property.","example":"Detached"},"status":{"type":"string","enum":["Purchasing","Owned","Selling","Sold","Shortlisted"],"description":"Current state of the property","example":"Owned"},"occupancyType":{"type":"string","enum":["Owner Occupied","Rental","Owner Occupied \u0026 Rental","Second Home"],"description":"The status of the occupant's residency","example":"Owner Occupied"},"purchasePrice":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The purchase price of the property in CAD","example":500000},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The purchase price of the property in CAD","example":500000}]},"purchasedOn":{"oneOf":[{"type":"string","format":"date","description":"The date the agreement to purchase the property was accepted","example":"2018-01-01"},{"type":"null","format":"date","description":"The date the agreement to purchase the property was accepted","example":"2018-01-01"}]},"monthlyTotalRent":{"oneOf":[{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Rental income from Property","example":2000},{"type":"null","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Rental income from Property","example":2000}]},"costs":{"type":"object","properties":{"annualPropertyTaxes":{"oneOf":[{"type":"number","description":"The annual property taxes for the property in CAD"},{"type":"null","description":"The annual property taxes for the property in CAD"}]},"monthlyMaintenanceFee":{"oneOf":[{"type":"number","description":"The monthly maintenance fee for condos/townhouses in CAD"},{"type":"null","description":"The monthly maintenance fee for condos/townhouses in CAD"}]}}},"unitNumber":{"oneOf":[{"type":"string","description":"Address - Unit number"},{"type":"null","description":"Address - Unit number"}]},"streetNumber":{"oneOf":[{"type":"string","description":"Address - Street number"},{"type":"null","description":"Address - Street number"}]},"streetName":{"oneOf":[{"type":"string","description":"Address - Street name including direction"},{"type":"null","description":"Address - Street name including direction"}]},"locality":{"type":"string","description":"Address - City, town, or village"},"administrativeArea":{"type":"string","description":"Address - State or province"},"postalCode":{"type":"string","description":"Address - Postal code or zip code"},"country":{"type":"string","description":"Address - Country name"},"premise":{"oneOf":[{"type":"string","description":"Address - Apartment, building, floor, etc."},{"type":"null","description":"Address - Apartment, building, floor, etc."}]},"googlePlaceId":{"oneOf":[{"type":"string","description":"Google Place ID"},{"type":"null","description":"Google Place ID"}]},"locationGeometry":{"oneOf":[{"type":"object","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false},{"type":"null","description":"Longitude and latitude stored as a point using SRID 4326 in GeoJSON format: [longitude, latitude]","example":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","properties":{"type":{"type":"string","const":"Point"},"coordinates":{"type":"array","description":"Longitude first, then latitude","items":{"type":"number"},"minItems":2,"maxItems":2}},"required":["type","coordinates"],"additionalProperties":false}]},"Liabilities":{"oneOf":[{"type":"array","items":{"type":"object","required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"properties":{"type":{"type":"string","enum":["Alimony","Car Lease","Car Finance","Child Support","Condo Fees","Heating Costs","HELOC","Mortgage","Personal Loan","Property Tax","Student Loan","Unsecured Line of Credit","Other"],"description":"The type of the liability."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]},"position":{"oneOf":[{"type":"integer","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability."},{"type":"null","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability."}]},"ChildLiabilities":{"oneOf":[{"type":"array","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false}},{"type":"null","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false}}]}},"additionalProperties":false}},{"type":"null","items":{"type":"object","required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"properties":{"type":{"type":"string","enum":["Alimony","Car Lease","Car Finance","Child Support","Condo Fees","Heating Costs","HELOC","Mortgage","Personal Loan","Property Tax","Student Loan","Unsecured Line of Credit","Other"],"description":"The type of the liability."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]},"position":{"oneOf":[{"type":"integer","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability."},{"type":"null","description":"The position of the liability. This is used to determine the order in which liabilities are paid off. This is almost exclusively used for mortgages. Position must be unique for each liability."}]},"ChildLiabilities":{"oneOf":[{"type":"array","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false}},{"type":"null","description":"A ChildLiability is the HELOC in a Mortgage+HELOC combination.","items":{"type":"object","properties":{"type":{"type":"string","enum":["HELOC"],"description":"A HELOC type in a Mortgage+HELOC combination."},"balance":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The current balance of the liability."},"creditLimit":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"The original balance of mortgages or the credit limit for other loan types."},"description":{"oneOf":[{"type":"string","description":"A helpful description of the liability."},{"type":"null","description":"A helpful description of the liability."}]},"lenderName":{"type":"string","description":"The name of the lender."},"maturesOn":{"type":"string","format":"date","description":"Date the liability matures."},"paymentAmount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Payment amount at each payment interval."},"paymentDetails":{"type":"object","properties":{"isInterestOnly":{"type":"boolean","description":"Whether or not the payment is interest only."},"isPropertyTaxIncluded":{"type":"boolean","description":"Whether or not the payment includes property tax. This indicates the lender is responsible for paying the property tax. This affects the calculation of the payment amount and amortization years."}},"required":["isInterestOnly","isPropertyTaxIncluded"],"additionalProperties":false},"paymentFrequency":{"type":"string","enum":["Weekly","Bi-Weekly","Monthly","Semi-Monthly","Quarterly","Yearly"],"description":"Payment frequency of the liability."},"rate":{"type":"number","description":"Loan: Either the fixed interest rate or the prime offset (e.g. Prime +/- rate) for variable"},"rateType":{"type":"string","enum":["Fixed","Variable","Adjustable"],"description":"Type of interest rate for a loan"},"termMonths":{"oneOf":[{"type":"number","description":"The term of the loan in months"},{"type":"null","description":"The term of the loan in months"}]}},"required":["type","balance","creditLimit","lenderName","maturesOn","paymentAmount","paymentDetails","paymentFrequency","rate","rateType"],"additionalProperties":false}}]}},"additionalProperties":false}}]}},"required":["type","status","occupancyType"],"additionalProperties":false},"description":"Properties owned by the Lead."}]},"notes":{"oneOf":[{"description":"Notes about the Lead","type":"string"},{"description":"Notes about the Lead","type":"null"}]}},"required":[],"uniqueKey":"data.clientData.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.clientData","typeLabel":"object | null"},"referredByReferralCodeId":{"oneOf":[{"type":"string","description":"Support only: The referral source of the lead. This referral source takes priority over the lead owner during lead conversion.","uniqueKey":"data.referredByReferralCodeId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Support only: The referral source of the lead. This referral source takes priority over the lead owner during lead conversion.","uniqueKey":"data.referredByReferralCodeId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.referredByReferralCodeId","typeLabel":"string | null"},"convertedAt":{"oneOf":[{"type":"string","format":"date-time","description":"The date the Lead was converted into a client. This is set when a client signs up or is created by an advisor / CX representative.","uniqueKey":"data.convertedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"The date the Lead was converted into a client. This is set when a client signs up or is created by an advisor / CX representative.","uniqueKey":"data.convertedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.convertedAt","typeLabel":"string\u003cdate-time> | null"}},"required":["id","createdAt","updatedAt","email","firstName","lastName","resourceType","resourceId"],"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"id":"38owigkM","createdAt":"2026-03-05T19:39:18.389Z","updatedAt":"2026-03-05T19:39:18.389Z","email":"client1+74049788@example.com","firstName":"Amya","lastName":"Williamson","resourceType":"Firm","resourceId":"qSBKZzUi","deletedAt":"2023-11-07T05:31:56Z","phone":{"number":"\u003cstring>","extension":"\u003cstring>"},"clientData":{"advisorProfileId":"\u003cstring>","citizenship":"Canadian Citizen","creditScoreEstimation":"700","dateOfBirth":"1980-01-01","isFirstTimeHomeBuyer":true,"maritalStatus":"Married","prefix":"Mrs.","sin":"123456789","Assets":[{"type":"Savings","description":"Savings account at RBC","value":10000}],"Incomes":[{"type":"Employment","startedOn":"2018-01-01","endedOn":"2022-12-31","description":"Cyberdyne Systems","streams":{},"employmentDetails":{"type":"Salaried","jobTitle":"Accountant","phone":"{\"number\":\"6471234567\",\"extension\":\"123\"}","sector":"Financial Services","businessName":"Acme Inc.","address":{"unitNumber":"\u003cstring>","streetNumber":"\u003cstring>","streetName":"\u003cstring>","locality":"\u003cstring>","administrativeArea":"\u003cstring>","postalCode":"\u003cstring>","country":"\u003cstring>","premise":"\u003cstring>","googlePlaceId":"\u003cstring>","locationGeometry":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}"},"businessType":"Sole Proprietorship","businessEstablishedOn":"2019-01-01","businessAnnualGrossRevenue":"10000","probationEndsOn":"2022-01-01"}}],"ClientResidencies":[{"occupancyType":"Resider","startsOn":"2018-01-01","locality":"\u003cstring>","administrativeArea":"\u003cstring>","postalCode":"\u003cstring>","country":"\u003cstring>","endsOn":"2022-12-31","monthlyRent":2000,"unitNumber":"\u003cstring>","streetNumber":"\u003cstring>","streetName":"\u003cstring>","premise":"\u003cstring>","googlePlaceId":"\u003cstring>","locationGeometry":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}"}],"Plans":[{"type":"Buying","id":"\u003cstring>","leadId":"\u003cstring>","referralCodeId":"\u003cstring>","realtorProfileId":"\u003cstring>"}],"Properties":[{"type":"Detached","status":"Owned","occupancyType":"Owner Occupied","purchasePrice":500000,"purchasedOn":"2018-01-01","monthlyTotalRent":2000,"costs":{"annualPropertyTaxes":123,"monthlyMaintenanceFee":123},"unitNumber":"\u003cstring>","streetNumber":"\u003cstring>","streetName":"\u003cstring>","locality":"\u003cstring>","administrativeArea":"\u003cstring>","postalCode":"\u003cstring>","country":"\u003cstring>","premise":"\u003cstring>","googlePlaceId":"\u003cstring>","locationGeometry":"{\"type\":\"Point\",\"coordinates\":[-79.3832,43.6532]}","Liabilities":[{"type":"Alimony","balance":"\u003cstring>","creditLimit":"\u003cstring>","lenderName":"\u003cstring>","maturesOn":"2023-12-25","paymentAmount":"\u003cstring>","paymentDetails":{"isInterestOnly":true,"isPropertyTaxIncluded":true},"paymentFrequency":"Weekly","rate":123,"rateType":"Fixed","description":"\u003cstring>","termMonths":123,"position":123,"ChildLiabilities":[{"type":"HELOC","balance":"\u003cstring>","creditLimit":"\u003cstring>","lenderName":"\u003cstring>","maturesOn":"2023-12-25","paymentAmount":"\u003cstring>","paymentDetails":{"isInterestOnly":true,"isPropertyTaxIncluded":true},"paymentFrequency":"Weekly","rate":123,"rateType":"Fixed","description":"\u003cstring>","termMonths":123}]}]}],"notes":"\u003cstring>"},"referredByReferralCodeId":"\u003cstring>","convertedAt":"2023-11-07T05:31:56Z"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"d37efc51-92a8-4fd2-9ef1-2565790d59ab":{"x-api-key":{"name":"x-api-key","type":"apiKey","in":"header","scopes":[]}}},"servers":{"18c5d4e1-deaa-4890-bc94-c2204b93ef8d":{"description":"DIT","url":"https://api.realtor.dit.myperch.io/v1"},"9d392550-dc71-4133-b76d-4feb64028bdf":{"description":"Production","url":"https://api.realtor.myperch.io/v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"name":"x-api-key","type":"apiKey","in":"header","scopes":[]},"schema":{"title":"x-api-key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"x-api-key","name":"x-api-key"}],"title":"x-api-key"}]},"originalFileLocation":"https://perch-api-docs.s3.ca-central-1.amazonaws.com/perch-realtor.spec.json"},"subdomain":"perch","siteName":"Perch Developer Platform","title":"Create Lead for Firm - Perch Developer Platform","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-03-12T21:38:02.270Z","originalFileLocation":"realtor-api/lead/create-lead-for-firm.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Creates a record in the Lead table based on passed parameters and implicit access controls.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Perch Developer Platform\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/perch/3EQlvaVh22sc_HAM/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/perch/3EQlvaVh22sc_HAM/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/perch/3EQlvaVh22sc_HAM/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/perch/3EQlvaVh22sc_HAM/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/perch/3EQlvaVh22sc_HAM/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/perch/3EQlvaVh22sc_HAM/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/perch/3EQlvaVh22sc_HAM/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/perch/3EQlvaVh22sc_HAM/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/perch/3EQlvaVh22sc_HAM/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Lead for Firm - Perch Developer Platform\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a record in the Lead table based on passed parameters and implicit access controls.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Perch Developer Platform\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.myperch.io/realtor-api/lead/create-lead-for-firm\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://perch.mintlify.app/_mintlify/api/og/v2?division=Lead\u0026amp;title=Create+Lead+for+Firm\u0026amp;description=Creates+a+record+in+the+Lead+table+based+on+passed+parameters+and+implicit+access+controls.\u0026amp;theme=765fa53beba12088a07aaa23\u0026amp;signature=9dec5aa63e375c2b16033edfe104e55d909feab955ac0a65a924a0b70b5941c6\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create Lead for Firm - Perch Developer Platform\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a record in the Lead table based on passed parameters and implicit access controls.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://perch.mintlify.app/_mintlify/api/og/v2?division=Lead\u0026amp;title=Create+Lead+for+Firm\u0026amp;description=Creates+a+record+in+the+Lead+table+based+on+passed+parameters+and+implicit+access+controls.\u0026amp;theme=765fa53beba12088a07aaa23\u0026amp;signature=9dec5aa63e375c2b16033edfe104e55d909feab955ac0a65a924a0b70b5941c6\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/perch/3EQlvaVh22sc_HAM/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Perch Developer Platform\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#327766\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.myperch.io/realtor-api/lead/create-lead-for-firm\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/realtor-api/lead/create-lead-for-firm.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.myperch.io/#organization\",\"name\":\"Perch Developer Platform\",\"url\":\"https://docs.myperch.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/perch/aarm0-0z3T7Cpqsa/logo/light.svg?fit=max\u0026auto=format\u0026n=aarm0-0z3T7Cpqsa\u0026q=85\u0026s=9888bee08d7235bfc8b62134afbbcd38\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.myperch.io#website\",\"name\":\"Perch Developer Platform\",\"url\":\"https://docs.myperch.io\",\"publisher\":{\"@id\":\"https://docs.myperch.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.myperch.io/realtor-api/lead/create-lead-for-firm#webpage\",\"url\":\"https://docs.myperch.io/realtor-api/lead/create-lead-for-firm\",\"name\":\"Create Lead for Firm\",\"description\":\"Creates a record in the Lead table based on passed parameters and implicit access controls.\",\"dateModified\":\"2026-03-12T21:38:02.270Z\",\"isPartOf\":{\"@id\":\"https://docs.myperch.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.myperch.io/realtor-api/lead/create-lead-for-firm#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.myperch.io/realtor-api/lead/create-lead-for-firm#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Realtor API Reference\",\"item\":\"https://docs.myperch.io/realtor-api/lead/list-leads-for-firmmember\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lead\",\"item\":\"https://docs.myperch.io/realtor-api/lead/list-leads-for-firmmember\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create Lead for Firm\",\"item\":\"https://docs.myperch.io/realtor-api/lead/create-lead-for-firm\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.myperch.io/realtor-api/lead/create-lead-for-firm#apireference\",\"headline\":\"Create Lead for Firm\",\"name\":\"Create Lead for Firm\",\"description\":\"Creates a record in the Lead table based on passed parameters and implicit access controls.\",\"url\":\"https://docs.myperch.io/realtor-api/lead/create-lead-for-firm\",\"mainEntityOfPage\":{\"@id\":\"https://docs.myperch.io/realtor-api/lead/create-lead-for-firm#webpage\"},\"dateModified\":\"2026-03-12T21:38:02.270Z\",\"publisher\":{\"@id\":\"https://docs.myperch.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.myperch.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Perch Developer Platform\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Perch Developer Platform","nav":{"global":{},"tabs":[{"tab":"Get Started","pages":[{"title":"Get Started","href":""}]},{"tab":"Partner API","pages":[{"title":"Partner API","href":"/partner-api/workflows:-firm-member/workflowsfirm-member-realtor-find-or-create"}]},{"tab":"Realtor API","groups":[{"group":"Realtor API Reference","pages":[{"group":"Lead","pages":[{"title":"List Leads for FirmMember","deprecated":null,"version":null,"openapi":"https://perch-api-docs.s3.ca-central-1.amazonaws.com/perch-realtor.spec.json get /firmMembers/{id}/leads","href":"/realtor-api/lead/list-leads-for-firmmember"},{"title":"Create Lead for FirmMember","deprecated":null,"version":null,"openapi":"https://perch-api-docs.s3.ca-central-1.amazonaws.com/perch-realtor.spec.json post /firmMembers/{id}/leads","href":"/realtor-api/lead/create-lead-for-firmmember"},{"title":"List Leads for Firm","description":"Gets a list of records from the Lead table based on passed parameters and implicit access controls.","deprecated":null,"version":null,"openapi":"https://perch-api-docs.s3.ca-central-1.amazonaws.com/perch-realtor.spec.json get /firms/{id}/leads","href":"/realtor-api/lead/list-leads-for-firm"},{"title":"Create Lead for Firm","deprecated":null,"version":null,"openapi":"https://perch-api-docs.s3.ca-central-1.amazonaws.com/perch-realtor.spec.json post /firms/{id}/leads","href":"/realtor-api/lead/create-lead-for-firm"},{"title":"Read Lead","description":"Gets a record from the Lead table based on passed parameters and implicit access controls.","deprecated":null,"version":null,"openapi":"https://perch-api-docs.s3.ca-central-1.amazonaws.com/perch-realtor.spec.json get /leads/{id}","href":"/realtor-api/lead/read-lead"},{"title":"Delete Lead","deprecated":null,"version":null,"openapi":"https://perch-api-docs.s3.ca-central-1.amazonaws.com/perch-realtor.spec.json delete /leads/{id}","href":"/realtor-api/lead/delete-lead"},{"title":"Update Lead","deprecated":null,"version":null,"openapi":"https://perch-api-docs.s3.ca-central-1.amazonaws.com/perch-realtor.spec.json patch /leads/{id}","href":"/realtor-api/lead/update-lead"}]},{"group":"Plan","pages":[{"title":"List Plans for FirmMember","deprecated":null,"version":null,"openapi":"https://perch-api-docs.s3.ca-central-1.amazonaws.com/perch-realtor.spec.json get /firmMembers/{id}/plans","href":"/realtor-api/plan/list-plans-for-firmmember"},{"title":"Read Plan","deprecated":null,"version":null,"openapi":"https://perch-api-docs.s3.ca-central-1.amazonaws.com/perch-realtor.spec.json get /plans/{id}","href":"/realtor-api/plan/read-plan"}]}]}]}]},"title":"Create Lead for Firm - Perch Developer Platform","buildId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","deploymentId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-rfhihCWU.js","utils-BmH1XFxk.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BcNsxPKB.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BAES3tkd.js","snippetPresets-DCMQBKLP.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D6l_bzE9.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BOktbnNh.js","shallow-BCs8SgM7.js","getApiPlaygroundDisplay-DEmW5bJB.js","CodeSnippet-CpZOpB9C.js","CodeSnippets-BOBDqibl.js","Page-D5fEM6aW.js","getPastedJson-DH2JBvmr.js","icon-BBJH-kKh.js","MethodPill-D2Sd5NLC.js","DuplicateIcon-CGgfL2qN.js","createIcon-BKudBBzi.js","DynamicMarkdown-85clUA0i.js","SectionHeading-D0JiMgDx.js","axios-vUo_bRtp.js","Markdown-Cfiy0xZO.js","clsx-rL8ZCCw4.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-aeztFa9U.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BywkCr5C.js"]}