Creates a new loan for the specified business, or updates an existing one. If a loan with the same external_id already exists it is upserted: the loan fields are updated and, when proceeds is provided, its proceeds are reconciled by proceed external_id. A dedicated ledger account is created for new loans. The request shape depends on loan_type.
Loan proceeds. Optional. On create, sets the loan's initial proceeds. Because creating with an existing external_id upserts the loan, on a subsequent call this list is reconciled against the loan's existing proceeds by proceed external_id (matched proceeds are updated, existing proceeds that are absent or have no external_id are archived, and new entries are created). Omit the field or set it to null to leave the existing proceeds untouched. Individual proceeds can also be managed with the loan proceed endpoints.
A loan proceed: funds (or an asset) received from the loan.
Asset proceed
Disbursement proceed
Show child attributes
reported_balance
Reported loan balance · object | null
Asserts the loan's outstanding principal at a point in time; Layer derives the opening balance from it, anchored no earlier than the business's activation date. Send this only when you cannot send the loan's history back to its origination, and set at to the earliest date you can state the balance for. Omitting it later does not retract it; send reported_balance as null on an update to do that.
Show child attributes
memo
string | null
Internal note about the loan.
metadata
object | null
Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.
reference_number
string | null
Reference number for the loan.
Response
201 - application/json
Loan created successfully.
data
object
required
A loan held by a business. Each loan has a dedicated child ledger (liability) account.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Layer","colors":{"primary":"#5ba183","light":"#7e9be5","dark":"#5ba183"},"logo":{"light":"https://mintcdn.com/layerfinancialtechnologiesinc/vN7_-byPIlUr9WYu/logo/layer_logo.svg?fit=max\u0026auto=format\u0026n=vN7_-byPIlUr9WYu\u0026q=85\u0026s=731d805a8bf32985beb197f69ae937e6","dark":"https://mintcdn.com/layerfinancialtechnologiesinc/vN7_-byPIlUr9WYu/logo/layer_logo.svg?fit=max\u0026auto=format\u0026n=vN7_-byPIlUr9WYu\u0026q=85\u0026s=731d805a8bf32985beb197f69ae937e6","href":"http://layerfi.com"},"favicon":"https://mintcdn.com/layerfinancialtechnologiesinc/0_c_qPO4Af3kMlwQ/favicon.png?fit=max\u0026auto=format\u0026n=0_c_qPO4Af3kMlwQ\u0026q=85\u0026s=ec8ea64f9b358b7cf5fac926e2a06566","api":{"openapi":["openApiSpec.json"],"playground":{"display":"simple"},"mdx":{"auth":{"method":"bearer"},"server":"https://sandbox.layerfi.com"}},"appearance":{"default":"light","strict":true},"background":{"color":{"dark":"#090014"}},"navbar":{"links":[{"href":"https://dashboard.layerfi.com/sign-in","label":"Log in"}],"primary":{"type":"button","label":"Contact Sales","href":"https://www.layerfi.com/contact"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"layerfinancialtechnologiesinc","hasAudioNarration":false,"actualSubdomain":"layerfinancialtechnologiesinc","customDomains":["docs.layerfi.com"],"gitSource":{"type":"github","owner":"layer-fi","repo":"api-documentation","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af4abf25cc09d51b130bb12","clientVersion":"0.0.4142","searchFilterCounts":[{"language":"default","tag":"API Reference","count":381},{"language":"default","tag":"Financial Activity","count":261},{"language":"default","tag":"Businesses","count":66},{"language":"default","tag":"Accounts Receivable","count":64},{"language":"default","tag":"Accounts Payable","count":47},{"language":"default","tag":"Integrations","count":41},{"language":"default","tag":"Accounting Reports","count":41},{"language":"default","tag":"Bank Transactions","count":33},{"language":"default","tag":"Guides","count":32},{"language":"default","tag":"Embedded Components","count":31}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","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":"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":"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":"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":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","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":"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":"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":"turbopuffer-dual-write","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},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","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}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/v1/loans/create-loan","slug":"/api-reference/v1/loans/create-loan","pageMetadata":{"openapi":"post /v1/businesses/{businessId}/loans","title":"Create a loan","description":"Creates a new loan for the specified business, or updates an existing one. If a loan with the same `external_id` already exists it is upserted: the loan fields are updated and, when `proceeds` is provided, its proceeds are reconciled by proceed `external_id`. A dedicated ledger account is created for new loans. The request shape depends on `loan_type`.","href":"/api-reference/v1/loans/create-loan"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Creates a new loan for the specified business, or updates an existing one. If a loan with the same \", _jsx(_components.code, {\n children: \"external_id\"\n }), \" already exists it is upserted: the loan fields are updated and, when \", _jsx(_components.code, {\n children: \"proceeds\"\n }), \" is provided, its proceeds are reconciled by proceed \", _jsx(_components.code, {\n children: \"external_id\"\n }), \". A dedicated ledger account is created for new loans. The request shape depends on \", _jsx(_components.code, {\n children: \"loan_type\"\n }), \".\"]\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":{"openapi":"post /v1/businesses/{businessId}/loans","title":"Create a loan","description":"Creates a new loan for the specified business, or updates an existing one. If a loan with the same `external_id` already exists it is upserted: the loan fields are updated and, when `proceeds` is provided, its proceeds are reconciled by proceed `external_id`. A dedicated ledger account is created for new loans. The request shape depends on `loan_type`.","href":"/api-reference/v1/loans/create-loan"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/layerfinancialtechnologiesinc/9c1eae5d582125a5/scripts/validate-docs-links.js","/_mintlify/custom/layerfinancialtechnologiesinc/b18193903b896216/scripts/validate-local-images.js"],"openApiReferenceData":{"operation":{"tags":[],"summary":"Create a loan","description":"Creates a new loan for the specified business, or updates an existing one. If a loan with the same `external_id` already exists it is upserted: the loan fields are updated and, when `proceeds` is provided, its proceeds are reconciled by proceed `external_id`. A dedicated ledger account is created for new loans. The request shape depends on `loan_type`.","operationId":"business.loans.post","parameters":["8ed5d7cf-9724-45c9-937f-03ded418e2bc"],"requestBody":"3782196a-3a72-486c-b258-735e8d2d834f","responses":{"201":"f8603103-4468-4992-a252-1c594faa6486"},"method":"post","type":"path","servers":[],"security":["e54c0fa1-69c5-402b-9c68-94a3c1bc420b"],"path":"/v1/businesses/{businessId}/loans","baseUrlOptions":["https://sandbox.layerfi.com"],"title":"Create a loan","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"8ed5d7cf-9724-45c9-937f-03ded418e2bc":{"name":"businessId","in":"path","required":true,"description":"The UUID of the business.","schema":{"type":"string","format":"uuid","isRequired":true,"description":"The UUID of the business.","uniqueKey":"","typeLabel":"string\u003cuuid>"}}},"requestBody":{"description":"The loan to create.","required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","title":"Term loan","description":"Parameters for creating a loan. The shape depends on `loan_type`.","required":["loan_type","display_name","origination_date","original_principal"],"properties":{"loan_type":{"type":"string","enum":["TERM_LOAN"],"description":"Discriminator. Must be `TERM_LOAN`.","isRequired":true,"uniqueKey":"oneOf.0.loan_type","typeLabel":"enum\u003cstring>"},"display_name":{"type":"string","description":"Human-friendly name for the loan.","isRequired":true,"uniqueKey":"oneOf.0.display_name","typeLabel":"string"},"origination_date":{"type":"string","format":"date","description":"Date the loan was originated.","isRequired":true,"uniqueKey":"oneOf.0.origination_date","typeLabel":"string\u003cdate>"},"original_principal":{"type":"integer","format":"int64","description":"Original principal of the loan, in cents.","isRequired":true,"uniqueKey":"oneOf.0.original_principal","typeLabel":"integer\u003cint64>"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the loan in your system for linking purposes.","uniqueKey":"oneOf.0.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the loan in your system for linking purposes.","uniqueKey":"oneOf.0.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.external_id","typeLabel":"string | null"},"parent_ledger_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Parent ledger account under which the loan's dedicated liability account is created. Defaults to `NOTES_PAYABLE`.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"oneOf.0.parent_ledger_account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"oneOf.0.parent_ledger_account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"oneOf.0.parent_ledger_account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Parent ledger account under which the loan's dedicated liability account is created. Defaults to `NOTES_PAYABLE`.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"oneOf.0.parent_ledger_account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"oneOf.0.parent_ledger_account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"oneOf.0.parent_ledger_account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"oneOf.0.parent_ledger_account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.0.parent_ledger_account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"loan_term_months":{"oneOf":[{"type":"integer","format":"int32","description":"Term of the loan, in months.","uniqueKey":"oneOf.0.loan_term_months.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","format":"int32","description":"Term of the loan, in months.","uniqueKey":"oneOf.0.loan_term_months.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.loan_term_months","typeLabel":"integer\u003cint32> | null"},"proceeds":{"oneOf":[{"type":"array","items":{"oneOf":[{"type":"object","title":"Asset proceed","description":"A loan proceed: funds (or an asset) received from the loan.","required":["loan_proceed_type","amount","date","asset"],"properties":{"loan_proceed_type":{"type":"string","enum":["ASSET"],"description":"Discriminator. Must be `ASSET`.","isRequired":true,"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.loan_proceed_type","typeLabel":"enum\u003cstring>"},"amount":{"type":"integer","format":"int64","description":"Proceed amount, in cents.","isRequired":true,"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.amount","typeLabel":"integer\u003cint64>"},"date":{"type":"string","format":"date","description":"Date the proceed was received.","isRequired":true,"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.date","typeLabel":"string\u003cdate>"},"asset":{"oneOf":[{"type":"object","title":"Existing asset","description":"Reference to the asset funded by an `ASSET` proceed. Either link an existing asset by `id` or `external_id`, or create a new asset inline with `new_asset`.","properties":{"id":{"oneOf":[{"type":"string","format":"uuid","description":"ID of an existing asset to link to this proceed.","uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID of an existing asset to link to this proceed.","uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.id","typeLabel":"string\u003cuuid> | null"},"external_id":{"oneOf":[{"type":"string","description":"External ID of an existing asset to link to this proceed.","uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"External ID of an existing asset to link to this proceed.","uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.external_id","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0","typeLabel":"Existing asset · object"},{"type":"object","title":"New asset","description":"Reference to the asset funded by an `ASSET` proceed. Either link an existing asset by `id` or `external_id`, or create a new asset inline with `new_asset`.","required":["new_asset"],"properties":{"new_asset":{"type":"object","description":"Parameters for creating a fixed asset. Creates a dedicated ledger account for the asset under the parent account (defaults to Fixed Assets).","required":["name","asset_type"],"properties":{"name":{"type":"string","description":"Name of the asset.","isRequired":true,"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.name","typeLabel":"string"},"asset_type":{"type":"string","description":"The type of fixed asset.","enum":["RIGHT_OF_USE_ASSET","VEHICLE","EQUIPMENT","GOODWILL"],"example":"EQUIPMENT","isRequired":true,"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.asset_type","typeLabel":"enum\u003cstring>"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the asset in your system for linking purposes. Creating an asset with an `external_id` that already exists upserts the existing asset.","uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the asset in your system for linking purposes. Creating an asset with an `external_id` that already exists upserts the existing asset.","uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.external_id","typeLabel":"string | null"},"parent_ledger_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Parent ledger account under which the asset's dedicated account is created. Defaults to Fixed Assets.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Parent ledger account under which the asset's dedicated account is created. Defaults to Fixed Assets.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"accumulated_depreciation_account":{"oneOf":[{"type":"object","title":"Account ID","description":"Accumulated depreciation account for the asset. Required before recording `DEPRECIATION_AMORTIZATION` value updates.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Accumulated depreciation account for the asset. Required before recording `DEPRECIATION_AMORTIZATION` value updates.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account","typeLabel":"Account ID · object | Account Stable Name · object | null"},"original_value":{"oneOf":[{"type":"integer","format":"int64","description":"Original purchase value, in cents.","uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.original_value.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"Original purchase value, in cents.","uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.original_value.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.original_value","typeLabel":"integer\u003cint64> | null"},"salvage_value":{"oneOf":[{"type":"integer","format":"int64","description":"Estimated salvage (residual) value, in cents.","uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.salvage_value.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"Estimated salvage (residual) value, in cents.","uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.salvage_value.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.salvage_value","typeLabel":"integer\u003cint64> | null"},"useful_life_months":{"oneOf":[{"type":"integer","format":"int32","description":"Useful life of the asset, in months.","uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.useful_life_months.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","format":"int32","description":"Useful life of the asset, in months.","uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.useful_life_months.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.useful_life_months","typeLabel":"integer\u003cint32> | null"},"opening_balance":{"oneOf":[{"type":"object","description":"Opening balance for the asset, posted against Opening Balance Equity. Omit if the asset has no opening balance.","required":["balance","effective_at"],"properties":{"balance":{"type":"integer","format":"int64","description":"Opening balance, in cents. Must be positive.","isRequired":true,"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance.oneOf.0.balance","typeLabel":"integer\u003cint64>"},"effective_at":{"type":"string","format":"date-time","description":"When the opening balance takes effect. Clamped forward to the business's activation date, and rejected if later than the earliest recorded asset event.","isRequired":true,"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance.oneOf.0.effective_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance","typeLabel":"object | null"},"memo":{"oneOf":[{"type":"string","description":"Internal note about the asset.","uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Internal note about the asset.","uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Reference number for the asset.","uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Reference number for the asset.","uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.reference_number","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset","typeLabel":"object"}},"isRequired":true,"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1","typeLabel":"New asset · object"}],"isRequired":true,"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset","typeLabel":"Existing asset · object | New asset · object"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the proceed in your system for linking purposes.","uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the proceed in your system for linking purposes.","uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0.external_id","typeLabel":"string | null"}},"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"Asset proceed · object"},{"type":"object","title":"Disbursement proceed","description":"A loan proceed: funds (or an asset) received from the loan.","required":["loan_proceed_type","amount","date"],"properties":{"loan_proceed_type":{"type":"string","enum":["DISBURSEMENT"],"description":"Discriminator. Must be `DISBURSEMENT`.","isRequired":true,"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.1.loan_proceed_type","typeLabel":"enum\u003cstring>"},"amount":{"type":"integer","format":"int64","description":"Proceed amount, in cents.","isRequired":true,"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.1.amount","typeLabel":"integer\u003cint64>"},"date":{"type":"string","format":"date","description":"Date the proceed was received.","isRequired":true,"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.1.date","typeLabel":"string\u003cdate>"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the proceed in your system for linking purposes.","uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.1.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the proceed in your system for linking purposes.","uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.1.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.1.external_id","typeLabel":"string | null"},"method":{"type":"string","description":"Payment method used for the cash disbursement. Defaults to `OTHER`.","default":"OTHER","enum":["CASH","CHECK","CREDIT_CARD","ACH","CREDIT_BALANCE","OTHER"],"example":"ACH","uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.1.method","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"Disbursement proceed · object"}],"uniqueKey":"oneOf.0.proceeds.oneOf.0.items.[INDEX]","typeLabel":"Asset proceed · object | Disbursement proceed · object"},"description":"Loan proceeds. Optional. On create, sets the loan's initial proceeds. Because creating with an existing `external_id` upserts the loan, on a subsequent call this list is reconciled against the loan's existing proceeds by proceed `external_id` (matched proceeds are updated, existing proceeds that are absent or have no `external_id` are archived, and new entries are created). Omit the field or set it to `null` to leave the existing proceeds untouched. Individual proceeds can also be managed with the loan proceed endpoints.","uniqueKey":"oneOf.0.proceeds.oneOf.0","typeLabel":"(Asset proceed · object | Disbursement proceed · object)[]"},{"type":"null","items":{"oneOf":[{"type":"object","title":"Asset proceed","description":"A loan proceed: funds (or an asset) received from the loan.","required":["loan_proceed_type","amount","date","asset"],"properties":{"loan_proceed_type":{"type":"string","enum":["ASSET"],"description":"Discriminator. Must be `ASSET`."},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the proceed in your system for linking purposes."},{"type":"null","description":"Unique ID of the proceed in your system for linking purposes."}]},"amount":{"type":"integer","format":"int64","description":"Proceed amount, in cents."},"date":{"type":"string","format":"date","description":"Date the proceed was received."},"asset":{"oneOf":[{"type":"object","title":"Existing asset","description":"Reference to the asset funded by an `ASSET` proceed. Either link an existing asset by `id` or `external_id`, or create a new asset inline with `new_asset`.","properties":{"id":{"oneOf":[{"type":"string","format":"uuid","description":"ID of an existing asset to link to this proceed."},{"type":"null","format":"uuid","description":"ID of an existing asset to link to this proceed."}]},"external_id":{"oneOf":[{"type":"string","description":"External ID of an existing asset to link to this proceed."},{"type":"null","description":"External ID of an existing asset to link to this proceed."}]}}},{"type":"object","title":"New asset","description":"Reference to the asset funded by an `ASSET` proceed. Either link an existing asset by `id` or `external_id`, or create a new asset inline with `new_asset`.","required":["new_asset"],"properties":{"new_asset":{"type":"object","description":"Parameters for creating a fixed asset. Creates a dedicated ledger account for the asset under the parent account (defaults to Fixed Assets).","required":["name","asset_type"],"properties":{"name":{"type":"string","description":"Name of the asset."},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the asset in your system for linking purposes. Creating an asset with an `external_id` that already exists upserts the existing asset."},{"type":"null","description":"Unique ID of the asset in your system for linking purposes. Creating an asset with an `external_id` that already exists upserts the existing asset."}]},"asset_type":{"type":"string","description":"The type of fixed asset.","enum":["RIGHT_OF_USE_ASSET","VEHICLE","EQUIPMENT","GOODWILL"],"example":"EQUIPMENT"},"parent_ledger_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Parent ledger account under which the asset's dedicated account is created. Defaults to Fixed Assets.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Parent ledger account under which the asset's dedicated account is created. Defaults to Fixed Assets.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},{"type":"null"}]},"accumulated_depreciation_account":{"oneOf":[{"type":"object","title":"Account ID","description":"Accumulated depreciation account for the asset. Required before recording `DEPRECIATION_AMORTIZATION` value updates.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Accumulated depreciation account for the asset. Required before recording `DEPRECIATION_AMORTIZATION` value updates.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},{"type":"null"}]},"original_value":{"oneOf":[{"type":"integer","format":"int64","description":"Original purchase value, in cents."},{"type":"null","format":"int64","description":"Original purchase value, in cents."}]},"salvage_value":{"oneOf":[{"type":"integer","format":"int64","description":"Estimated salvage (residual) value, in cents."},{"type":"null","format":"int64","description":"Estimated salvage (residual) value, in cents."}]},"useful_life_months":{"oneOf":[{"type":"integer","format":"int32","description":"Useful life of the asset, in months."},{"type":"null","format":"int32","description":"Useful life of the asset, in months."}]},"opening_balance":{"oneOf":[{"type":"object","description":"Opening balance for the asset, posted against Opening Balance Equity. Omit if the asset has no opening balance.","required":["balance","effective_at"],"properties":{"balance":{"type":"integer","format":"int64","description":"Opening balance, in cents. Must be positive."},"effective_at":{"type":"string","format":"date-time","description":"When the opening balance takes effect. Clamped forward to the business's activation date, and rejected if later than the earliest recorded asset event."}}},{"type":"null"}]},"memo":{"oneOf":[{"type":"string","description":"Internal note about the asset."},{"type":"null","description":"Internal note about the asset."}]},"metadata":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged."},{"type":"null","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged."}]},"reference_number":{"oneOf":[{"type":"string","description":"Reference number for the asset."},{"type":"null","description":"Reference number for the asset."}]}}}}}]}}},{"type":"object","title":"Disbursement proceed","description":"A loan proceed: funds (or an asset) received from the loan.","required":["loan_proceed_type","amount","date"],"properties":{"loan_proceed_type":{"type":"string","enum":["DISBURSEMENT"],"description":"Discriminator. Must be `DISBURSEMENT`."},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the proceed in your system for linking purposes."},{"type":"null","description":"Unique ID of the proceed in your system for linking purposes."}]},"amount":{"type":"integer","format":"int64","description":"Proceed amount, in cents."},"date":{"type":"string","format":"date","description":"Date the proceed was received."},"method":{"type":"string","description":"Payment method used for the cash disbursement. Defaults to `OTHER`.","default":"OTHER","enum":["CASH","CHECK","CREDIT_CARD","ACH","CREDIT_BALANCE","OTHER"],"example":"ACH"}}}]},"description":"Loan proceeds. Optional. On create, sets the loan's initial proceeds. Because creating with an existing `external_id` upserts the loan, on a subsequent call this list is reconciled against the loan's existing proceeds by proceed `external_id` (matched proceeds are updated, existing proceeds that are absent or have no `external_id` are archived, and new entries are created). Omit the field or set it to `null` to leave the existing proceeds untouched. Individual proceeds can also be managed with the loan proceed endpoints.","uniqueKey":"oneOf.0.proceeds.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.proceeds","typeLabel":"(Asset proceed · object | Disbursement proceed · object)[] | null"},"reported_balance":{"oneOf":[{"type":"object","title":"Reported loan balance","description":"Asserts the loan's outstanding principal at a point in time; Layer derives the opening balance from it, anchored no earlier than the business's activation date. Send this only when you cannot send the loan's history back to its origination, and set `at` to the earliest date you can state the balance for. Omitting it later does not retract it; send `reported_balance` as `null` on an update to do that.","required":["balance","at"],"properties":{"balance":{"type":"integer","format":"int64","description":"Outstanding principal of the loan at `at`, in cents. Must not be negative.","isRequired":true,"uniqueKey":"oneOf.0.reported_balance.oneOf.0.balance","typeLabel":"integer\u003cint64>"},"at":{"type":"string","format":"date-time","description":"Point in time at which the loan's outstanding principal equaled `balance`.","isRequired":true,"uniqueKey":"oneOf.0.reported_balance.oneOf.0.at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"oneOf.0.reported_balance.oneOf.0","typeLabel":"Reported loan balance · object"},{"type":"null","uniqueKey":"oneOf.0.reported_balance.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.reported_balance","typeLabel":"Reported loan balance · object | null"},"memo":{"oneOf":[{"type":"string","description":"Internal note about the loan.","uniqueKey":"oneOf.0.memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Internal note about the loan.","uniqueKey":"oneOf.0.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"oneOf.0.metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"oneOf.0.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Reference number for the loan.","uniqueKey":"oneOf.0.reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Reference number for the loan.","uniqueKey":"oneOf.0.reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.reference_number","typeLabel":"string | null"}},"uniqueKey":"oneOf.0","typeLabel":"Term loan · object"},{"type":"object","title":"Merchant cash advance","description":"Parameters for creating a loan. The shape depends on `loan_type`.","required":["loan_type","display_name","origination_date","original_principal","fee_percentage"],"properties":{"loan_type":{"type":"string","enum":["MCA"],"description":"Discriminator. Must be `MCA`.","isRequired":true,"uniqueKey":"oneOf.1.loan_type","typeLabel":"enum\u003cstring>"},"display_name":{"type":"string","description":"Human-friendly name for the loan.","isRequired":true,"uniqueKey":"oneOf.1.display_name","typeLabel":"string"},"origination_date":{"type":"string","format":"date","description":"Date the loan was originated.","isRequired":true,"uniqueKey":"oneOf.1.origination_date","typeLabel":"string\u003cdate>"},"original_principal":{"type":"integer","format":"int64","description":"Original principal (advance amount), in cents.","isRequired":true,"uniqueKey":"oneOf.1.original_principal","typeLabel":"integer\u003cint64>"},"fee_percentage":{"type":"string","description":"Merchant cash advance fee, expressed as a percentage in a decimal string (for example, `\"15\"` for a 15% fee, or `\"15.5\"` for 15.5%).","isRequired":true,"uniqueKey":"oneOf.1.fee_percentage","typeLabel":"string"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the loan in your system for linking purposes.","uniqueKey":"oneOf.1.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the loan in your system for linking purposes.","uniqueKey":"oneOf.1.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.external_id","typeLabel":"string | null"},"parent_ledger_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Parent ledger account under which the loan's dedicated liability account is created. Defaults to `NOTES_PAYABLE`.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"oneOf.1.parent_ledger_account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"oneOf.1.parent_ledger_account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"oneOf.1.parent_ledger_account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Parent ledger account under which the loan's dedicated liability account is created. Defaults to `NOTES_PAYABLE`.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"oneOf.1.parent_ledger_account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"oneOf.1.parent_ledger_account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"oneOf.1.parent_ledger_account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"oneOf.1.parent_ledger_account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.1.parent_ledger_account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"proceeds":{"oneOf":[{"type":"array","items":{"oneOf":[{"type":"object","title":"Asset proceed","description":"A loan proceed: funds (or an asset) received from the loan.","required":["loan_proceed_type","amount","date","asset"],"properties":{"loan_proceed_type":{"type":"string","enum":["ASSET"],"description":"Discriminator. Must be `ASSET`.","isRequired":true,"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.loan_proceed_type","typeLabel":"enum\u003cstring>"},"amount":{"type":"integer","format":"int64","description":"Proceed amount, in cents.","isRequired":true,"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.amount","typeLabel":"integer\u003cint64>"},"date":{"type":"string","format":"date","description":"Date the proceed was received.","isRequired":true,"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.date","typeLabel":"string\u003cdate>"},"asset":{"oneOf":[{"type":"object","title":"Existing asset","description":"Reference to the asset funded by an `ASSET` proceed. Either link an existing asset by `id` or `external_id`, or create a new asset inline with `new_asset`.","properties":{"id":{"oneOf":[{"type":"string","format":"uuid","description":"ID of an existing asset to link to this proceed.","uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID of an existing asset to link to this proceed.","uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.id","typeLabel":"string\u003cuuid> | null"},"external_id":{"oneOf":[{"type":"string","description":"External ID of an existing asset to link to this proceed.","uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"External ID of an existing asset to link to this proceed.","uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.external_id","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0","typeLabel":"Existing asset · object"},{"type":"object","title":"New asset","description":"Reference to the asset funded by an `ASSET` proceed. Either link an existing asset by `id` or `external_id`, or create a new asset inline with `new_asset`.","required":["new_asset"],"properties":{"new_asset":{"type":"object","description":"Parameters for creating a fixed asset. Creates a dedicated ledger account for the asset under the parent account (defaults to Fixed Assets).","required":["name","asset_type"],"properties":{"name":{"type":"string","description":"Name of the asset.","isRequired":true,"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.name","typeLabel":"string"},"asset_type":{"type":"string","description":"The type of fixed asset.","enum":["RIGHT_OF_USE_ASSET","VEHICLE","EQUIPMENT","GOODWILL"],"example":"EQUIPMENT","isRequired":true,"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.asset_type","typeLabel":"enum\u003cstring>"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the asset in your system for linking purposes. Creating an asset with an `external_id` that already exists upserts the existing asset.","uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the asset in your system for linking purposes. Creating an asset with an `external_id` that already exists upserts the existing asset.","uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.external_id","typeLabel":"string | null"},"parent_ledger_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Parent ledger account under which the asset's dedicated account is created. Defaults to Fixed Assets.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Parent ledger account under which the asset's dedicated account is created. Defaults to Fixed Assets.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"accumulated_depreciation_account":{"oneOf":[{"type":"object","title":"Account ID","description":"Accumulated depreciation account for the asset. Required before recording `DEPRECIATION_AMORTIZATION` value updates.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Accumulated depreciation account for the asset. Required before recording `DEPRECIATION_AMORTIZATION` value updates.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account","typeLabel":"Account ID · object | Account Stable Name · object | null"},"original_value":{"oneOf":[{"type":"integer","format":"int64","description":"Original purchase value, in cents.","uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.original_value.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"Original purchase value, in cents.","uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.original_value.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.original_value","typeLabel":"integer\u003cint64> | null"},"salvage_value":{"oneOf":[{"type":"integer","format":"int64","description":"Estimated salvage (residual) value, in cents.","uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.salvage_value.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"Estimated salvage (residual) value, in cents.","uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.salvage_value.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.salvage_value","typeLabel":"integer\u003cint64> | null"},"useful_life_months":{"oneOf":[{"type":"integer","format":"int32","description":"Useful life of the asset, in months.","uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.useful_life_months.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","format":"int32","description":"Useful life of the asset, in months.","uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.useful_life_months.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.useful_life_months","typeLabel":"integer\u003cint32> | null"},"opening_balance":{"oneOf":[{"type":"object","description":"Opening balance for the asset, posted against Opening Balance Equity. Omit if the asset has no opening balance.","required":["balance","effective_at"],"properties":{"balance":{"type":"integer","format":"int64","description":"Opening balance, in cents. Must be positive.","isRequired":true,"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance.oneOf.0.balance","typeLabel":"integer\u003cint64>"},"effective_at":{"type":"string","format":"date-time","description":"When the opening balance takes effect. Clamped forward to the business's activation date, and rejected if later than the earliest recorded asset event.","isRequired":true,"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance.oneOf.0.effective_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance","typeLabel":"object | null"},"memo":{"oneOf":[{"type":"string","description":"Internal note about the asset.","uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Internal note about the asset.","uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Reference number for the asset.","uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Reference number for the asset.","uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.reference_number","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset","typeLabel":"object"}},"isRequired":true,"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1","typeLabel":"New asset · object"}],"isRequired":true,"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset","typeLabel":"Existing asset · object | New asset · object"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the proceed in your system for linking purposes.","uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the proceed in your system for linking purposes.","uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0.external_id","typeLabel":"string | null"}},"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"Asset proceed · object"},{"type":"object","title":"Disbursement proceed","description":"A loan proceed: funds (or an asset) received from the loan.","required":["loan_proceed_type","amount","date"],"properties":{"loan_proceed_type":{"type":"string","enum":["DISBURSEMENT"],"description":"Discriminator. Must be `DISBURSEMENT`.","isRequired":true,"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.1.loan_proceed_type","typeLabel":"enum\u003cstring>"},"amount":{"type":"integer","format":"int64","description":"Proceed amount, in cents.","isRequired":true,"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.1.amount","typeLabel":"integer\u003cint64>"},"date":{"type":"string","format":"date","description":"Date the proceed was received.","isRequired":true,"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.1.date","typeLabel":"string\u003cdate>"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the proceed in your system for linking purposes.","uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.1.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the proceed in your system for linking purposes.","uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.1.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.1.external_id","typeLabel":"string | null"},"method":{"type":"string","description":"Payment method used for the cash disbursement. Defaults to `OTHER`.","default":"OTHER","enum":["CASH","CHECK","CREDIT_CARD","ACH","CREDIT_BALANCE","OTHER"],"example":"ACH","uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.1.method","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"Disbursement proceed · object"}],"uniqueKey":"oneOf.1.proceeds.oneOf.0.items.[INDEX]","typeLabel":"Asset proceed · object | Disbursement proceed · object"},"description":"Loan proceeds. Optional. On create, sets the loan's initial proceeds. Because creating with an existing `external_id` upserts the loan, on a subsequent call this list is reconciled against the loan's existing proceeds by proceed `external_id` (matched proceeds are updated, existing proceeds that are absent or have no `external_id` are archived, and new entries are created). Omit the field or set it to `null` to leave the existing proceeds untouched. Individual proceeds can also be managed with the loan proceed endpoints.","uniqueKey":"oneOf.1.proceeds.oneOf.0","typeLabel":"(Asset proceed · object | Disbursement proceed · object)[]"},{"type":"null","items":{"oneOf":[{"type":"object","title":"Asset proceed","description":"A loan proceed: funds (or an asset) received from the loan.","required":["loan_proceed_type","amount","date","asset"],"properties":{"loan_proceed_type":{"type":"string","enum":["ASSET"],"description":"Discriminator. Must be `ASSET`."},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the proceed in your system for linking purposes."},{"type":"null","description":"Unique ID of the proceed in your system for linking purposes."}]},"amount":{"type":"integer","format":"int64","description":"Proceed amount, in cents."},"date":{"type":"string","format":"date","description":"Date the proceed was received."},"asset":{"oneOf":[{"type":"object","title":"Existing asset","description":"Reference to the asset funded by an `ASSET` proceed. Either link an existing asset by `id` or `external_id`, or create a new asset inline with `new_asset`.","properties":{"id":{"oneOf":[{"type":"string","format":"uuid","description":"ID of an existing asset to link to this proceed."},{"type":"null","format":"uuid","description":"ID of an existing asset to link to this proceed."}]},"external_id":{"oneOf":[{"type":"string","description":"External ID of an existing asset to link to this proceed."},{"type":"null","description":"External ID of an existing asset to link to this proceed."}]}}},{"type":"object","title":"New asset","description":"Reference to the asset funded by an `ASSET` proceed. Either link an existing asset by `id` or `external_id`, or create a new asset inline with `new_asset`.","required":["new_asset"],"properties":{"new_asset":{"type":"object","description":"Parameters for creating a fixed asset. Creates a dedicated ledger account for the asset under the parent account (defaults to Fixed Assets).","required":["name","asset_type"],"properties":{"name":{"type":"string","description":"Name of the asset."},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the asset in your system for linking purposes. Creating an asset with an `external_id` that already exists upserts the existing asset."},{"type":"null","description":"Unique ID of the asset in your system for linking purposes. Creating an asset with an `external_id` that already exists upserts the existing asset."}]},"asset_type":{"type":"string","description":"The type of fixed asset.","enum":["RIGHT_OF_USE_ASSET","VEHICLE","EQUIPMENT","GOODWILL"],"example":"EQUIPMENT"},"parent_ledger_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Parent ledger account under which the asset's dedicated account is created. Defaults to Fixed Assets.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Parent ledger account under which the asset's dedicated account is created. Defaults to Fixed Assets.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},{"type":"null"}]},"accumulated_depreciation_account":{"oneOf":[{"type":"object","title":"Account ID","description":"Accumulated depreciation account for the asset. Required before recording `DEPRECIATION_AMORTIZATION` value updates.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Accumulated depreciation account for the asset. Required before recording `DEPRECIATION_AMORTIZATION` value updates.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},{"type":"null"}]},"original_value":{"oneOf":[{"type":"integer","format":"int64","description":"Original purchase value, in cents."},{"type":"null","format":"int64","description":"Original purchase value, in cents."}]},"salvage_value":{"oneOf":[{"type":"integer","format":"int64","description":"Estimated salvage (residual) value, in cents."},{"type":"null","format":"int64","description":"Estimated salvage (residual) value, in cents."}]},"useful_life_months":{"oneOf":[{"type":"integer","format":"int32","description":"Useful life of the asset, in months."},{"type":"null","format":"int32","description":"Useful life of the asset, in months."}]},"opening_balance":{"oneOf":[{"type":"object","description":"Opening balance for the asset, posted against Opening Balance Equity. Omit if the asset has no opening balance.","required":["balance","effective_at"],"properties":{"balance":{"type":"integer","format":"int64","description":"Opening balance, in cents. Must be positive."},"effective_at":{"type":"string","format":"date-time","description":"When the opening balance takes effect. Clamped forward to the business's activation date, and rejected if later than the earliest recorded asset event."}}},{"type":"null"}]},"memo":{"oneOf":[{"type":"string","description":"Internal note about the asset."},{"type":"null","description":"Internal note about the asset."}]},"metadata":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged."},{"type":"null","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged."}]},"reference_number":{"oneOf":[{"type":"string","description":"Reference number for the asset."},{"type":"null","description":"Reference number for the asset."}]}}}}}]}}},{"type":"object","title":"Disbursement proceed","description":"A loan proceed: funds (or an asset) received from the loan.","required":["loan_proceed_type","amount","date"],"properties":{"loan_proceed_type":{"type":"string","enum":["DISBURSEMENT"],"description":"Discriminator. Must be `DISBURSEMENT`."},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the proceed in your system for linking purposes."},{"type":"null","description":"Unique ID of the proceed in your system for linking purposes."}]},"amount":{"type":"integer","format":"int64","description":"Proceed amount, in cents."},"date":{"type":"string","format":"date","description":"Date the proceed was received."},"method":{"type":"string","description":"Payment method used for the cash disbursement. Defaults to `OTHER`.","default":"OTHER","enum":["CASH","CHECK","CREDIT_CARD","ACH","CREDIT_BALANCE","OTHER"],"example":"ACH"}}}]},"description":"Loan proceeds. Optional. On create, sets the loan's initial proceeds. Because creating with an existing `external_id` upserts the loan, on a subsequent call this list is reconciled against the loan's existing proceeds by proceed `external_id` (matched proceeds are updated, existing proceeds that are absent or have no `external_id` are archived, and new entries are created). Omit the field or set it to `null` to leave the existing proceeds untouched. Individual proceeds can also be managed with the loan proceed endpoints.","uniqueKey":"oneOf.1.proceeds.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.proceeds","typeLabel":"(Asset proceed · object | Disbursement proceed · object)[] | null"},"reported_balance":{"oneOf":[{"type":"object","title":"Reported loan balance","description":"Asserts the loan's outstanding principal at a point in time; Layer derives the opening balance from it, anchored no earlier than the business's activation date. Send this only when you cannot send the loan's history back to its origination, and set `at` to the earliest date you can state the balance for. Omitting it later does not retract it; send `reported_balance` as `null` on an update to do that.","required":["balance","at"],"properties":{"balance":{"type":"integer","format":"int64","description":"Outstanding principal of the loan at `at`, in cents. Must not be negative.","isRequired":true,"uniqueKey":"oneOf.1.reported_balance.oneOf.0.balance","typeLabel":"integer\u003cint64>"},"at":{"type":"string","format":"date-time","description":"Point in time at which the loan's outstanding principal equaled `balance`.","isRequired":true,"uniqueKey":"oneOf.1.reported_balance.oneOf.0.at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"oneOf.1.reported_balance.oneOf.0","typeLabel":"Reported loan balance · object"},{"type":"null","uniqueKey":"oneOf.1.reported_balance.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.reported_balance","typeLabel":"Reported loan balance · object | null"},"memo":{"oneOf":[{"type":"string","description":"Internal note about the loan.","uniqueKey":"oneOf.1.memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Internal note about the loan.","uniqueKey":"oneOf.1.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"oneOf.1.metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"oneOf.1.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Reference number for the loan.","uniqueKey":"oneOf.1.reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Reference number for the loan.","uniqueKey":"oneOf.1.reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.reference_number","typeLabel":"string | null"}},"uniqueKey":"oneOf.1","typeLabel":"Merchant cash advance · object"},{"type":"object","title":"Flex loan","description":"Parameters for creating a loan. The shape depends on `loan_type`.","required":["loan_type","display_name","origination_date","original_principal","fee_percentage"],"properties":{"loan_type":{"type":"string","enum":["FLEX_LOAN"],"description":"Discriminator. Must be `FLEX_LOAN`.","isRequired":true,"uniqueKey":"oneOf.2.loan_type","typeLabel":"enum\u003cstring>"},"display_name":{"type":"string","description":"Human-friendly name for the loan.","isRequired":true,"uniqueKey":"oneOf.2.display_name","typeLabel":"string"},"origination_date":{"type":"string","format":"date","description":"Date the loan was originated.","isRequired":true,"uniqueKey":"oneOf.2.origination_date","typeLabel":"string\u003cdate>"},"original_principal":{"type":"integer","format":"int64","description":"Original principal (advance amount), in cents.","isRequired":true,"uniqueKey":"oneOf.2.original_principal","typeLabel":"integer\u003cint64>"},"fee_percentage":{"type":"string","description":"Fixed fee, expressed as a percentage in a decimal string (for example, `\"15\"` for a 15% fee).","isRequired":true,"uniqueKey":"oneOf.2.fee_percentage","typeLabel":"string"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the loan in your system for linking purposes.","uniqueKey":"oneOf.2.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the loan in your system for linking purposes.","uniqueKey":"oneOf.2.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.external_id","typeLabel":"string | null"},"parent_ledger_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Parent ledger account under which the loan's dedicated liability account is created. Defaults to `NOTES_PAYABLE`.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"oneOf.2.parent_ledger_account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"oneOf.2.parent_ledger_account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"oneOf.2.parent_ledger_account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Parent ledger account under which the loan's dedicated liability account is created. Defaults to `NOTES_PAYABLE`.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"oneOf.2.parent_ledger_account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"oneOf.2.parent_ledger_account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"oneOf.2.parent_ledger_account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"oneOf.2.parent_ledger_account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.2.parent_ledger_account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"proceeds":{"oneOf":[{"type":"array","items":{"oneOf":[{"type":"object","title":"Asset proceed","description":"A loan proceed: funds (or an asset) received from the loan.","required":["loan_proceed_type","amount","date","asset"],"properties":{"loan_proceed_type":{"type":"string","enum":["ASSET"],"description":"Discriminator. Must be `ASSET`.","isRequired":true,"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.loan_proceed_type","typeLabel":"enum\u003cstring>"},"amount":{"type":"integer","format":"int64","description":"Proceed amount, in cents.","isRequired":true,"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.amount","typeLabel":"integer\u003cint64>"},"date":{"type":"string","format":"date","description":"Date the proceed was received.","isRequired":true,"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.date","typeLabel":"string\u003cdate>"},"asset":{"oneOf":[{"type":"object","title":"Existing asset","description":"Reference to the asset funded by an `ASSET` proceed. Either link an existing asset by `id` or `external_id`, or create a new asset inline with `new_asset`.","properties":{"id":{"oneOf":[{"type":"string","format":"uuid","description":"ID of an existing asset to link to this proceed.","uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID of an existing asset to link to this proceed.","uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.id","typeLabel":"string\u003cuuid> | null"},"external_id":{"oneOf":[{"type":"string","description":"External ID of an existing asset to link to this proceed.","uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"External ID of an existing asset to link to this proceed.","uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.external_id","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0","typeLabel":"Existing asset · object"},{"type":"object","title":"New asset","description":"Reference to the asset funded by an `ASSET` proceed. Either link an existing asset by `id` or `external_id`, or create a new asset inline with `new_asset`.","required":["new_asset"],"properties":{"new_asset":{"type":"object","description":"Parameters for creating a fixed asset. Creates a dedicated ledger account for the asset under the parent account (defaults to Fixed Assets).","required":["name","asset_type"],"properties":{"name":{"type":"string","description":"Name of the asset.","isRequired":true,"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.name","typeLabel":"string"},"asset_type":{"type":"string","description":"The type of fixed asset.","enum":["RIGHT_OF_USE_ASSET","VEHICLE","EQUIPMENT","GOODWILL"],"example":"EQUIPMENT","isRequired":true,"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.asset_type","typeLabel":"enum\u003cstring>"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the asset in your system for linking purposes. Creating an asset with an `external_id` that already exists upserts the existing asset.","uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the asset in your system for linking purposes. Creating an asset with an `external_id` that already exists upserts the existing asset.","uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.external_id","typeLabel":"string | null"},"parent_ledger_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Parent ledger account under which the asset's dedicated account is created. Defaults to Fixed Assets.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Parent ledger account under which the asset's dedicated account is created. Defaults to Fixed Assets.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"accumulated_depreciation_account":{"oneOf":[{"type":"object","title":"Account ID","description":"Accumulated depreciation account for the asset. Required before recording `DEPRECIATION_AMORTIZATION` value updates.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Accumulated depreciation account for the asset. Required before recording `DEPRECIATION_AMORTIZATION` value updates.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account","typeLabel":"Account ID · object | Account Stable Name · object | null"},"original_value":{"oneOf":[{"type":"integer","format":"int64","description":"Original purchase value, in cents.","uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.original_value.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"Original purchase value, in cents.","uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.original_value.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.original_value","typeLabel":"integer\u003cint64> | null"},"salvage_value":{"oneOf":[{"type":"integer","format":"int64","description":"Estimated salvage (residual) value, in cents.","uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.salvage_value.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"Estimated salvage (residual) value, in cents.","uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.salvage_value.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.salvage_value","typeLabel":"integer\u003cint64> | null"},"useful_life_months":{"oneOf":[{"type":"integer","format":"int32","description":"Useful life of the asset, in months.","uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.useful_life_months.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","format":"int32","description":"Useful life of the asset, in months.","uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.useful_life_months.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.useful_life_months","typeLabel":"integer\u003cint32> | null"},"opening_balance":{"oneOf":[{"type":"object","description":"Opening balance for the asset, posted against Opening Balance Equity. Omit if the asset has no opening balance.","required":["balance","effective_at"],"properties":{"balance":{"type":"integer","format":"int64","description":"Opening balance, in cents. Must be positive.","isRequired":true,"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance.oneOf.0.balance","typeLabel":"integer\u003cint64>"},"effective_at":{"type":"string","format":"date-time","description":"When the opening balance takes effect. Clamped forward to the business's activation date, and rejected if later than the earliest recorded asset event.","isRequired":true,"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance.oneOf.0.effective_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance","typeLabel":"object | null"},"memo":{"oneOf":[{"type":"string","description":"Internal note about the asset.","uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Internal note about the asset.","uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Reference number for the asset.","uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Reference number for the asset.","uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.reference_number","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset","typeLabel":"object"}},"isRequired":true,"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1","typeLabel":"New asset · object"}],"isRequired":true,"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset","typeLabel":"Existing asset · object | New asset · object"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the proceed in your system for linking purposes.","uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the proceed in your system for linking purposes.","uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0.external_id","typeLabel":"string | null"}},"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"Asset proceed · object"},{"type":"object","title":"Disbursement proceed","description":"A loan proceed: funds (or an asset) received from the loan.","required":["loan_proceed_type","amount","date"],"properties":{"loan_proceed_type":{"type":"string","enum":["DISBURSEMENT"],"description":"Discriminator. Must be `DISBURSEMENT`.","isRequired":true,"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.1.loan_proceed_type","typeLabel":"enum\u003cstring>"},"amount":{"type":"integer","format":"int64","description":"Proceed amount, in cents.","isRequired":true,"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.1.amount","typeLabel":"integer\u003cint64>"},"date":{"type":"string","format":"date","description":"Date the proceed was received.","isRequired":true,"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.1.date","typeLabel":"string\u003cdate>"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the proceed in your system for linking purposes.","uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.1.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the proceed in your system for linking purposes.","uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.1.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.1.external_id","typeLabel":"string | null"},"method":{"type":"string","description":"Payment method used for the cash disbursement. Defaults to `OTHER`.","default":"OTHER","enum":["CASH","CHECK","CREDIT_CARD","ACH","CREDIT_BALANCE","OTHER"],"example":"ACH","uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.1.method","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"Disbursement proceed · object"}],"uniqueKey":"oneOf.2.proceeds.oneOf.0.items.[INDEX]","typeLabel":"Asset proceed · object | Disbursement proceed · object"},"description":"Loan proceeds. Optional. On create, sets the loan's initial proceeds. Because creating with an existing `external_id` upserts the loan, on a subsequent call this list is reconciled against the loan's existing proceeds by proceed `external_id` (matched proceeds are updated, existing proceeds that are absent or have no `external_id` are archived, and new entries are created). Omit the field or set it to `null` to leave the existing proceeds untouched. Individual proceeds can also be managed with the loan proceed endpoints.","uniqueKey":"oneOf.2.proceeds.oneOf.0","typeLabel":"(Asset proceed · object | Disbursement proceed · object)[]"},{"type":"null","items":{"oneOf":[{"type":"object","title":"Asset proceed","description":"A loan proceed: funds (or an asset) received from the loan.","required":["loan_proceed_type","amount","date","asset"],"properties":{"loan_proceed_type":{"type":"string","enum":["ASSET"],"description":"Discriminator. Must be `ASSET`."},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the proceed in your system for linking purposes."},{"type":"null","description":"Unique ID of the proceed in your system for linking purposes."}]},"amount":{"type":"integer","format":"int64","description":"Proceed amount, in cents."},"date":{"type":"string","format":"date","description":"Date the proceed was received."},"asset":{"oneOf":[{"type":"object","title":"Existing asset","description":"Reference to the asset funded by an `ASSET` proceed. Either link an existing asset by `id` or `external_id`, or create a new asset inline with `new_asset`.","properties":{"id":{"oneOf":[{"type":"string","format":"uuid","description":"ID of an existing asset to link to this proceed."},{"type":"null","format":"uuid","description":"ID of an existing asset to link to this proceed."}]},"external_id":{"oneOf":[{"type":"string","description":"External ID of an existing asset to link to this proceed."},{"type":"null","description":"External ID of an existing asset to link to this proceed."}]}}},{"type":"object","title":"New asset","description":"Reference to the asset funded by an `ASSET` proceed. Either link an existing asset by `id` or `external_id`, or create a new asset inline with `new_asset`.","required":["new_asset"],"properties":{"new_asset":{"type":"object","description":"Parameters for creating a fixed asset. Creates a dedicated ledger account for the asset under the parent account (defaults to Fixed Assets).","required":["name","asset_type"],"properties":{"name":{"type":"string","description":"Name of the asset."},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the asset in your system for linking purposes. Creating an asset with an `external_id` that already exists upserts the existing asset."},{"type":"null","description":"Unique ID of the asset in your system for linking purposes. Creating an asset with an `external_id` that already exists upserts the existing asset."}]},"asset_type":{"type":"string","description":"The type of fixed asset.","enum":["RIGHT_OF_USE_ASSET","VEHICLE","EQUIPMENT","GOODWILL"],"example":"EQUIPMENT"},"parent_ledger_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Parent ledger account under which the asset's dedicated account is created. Defaults to Fixed Assets.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Parent ledger account under which the asset's dedicated account is created. Defaults to Fixed Assets.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},{"type":"null"}]},"accumulated_depreciation_account":{"oneOf":[{"type":"object","title":"Account ID","description":"Accumulated depreciation account for the asset. Required before recording `DEPRECIATION_AMORTIZATION` value updates.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Accumulated depreciation account for the asset. Required before recording `DEPRECIATION_AMORTIZATION` value updates.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},{"type":"null"}]},"original_value":{"oneOf":[{"type":"integer","format":"int64","description":"Original purchase value, in cents."},{"type":"null","format":"int64","description":"Original purchase value, in cents."}]},"salvage_value":{"oneOf":[{"type":"integer","format":"int64","description":"Estimated salvage (residual) value, in cents."},{"type":"null","format":"int64","description":"Estimated salvage (residual) value, in cents."}]},"useful_life_months":{"oneOf":[{"type":"integer","format":"int32","description":"Useful life of the asset, in months."},{"type":"null","format":"int32","description":"Useful life of the asset, in months."}]},"opening_balance":{"oneOf":[{"type":"object","description":"Opening balance for the asset, posted against Opening Balance Equity. Omit if the asset has no opening balance.","required":["balance","effective_at"],"properties":{"balance":{"type":"integer","format":"int64","description":"Opening balance, in cents. Must be positive."},"effective_at":{"type":"string","format":"date-time","description":"When the opening balance takes effect. Clamped forward to the business's activation date, and rejected if later than the earliest recorded asset event."}}},{"type":"null"}]},"memo":{"oneOf":[{"type":"string","description":"Internal note about the asset."},{"type":"null","description":"Internal note about the asset."}]},"metadata":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged."},{"type":"null","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged."}]},"reference_number":{"oneOf":[{"type":"string","description":"Reference number for the asset."},{"type":"null","description":"Reference number for the asset."}]}}}}}]}}},{"type":"object","title":"Disbursement proceed","description":"A loan proceed: funds (or an asset) received from the loan.","required":["loan_proceed_type","amount","date"],"properties":{"loan_proceed_type":{"type":"string","enum":["DISBURSEMENT"],"description":"Discriminator. Must be `DISBURSEMENT`."},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the proceed in your system for linking purposes."},{"type":"null","description":"Unique ID of the proceed in your system for linking purposes."}]},"amount":{"type":"integer","format":"int64","description":"Proceed amount, in cents."},"date":{"type":"string","format":"date","description":"Date the proceed was received."},"method":{"type":"string","description":"Payment method used for the cash disbursement. Defaults to `OTHER`.","default":"OTHER","enum":["CASH","CHECK","CREDIT_CARD","ACH","CREDIT_BALANCE","OTHER"],"example":"ACH"}}}]},"description":"Loan proceeds. Optional. On create, sets the loan's initial proceeds. Because creating with an existing `external_id` upserts the loan, on a subsequent call this list is reconciled against the loan's existing proceeds by proceed `external_id` (matched proceeds are updated, existing proceeds that are absent or have no `external_id` are archived, and new entries are created). Omit the field or set it to `null` to leave the existing proceeds untouched. Individual proceeds can also be managed with the loan proceed endpoints.","uniqueKey":"oneOf.2.proceeds.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.proceeds","typeLabel":"(Asset proceed · object | Disbursement proceed · object)[] | null"},"reported_balance":{"oneOf":[{"type":"object","title":"Reported loan balance","description":"Asserts the loan's outstanding principal at a point in time; Layer derives the opening balance from it, anchored no earlier than the business's activation date. Send this only when you cannot send the loan's history back to its origination, and set `at` to the earliest date you can state the balance for. Omitting it later does not retract it; send `reported_balance` as `null` on an update to do that.","required":["balance","at"],"properties":{"balance":{"type":"integer","format":"int64","description":"Outstanding principal of the loan at `at`, in cents. Must not be negative.","isRequired":true,"uniqueKey":"oneOf.2.reported_balance.oneOf.0.balance","typeLabel":"integer\u003cint64>"},"at":{"type":"string","format":"date-time","description":"Point in time at which the loan's outstanding principal equaled `balance`.","isRequired":true,"uniqueKey":"oneOf.2.reported_balance.oneOf.0.at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"oneOf.2.reported_balance.oneOf.0","typeLabel":"Reported loan balance · object"},{"type":"null","uniqueKey":"oneOf.2.reported_balance.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.reported_balance","typeLabel":"Reported loan balance · object | null"},"memo":{"oneOf":[{"type":"string","description":"Internal note about the loan.","uniqueKey":"oneOf.2.memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Internal note about the loan.","uniqueKey":"oneOf.2.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"oneOf.2.metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"oneOf.2.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Reference number for the loan.","uniqueKey":"oneOf.2.reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Reference number for the loan.","uniqueKey":"oneOf.2.reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.reference_number","typeLabel":"string | null"}},"uniqueKey":"oneOf.2","typeLabel":"Flex loan · object"},{"type":"object","title":"Line of credit","description":"Parameters for creating a loan. The shape depends on `loan_type`.","required":["loan_type","display_name","origination_date","credit_limit"],"properties":{"loan_type":{"type":"string","enum":["LINE_OF_CREDIT"],"description":"Discriminator. Must be `LINE_OF_CREDIT`.","isRequired":true,"uniqueKey":"oneOf.3.loan_type","typeLabel":"enum\u003cstring>"},"display_name":{"type":"string","description":"Human-friendly name for the loan.","isRequired":true,"uniqueKey":"oneOf.3.display_name","typeLabel":"string"},"origination_date":{"type":"string","format":"date","description":"Date the loan was originated.","isRequired":true,"uniqueKey":"oneOf.3.origination_date","typeLabel":"string\u003cdate>"},"credit_limit":{"type":"integer","format":"int64","description":"Credit limit of the line of credit, in cents.","isRequired":true,"uniqueKey":"oneOf.3.credit_limit","typeLabel":"integer\u003cint64>"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the loan in your system for linking purposes.","uniqueKey":"oneOf.3.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the loan in your system for linking purposes.","uniqueKey":"oneOf.3.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.external_id","typeLabel":"string | null"},"parent_ledger_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Parent ledger account under which the loan's dedicated liability account is created. Defaults to `NOTES_PAYABLE`.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"oneOf.3.parent_ledger_account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"oneOf.3.parent_ledger_account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"oneOf.3.parent_ledger_account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Parent ledger account under which the loan's dedicated liability account is created. Defaults to `NOTES_PAYABLE`.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"oneOf.3.parent_ledger_account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"oneOf.3.parent_ledger_account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"oneOf.3.parent_ledger_account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"oneOf.3.parent_ledger_account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.3.parent_ledger_account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"proceeds":{"oneOf":[{"type":"array","items":{"oneOf":[{"type":"object","title":"Asset proceed","description":"A loan proceed: funds (or an asset) received from the loan.","required":["loan_proceed_type","amount","date","asset"],"properties":{"loan_proceed_type":{"type":"string","enum":["ASSET"],"description":"Discriminator. Must be `ASSET`.","isRequired":true,"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.loan_proceed_type","typeLabel":"enum\u003cstring>"},"amount":{"type":"integer","format":"int64","description":"Proceed amount, in cents.","isRequired":true,"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.amount","typeLabel":"integer\u003cint64>"},"date":{"type":"string","format":"date","description":"Date the proceed was received.","isRequired":true,"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.date","typeLabel":"string\u003cdate>"},"asset":{"oneOf":[{"type":"object","title":"Existing asset","description":"Reference to the asset funded by an `ASSET` proceed. Either link an existing asset by `id` or `external_id`, or create a new asset inline with `new_asset`.","properties":{"id":{"oneOf":[{"type":"string","format":"uuid","description":"ID of an existing asset to link to this proceed.","uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID of an existing asset to link to this proceed.","uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.id","typeLabel":"string\u003cuuid> | null"},"external_id":{"oneOf":[{"type":"string","description":"External ID of an existing asset to link to this proceed.","uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"External ID of an existing asset to link to this proceed.","uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.external_id","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0","typeLabel":"Existing asset · object"},{"type":"object","title":"New asset","description":"Reference to the asset funded by an `ASSET` proceed. Either link an existing asset by `id` or `external_id`, or create a new asset inline with `new_asset`.","required":["new_asset"],"properties":{"new_asset":{"type":"object","description":"Parameters for creating a fixed asset. Creates a dedicated ledger account for the asset under the parent account (defaults to Fixed Assets).","required":["name","asset_type"],"properties":{"name":{"type":"string","description":"Name of the asset.","isRequired":true,"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.name","typeLabel":"string"},"asset_type":{"type":"string","description":"The type of fixed asset.","enum":["RIGHT_OF_USE_ASSET","VEHICLE","EQUIPMENT","GOODWILL"],"example":"EQUIPMENT","isRequired":true,"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.asset_type","typeLabel":"enum\u003cstring>"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the asset in your system for linking purposes. Creating an asset with an `external_id` that already exists upserts the existing asset.","uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the asset in your system for linking purposes. Creating an asset with an `external_id` that already exists upserts the existing asset.","uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.external_id","typeLabel":"string | null"},"parent_ledger_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Parent ledger account under which the asset's dedicated account is created. Defaults to Fixed Assets.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Parent ledger account under which the asset's dedicated account is created. Defaults to Fixed Assets.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"accumulated_depreciation_account":{"oneOf":[{"type":"object","title":"Account ID","description":"Accumulated depreciation account for the asset. Required before recording `DEPRECIATION_AMORTIZATION` value updates.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Accumulated depreciation account for the asset. Required before recording `DEPRECIATION_AMORTIZATION` value updates.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account","typeLabel":"Account ID · object | Account Stable Name · object | null"},"original_value":{"oneOf":[{"type":"integer","format":"int64","description":"Original purchase value, in cents.","uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.original_value.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"Original purchase value, in cents.","uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.original_value.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.original_value","typeLabel":"integer\u003cint64> | null"},"salvage_value":{"oneOf":[{"type":"integer","format":"int64","description":"Estimated salvage (residual) value, in cents.","uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.salvage_value.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"Estimated salvage (residual) value, in cents.","uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.salvage_value.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.salvage_value","typeLabel":"integer\u003cint64> | null"},"useful_life_months":{"oneOf":[{"type":"integer","format":"int32","description":"Useful life of the asset, in months.","uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.useful_life_months.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","format":"int32","description":"Useful life of the asset, in months.","uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.useful_life_months.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.useful_life_months","typeLabel":"integer\u003cint32> | null"},"opening_balance":{"oneOf":[{"type":"object","description":"Opening balance for the asset, posted against Opening Balance Equity. Omit if the asset has no opening balance.","required":["balance","effective_at"],"properties":{"balance":{"type":"integer","format":"int64","description":"Opening balance, in cents. Must be positive.","isRequired":true,"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance.oneOf.0.balance","typeLabel":"integer\u003cint64>"},"effective_at":{"type":"string","format":"date-time","description":"When the opening balance takes effect. Clamped forward to the business's activation date, and rejected if later than the earliest recorded asset event.","isRequired":true,"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance.oneOf.0.effective_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance","typeLabel":"object | null"},"memo":{"oneOf":[{"type":"string","description":"Internal note about the asset.","uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Internal note about the asset.","uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Reference number for the asset.","uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Reference number for the asset.","uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.reference_number","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset","typeLabel":"object"}},"isRequired":true,"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1","typeLabel":"New asset · object"}],"isRequired":true,"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset","typeLabel":"Existing asset · object | New asset · object"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the proceed in your system for linking purposes.","uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the proceed in your system for linking purposes.","uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0.external_id","typeLabel":"string | null"}},"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"Asset proceed · object"},{"type":"object","title":"Disbursement proceed","description":"A loan proceed: funds (or an asset) received from the loan.","required":["loan_proceed_type","amount","date"],"properties":{"loan_proceed_type":{"type":"string","enum":["DISBURSEMENT"],"description":"Discriminator. Must be `DISBURSEMENT`.","isRequired":true,"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.1.loan_proceed_type","typeLabel":"enum\u003cstring>"},"amount":{"type":"integer","format":"int64","description":"Proceed amount, in cents.","isRequired":true,"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.1.amount","typeLabel":"integer\u003cint64>"},"date":{"type":"string","format":"date","description":"Date the proceed was received.","isRequired":true,"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.1.date","typeLabel":"string\u003cdate>"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the proceed in your system for linking purposes.","uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.1.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the proceed in your system for linking purposes.","uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.1.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.1.external_id","typeLabel":"string | null"},"method":{"type":"string","description":"Payment method used for the cash disbursement. Defaults to `OTHER`.","default":"OTHER","enum":["CASH","CHECK","CREDIT_CARD","ACH","CREDIT_BALANCE","OTHER"],"example":"ACH","uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.1.method","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"Disbursement proceed · object"}],"uniqueKey":"oneOf.3.proceeds.oneOf.0.items.[INDEX]","typeLabel":"Asset proceed · object | Disbursement proceed · object"},"description":"Loan proceeds. Optional. On create, sets the loan's initial proceeds. Because creating with an existing `external_id` upserts the loan, on a subsequent call this list is reconciled against the loan's existing proceeds by proceed `external_id` (matched proceeds are updated, existing proceeds that are absent or have no `external_id` are archived, and new entries are created). Omit the field or set it to `null` to leave the existing proceeds untouched. Individual proceeds can also be managed with the loan proceed endpoints.","uniqueKey":"oneOf.3.proceeds.oneOf.0","typeLabel":"(Asset proceed · object | Disbursement proceed · object)[]"},{"type":"null","items":{"oneOf":[{"type":"object","title":"Asset proceed","description":"A loan proceed: funds (or an asset) received from the loan.","required":["loan_proceed_type","amount","date","asset"],"properties":{"loan_proceed_type":{"type":"string","enum":["ASSET"],"description":"Discriminator. Must be `ASSET`."},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the proceed in your system for linking purposes."},{"type":"null","description":"Unique ID of the proceed in your system for linking purposes."}]},"amount":{"type":"integer","format":"int64","description":"Proceed amount, in cents."},"date":{"type":"string","format":"date","description":"Date the proceed was received."},"asset":{"oneOf":[{"type":"object","title":"Existing asset","description":"Reference to the asset funded by an `ASSET` proceed. Either link an existing asset by `id` or `external_id`, or create a new asset inline with `new_asset`.","properties":{"id":{"oneOf":[{"type":"string","format":"uuid","description":"ID of an existing asset to link to this proceed."},{"type":"null","format":"uuid","description":"ID of an existing asset to link to this proceed."}]},"external_id":{"oneOf":[{"type":"string","description":"External ID of an existing asset to link to this proceed."},{"type":"null","description":"External ID of an existing asset to link to this proceed."}]}}},{"type":"object","title":"New asset","description":"Reference to the asset funded by an `ASSET` proceed. Either link an existing asset by `id` or `external_id`, or create a new asset inline with `new_asset`.","required":["new_asset"],"properties":{"new_asset":{"type":"object","description":"Parameters for creating a fixed asset. Creates a dedicated ledger account for the asset under the parent account (defaults to Fixed Assets).","required":["name","asset_type"],"properties":{"name":{"type":"string","description":"Name of the asset."},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the asset in your system for linking purposes. Creating an asset with an `external_id` that already exists upserts the existing asset."},{"type":"null","description":"Unique ID of the asset in your system for linking purposes. Creating an asset with an `external_id` that already exists upserts the existing asset."}]},"asset_type":{"type":"string","description":"The type of fixed asset.","enum":["RIGHT_OF_USE_ASSET","VEHICLE","EQUIPMENT","GOODWILL"],"example":"EQUIPMENT"},"parent_ledger_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Parent ledger account under which the asset's dedicated account is created. Defaults to Fixed Assets.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Parent ledger account under which the asset's dedicated account is created. Defaults to Fixed Assets.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},{"type":"null"}]},"accumulated_depreciation_account":{"oneOf":[{"type":"object","title":"Account ID","description":"Accumulated depreciation account for the asset. Required before recording `DEPRECIATION_AMORTIZATION` value updates.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Accumulated depreciation account for the asset. Required before recording `DEPRECIATION_AMORTIZATION` value updates.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},{"type":"null"}]},"original_value":{"oneOf":[{"type":"integer","format":"int64","description":"Original purchase value, in cents."},{"type":"null","format":"int64","description":"Original purchase value, in cents."}]},"salvage_value":{"oneOf":[{"type":"integer","format":"int64","description":"Estimated salvage (residual) value, in cents."},{"type":"null","format":"int64","description":"Estimated salvage (residual) value, in cents."}]},"useful_life_months":{"oneOf":[{"type":"integer","format":"int32","description":"Useful life of the asset, in months."},{"type":"null","format":"int32","description":"Useful life of the asset, in months."}]},"opening_balance":{"oneOf":[{"type":"object","description":"Opening balance for the asset, posted against Opening Balance Equity. Omit if the asset has no opening balance.","required":["balance","effective_at"],"properties":{"balance":{"type":"integer","format":"int64","description":"Opening balance, in cents. Must be positive."},"effective_at":{"type":"string","format":"date-time","description":"When the opening balance takes effect. Clamped forward to the business's activation date, and rejected if later than the earliest recorded asset event."}}},{"type":"null"}]},"memo":{"oneOf":[{"type":"string","description":"Internal note about the asset."},{"type":"null","description":"Internal note about the asset."}]},"metadata":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged."},{"type":"null","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged."}]},"reference_number":{"oneOf":[{"type":"string","description":"Reference number for the asset."},{"type":"null","description":"Reference number for the asset."}]}}}}}]}}},{"type":"object","title":"Disbursement proceed","description":"A loan proceed: funds (or an asset) received from the loan.","required":["loan_proceed_type","amount","date"],"properties":{"loan_proceed_type":{"type":"string","enum":["DISBURSEMENT"],"description":"Discriminator. Must be `DISBURSEMENT`."},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the proceed in your system for linking purposes."},{"type":"null","description":"Unique ID of the proceed in your system for linking purposes."}]},"amount":{"type":"integer","format":"int64","description":"Proceed amount, in cents."},"date":{"type":"string","format":"date","description":"Date the proceed was received."},"method":{"type":"string","description":"Payment method used for the cash disbursement. Defaults to `OTHER`.","default":"OTHER","enum":["CASH","CHECK","CREDIT_CARD","ACH","CREDIT_BALANCE","OTHER"],"example":"ACH"}}}]},"description":"Loan proceeds. Optional. On create, sets the loan's initial proceeds. Because creating with an existing `external_id` upserts the loan, on a subsequent call this list is reconciled against the loan's existing proceeds by proceed `external_id` (matched proceeds are updated, existing proceeds that are absent or have no `external_id` are archived, and new entries are created). Omit the field or set it to `null` to leave the existing proceeds untouched. Individual proceeds can also be managed with the loan proceed endpoints.","uniqueKey":"oneOf.3.proceeds.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.proceeds","typeLabel":"(Asset proceed · object | Disbursement proceed · object)[] | null"},"reported_balance":{"oneOf":[{"type":"object","title":"Reported loan balance","description":"Asserts the loan's outstanding principal at a point in time; Layer derives the opening balance from it, anchored no earlier than the business's activation date. Send this only when you cannot send the loan's history back to its origination, and set `at` to the earliest date you can state the balance for. Omitting it later does not retract it; send `reported_balance` as `null` on an update to do that.","required":["balance","at"],"properties":{"balance":{"type":"integer","format":"int64","description":"Outstanding principal of the loan at `at`, in cents. Must not be negative.","isRequired":true,"uniqueKey":"oneOf.3.reported_balance.oneOf.0.balance","typeLabel":"integer\u003cint64>"},"at":{"type":"string","format":"date-time","description":"Point in time at which the loan's outstanding principal equaled `balance`.","isRequired":true,"uniqueKey":"oneOf.3.reported_balance.oneOf.0.at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"oneOf.3.reported_balance.oneOf.0","typeLabel":"Reported loan balance · object"},{"type":"null","uniqueKey":"oneOf.3.reported_balance.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.reported_balance","typeLabel":"Reported loan balance · object | null"},"memo":{"oneOf":[{"type":"string","description":"Internal note about the loan.","uniqueKey":"oneOf.3.memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Internal note about the loan.","uniqueKey":"oneOf.3.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"oneOf.3.metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"oneOf.3.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Reference number for the loan.","uniqueKey":"oneOf.3.reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Reference number for the loan.","uniqueKey":"oneOf.3.reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.3.reference_number","typeLabel":"string | null"}},"uniqueKey":"oneOf.3","typeLabel":"Line of credit · object"},{"type":"object","title":"Lease","description":"Parameters for creating a loan. The shape depends on `loan_type`.","required":["loan_type","display_name","origination_date","original_principal","loan_term_months"],"properties":{"loan_type":{"type":"string","enum":["LEASE"],"description":"Discriminator. Must be `LEASE`.","isRequired":true,"uniqueKey":"oneOf.4.loan_type","typeLabel":"enum\u003cstring>"},"display_name":{"type":"string","description":"Human-friendly name for the loan.","isRequired":true,"uniqueKey":"oneOf.4.display_name","typeLabel":"string"},"origination_date":{"type":"string","format":"date","description":"Date the loan was originated.","isRequired":true,"uniqueKey":"oneOf.4.origination_date","typeLabel":"string\u003cdate>"},"original_principal":{"type":"integer","format":"int64","description":"Original principal of the lease, in cents.","isRequired":true,"uniqueKey":"oneOf.4.original_principal","typeLabel":"integer\u003cint64>"},"loan_term_months":{"type":"integer","format":"int32","description":"Term of the lease, in months.","isRequired":true,"uniqueKey":"oneOf.4.loan_term_months","typeLabel":"integer\u003cint32>"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the loan in your system for linking purposes.","uniqueKey":"oneOf.4.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the loan in your system for linking purposes.","uniqueKey":"oneOf.4.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.external_id","typeLabel":"string | null"},"parent_ledger_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Parent ledger account under which the loan's dedicated liability account is created. Defaults to `NOTES_PAYABLE`.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"oneOf.4.parent_ledger_account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"oneOf.4.parent_ledger_account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"oneOf.4.parent_ledger_account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Parent ledger account under which the loan's dedicated liability account is created. Defaults to `NOTES_PAYABLE`.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"oneOf.4.parent_ledger_account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"oneOf.4.parent_ledger_account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"oneOf.4.parent_ledger_account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"oneOf.4.parent_ledger_account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.4.parent_ledger_account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"proceeds":{"oneOf":[{"type":"array","items":{"oneOf":[{"type":"object","title":"Asset proceed","description":"A loan proceed: funds (or an asset) received from the loan.","required":["loan_proceed_type","amount","date","asset"],"properties":{"loan_proceed_type":{"type":"string","enum":["ASSET"],"description":"Discriminator. Must be `ASSET`.","isRequired":true,"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.loan_proceed_type","typeLabel":"enum\u003cstring>"},"amount":{"type":"integer","format":"int64","description":"Proceed amount, in cents.","isRequired":true,"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.amount","typeLabel":"integer\u003cint64>"},"date":{"type":"string","format":"date","description":"Date the proceed was received.","isRequired":true,"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.date","typeLabel":"string\u003cdate>"},"asset":{"oneOf":[{"type":"object","title":"Existing asset","description":"Reference to the asset funded by an `ASSET` proceed. Either link an existing asset by `id` or `external_id`, or create a new asset inline with `new_asset`.","properties":{"id":{"oneOf":[{"type":"string","format":"uuid","description":"ID of an existing asset to link to this proceed.","uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID of an existing asset to link to this proceed.","uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.id","typeLabel":"string\u003cuuid> | null"},"external_id":{"oneOf":[{"type":"string","description":"External ID of an existing asset to link to this proceed.","uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"External ID of an existing asset to link to this proceed.","uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.external_id","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0","typeLabel":"Existing asset · object"},{"type":"object","title":"New asset","description":"Reference to the asset funded by an `ASSET` proceed. Either link an existing asset by `id` or `external_id`, or create a new asset inline with `new_asset`.","required":["new_asset"],"properties":{"new_asset":{"type":"object","description":"Parameters for creating a fixed asset. Creates a dedicated ledger account for the asset under the parent account (defaults to Fixed Assets).","required":["name","asset_type"],"properties":{"name":{"type":"string","description":"Name of the asset.","isRequired":true,"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.name","typeLabel":"string"},"asset_type":{"type":"string","description":"The type of fixed asset.","enum":["RIGHT_OF_USE_ASSET","VEHICLE","EQUIPMENT","GOODWILL"],"example":"EQUIPMENT","isRequired":true,"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.asset_type","typeLabel":"enum\u003cstring>"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the asset in your system for linking purposes. Creating an asset with an `external_id` that already exists upserts the existing asset.","uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the asset in your system for linking purposes. Creating an asset with an `external_id` that already exists upserts the existing asset.","uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.external_id","typeLabel":"string | null"},"parent_ledger_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Parent ledger account under which the asset's dedicated account is created. Defaults to Fixed Assets.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Parent ledger account under which the asset's dedicated account is created. Defaults to Fixed Assets.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"accumulated_depreciation_account":{"oneOf":[{"type":"object","title":"Account ID","description":"Accumulated depreciation account for the asset. Required before recording `DEPRECIATION_AMORTIZATION` value updates.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Accumulated depreciation account for the asset. Required before recording `DEPRECIATION_AMORTIZATION` value updates.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account","typeLabel":"Account ID · object | Account Stable Name · object | null"},"original_value":{"oneOf":[{"type":"integer","format":"int64","description":"Original purchase value, in cents.","uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.original_value.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"Original purchase value, in cents.","uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.original_value.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.original_value","typeLabel":"integer\u003cint64> | null"},"salvage_value":{"oneOf":[{"type":"integer","format":"int64","description":"Estimated salvage (residual) value, in cents.","uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.salvage_value.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"Estimated salvage (residual) value, in cents.","uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.salvage_value.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.salvage_value","typeLabel":"integer\u003cint64> | null"},"useful_life_months":{"oneOf":[{"type":"integer","format":"int32","description":"Useful life of the asset, in months.","uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.useful_life_months.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","format":"int32","description":"Useful life of the asset, in months.","uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.useful_life_months.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.useful_life_months","typeLabel":"integer\u003cint32> | null"},"opening_balance":{"oneOf":[{"type":"object","description":"Opening balance for the asset, posted against Opening Balance Equity. Omit if the asset has no opening balance.","required":["balance","effective_at"],"properties":{"balance":{"type":"integer","format":"int64","description":"Opening balance, in cents. Must be positive.","isRequired":true,"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance.oneOf.0.balance","typeLabel":"integer\u003cint64>"},"effective_at":{"type":"string","format":"date-time","description":"When the opening balance takes effect. Clamped forward to the business's activation date, and rejected if later than the earliest recorded asset event.","isRequired":true,"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance.oneOf.0.effective_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance","typeLabel":"object | null"},"memo":{"oneOf":[{"type":"string","description":"Internal note about the asset.","uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Internal note about the asset.","uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Reference number for the asset.","uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Reference number for the asset.","uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.reference_number","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset","typeLabel":"object"}},"isRequired":true,"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1","typeLabel":"New asset · object"}],"isRequired":true,"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset","typeLabel":"Existing asset · object | New asset · object"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the proceed in your system for linking purposes.","uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the proceed in your system for linking purposes.","uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0.external_id","typeLabel":"string | null"}},"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"Asset proceed · object"},{"type":"object","title":"Disbursement proceed","description":"A loan proceed: funds (or an asset) received from the loan.","required":["loan_proceed_type","amount","date"],"properties":{"loan_proceed_type":{"type":"string","enum":["DISBURSEMENT"],"description":"Discriminator. Must be `DISBURSEMENT`.","isRequired":true,"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.1.loan_proceed_type","typeLabel":"enum\u003cstring>"},"amount":{"type":"integer","format":"int64","description":"Proceed amount, in cents.","isRequired":true,"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.1.amount","typeLabel":"integer\u003cint64>"},"date":{"type":"string","format":"date","description":"Date the proceed was received.","isRequired":true,"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.1.date","typeLabel":"string\u003cdate>"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the proceed in your system for linking purposes.","uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.1.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the proceed in your system for linking purposes.","uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.1.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.1.external_id","typeLabel":"string | null"},"method":{"type":"string","description":"Payment method used for the cash disbursement. Defaults to `OTHER`.","default":"OTHER","enum":["CASH","CHECK","CREDIT_CARD","ACH","CREDIT_BALANCE","OTHER"],"example":"ACH","uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.1.method","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"Disbursement proceed · object"}],"uniqueKey":"oneOf.4.proceeds.oneOf.0.items.[INDEX]","typeLabel":"Asset proceed · object | Disbursement proceed · object"},"description":"Loan proceeds. Optional. On create, sets the loan's initial proceeds. Because creating with an existing `external_id` upserts the loan, on a subsequent call this list is reconciled against the loan's existing proceeds by proceed `external_id` (matched proceeds are updated, existing proceeds that are absent or have no `external_id` are archived, and new entries are created). Omit the field or set it to `null` to leave the existing proceeds untouched. Individual proceeds can also be managed with the loan proceed endpoints.","uniqueKey":"oneOf.4.proceeds.oneOf.0","typeLabel":"(Asset proceed · object | Disbursement proceed · object)[]"},{"type":"null","items":{"oneOf":[{"type":"object","title":"Asset proceed","description":"A loan proceed: funds (or an asset) received from the loan.","required":["loan_proceed_type","amount","date","asset"],"properties":{"loan_proceed_type":{"type":"string","enum":["ASSET"],"description":"Discriminator. Must be `ASSET`."},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the proceed in your system for linking purposes."},{"type":"null","description":"Unique ID of the proceed in your system for linking purposes."}]},"amount":{"type":"integer","format":"int64","description":"Proceed amount, in cents."},"date":{"type":"string","format":"date","description":"Date the proceed was received."},"asset":{"oneOf":[{"type":"object","title":"Existing asset","description":"Reference to the asset funded by an `ASSET` proceed. Either link an existing asset by `id` or `external_id`, or create a new asset inline with `new_asset`.","properties":{"id":{"oneOf":[{"type":"string","format":"uuid","description":"ID of an existing asset to link to this proceed."},{"type":"null","format":"uuid","description":"ID of an existing asset to link to this proceed."}]},"external_id":{"oneOf":[{"type":"string","description":"External ID of an existing asset to link to this proceed."},{"type":"null","description":"External ID of an existing asset to link to this proceed."}]}}},{"type":"object","title":"New asset","description":"Reference to the asset funded by an `ASSET` proceed. Either link an existing asset by `id` or `external_id`, or create a new asset inline with `new_asset`.","required":["new_asset"],"properties":{"new_asset":{"type":"object","description":"Parameters for creating a fixed asset. Creates a dedicated ledger account for the asset under the parent account (defaults to Fixed Assets).","required":["name","asset_type"],"properties":{"name":{"type":"string","description":"Name of the asset."},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the asset in your system for linking purposes. Creating an asset with an `external_id` that already exists upserts the existing asset."},{"type":"null","description":"Unique ID of the asset in your system for linking purposes. Creating an asset with an `external_id` that already exists upserts the existing asset."}]},"asset_type":{"type":"string","description":"The type of fixed asset.","enum":["RIGHT_OF_USE_ASSET","VEHICLE","EQUIPMENT","GOODWILL"],"example":"EQUIPMENT"},"parent_ledger_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Parent ledger account under which the asset's dedicated account is created. Defaults to Fixed Assets.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Parent ledger account under which the asset's dedicated account is created. Defaults to Fixed Assets.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},{"type":"null"}]},"accumulated_depreciation_account":{"oneOf":[{"type":"object","title":"Account ID","description":"Accumulated depreciation account for the asset. Required before recording `DEPRECIATION_AMORTIZATION` value updates.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Accumulated depreciation account for the asset. Required before recording `DEPRECIATION_AMORTIZATION` value updates.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},{"type":"null"}]},"original_value":{"oneOf":[{"type":"integer","format":"int64","description":"Original purchase value, in cents."},{"type":"null","format":"int64","description":"Original purchase value, in cents."}]},"salvage_value":{"oneOf":[{"type":"integer","format":"int64","description":"Estimated salvage (residual) value, in cents."},{"type":"null","format":"int64","description":"Estimated salvage (residual) value, in cents."}]},"useful_life_months":{"oneOf":[{"type":"integer","format":"int32","description":"Useful life of the asset, in months."},{"type":"null","format":"int32","description":"Useful life of the asset, in months."}]},"opening_balance":{"oneOf":[{"type":"object","description":"Opening balance for the asset, posted against Opening Balance Equity. Omit if the asset has no opening balance.","required":["balance","effective_at"],"properties":{"balance":{"type":"integer","format":"int64","description":"Opening balance, in cents. Must be positive."},"effective_at":{"type":"string","format":"date-time","description":"When the opening balance takes effect. Clamped forward to the business's activation date, and rejected if later than the earliest recorded asset event."}}},{"type":"null"}]},"memo":{"oneOf":[{"type":"string","description":"Internal note about the asset."},{"type":"null","description":"Internal note about the asset."}]},"metadata":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged."},{"type":"null","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged."}]},"reference_number":{"oneOf":[{"type":"string","description":"Reference number for the asset."},{"type":"null","description":"Reference number for the asset."}]}}}}}]}}},{"type":"object","title":"Disbursement proceed","description":"A loan proceed: funds (or an asset) received from the loan.","required":["loan_proceed_type","amount","date"],"properties":{"loan_proceed_type":{"type":"string","enum":["DISBURSEMENT"],"description":"Discriminator. Must be `DISBURSEMENT`."},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the proceed in your system for linking purposes."},{"type":"null","description":"Unique ID of the proceed in your system for linking purposes."}]},"amount":{"type":"integer","format":"int64","description":"Proceed amount, in cents."},"date":{"type":"string","format":"date","description":"Date the proceed was received."},"method":{"type":"string","description":"Payment method used for the cash disbursement. Defaults to `OTHER`.","default":"OTHER","enum":["CASH","CHECK","CREDIT_CARD","ACH","CREDIT_BALANCE","OTHER"],"example":"ACH"}}}]},"description":"Loan proceeds. Optional. On create, sets the loan's initial proceeds. Because creating with an existing `external_id` upserts the loan, on a subsequent call this list is reconciled against the loan's existing proceeds by proceed `external_id` (matched proceeds are updated, existing proceeds that are absent or have no `external_id` are archived, and new entries are created). Omit the field or set it to `null` to leave the existing proceeds untouched. Individual proceeds can also be managed with the loan proceed endpoints.","uniqueKey":"oneOf.4.proceeds.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.proceeds","typeLabel":"(Asset proceed · object | Disbursement proceed · object)[] | null"},"reported_balance":{"oneOf":[{"type":"object","title":"Reported loan balance","description":"Asserts the loan's outstanding principal at a point in time; Layer derives the opening balance from it, anchored no earlier than the business's activation date. Send this only when you cannot send the loan's history back to its origination, and set `at` to the earliest date you can state the balance for. Omitting it later does not retract it; send `reported_balance` as `null` on an update to do that.","required":["balance","at"],"properties":{"balance":{"type":"integer","format":"int64","description":"Outstanding principal of the loan at `at`, in cents. Must not be negative.","isRequired":true,"uniqueKey":"oneOf.4.reported_balance.oneOf.0.balance","typeLabel":"integer\u003cint64>"},"at":{"type":"string","format":"date-time","description":"Point in time at which the loan's outstanding principal equaled `balance`.","isRequired":true,"uniqueKey":"oneOf.4.reported_balance.oneOf.0.at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"oneOf.4.reported_balance.oneOf.0","typeLabel":"Reported loan balance · object"},{"type":"null","uniqueKey":"oneOf.4.reported_balance.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.reported_balance","typeLabel":"Reported loan balance · object | null"},"memo":{"oneOf":[{"type":"string","description":"Internal note about the loan.","uniqueKey":"oneOf.4.memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Internal note about the loan.","uniqueKey":"oneOf.4.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"oneOf.4.metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"oneOf.4.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Reference number for the loan.","uniqueKey":"oneOf.4.reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Reference number for the loan.","uniqueKey":"oneOf.4.reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.4.reference_number","typeLabel":"string | null"}},"uniqueKey":"oneOf.4","typeLabel":"Lease · object"},{"type":"object","title":"Equipment financing","description":"Parameters for creating a loan. The shape depends on `loan_type`.","required":["loan_type","display_name","origination_date","original_principal","loan_term_months"],"properties":{"loan_type":{"type":"string","enum":["EQUIPMENT_FINANCING"],"description":"Discriminator. Must be `EQUIPMENT_FINANCING`.","isRequired":true,"uniqueKey":"oneOf.5.loan_type","typeLabel":"enum\u003cstring>"},"display_name":{"type":"string","description":"Human-friendly name for the loan.","isRequired":true,"uniqueKey":"oneOf.5.display_name","typeLabel":"string"},"origination_date":{"type":"string","format":"date","description":"Date the loan was originated.","isRequired":true,"uniqueKey":"oneOf.5.origination_date","typeLabel":"string\u003cdate>"},"original_principal":{"type":"integer","format":"int64","description":"Original principal of the financing, in cents.","isRequired":true,"uniqueKey":"oneOf.5.original_principal","typeLabel":"integer\u003cint64>"},"loan_term_months":{"type":"integer","format":"int32","description":"Term of the financing, in months.","isRequired":true,"uniqueKey":"oneOf.5.loan_term_months","typeLabel":"integer\u003cint32>"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the loan in your system for linking purposes.","uniqueKey":"oneOf.5.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the loan in your system for linking purposes.","uniqueKey":"oneOf.5.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.external_id","typeLabel":"string | null"},"parent_ledger_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Parent ledger account under which the loan's dedicated liability account is created. Defaults to `NOTES_PAYABLE`.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"oneOf.5.parent_ledger_account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"oneOf.5.parent_ledger_account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"oneOf.5.parent_ledger_account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Parent ledger account under which the loan's dedicated liability account is created. Defaults to `NOTES_PAYABLE`.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"oneOf.5.parent_ledger_account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"oneOf.5.parent_ledger_account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"oneOf.5.parent_ledger_account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"oneOf.5.parent_ledger_account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.5.parent_ledger_account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"proceeds":{"oneOf":[{"type":"array","items":{"oneOf":[{"type":"object","title":"Asset proceed","description":"A loan proceed: funds (or an asset) received from the loan.","required":["loan_proceed_type","amount","date","asset"],"properties":{"loan_proceed_type":{"type":"string","enum":["ASSET"],"description":"Discriminator. Must be `ASSET`.","isRequired":true,"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.loan_proceed_type","typeLabel":"enum\u003cstring>"},"amount":{"type":"integer","format":"int64","description":"Proceed amount, in cents.","isRequired":true,"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.amount","typeLabel":"integer\u003cint64>"},"date":{"type":"string","format":"date","description":"Date the proceed was received.","isRequired":true,"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.date","typeLabel":"string\u003cdate>"},"asset":{"oneOf":[{"type":"object","title":"Existing asset","description":"Reference to the asset funded by an `ASSET` proceed. Either link an existing asset by `id` or `external_id`, or create a new asset inline with `new_asset`.","properties":{"id":{"oneOf":[{"type":"string","format":"uuid","description":"ID of an existing asset to link to this proceed.","uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID of an existing asset to link to this proceed.","uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.id","typeLabel":"string\u003cuuid> | null"},"external_id":{"oneOf":[{"type":"string","description":"External ID of an existing asset to link to this proceed.","uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"External ID of an existing asset to link to this proceed.","uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0.external_id","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.0","typeLabel":"Existing asset · object"},{"type":"object","title":"New asset","description":"Reference to the asset funded by an `ASSET` proceed. Either link an existing asset by `id` or `external_id`, or create a new asset inline with `new_asset`.","required":["new_asset"],"properties":{"new_asset":{"type":"object","description":"Parameters for creating a fixed asset. Creates a dedicated ledger account for the asset under the parent account (defaults to Fixed Assets).","required":["name","asset_type"],"properties":{"name":{"type":"string","description":"Name of the asset.","isRequired":true,"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.name","typeLabel":"string"},"asset_type":{"type":"string","description":"The type of fixed asset.","enum":["RIGHT_OF_USE_ASSET","VEHICLE","EQUIPMENT","GOODWILL"],"example":"EQUIPMENT","isRequired":true,"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.asset_type","typeLabel":"enum\u003cstring>"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the asset in your system for linking purposes. Creating an asset with an `external_id` that already exists upserts the existing asset.","uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the asset in your system for linking purposes. Creating an asset with an `external_id` that already exists upserts the existing asset.","uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.external_id","typeLabel":"string | null"},"parent_ledger_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Parent ledger account under which the asset's dedicated account is created. Defaults to Fixed Assets.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Parent ledger account under which the asset's dedicated account is created. Defaults to Fixed Assets.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.parent_ledger_account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"accumulated_depreciation_account":{"oneOf":[{"type":"object","title":"Account ID","description":"Accumulated depreciation account for the asset. Required before recording `DEPRECIATION_AMORTIZATION` value updates.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Accumulated depreciation account for the asset. Required before recording `DEPRECIATION_AMORTIZATION` value updates.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account.oneOf.2","typeLabel":"null"}],"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.accumulated_depreciation_account","typeLabel":"Account ID · object | Account Stable Name · object | null"},"original_value":{"oneOf":[{"type":"integer","format":"int64","description":"Original purchase value, in cents.","uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.original_value.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"Original purchase value, in cents.","uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.original_value.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.original_value","typeLabel":"integer\u003cint64> | null"},"salvage_value":{"oneOf":[{"type":"integer","format":"int64","description":"Estimated salvage (residual) value, in cents.","uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.salvage_value.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"Estimated salvage (residual) value, in cents.","uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.salvage_value.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.salvage_value","typeLabel":"integer\u003cint64> | null"},"useful_life_months":{"oneOf":[{"type":"integer","format":"int32","description":"Useful life of the asset, in months.","uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.useful_life_months.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","format":"int32","description":"Useful life of the asset, in months.","uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.useful_life_months.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.useful_life_months","typeLabel":"integer\u003cint32> | null"},"opening_balance":{"oneOf":[{"type":"object","description":"Opening balance for the asset, posted against Opening Balance Equity. Omit if the asset has no opening balance.","required":["balance","effective_at"],"properties":{"balance":{"type":"integer","format":"int64","description":"Opening balance, in cents. Must be positive.","isRequired":true,"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance.oneOf.0.balance","typeLabel":"integer\u003cint64>"},"effective_at":{"type":"string","format":"date-time","description":"When the opening balance takes effect. Clamped forward to the business's activation date, and rejected if later than the earliest recorded asset event.","isRequired":true,"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance.oneOf.0.effective_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.opening_balance","typeLabel":"object | null"},"memo":{"oneOf":[{"type":"string","description":"Internal note about the asset.","uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Internal note about the asset.","uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Reference number for the asset.","uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Reference number for the asset.","uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset.reference_number","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1.new_asset","typeLabel":"object"}},"isRequired":true,"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset.oneOf.1","typeLabel":"New asset · object"}],"isRequired":true,"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.asset","typeLabel":"Existing asset · object | New asset · object"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the proceed in your system for linking purposes.","uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the proceed in your system for linking purposes.","uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0.external_id","typeLabel":"string | null"}},"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"Asset proceed · object"},{"type":"object","title":"Disbursement proceed","description":"A loan proceed: funds (or an asset) received from the loan.","required":["loan_proceed_type","amount","date"],"properties":{"loan_proceed_type":{"type":"string","enum":["DISBURSEMENT"],"description":"Discriminator. Must be `DISBURSEMENT`.","isRequired":true,"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.1.loan_proceed_type","typeLabel":"enum\u003cstring>"},"amount":{"type":"integer","format":"int64","description":"Proceed amount, in cents.","isRequired":true,"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.1.amount","typeLabel":"integer\u003cint64>"},"date":{"type":"string","format":"date","description":"Date the proceed was received.","isRequired":true,"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.1.date","typeLabel":"string\u003cdate>"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the proceed in your system for linking purposes.","uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.1.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the proceed in your system for linking purposes.","uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.1.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.1.external_id","typeLabel":"string | null"},"method":{"type":"string","description":"Payment method used for the cash disbursement. Defaults to `OTHER`.","default":"OTHER","enum":["CASH","CHECK","CREDIT_CARD","ACH","CREDIT_BALANCE","OTHER"],"example":"ACH","uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.1.method","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"Disbursement proceed · object"}],"uniqueKey":"oneOf.5.proceeds.oneOf.0.items.[INDEX]","typeLabel":"Asset proceed · object | Disbursement proceed · object"},"description":"Loan proceeds. Optional. On create, sets the loan's initial proceeds. Because creating with an existing `external_id` upserts the loan, on a subsequent call this list is reconciled against the loan's existing proceeds by proceed `external_id` (matched proceeds are updated, existing proceeds that are absent or have no `external_id` are archived, and new entries are created). Omit the field or set it to `null` to leave the existing proceeds untouched. Individual proceeds can also be managed with the loan proceed endpoints.","uniqueKey":"oneOf.5.proceeds.oneOf.0","typeLabel":"(Asset proceed · object | Disbursement proceed · object)[]"},{"type":"null","items":{"oneOf":[{"type":"object","title":"Asset proceed","description":"A loan proceed: funds (or an asset) received from the loan.","required":["loan_proceed_type","amount","date","asset"],"properties":{"loan_proceed_type":{"type":"string","enum":["ASSET"],"description":"Discriminator. Must be `ASSET`."},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the proceed in your system for linking purposes."},{"type":"null","description":"Unique ID of the proceed in your system for linking purposes."}]},"amount":{"type":"integer","format":"int64","description":"Proceed amount, in cents."},"date":{"type":"string","format":"date","description":"Date the proceed was received."},"asset":{"oneOf":[{"type":"object","title":"Existing asset","description":"Reference to the asset funded by an `ASSET` proceed. Either link an existing asset by `id` or `external_id`, or create a new asset inline with `new_asset`.","properties":{"id":{"oneOf":[{"type":"string","format":"uuid","description":"ID of an existing asset to link to this proceed."},{"type":"null","format":"uuid","description":"ID of an existing asset to link to this proceed."}]},"external_id":{"oneOf":[{"type":"string","description":"External ID of an existing asset to link to this proceed."},{"type":"null","description":"External ID of an existing asset to link to this proceed."}]}}},{"type":"object","title":"New asset","description":"Reference to the asset funded by an `ASSET` proceed. Either link an existing asset by `id` or `external_id`, or create a new asset inline with `new_asset`.","required":["new_asset"],"properties":{"new_asset":{"type":"object","description":"Parameters for creating a fixed asset. Creates a dedicated ledger account for the asset under the parent account (defaults to Fixed Assets).","required":["name","asset_type"],"properties":{"name":{"type":"string","description":"Name of the asset."},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the asset in your system for linking purposes. Creating an asset with an `external_id` that already exists upserts the existing asset."},{"type":"null","description":"Unique ID of the asset in your system for linking purposes. Creating an asset with an `external_id` that already exists upserts the existing asset."}]},"asset_type":{"type":"string","description":"The type of fixed asset.","enum":["RIGHT_OF_USE_ASSET","VEHICLE","EQUIPMENT","GOODWILL"],"example":"EQUIPMENT"},"parent_ledger_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Parent ledger account under which the asset's dedicated account is created. Defaults to Fixed Assets.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Parent ledger account under which the asset's dedicated account is created. Defaults to Fixed Assets.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},{"type":"null"}]},"accumulated_depreciation_account":{"oneOf":[{"type":"object","title":"Account ID","description":"Accumulated depreciation account for the asset. Required before recording `DEPRECIATION_AMORTIZATION` value updates.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Accumulated depreciation account for the asset. Required before recording `DEPRECIATION_AMORTIZATION` value updates.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},{"type":"null"}]},"original_value":{"oneOf":[{"type":"integer","format":"int64","description":"Original purchase value, in cents."},{"type":"null","format":"int64","description":"Original purchase value, in cents."}]},"salvage_value":{"oneOf":[{"type":"integer","format":"int64","description":"Estimated salvage (residual) value, in cents."},{"type":"null","format":"int64","description":"Estimated salvage (residual) value, in cents."}]},"useful_life_months":{"oneOf":[{"type":"integer","format":"int32","description":"Useful life of the asset, in months."},{"type":"null","format":"int32","description":"Useful life of the asset, in months."}]},"opening_balance":{"oneOf":[{"type":"object","description":"Opening balance for the asset, posted against Opening Balance Equity. Omit if the asset has no opening balance.","required":["balance","effective_at"],"properties":{"balance":{"type":"integer","format":"int64","description":"Opening balance, in cents. Must be positive."},"effective_at":{"type":"string","format":"date-time","description":"When the opening balance takes effect. Clamped forward to the business's activation date, and rejected if later than the earliest recorded asset event."}}},{"type":"null"}]},"memo":{"oneOf":[{"type":"string","description":"Internal note about the asset."},{"type":"null","description":"Internal note about the asset."}]},"metadata":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged."},{"type":"null","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged."}]},"reference_number":{"oneOf":[{"type":"string","description":"Reference number for the asset."},{"type":"null","description":"Reference number for the asset."}]}}}}}]}}},{"type":"object","title":"Disbursement proceed","description":"A loan proceed: funds (or an asset) received from the loan.","required":["loan_proceed_type","amount","date"],"properties":{"loan_proceed_type":{"type":"string","enum":["DISBURSEMENT"],"description":"Discriminator. Must be `DISBURSEMENT`."},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the proceed in your system for linking purposes."},{"type":"null","description":"Unique ID of the proceed in your system for linking purposes."}]},"amount":{"type":"integer","format":"int64","description":"Proceed amount, in cents."},"date":{"type":"string","format":"date","description":"Date the proceed was received."},"method":{"type":"string","description":"Payment method used for the cash disbursement. Defaults to `OTHER`.","default":"OTHER","enum":["CASH","CHECK","CREDIT_CARD","ACH","CREDIT_BALANCE","OTHER"],"example":"ACH"}}}]},"description":"Loan proceeds. Optional. On create, sets the loan's initial proceeds. Because creating with an existing `external_id` upserts the loan, on a subsequent call this list is reconciled against the loan's existing proceeds by proceed `external_id` (matched proceeds are updated, existing proceeds that are absent or have no `external_id` are archived, and new entries are created). Omit the field or set it to `null` to leave the existing proceeds untouched. Individual proceeds can also be managed with the loan proceed endpoints.","uniqueKey":"oneOf.5.proceeds.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.proceeds","typeLabel":"(Asset proceed · object | Disbursement proceed · object)[] | null"},"reported_balance":{"oneOf":[{"type":"object","title":"Reported loan balance","description":"Asserts the loan's outstanding principal at a point in time; Layer derives the opening balance from it, anchored no earlier than the business's activation date. Send this only when you cannot send the loan's history back to its origination, and set `at` to the earliest date you can state the balance for. Omitting it later does not retract it; send `reported_balance` as `null` on an update to do that.","required":["balance","at"],"properties":{"balance":{"type":"integer","format":"int64","description":"Outstanding principal of the loan at `at`, in cents. Must not be negative.","isRequired":true,"uniqueKey":"oneOf.5.reported_balance.oneOf.0.balance","typeLabel":"integer\u003cint64>"},"at":{"type":"string","format":"date-time","description":"Point in time at which the loan's outstanding principal equaled `balance`.","isRequired":true,"uniqueKey":"oneOf.5.reported_balance.oneOf.0.at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"oneOf.5.reported_balance.oneOf.0","typeLabel":"Reported loan balance · object"},{"type":"null","uniqueKey":"oneOf.5.reported_balance.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.reported_balance","typeLabel":"Reported loan balance · object | null"},"memo":{"oneOf":[{"type":"string","description":"Internal note about the loan.","uniqueKey":"oneOf.5.memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Internal note about the loan.","uniqueKey":"oneOf.5.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"oneOf.5.metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"oneOf.5.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Reference number for the loan.","uniqueKey":"oneOf.5.reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Reference number for the loan.","uniqueKey":"oneOf.5.reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.5.reference_number","typeLabel":"string | null"}},"uniqueKey":"oneOf.5","typeLabel":"Equipment financing · object"}],"uniqueKey":"","typeLabel":"Term loan · object | Merchant cash advance · object | Flex loan · object | Line of credit · object | Lease · object | Equipment financing · object"},"examples":{"term_loan_with_disbursement":{"title":"term_loan_with_disbursement","value":{"loan_type":"TERM_LOAN","external_id":"loan-001","display_name":"Equipment term loan","origination_date":"2024-01-15","original_principal":5000000,"loan_term_months":36,"proceeds":[{"loan_proceed_type":"DISBURSEMENT","amount":5000000,"date":"2024-01-15","method":"ACH"}]}},"merchant_cash_advance":{"title":"merchant_cash_advance","value":{"loan_type":"MCA","display_name":"Working capital advance","origination_date":"2024-03-01","original_principal":2000000,"fee_percentage":"15"}},"line_of_credit":{"title":"line_of_credit","value":{"loan_type":"LINE_OF_CREDIT","display_name":"Revolving credit line","origination_date":"2024-02-01","credit_limit":10000000}},"flex_loan":{"title":"flex_loan","value":{"loan_type":"FLEX_LOAN","display_name":"Flex advance","origination_date":"2024-03-01","original_principal":2000000,"fee_percentage":"15"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"f8603103-4468-4992-a252-1c594faa6486":{"description":"Loan created successfully.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","description":"A loan held by a business. Each loan has a dedicated child ledger (liability) account.","required":["id","business_id","display_name","loan_type","loan_account","current_balance","origination_date","transaction_tags"],"properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the loan.","isRequired":true,"uniqueKey":"data.id","typeLabel":"string\u003cuuid>"},"business_id":{"type":"string","format":"uuid","description":"ID of the business that holds the loan.","isRequired":true,"uniqueKey":"data.business_id","typeLabel":"string\u003cuuid>"},"display_name":{"type":"string","description":"Human-friendly name for the loan.","isRequired":true,"uniqueKey":"data.display_name","typeLabel":"string"},"loan_type":{"type":"string","description":"The type of loan.","enum":["TERM_LOAN","MCA","FLEX_LOAN","LINE_OF_CREDIT","LEASE","EQUIPMENT_FINANCING"],"example":"TERM_LOAN","isRequired":true,"uniqueKey":"data.loan_type","typeLabel":"enum\u003cstring>"},"loan_account":{"type":"object","description":"The dedicated ledger (liability) account for this loan.","properties":{"type":{"type":"string","description":"Resource type. Value will be `Single_Chart_Account`.","example":"Single_Chart_Account","uniqueKey":"data.loan_account.type","typeLabel":"string"},"id":{"oneOf":[{"type":"object","title":"Account ID","description":"ID of the account.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"data.loan_account.id.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"data.loan_account.id.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"data.loan_account.id.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Stable name associated with the account.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"data.loan_account.id.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"data.loan_account.id.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"data.loan_account.id.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"data.loan_account.id","typeLabel":"Account ID · object | Account Stable Name · object"},"name":{"type":"string","description":"Name of the account.","example":"Current Assets","uniqueKey":"data.loan_account.name","typeLabel":"string"},"account_number":{"oneOf":[{"type":"string","description":"Account number if configured.","example":"4000","uniqueKey":"data.loan_account.account_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Account number if configured.","example":"4000","uniqueKey":"data.loan_account.account_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.loan_account.account_number","typeLabel":"string | null"},"stable_name":{"type":"object","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"data.loan_account.stable_name.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"data.loan_account.stable_name.stable_name","typeLabel":"string"}},"uniqueKey":"data.loan_account.stable_name","typeLabel":"object"},"normality":{"type":"string","enum":["CREDIT","DEBIT"],"example":"DEBIT","uniqueKey":"data.loan_account.normality","typeLabel":"enum\u003cstring>"},"account_type":{"type":"object","properties":{"value":{"type":"string","enum":["ASSET","LIABILITY","EQUITY","REVENUE","EXPENSE"],"example":"ASSET","description":"Type of the account.","uniqueKey":"data.loan_account.account_type.value","typeLabel":"enum\u003cstring>"},"display_name":{"type":"string","description":"Display name of the account type.","example":"Asset","uniqueKey":"data.loan_account.account_type.display_name","typeLabel":"string"}},"uniqueKey":"data.loan_account.account_type","typeLabel":"object"},"account_subtype":{"type":"object","properties":{"value":{"type":"string","enum":["BANK_ACCOUNTS","ACCOUNTS_RECEIVABLE","INVENTORY","PAYMENT_PROCESSOR_CLEARING_ACCOUNT","FIXED_ASSET","ACCUMULATED_DEPRECIATION","CASH","UNDEPOSITED_FUNDS","CURRENT_ASSET","NON_CURRENT_ASSET","PREPAID_EXPENSES","DEVELOPMENT_COSTS","LOANS_RECEIVABLE","INTANGIBLE_ASSET","ACCOUNTS_PAYABLE","CREDIT_CARD","TAXES_PAYABLE","INCOME_TAXES_PAYABLE","SALES_TAXES_PAYABLE","OTHER_TAXES_PAYABLE","PAYROLL_TAXES_PAYABLE","UNEARNED_REVENUE","PAYROLL_LIABILITY","PAYROLL_CLEARING","LINE_OF_CREDIT","TIPS","REFUND_LIABILITIES","UNDEPOSITED_OUTFLOWS","OUTGOING_PAYMENT_CLEARING_ACCOUNT","OTHER_CURRENT_LIABILITY","LOANS_PAYABLE","NOTES_PAYABLE","SHAREHOLDER_LOAN","NON_CURRENT_LIABILITY","CONTRIBUTIONS","DISTRIBUTIONS","COMMON_STOCK","PREFERRED_STOCK","ADDITIONAL_PAID_IN_CAPITAL","RETAINED_EARNINGS","ACCUMULATED_ADJUSTMENTS","OPENING_BALANCE_EQUITY","OTHER_EQUITY","SALES","UNCATEGORIZED_REVENUE","RETURNS_ALLOWANCES","DIVIDEND_INCOME","INTEREST_INCOME","OTHER_INCOME","COGS","OPERATING_EXPENSES","PAYROLL","TAXES_LICENSES","UNCATEGORIZED_EXPENSE","CHARITABLE_CONTRIBUTIONS","LOAN_EXPENSES","FINANCE_COSTS","INTEREST_EXPENSES","DEPRECIATION","AMORTIZATION","BAD_DEBT","OTHER_EXPENSES"],"example":"BANK_ACCOUNTS","uniqueKey":"data.loan_account.account_subtype.value","typeLabel":"enum\u003cstring>"},"display_name":{"type":"string","description":"Display name of the account subtype.","example":"Current Assets","uniqueKey":"data.loan_account.account_subtype.display_name","typeLabel":"string"}},"uniqueKey":"data.loan_account.account_subtype","typeLabel":"object"}},"isRequired":true,"uniqueKey":"data.loan_account","typeLabel":"object"},"current_balance":{"type":"integer","format":"int64","description":"Current outstanding balance of the loan, in cents.","isRequired":true,"uniqueKey":"data.current_balance","typeLabel":"integer\u003cint64>"},"origination_date":{"type":"string","format":"date","description":"Date the loan was originated.","isRequired":true,"uniqueKey":"data.origination_date","typeLabel":"string\u003cdate>"},"transaction_tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID for the tag.","isRequired":true,"uniqueKey":"data.transaction_tags.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"key":{"type":"string","description":"Key for the tag.","example":"ExampleTagKey","isRequired":true,"uniqueKey":"data.transaction_tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Value for the tag.","example":"ExampleTagValue","isRequired":true,"uniqueKey":"data.transaction_tags.items.[INDEX].value","typeLabel":"string"},"dimension_id":{"type":"string","format":"uuid","description":"ID of the tag dimension this tag belongs to.","isRequired":true,"uniqueKey":"data.transaction_tags.items.[INDEX].dimension_id","typeLabel":"string\u003cuuid>"},"definition_id":{"type":"string","format":"uuid","description":"ID of the tag value definition.","isRequired":true,"uniqueKey":"data.transaction_tags.items.[INDEX].definition_id","typeLabel":"string\u003cuuid>"},"dimension_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag dimension.","uniqueKey":"data.transaction_tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag dimension.","uniqueKey":"data.transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.transaction_tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag value definition.","uniqueKey":"data.transaction_tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag value definition.","uniqueKey":"data.transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.transaction_tags.items.[INDEX].value_display_name","typeLabel":"string | null"},"archived_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.transaction_tags.items.[INDEX].archived_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.transaction_tags.items.[INDEX].archived_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","key","value","dimension_id","definition_id"],"uniqueKey":"data.transaction_tags.items.[INDEX]","typeLabel":"object"},"description":"Tags applied to this record.","isRequired":true,"uniqueKey":"data.transaction_tags","typeLabel":"object[]"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the loan in your system for linking purposes.","uniqueKey":"data.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the loan in your system for linking purposes.","uniqueKey":"data.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.external_id","typeLabel":"string | null"},"opening_balance":{"oneOf":[{"type":"object","title":"Loan opening balance","description":"The loan's active opening balance, if one has been derived. Layer derives this from the loan's recorded history and any `reported_balance` you have sent; it is not set directly.","properties":{"ledger_account_id":{"type":"string","format":"uuid","description":"ID of the loan's ledger account.","uniqueKey":"data.opening_balance.oneOf.0.ledger_account_id","typeLabel":"string\u003cuuid>"},"ledger_account_name":{"type":"string","description":"Name of the loan's ledger account.","uniqueKey":"data.opening_balance.oneOf.0.ledger_account_name","typeLabel":"string"},"balance":{"type":"integer","format":"int64","description":"Opening balance, in cents.","uniqueKey":"data.opening_balance.oneOf.0.balance","typeLabel":"integer\u003cint64>"},"effective_at":{"type":"string","format":"date-time","description":"Point in time at which the loan's outstanding principal equaled `balance`.","uniqueKey":"data.opening_balance.oneOf.0.effective_at","typeLabel":"string\u003cdate-time>"},"created_at":{"type":"string","format":"date-time","description":"When the opening balance was created.","uniqueKey":"data.opening_balance.oneOf.0.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","description":"When the opening balance was last updated.","uniqueKey":"data.opening_balance.oneOf.0.updated_at","typeLabel":"string\u003cdate-time>"},"transaction_tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID for the tag.","isRequired":true,"uniqueKey":"data.opening_balance.oneOf.0.transaction_tags.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"key":{"type":"string","description":"Key for the tag.","example":"ExampleTagKey","isRequired":true,"uniqueKey":"data.opening_balance.oneOf.0.transaction_tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Value for the tag.","example":"ExampleTagValue","isRequired":true,"uniqueKey":"data.opening_balance.oneOf.0.transaction_tags.items.[INDEX].value","typeLabel":"string"},"dimension_id":{"type":"string","format":"uuid","description":"ID of the tag dimension this tag belongs to.","isRequired":true,"uniqueKey":"data.opening_balance.oneOf.0.transaction_tags.items.[INDEX].dimension_id","typeLabel":"string\u003cuuid>"},"definition_id":{"type":"string","format":"uuid","description":"ID of the tag value definition.","isRequired":true,"uniqueKey":"data.opening_balance.oneOf.0.transaction_tags.items.[INDEX].definition_id","typeLabel":"string\u003cuuid>"},"dimension_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag dimension.","uniqueKey":"data.opening_balance.oneOf.0.transaction_tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag dimension.","uniqueKey":"data.opening_balance.oneOf.0.transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.opening_balance.oneOf.0.transaction_tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag value definition.","uniqueKey":"data.opening_balance.oneOf.0.transaction_tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag value definition.","uniqueKey":"data.opening_balance.oneOf.0.transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.opening_balance.oneOf.0.transaction_tags.items.[INDEX].value_display_name","typeLabel":"string | null"},"archived_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.opening_balance.oneOf.0.transaction_tags.items.[INDEX].archived_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.opening_balance.oneOf.0.transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.opening_balance.oneOf.0.transaction_tags.items.[INDEX].archived_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","key","value","dimension_id","definition_id"],"uniqueKey":"data.opening_balance.oneOf.0.transaction_tags.items.[INDEX]","typeLabel":"object"},"description":"Tags associated with the opening balance.","uniqueKey":"data.opening_balance.oneOf.0.transaction_tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Internal note about the opening balance.","uniqueKey":"data.opening_balance.oneOf.0.memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Internal note about the opening balance.","uniqueKey":"data.opening_balance.oneOf.0.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.opening_balance.oneOf.0.memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"data.opening_balance.oneOf.0.metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"data.opening_balance.oneOf.0.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.opening_balance.oneOf.0.metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Reference number for the opening balance.","uniqueKey":"data.opening_balance.oneOf.0.reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Reference number for the opening balance.","uniqueKey":"data.opening_balance.oneOf.0.reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.opening_balance.oneOf.0.reference_number","typeLabel":"string | null"}},"uniqueKey":"data.opening_balance.oneOf.0","typeLabel":"Loan opening balance · object"},{"type":"null","uniqueKey":"data.opening_balance.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.opening_balance","typeLabel":"Loan opening balance · object | null"},"original_principal":{"oneOf":[{"type":"integer","format":"int64","description":"Original principal, in cents. Present for `TERM_LOAN`, `MCA`, `LEASE`, and `EQUIPMENT_FINANCING`.","uniqueKey":"data.original_principal.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"Original principal, in cents. Present for `TERM_LOAN`, `MCA`, `LEASE`, and `EQUIPMENT_FINANCING`.","uniqueKey":"data.original_principal.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.original_principal","typeLabel":"integer\u003cint64> | null"},"credit_limit":{"oneOf":[{"type":"integer","format":"int64","description":"Credit limit, in cents. Present for `LINE_OF_CREDIT`.","uniqueKey":"data.credit_limit.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"Credit limit, in cents. Present for `LINE_OF_CREDIT`.","uniqueKey":"data.credit_limit.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.credit_limit","typeLabel":"integer\u003cint64> | null"},"fee_percentage":{"oneOf":[{"type":"string","description":"Fixed fee, expressed as a percentage in a decimal string (for example, `\"15\"` for a 15% fee). Present for `MCA` and `FLEX_LOAN`.","uniqueKey":"data.fee_percentage.oneOf.0","typeLabel":"string"},{"type":"null","description":"Fixed fee, expressed as a percentage in a decimal string (for example, `\"15\"` for a 15% fee). Present for `MCA` and `FLEX_LOAN`.","uniqueKey":"data.fee_percentage.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.fee_percentage","typeLabel":"string | null"},"loan_term_months":{"oneOf":[{"type":"integer","format":"int32","description":"Loan term in months. Present for `TERM_LOAN`, `LEASE`, and `EQUIPMENT_FINANCING`.","uniqueKey":"data.loan_term_months.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","format":"int32","description":"Loan term in months. Present for `TERM_LOAN`, `LEASE`, and `EQUIPMENT_FINANCING`.","uniqueKey":"data.loan_term_months.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.loan_term_months","typeLabel":"integer\u003cint32> | null"},"completed_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the loan was fully repaid, if applicable.","uniqueKey":"data.completed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the loan was fully repaid, if applicable.","uniqueKey":"data.completed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.completed_at","typeLabel":"string\u003cdate-time> | null"},"cancelled_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the loan was cancelled, if applicable.","uniqueKey":"data.cancelled_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the loan was cancelled, if applicable.","uniqueKey":"data.cancelled_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.cancelled_at","typeLabel":"string\u003cdate-time> | null"},"archived_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the loan was archived, if applicable.","uniqueKey":"data.archived_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the loan was archived, if applicable.","uniqueKey":"data.archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.archived_at","typeLabel":"string\u003cdate-time> | null"},"memo":{"oneOf":[{"type":"string","description":"Internal note about the loan.","uniqueKey":"data.memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Internal note about the loan.","uniqueKey":"data.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"data.metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"data.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Reference number for the loan.","uniqueKey":"data.reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Reference number for the loan.","uniqueKey":"data.reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.reference_number","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","business_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","display_name":"\u003cstring>","loan_type":"TERM_LOAN","loan_account":{"type":"Single_Chart_Account","id":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"name":"Current Assets","account_number":"4000","stable_name":{"type":"StableName","stable_name":"CURRENT_ASSETS"},"normality":"DEBIT","account_type":{"value":"ASSET","display_name":"Asset"},"account_subtype":{"value":"BANK_ACCOUNTS","display_name":"Current Assets"}},"current_balance":123,"origination_date":"2023-12-25","transaction_tags":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","key":"ExampleTagKey","value":"ExampleTagValue","dimension_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","definition_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","dimension_display_name":"\u003cstring>","value_display_name":"\u003cstring>","archived_at":"2023-11-07T05:31:56Z"}],"external_id":"\u003cstring>","opening_balance":{"ledger_account_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","ledger_account_name":"\u003cstring>","balance":123,"effective_at":"2023-11-07T05:31:56Z","created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z","transaction_tags":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","key":"ExampleTagKey","value":"ExampleTagValue","dimension_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","definition_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","dimension_display_name":"\u003cstring>","value_display_name":"\u003cstring>","archived_at":"2023-11-07T05:31:56Z"}],"memo":"\u003cstring>","metadata":{},"reference_number":"\u003cstring>"},"original_principal":123,"credit_limit":123,"fee_percentage":"\u003cstring>","loan_term_months":123,"completed_at":"2023-11-07T05:31:56Z","cancelled_at":"2023-11-07T05:31:56Z","archived_at":"2023-11-07T05:31:56Z","memo":"\u003cstring>","metadata":{},"reference_number":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"e54c0fa1-69c5-402b-9c68-94a3c1bc420b":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[],"schemeName":"BearerAuth"}}},"servers":{},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"openApiSpec.json"},"subdomain":"layerfinancialtechnologiesinc","siteName":"Layer","title":"Create a loan - Layer","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-01T20:39:17.010Z","originalFileLocation":"api-reference/v1/loans/create-loan.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";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=\"light\"}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 new loan for the specified business, or updates an existing one. If a loan with the same external_id already exists it is upserted: the loan fields are updated and, when proceeds is provided, its proceeds are reconciled by proceed external_id. A dedicated ledger account is created for new loans. The request shape depends on loan_type.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Layer\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_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/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_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/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_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/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_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/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_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/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_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/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_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/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a loan - Layer\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a new loan for the specified business, or updates an existing one. If a loan with the same external_id already exists it is upserted: the loan fields are updated and, when proceeds is provided, its proceeds are reconciled by proceed external_id. A dedicated ledger account is created for new loans. The request shape depends on loan_type.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Layer\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.layerfi.com/api-reference/v1/loans/create-loan\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://layerfinancialtechnologiesinc.mintlify.site/_mintlify/api/og/v2?division=Loans\u0026amp;title=Create+a+loan\u0026amp;description=Creates+a+new+loan+for+the+specified+business%2C+or+updates+an+existing+one.+If+a+loan+with+the+same+%60external_id%60+already+exists+it+is+upserted%3A+the+loan+fields+\u0026amp;theme=105dd9e593effe53a54eaf85\u0026amp;signature=e41681c6231976e9a1d18a0deacc8fffa7b16bbbf2398de54aacfb13702947d4\">\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 a loan - Layer\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a new loan for the specified business, or updates an existing one. If a loan with the same external_id already exists it is upserted: the loan fields are updated and, when proceeds is provided, its proceeds are reconciled by proceed external_id. A dedicated ledger account is created for new loans. The request shape depends on loan_type.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://layerfinancialtechnologiesinc.mintlify.site/_mintlify/api/og/v2?division=Loans\u0026amp;title=Create+a+loan\u0026amp;description=Creates+a+new+loan+for+the+specified+business%2C+or+updates+an+existing+one.+If+a+loan+with+the+same+%60external_id%60+already+exists+it+is+upserted%3A+the+loan+fields+\u0026amp;theme=105dd9e593effe53a54eaf85\u0026amp;signature=e41681c6231976e9a1d18a0deacc8fffa7b16bbbf2398de54aacfb13702947d4\">\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/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Layer\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5ba183\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.layerfi.com/api-reference/v1/loans/create-loan\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/v1/loans/create-loan.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.layerfi.com/#organization\",\"name\":\"Layer\",\"url\":\"https://docs.layerfi.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/layerfinancialtechnologiesinc/vN7_-byPIlUr9WYu/logo/layer_logo.svg?fit=max\u0026auto=format\u0026n=vN7_-byPIlUr9WYu\u0026q=85\u0026s=731d805a8bf32985beb197f69ae937e6\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.layerfi.com#website\",\"name\":\"Layer\",\"url\":\"https://docs.layerfi.com\",\"publisher\":{\"@id\":\"https://docs.layerfi.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.layerfi.com/api-reference/v1/loans/create-loan#webpage\",\"url\":\"https://docs.layerfi.com/api-reference/v1/loans/create-loan\",\"name\":\"Create a loan\",\"description\":\"Creates a new loan for the specified business, or updates an existing one. If a loan with the same external_id already exists it is upserted: the loan fields are updated and, when proceeds is provided, its proceeds are reconciled by proceed external_id. A dedicated ledger account is created for new loans. The request shape depends on loan_type.\",\"dateModified\":\"2026-07-01T20:39:17.010Z\",\"isPartOf\":{\"@id\":\"https://docs.layerfi.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.layerfi.com/api-reference/v1/loans/create-loan#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.layerfi.com/api-reference/v1/loans/create-loan#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Financial Activity\",\"item\":\"https://docs.layerfi.com/api-reference/customer/customer\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Loans\",\"item\":\"https://docs.layerfi.com/api-reference/loan/loan\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create a loan\",\"item\":\"https://docs.layerfi.com/api-reference/v1/loans/create-loan\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.layerfi.com/api-reference/v1/loans/create-loan#apireference\",\"headline\":\"Create a loan\",\"name\":\"Create a loan\",\"description\":\"Creates a new loan for the specified business, or updates an existing one. If a loan with the same external_id already exists it is upserted: the loan fields are updated and, when proceeds is provided, its proceeds are reconciled by proceed external_id. A dedicated ledger account is created for new loans. The request shape depends on loan_type.\",\"url\":\"https://docs.layerfi.com/api-reference/v1/loans/create-loan\",\"mainEntityOfPage\":{\"@id\":\"https://docs.layerfi.com/api-reference/v1/loans/create-loan#webpage\"},\"dateModified\":\"2026-07-01T20:39:17.010Z\",\"publisher\":{\"@id\":\"https://docs.layerfi.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.layerfi.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Layer\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Layer\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/v1/loans/create-loan.md","siteName":"Layer","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/overview"}]},{"tab":"API Reference","groups":[{"group":"Businesses","pages":[{"group":"Business","pages":[{"openapi":"get /v1/businesses","title":"List businesses","href":"/api-reference/v1/list-businesses"},{"openapi":"post /v1/businesses","title":"Create business","href":"/api-reference/v1/create-business"},{"openapi":"get /v1/businesses/{businessId}","title":"Fetch business","href":"/api-reference/v1/fetch-business"},{"openapi":"put /v1/businesses/{businessId}","title":"Update business","href":"/api-reference/v1/update-business"},{"openapi":"put /v1/businesses/{businessId}/readonly-status","title":"Set business read-only status","href":"/api-reference/v1/set-business-readonly-status"},{"openapi":"put /v1/businesses/{businessId}/archive","title":"Archive business","href":"/api-reference/v1/archive-business"},{"openapi":"post /v1/businesses/{businessId}/unarchive","title":"Unarchive business","href":"/api-reference/v1/unarchive-business"},{"openapi":"post /v1/businesses/{businessId}/request-data-deletion","title":"Request business data deletion","href":"/api-reference/v1/request-business-data-deletion"},{"openapi":"get /v1/businesses/demo","title":"List demo businesses","href":"/api-reference/v1/list-demo-businesses"},{"openapi":"post /v1/businesses/demo","title":"Create demo business","href":"/api-reference/v1/create-demo-business"},{"openapi":"post /v1/sales-demos","title":"Create sales demo business","href":"/api-reference/v1/create-sales-demo-business"}]},{"group":"Financial Accounts","pages":[{"group":"Bank Accounts","pages":[{"openapi":"get /v1/businesses/{businessId}/bank-accounts","title":"List bank accounts","href":"/api-reference/v1/list-bank-accounts"},{"openapi":"get /v1/businesses/{businessId}/bank-accounts/{bankAccountId}","title":"Get bank account","href":"/api-reference/v1/get-bank-account"},{"openapi":"post /v1/businesses/{businessId}/bank-accounts","title":"Create bank account","href":"/api-reference/v1/create-bank-account"},{"openapi":"patch /v1/businesses/{businessId}/bank-accounts/{bankAccountId}","title":"Update bank account","href":"/api-reference/v1/update-bank-account"},{"openapi":"post /v1/businesses/{businessId}/bank-accounts/{bankAccountId}/archive","title":"Archive bank account","href":"/api-reference/v1/archive-bank-account"}]},{"group":"All external account connections","pages":[{"openapi":"get /v1/businesses/{businessId}/external-accounts","title":"List external accounts","href":"/api-reference/v1/list-external-accounts"},{"openapi":"get /v1/businesses/{businessId}/external-accounts/{externalAccountId}","title":"Fetch external account","href":"/api-reference/v1/fetch-external-account"},{"openapi":"post /v1/businesses/{businessId}/external-accounts/{externalAccountId}/archive","title":"Archive external account","href":"/api-reference/v1/archive-external-account"},{"openapi":"post /v1/businesses/{businessId}/external-accounts/{externalAccountId}/uncategorize-and-archive","title":"Uncategorize and archive external account","href":"/api-reference/v1/uncategorize-and-archive-external-account"},{"openapi":"put /v1/businesses/{businessId}/external-accounts/{externalAccountId}/transaction-date-range","title":"Update transaction date range","href":"/api-reference/external-account/update-transaction-date-range"},{"openapi":"get /v1/businesses/{businessId}/external-accounts/{externalAccountId}/opening-balance","title":"Fetch opening balance","href":"/api-reference/v1/fetch-opening-balance"},{"openapi":"post /v1/businesses/{businessId}/custom-accounts/{customAccountId}/balance","title":"Set opening balance","href":"/api-reference/v1/set-opening-balance"},{"openapi":"delete /v1/businesses/{businessId}/external-accounts/{externalAccountId}/opening-balance","title":"Delete opening balance","href":"/api-reference/v1/delete-opening-balance"}]},{"group":"Custom Accounts","pages":[{"openapi":"get /v1/businesses/{businessId}/custom-accounts/{customAccountId}","title":"Fetch custom account","href":"/api-reference/v1/fetch-custom-account"},{"openapi":"post /v1/businesses/{businessId}/custom-accounts/","title":"Create custom account","href":"/api-reference/v1/create-custom-account"},{"openapi":"put /v1/businesses/{businessId}/custom-accounts/{customAccountId}","title":"Update custom account","href":"/api-reference/v1/update-custom-account"},{"openapi":"patch /v1/businesses/{businessId}/custom-accounts/{customAccountId}","title":"Patch custom account","href":"/api-reference/v1/patch-custom-account"},{"openapi":"post /v1/businesses/{businessId}/custom-accounts/{customAccountId}/bank-statement-import","title":"Import bank statement","href":"/api-reference/v1/import-bank-statement"},{"openapi":"post /v1/businesses/{businessId}/transaction-uploads/{uploadId}/archive","title":"Archive bank statement upload","href":"/api-reference/v1/archive-transaction-upload"},{"openapi":"post /v1/businesses/{businessId}/custom-accounts/{customAccountId}/archive","title":"Archive custom account","href":"/api-reference/v1/archive-custom-account"},{"openapi":"post /v1/businesses/{businessId}/custom-accounts/{customAccountId}/reactivate","title":"Reactivate custom account","href":"/api-reference/v1/reactivate-custom-account"}]},{"group":"Plaid Accounts","pages":[{"title":"Plaid Account object","href":"/api-reference/plaid-account/plaid-account"},{"title":"List Plaid Accounts","api":"GET https://sandbox.layerfi.com/v1/businesses/{business_id}/plaid/accounts","href":"/api-reference/plaid-account/list-plaid-accounts"},{"openapi":"get /v1/businesses/{businessId}/plaid/connection-events","title":"List Plaid connection events","href":"/api-reference/v1/list-plaid-connection-events"},{"openapi":"get /v1/businesses/{businessId}/plaid/items/{plaidItemId}/statements","title":"List Plaid statements","href":"/api-reference/v1/list-plaid-statements"},{"openapi":"post /v1/businesses/{businessId}/plaid/items/{plaidItemId}/statements/{statementId}","title":"Download bank statement","href":"/api-reference/v1/save-plaid-statement"}]}]},{"group":"Documents","pages":[{"openapi":"get /v1/businesses/{businessId}/documents","title":"List documents","href":"/api-reference/v1/list-documents"},{"openapi":"get /v1/businesses/{businessId}/s3_doc/{documentId}","title":"Fetch document","href":"/api-reference/v1/fetch-document"},{"openapi":"post /v1/businesses/{businessId}/bank-transactions/{transactionId}/documents/{documentId}/archive","title":"Archive document","href":"/api-reference/v1/archive-document"},{"openapi":"post /v1/businesses/{businessId}/receipts/import","title":"Import receipt","href":"/api-reference/v1/import-receipt"},{"group":"Multipart Upload","pages":[{"title":"Multipart Upload Guide","sidebarTitle":"Overview","href":"/api-reference/v1/multipart-upload-guide"},{"openapi":"post /v1/businesses/{businessId}/documents","title":"Create document upload","href":"/api-reference/v1/create-document-upload"},{"openapi":"post /v1/businesses/{businessId}/documents/{documentId}/complete","title":"Complete document upload","href":"/api-reference/v1/complete-document-upload"},{"openapi":"post /v1/businesses/{businessId}/documents/{documentId}/abort","title":"Abort document upload","href":"/api-reference/v1/abort-document-upload"}]},{"openapi":"post /v1/businesses/{businessId}/documents/trial-balances-import","title":"Import trial balances","href":"/api-reference/v1/import-trial-balances"},{"openapi":"delete /v1/businesses/{businessId}/documents/trial-balances-import","title":"Archive trial balances import","href":"/api-reference/v1/archive-trial-balances-import"}]},{"group":"Business Emails","pages":[{"openapi":"get /v1/businesses/{businessId}/support-emails","title":"List business emails","href":"/api-reference/v1/list-business-emails"},{"openapi":"get /v1/businesses/{businessId}/support-emails/{messageId}","title":"Fetch business email","href":"/api-reference/v1/fetch-business-email"}]},{"group":"Calls","pages":[{"openapi":"get /v1/businesses/{businessId}/call-bookings","title":"List call bookings","href":"/api-reference/v1/list-call-bookings"},{"openapi":"get /v1/businesses/{businessId}/calls","title":"List business calls","href":"/api-reference/v1/list-business-calls"}]},{"group":"Scoped Authentication","pages":[{"openapi":"post /v1/businesses/{businessId}/auth-token","title":"Create business auth token","href":"/api-reference/v1/create-business-auth-token"}]},{"group":"Configuration","pages":[{"openapi":"get /v1/businesses/{businessId}/accounting-config","title":"Fetch accounting configuration","href":"/api-reference/v1/fetch-accounting-configuration"},{"openapi":"patch /v1/businesses/{businessId}/accounting-config","title":"Patch accounting configuration","href":"/api-reference/v1/patch-accounting-configuration"},{"openapi":"get /v1/businesses/{businessId}/bookkeeping/status","title":"Fetch bookkeeping status","href":"/api-reference/v1/fetch-bookkeeping-status"},{"openapi":"post /v1/businesses/{businessId}/bookkeeping/activate","title":"Activate bookkeeping","href":"/api-reference/v1/activate-bookkeeping"},{"openapi":"post /v1/businesses/{businessId}/bookkeeping/deactivate","title":"Deactivate bookkeeping","href":"/api-reference/v1/deactivate-bookkeeping"},{"openapi":"post /v1/businesses/{businessId}/bookkeeping/start-date","title":"Set bookkeeping start date","href":"/api-reference/v1/set-bookkeeping-start-date"},{"openapi":"get /v1/businesses/{businessId}/sms","title":"Fetch SMS configuration","href":"/api-reference/v1/fetch-sms-configuration"},{"openapi":"put /v1/businesses/{businessId}/sms","title":"Update SMS configuration","href":"/api-reference/v1/update-sms-configuration"},{"openapi":"get /v1/businesses/{businessId}/sms/messages","title":"Fetch SMS message history","href":"/api-reference/v1/fetch-sms-message-history"}]},{"group":"Tasks \u0026 Notifications","pages":[{"openapi":"get /v1/businesses/{businessId}/tasks","title":"List tasks","href":"/api-reference/v1/list-tasks"},{"openapi":"get /v1/businesses/{businessId}/tasks/{taskId}","title":"Fetch task","href":"/api-reference/v1/fetch-task"},{"openapi":"post /v1/businesses/{businessId}/tasks/{taskId}/user-response","title":"Submit task response","href":"/api-reference/v1/submit-task-response"},{"openapi":"post /v1/businesses/{businessId}/tasks/{taskId}/mark-user-completed","title":"Mark task completed","href":"/api-reference/v1/mark-task-completed"},{"title":"Retrieve Notifications","api":"GET https://sandbox.layerfi.com/v1/businesses/{business_id}/notifications","href":"/api-reference/business/notifications"},{"openapi":"get /v1/businesses/{businessId}/notifications/uncategorized-monthly","title":"Fetch uncategorized transaction counts","href":"/api-reference/v1/fetch-uncategorized-transaction-counts"}]}]},{"group":"Financial Activity","pages":[{"group":"Accounts Receivable","pages":[{"group":"Customers","pages":[{"title":"Customer object","href":"/api-reference/customer/customer"},{"title":"List customers","api":"GET https://sandbox.layerfi.com/v1/businesses/{business_id}/customers","href":"/api-reference/customer/list-customers"},{"title":"Get a customer","api":"GET https://sandbox.layerfi.com/v1/businesses/{business_id}/customers/{customer_id}","href":"/api-reference/customer/get-customer"},{"title":"Create a customer","api":"POST https://sandbox.layerfi.com/v1/businesses/{business_id}/customers","href":"/api-reference/customer/create-customer"},{"openapi":"post /v1/businesses/{businessId}/customers/bulk","title":"Bulk create customers","href":"/api-reference/v1/bulk-create-customers"},{"title":"Update a customer","api":"PUT https://sandbox.layerfi.com/v1/businesses/{business_id}/customers/{customer_id}","href":"/api-reference/customer/update-customer"},{"openapi":"patch /v1/businesses/{businessId}/customers/{customerId}","title":"Patch update customer","href":"/api-reference/v1/patch-update-customer"},{"title":"Archive a customer","api":"POST https://sandbox.layerfi.com/v1/businesses/{business_id}/customers/{customer_id}/archive","href":"/api-reference/customer/archive-customer"},{"title":"Unarchive a customer","api":"POST https://sandbox.layerfi.com/v1/businesses/{business_id}/customers/{customer_id}/unarchive","href":"/api-reference/customer/unarchive-customer"}]},{"group":"Invoices","pages":[{"title":"Invoice object","href":"/api-reference/invoice/invoice"},{"title":"Create an Invoice","api":"POST https://sandbox.layerfi.com/v1/businesses/{business_id}/invoices","href":"/api-reference/invoice/create"},{"openapi":"post /v1/businesses/{businessId}/invoices/bulk","title":"Bulk create invoices","href":"/api-reference/v1/bulk-create-invoices"},{"openapi":"post /v1/businesses/{businessId}/invoices/batch","title":"Batch create invoices","href":"/api-reference/v1/batch-create-invoices"},{"openapi":"get /v1/businesses/{businessId}/invoices","title":"List invoices","href":"/api-reference/v1/list-invoices"},{"openapi":"get /v1/businesses/{businessId}/invoices/{invoiceId}","title":"Fetch invoice","href":"/api-reference/v1/fetch-invoice"},{"openapi":"put /v1/businesses/{businessId}/invoices/{invoiceId}","title":"Update invoice","href":"/api-reference/v1/update-invoice"},{"openapi":"patch /v1/businesses/{businessId}/invoices/{invoiceId}","title":"Patch invoice","href":"/api-reference/v1/patch-invoice"},{"title":"Void an Invoice","api":"POST https://sandbox.layerfi.com/v1/businesses/{business_id}/invoices/{invoice_id}/void","href":"/api-reference/invoice/void"},{"title":"Delete an Invoice","api":"POST https://sandbox.layerfi.com/v1/businesses/{business_id}/invoices/{invoice_id}/delete","href":"/api-reference/invoice/delete"},{"openapi":"post /v1/businesses/{businessId}/invoices/{invoiceId}/delete","title":"Delete invoice","href":"/api-reference/v1/delete-invoice"},{"openapi":"post /v1/businesses/{businessId}/invoices/bulk-delete","title":"Bulk delete invoices","href":"/api-reference/v1/bulk-delete-invoices"},{"openapi":"post /v1/businesses/{businessId}/invoices/{invoiceId}/refund","title":"Create dedicated refund on invoice","href":"/api-reference/v1/create-dedicated-invoice-refund"},{"openapi":"get /v1/businesses/{businessId}/invoices/{invoiceId}/pdf","title":"Generate invoice PDF","href":"/api-reference/v1/generate-invoice-pdf"}]},{"group":"Invoice Payments","pages":[{"title":"Invoice Payment object","href":"/api-reference/invoice/payments"},{"openapi":"post /v1/businesses/{businessId}/invoices/payments","title":"Record a payment","href":"/api-reference/v1/record-a-payment"},{"openapi":"post /v1/businesses/{businessId}/invoices/payments/bulk","title":"Bulk create invoice payments","href":"/api-reference/v1/bulk-create-invoice-payments"},{"openapi":"patch /v1/businesses/{businessId}/invoices/payments/{paymentId}","title":"Update payment","href":"/api-reference/v1/update-payment"},{"openapi":"get /v1/businesses/{businessId}/invoices/payments","title":"List payments","href":"/api-reference/v1/list-payments"},{"title":"Delete a Payment","api":"POST https://sandbox.layerfi.com/v1/businesses/{business_id}/invoices/payments/{payment_id}/delete","href":"/api-reference/invoice/delete-payment"},{"openapi":"post /v1/businesses/{businessId}/invoices/payments/{paymentId}/delete","title":"Delete invoice payment","href":"/api-reference/v1/delete-invoice-payment"},{"openapi":"post /v1/businesses/{businessId}/invoices/payments/bulk-delete","title":"Bulk delete invoice payments","href":"/api-reference/v1/bulk-delete-invoice-payments"},{"openapi":"post /v1/businesses/{businessId}/invoices/{invoiceId}/payment","title":"Create dedicated invoice payment","href":"/api-reference/v1/create-dedicated-invoice-payment"},{"openapi":"get /v1/businesses/{businessId}/invoices/{invoiceId}/payment/{paymentId}","title":"Get dedicated invoice payment","href":"/api-reference/v1/get-dedicated-invoice-payment"},{"openapi":"put /v1/businesses/{businessId}/invoices/{invoiceId}/payment/{paymentId}","title":"Update dedicated invoice payment","href":"/api-reference/v1/update-dedicated-invoice-payment"},{"openapi":"delete /v1/businesses/{businessId}/invoices/{invoiceId}/payment/{paymentId}","title":"Delete dedicated invoice payment","href":"/api-reference/v1/delete-dedicated-invoice-payment"}]},{"group":"Payouts","pages":[{"title":"Payout object","href":"/api-reference/customer-payouts/payout"},{"openapi":"get /v1/businesses/{businessId}/payouts","title":"List payouts","href":"/api-reference/v1/list-payouts"},{"openapi":"get /v1/businesses/{businessId}/payouts/{payoutId}","title":"Fetch payout","href":"/api-reference/v1/fetch-payout"},{"openapi":"post /v1/businesses/{businessId}/payouts","title":"Create payout","href":"/api-reference/v1/create-payout"},{"openapi":"post /v1/businesses/{businessId}/payouts/bulk","title":"Bulk create payouts","href":"/api-reference/v1/bulk-create-payouts"},{"openapi":"post /v1/businesses/{businessId}/payouts/{payoutId}/update","title":"Update payout","href":"/api-reference/v1/update-payout"},{"openapi":"delete /v1/businesses/{businessId}/payouts/{payoutId}","title":"Delete payout","href":"/api-reference/v1/delete-payout"}]},{"group":"Refunds","pages":[{"title":"Refund object","href":"/api-reference/refunds/refund"},{"openapi":"get /v1/businesses/{businessId}/invoices/refunds","title":"List refunds","href":"/api-reference/v1/list-refunds"},{"openapi":"post /v1/businesses/{businessId}/invoices/refunds","title":"Create refund","href":"/api-reference/v1/create-refund"},{"openapi":"post /v1/businesses/{businessId}/invoices/refunds/bulk","title":"Bulk create refunds","href":"/api-reference/v1/bulk-create-refunds"},{"openapi":"get /v1/businesses/{businessId}/invoices/refunds/{refundId}","title":"Fetch refund","href":"/api-reference/v1/fetch-refund"},{"openapi":"delete /v1/businesses/{businessId}/invoices/refunds/{refundId}","title":"Delete refund","href":"/api-reference/v1/delete-refund"},{"openapi":"put /v1/businesses/{businessId}/invoices/refunds/{refundId}","title":"Update refund","href":"/api-reference/v1/update-refund"},{"openapi":"patch /v1/businesses/{businessId}/invoices/refunds/{refundId}","title":"Patch refund","href":"/api-reference/v1/patch-refund"},{"openapi":"get /v1/businesses/{businessId}/invoices/refunds/payments","title":"List refund payments","href":"/api-reference/v1/list-refund-payments"},{"openapi":"post /v1/businesses/{businessId}/invoices/refunds/{refundId}/payments","title":"Create refund payment","href":"/api-reference/v1/create-refund-payment"},{"openapi":"get /v1/businesses/{businessId}/invoices/refunds/payments/{paymentId}","title":"Fetch refund payment","href":"/api-reference/v1/fetch-refund-payment"},{"openapi":"delete /v1/businesses/{businessId}/invoices/refunds/payments/{paymentId}","title":"Delete refund payment","href":"/api-reference/v1/delete-refund-payment"}]},{"group":"Write Offs","pages":[{"title":"Write-off object","href":"/api-reference/write-offs/write-off"},{"openapi":"post /v1/businesses/{businessId}/invoices/{invoiceId}/write-off","title":"Record write-off","href":"/api-reference/v1/record-write-off"},{"openapi":"get /v1/businesses/{businessId}/invoices/{invoiceId}/write-offs/{writeOffId}","title":"Fetch write-off","href":"/api-reference/v1/fetch-write-off"},{"openapi":"delete /v1/businesses/{businessId}/invoices/{invoiceId}/write-offs/{writeOffId}","title":"Delete write-off","href":"/api-reference/v1/delete-write-off"}]},{"group":"Customer Credits","pages":[{"title":"Customer credit object","href":"/api-reference/customer-credits/customer-credit"},{"openapi":"get /v1/businesses/{businessId}/invoices/customer-credits","title":"List customer credits","href":"/api-reference/v1/list-customer-credits"},{"openapi":"post /v1/businesses/{businessId}/invoices/customer-credits","title":"Create customer credit","href":"/api-reference/v1/create-customer-credit"},{"openapi":"get /v1/businesses/{businessId}/invoices/customer-credits/{customerCreditId}","title":"Fetch customer credit","href":"/api-reference/v1/fetch-customer-credit"},{"openapi":"patch /v1/businesses/{businessId}/invoices/customer-credits/{customerCreditId}","title":"Update customer credit","href":"/api-reference/v1/update-customer-credit"},{"openapi":"delete /v1/businesses/{businessId}/invoices/customer-credits/{customerCreditId}","title":"Delete customer credit","href":"/api-reference/v1/delete-customer-credit"}]},{"group":"A/R Reports","pages":[{"openapi":"get /v1/businesses/{businessId}/invoices/ar-aging","title":"Fetch AR aging report","href":"/api-reference/v1/fetch-ar-aging-report"},{"openapi":"get /v1/businesses/{businessId}/invoices/ar-aging/customer/{customerId}","title":"Fetch AR aging detail for a customer","href":"/api-reference/v1/fetch-ar-aging-detail-for-a-customer"}]}]},{"group":"Accounts Payable","pages":[{"group":"Vendors","pages":[{"title":"Vendor object","href":"/api-reference/vendor/vendor"},{"openapi":"get /v1/businesses/{businessId}/vendors","title":"List vendors","href":"/api-reference/v1/list-vendors"},{"openapi":"get /v1/businesses/{businessId}/vendors/{vendorId}","title":"Fetch vendor","href":"/api-reference/v1/fetch-vendor"},{"openapi":"post /v1/businesses/{businessId}/vendors","title":"Create vendor","href":"/api-reference/v1/create-vendor"},{"openapi":"put /v1/businesses/{businessId}/vendors/{vendorId}","title":"Update vendor","href":"/api-reference/v1/update-vendor"},{"openapi":"patch /v1/businesses/{businessId}/vendors/{vendorId}","title":"Patch update vendor","href":"/api-reference/v1/patch-update-vendor"},{"openapi":"post /v1/businesses/{businessId}/vendors/{vendorId}/archive","title":"Archive vendor","href":"/api-reference/v1/archive-vendor"},{"openapi":"post /v1/businesses/{businessId}/vendors/{vendorId}/unarchive","title":"Unarchive vendor","href":"/api-reference/v1/unarchive-vendor"}]},{"group":"Bills","pages":[{"openapi":"get /v1/businesses/{businessId}/bills/{billId}","title":"Fetch bill","href":"/api-reference/bill/bill"},{"openapi":"get /v1/businesses/{businessId}/bills","title":"List bills","href":"/api-reference/v1/list-bills"},{"openapi":"post /v1/businesses/{businessId}/bills","title":"Create bill","href":"/api-reference/v1/create-bill"},{"openapi":"post /v1/businesses/{businessId}/bills/{billId}/update","title":"Update bill","href":"/api-reference/v1/update-bill"},{"openapi":"post /v1/businesses/{businessId}/bills/{billId}/void","title":"Void bill","href":"/api-reference/v1/void-bill"},{"openapi":"post /v1/businesses/{businessId}/bills/{billId}/delete","title":"Delete bill","href":"/api-reference/v1/delete-bill"}]},{"group":"Expenses","pages":[{"title":"Expense object","href":"/api-reference/bill/expense"},{"openapi":"post /v1/businesses/{businessId}/expenses","title":"Create expense","href":"/api-reference/v1/create-expense"},{"title":"List expenses","sidebarTitle":"List expenses","openapi":"get /v1/businesses/{businessId}/bills","href":"/api-reference/v1/list-expenses"},{"title":"Fetch expense","sidebarTitle":"Fetch expense","openapi":"get /v1/businesses/{businessId}/bills/{billId}","href":"/api-reference/v1/fetch-expense"}]},{"group":"Bill Payments","pages":[{"title":"Bill payment object","href":"/api-reference/bill/payments"},{"openapi":"get /v1/businesses/{businessId}/bills/bill-payments","title":"List bill payments","href":"/api-reference/v1/list-bill-payments"},{"openapi":"post /v1/businesses/{businessId}/bills/bill-payments","title":"Create bill payment","href":"/api-reference/v1/create-bill-payment"},{"openapi":"post /v1/businesses/{businessId}/bills/bill-payments/{paymentId}/update","title":"Update bill payment","href":"/api-reference/v1/update-bill-payment"},{"openapi":"post /v1/businesses/{businessId}/bills/bill-payments/{paymentId}/delete","title":"Delete bill payment","href":"/api-reference/v1/delete-bill-payment"}]},{"group":"Vendor Credits","pages":[{"title":"Vendor credit object","href":"/api-reference/vendor-credits/vendor-credit"},{"openapi":"get /v1/businesses/{businessId}/bills/vendor-credits","title":"List vendor credits","href":"/api-reference/v1/list-vendor-credits"},{"openapi":"post /v1/businesses/{businessId}/bills/vendor-credits","title":"Create vendor credit","href":"/api-reference/v1/create-vendor-credit"},{"openapi":"get /v1/businesses/{businessId}/bills/vendor-credits/{vendorCreditId}","title":"Fetch vendor credit","href":"/api-reference/v1/fetch-vendor-credit"},{"openapi":"patch /v1/businesses/{businessId}/bills/vendor-credits/{vendorCreditId}","title":"Update vendor credit","href":"/api-reference/v1/update-vendor-credit"},{"openapi":"delete /v1/businesses/{businessId}/bills/vendor-credits/{vendorCreditId}","title":"Delete vendor credit","href":"/api-reference/v1/delete-vendor-credit"}]},{"group":"Vendor Refunds","pages":[{"title":"Vendor Refund object","href":"/api-reference/vendor-refunds/vendor-refund"},{"openapi":"get /v1/businesses/{businessId}/bills/refunds","title":"List vendor refunds","href":"/api-reference/v1/vendor-refunds/list-vendor-refunds"},{"openapi":"post /v1/businesses/{businessId}/bills/refunds","title":"Create vendor refund","href":"/api-reference/v1/vendor-refunds/create-vendor-refund"},{"openapi":"get /v1/businesses/{businessId}/bills/refunds/{refundId}","title":"Fetch vendor refund","href":"/api-reference/v1/vendor-refunds/fetch-vendor-refund"},{"openapi":"put /v1/businesses/{businessId}/bills/refunds/{refundId}","title":"Update vendor refund","href":"/api-reference/v1/vendor-refunds/update-vendor-refund"},{"openapi":"patch /v1/businesses/{businessId}/bills/refunds/{refundId}","title":"Patch vendor refund","href":"/api-reference/v1/vendor-refunds/patch-vendor-refund"},{"openapi":"delete /v1/businesses/{businessId}/bills/refunds/{refundId}","title":"Delete vendor refund","href":"/api-reference/v1/vendor-refunds/delete-vendor-refund"},{"openapi":"get /v1/businesses/{businessId}/bills/refunds/payments","title":"List vendor refund payments","href":"/api-reference/v1/vendor-refunds/list-vendor-refund-payments"},{"openapi":"get /v1/businesses/{businessId}/bills/refunds/{refundId}/payments","title":"List payments for vendor refund","href":"/api-reference/v1/vendor-refunds/list-vendor-refund-payments-for-refund"},{"openapi":"post /v1/businesses/{businessId}/bills/refunds/{refundId}/payments","title":"Create vendor refund payment","href":"/api-reference/v1/vendor-refunds/create-vendor-refund-payment"},{"openapi":"get /v1/businesses/{businessId}/bills/refunds/{refundId}/payments/{paymentId}","title":"Fetch vendor refund payment","href":"/api-reference/v1/vendor-refunds/fetch-vendor-refund-payment"},{"openapi":"delete /v1/businesses/{businessId}/bills/refunds/{refundId}/payments/{paymentId}","title":"Delete vendor refund payment","href":"/api-reference/v1/vendor-refunds/delete-vendor-refund-payment"}]},{"group":"Vendor Payouts","pages":[{"title":"Vendor Payout object","href":"/api-reference/vendor-payouts/vendor-payout"},{"openapi":"get /v1/businesses/{businessId}/vendor-payouts","title":"List vendor payouts","href":"/api-reference/v1/list-vendor-payouts"},{"openapi":"post /v1/businesses/{businessId}/vendor-payouts","title":"Create vendor payout","href":"/api-reference/v1/create-vendor-payout"},{"openapi":"get /v1/businesses/{businessId}/vendor-payouts/{payoutId}","title":"Fetch vendor payout","href":"/api-reference/v1/fetch-vendor-payout"},{"openapi":"put /v1/businesses/{businessId}/vendor-payouts/{payoutId}","title":"Update vendor payout","href":"/api-reference/v1/update-vendor-payout"},{"openapi":"delete /v1/businesses/{businessId}/vendor-payouts/{payoutId}","title":"Delete vendor payout","href":"/api-reference/v1/delete-vendor-payout"}]},{"group":"A/P Reports","pages":[{"openapi":"get /v1/businesses/{businessId}/reports/unified/ap-aging","title":"Fetch AP aging report","href":"/api-reference/v1/fetch-ap-aging-report"},{"openapi":"get /v1/businesses/{businessId}/reports/unified/ap-aging/exports/excel","title":"Export AP aging report as Excel","href":"/api-reference/v1/export-ap-aging-report-as-excel"}]}]},{"group":"Bank Transactions","pages":[{"title":"Bank Transaction object","href":"/api-reference/bank-transaction/bank-transaction"},{"openapi":"post /v1/businesses/{businessId}/custom-accounts/{customAccountId}/transactions","title":"Import transactions","href":"/api-reference/v1/import-transactions"},{"openapi":"post /v1/businesses/{businessId}/custom-accounts/{customAccountId}/transactions/record","title":"Record custom account transaction","href":"/api-reference/openapi-generated-schemas/record-custom-account-transaction"},{"openapi":"patch /v1/businesses/{businessId}/custom-accounts/{customAccountId}/transactions/{transactionId}/record","title":"Update recorded transaction","href":"/api-reference/openapi-generated-schemas/update-recorded-transaction"},{"openapi":"patch /v1/businesses/{businessId}/custom-accounts/{customAccountId}/transactions/{transactionId}","title":"Update custom account transaction","href":"/api-reference/openapi-generated-schemas/update-custom-account-transaction"},{"openapi":"get /v1/businesses/{businessId}/bank-transactions/{bankTransactionId}","title":"Fetch bank transaction","href":"/api-reference/v1/fetch-bank-transaction"},{"openapi":"get /v1/businesses/{businessId}/bank-transactions","title":"List bank transactions","href":"/api-reference/v1/list-bank-transactions"},{"openapi":"put /v1/businesses/{businessId}/bank-transactions/{transactionId}/categorize","title":"Categorize bank transaction","href":"/api-reference/v1/categorize-bank-transaction"},{"openapi":"put /v1/businesses/{businessId}/bank-transactions/{transactionId}/uncategorize","title":"Uncategorize bank transaction","href":"/api-reference/v1/uncategorize-bank-transaction"},{"openapi":"put /v1/businesses/{businessId}/bank-transactions/{transactionId}/match","title":"Match bank transaction","href":"/api-reference/v1/match-bank-transaction"},{"openapi":"post /v1/businesses/{businessId}/bank-transactions/bulk-match","title":"Bulk match","href":"/api-reference/v1/bulk-match"},{"openapi":"post /v1/businesses/{businessId}/bank-transactions/bulk-match-or-categorize","title":"Bulk match or categorize","href":"/api-reference/v1/bulk-match-or-categorize"},{"openapi":"post /v1/businesses/{businessId}/bank-transactions/bulk-categorize","title":"Bulk categorize transactions","href":"/api-reference/v1/bulk-categorize-bank-transactions"},{"openapi":"post /v1/businesses/{businessId}/bank-transactions/bulk-uncategorize","title":"Bulk uncategorize transactions","href":"/api-reference/v1/bulk-uncategorize-bank-transactions"},{"openapi":"get /v1/businesses/{businessId}/categories","title":"Fetch transaction categories","href":"/api-reference/v1/fetch-transaction-categories"},{"openapi":"put /v1/businesses/{businessId}/bank-transactions/{transactionId}/metadata","title":"Update transaction metadata","href":"/api-reference/v1/update-transaction-metadata"},{"openapi":"patch /v1/businesses/{businessId}/bank-transactions/{transactionId}/metadata","title":"Patch transaction metadata","href":"/api-reference/v1/patch-transaction-metadata"},{"group":"Exports","pages":[{"title":"Download Transactions CSV","api":"GET https://sandbox.layerfi.com/v1/businesses/{business_id}/reports/transactions/exports/csv","href":"/api-reference/bank-transaction/download-csv"},{"openapi":"get /v1/businesses/{businessId}/reports/transactions/exports/csv","title":"Export transactions as CSV","href":"/api-reference/v1/export-transactions-as-csv"},{"openapi":"get /v1/businesses/{businessId}/reports/transactions/exports/excel","title":"Export transactions as Excel","href":"/api-reference/v1/export-transactions-as-excel"}]},{"group":"Receipts","pages":[{"openapi":"post /v1/businesses/{businessId}/bank-transactions/{transactionId}/documents","title":"Upload transaction document","href":"/api-reference/v1/upload-transaction-document"},{"openapi":"get /v1/businesses/{businessId}/bank-transactions/{transactionId}/documents/{documentId}","title":"Fetch transaction document","href":"/api-reference/v1/fetch-transaction-document"},{"openapi":"get /v1/businesses/{businessId}/bank-transactions/{transactionId}/documents","title":"List transaction documents","href":"/api-reference/v1/list-transaction-documents"},{"openapi":"post /v1/businesses/{businessId}/bank-transactions/{transactionId}/documents/{documentId}/archive","title":"Archive document","href":"/api-reference/v1/archive-document"},{"openapi":"put /v1/businesses/{businessId}/bank-transactions/{transactionId}/metadata","title":"Update transaction metadata","href":"/api-reference/v1/update-transaction-metadata"},{"openapi":"patch /v1/businesses/{businessId}/bank-transactions/{transactionId}/metadata","title":"Patch transaction metadata","href":"/api-reference/v1/patch-transaction-metadata"}]},{"group":"Categorization Rules","pages":[{"openapi":"get /v1/businesses/{businessId}/categorization-rules","title":"List categorization rules","href":"/api-reference/v1/categorization-rules/list-categorization-rules"},{"openapi":"post /v1/businesses/{businessId}/categorization-rules","title":"Create categorization rule","href":"/api-reference/v1/categorization-rules/create-categorization-rule"},{"openapi":"get /v1/businesses/{businessId}/categorization-rules/{categorizationRuleId}","title":"Get categorization rule","href":"/api-reference/v1/categorization-rules/get-categorization-rule"},{"openapi":"put /v1/businesses/{businessId}/categorization-rules/{categorizationRuleId}","title":"Update categorization rule","href":"/api-reference/v1/categorization-rules/update-categorization-rule"},{"openapi":"post /v1/businesses/{businessId}/categorization-rules/{categorizationRuleId}/archive","title":"Archive categorization rule","href":"/api-reference/v1/categorization-rules/archive-categorization-rule"},{"openapi":"get /v1/businesses/{businessId}/categorization-rules/suggestions","title":"List suggested categorization rules","href":"/api-reference/v1/categorization-rules/list-suggested-categorization-rules"},{"openapi":"get /v1/businesses/{businessId}/categorization-rules/suggestions/{suggestionId}","title":"Get suggested categorization rule","href":"/api-reference/v1/categorization-rules/get-suggested-categorization-rule"},{"openapi":"patch /v1/businesses/{businessId}/categorization-rules/suggestions/{suggestionId}","title":"Update suggested categorization rule","href":"/api-reference/v1/categorization-rules/update-suggested-categorization-rule"},{"openapi":"delete /v1/businesses/{businessId}/categorization-rules/suggestions/{suggestionId}","title":"Reject suggested categorization rule","href":"/api-reference/v1/categorization-rules/reject-suggested-categorization-rule"}]}]},{"group":"General Ledger","pages":[{"title":"Account Identifier","href":"/api-reference/ledger/account-identifier"},{"title":"Required vs. Optional Template Accounts","href":"/api-reference/ledger/required-vs-optional-template-accounts"},{"title":"Chart of Accounts object","href":"/api-reference/ledger/chart"},{"openapi":"get /v1/businesses/{businessId}/ledger/chart","title":"Get chart of accounts","href":"/api-reference/v1/get-chart-of-accounts"},{"openapi":"get /v1/businesses/{businessId}/ledger/balances","title":"Get ledger balances","href":"/api-reference/v1/get-ledger-balances"},{"openapi":"get /v1/businesses/{businessId}/ledger/balances/exports/csv","title":"Export ledger balances to CSV","href":"/api-reference/v1/export-ledger-balances-csv"},{"group":"Accounts","pages":[{"openapi":"post /v1/businesses/{businessId}/ledger/accounts","title":"Create ledger account","href":"/api-reference/v1/create-ledger-account"},{"openapi":"put /v1/businesses/{businessId}/ledger/accounts/{accountId}","title":"Update ledger account","href":"/api-reference/v1/update-ledger-account"},{"openapi":"patch /v1/businesses/{businessId}/ledger/accounts/{accountId}","title":"Patch update ledger account","href":"/api-reference/v1/patch-update-ledger-account"},{"openapi":"get /v1/businesses/{businessId}/ledger/accounts/{accountId}","title":"Get ledger account","href":"/api-reference/v1/get-ledger-account"},{"openapi":"get /v1/businesses/{businessId}/ledger/accounts/{accountId}/lines","title":"Get account line items","href":"/api-reference/v1/get-account-line-items"},{"openapi":"get /v1/businesses/{businessId}/ledger/accounts","title":"List ledger accounts","href":"/api-reference/v1/list-ledger-accounts"},{"openapi":"delete /v1/businesses/{businessId}/ledger/accounts/{accountId}","title":"Delete ledger account","href":"/api-reference/v1/delete-ledger-account"},{"openapi":"post /v1/businesses/{businessId}/ledger/accounts/{accountId}/create-child-account","title":"Create child ledger account","href":"/api-reference/v1/create-child-ledger-account"},{"group":"Exports","pages":[{"openapi":"get /v1/businesses/{businessId}/ledger/accounts/{accountId}/exports/excel","title":"Export account transactions as Excel","href":"/api-reference/v1/export-account-transactions-as-excel"}]}]},{"group":"Journal Entries","pages":[{"group":"Custom Journal Entries","pages":[{"title":"Custom journal entry object","href":"/api-reference/custom-journal-entries/custom-journal-entry"},{"openapi":"get /v1/businesses/{businessId}/custom-journal-entries/","title":"List custom journal entries","href":"/api-reference/v1/custom-journal-entries/list-custom-journal-entries"},{"openapi":"post /v1/businesses/{businessId}/custom-journal-entries/","title":"Create custom journal entry","href":"/api-reference/v1/custom-journal-entries/create-custom-journal-entry"},{"openapi":"post /v1/businesses/{businessId}/custom-journal-entries/bulk","title":"Create multiple custom journal entries","href":"/api-reference/v1/custom-journal-entries/create-multiple-custom-journal-entries"},{"openapi":"get /v1/businesses/{businessId}/custom-journal-entries/{customJournalEntryId}","title":"Fetch custom journal entry","href":"/api-reference/v1/custom-journal-entries/fetch-custom-journal-entry"},{"openapi":"put /v1/businesses/{businessId}/custom-journal-entries/{customJournalEntryId}","title":"Update custom journal entry","href":"/api-reference/v1/custom-journal-entries/update-custom-journal-entry"},{"openapi":"delete /v1/businesses/{businessId}/custom-journal-entries/{customJournalEntryId}","title":"Reverse custom journal entry","href":"/api-reference/v1/custom-journal-entries/reverse-custom-journal-entry"}]},{"title":"Fetch Journal Entry","api":"GET https://sandbox.layerfi.com/v1/businesses/{business_id}/ledger/entries/{entry_id}","href":"/api-reference/ledger/entries/get-journal-entry"},{"openapi":"get /v1/businesses/{businessId}/ledger/entries","title":"List ledger entries","href":"/api-reference/v1/list-ledger-entries"},{"openapi":"get /v1/businesses/{businessId}/ledger/entries/exports/csv","title":"Export ledger entries to CSV","href":"/api-reference/v1/export-ledger-entries-csv"},{"title":"Reverse Journal Entry","api":"POST https://sandbox.layerfi.com/v1/businesses/{business_id}/ledger/entries/{entry_id}/reverse","href":"/api-reference/ledger/entries/create-reversal-entry"}]},{"group":"Adjustments","pages":[{"group":"Retained earnings","pages":[{"openapi":"post /v1/businesses/{businessId}/closing/retained-earnings","title":"Retained earnings","href":"/api-reference/v1/create-retained-earnings-closing-action"},{"openapi":"post /v1/businesses/{businessId}/closing/retained-earnings/preview","title":"Preview retained earnings","href":"/api-reference/v1/preview-retained-earnings-closing-action"}]}]}]},{"group":"Tags","pages":[{"openapi":"post /v1/businesses/{businessId}/tags","title":"Tag entities","href":"/api-reference/v1/tag-entities"},{"openapi":"post /v1/businesses/{businessId}/tags/delete","title":"Delete tags from entity","href":"/api-reference/v1/delete-tags-from-entity"},{"group":"Tag Dimensions","pages":[{"openapi":"get /v1/businesses/{businessId}/tags/dimensions","title":"List tag dimensions","href":"/api-reference/v1/list-tag-dimensions"},{"openapi":"post /v1/businesses/{businessId}/tags/dimensions","title":"Create tag dimension","href":"/api-reference/v1/create-tag-dimension"},{"openapi":"get /v1/businesses/{businessId}/tags/dimensions/{dimensionId}","title":"Get tag dimension","href":"/api-reference/v1/get-tag-dimension"},{"openapi":"get /v1/businesses/{businessId}/tags/dimensions/key/{dimensionKey}","title":"Get tag dimension by key","href":"/api-reference/v1/get-tag-dimension-by-key"},{"openapi":"patch /v1/businesses/{businessId}/tags/dimensions/{dimensionId}","title":"Update tag dimension","href":"/api-reference/v1/update-tag-dimension"},{"openapi":"patch /v1/businesses/{businessId}/tags/dimensions/key/{dimensionKey}","title":"Update tag dimension by key","href":"/api-reference/v1/update-tag-dimension-by-key"}]},{"group":"Tag Values","pages":[{"openapi":"get /v1/businesses/{businessId}/tags/values","title":"List tag values","href":"/api-reference/v1/list-tag-value"},{"openapi":"post /v1/businesses/{businessId}/tags/dimensions/{dimensionId}/values","title":"Create tag value","href":"/api-reference/v1/create-tag-value"},{"openapi":"patch /v1/businesses/{businessId}/tags/dimensions/{dimensionId}/values/{valueId}","title":"Update tag value","href":"/api-reference/v1/update-tag-value"}]}]},{"group":"Mileage Tracking","pages":[{"group":"Vehicles","pages":[{"openapi":"get /v1/businesses/{businessId}/mileage/vehicles","title":"List vehicles","href":"/api-reference/v1/list-vehicles"},{"openapi":"post /v1/businesses/{businessId}/mileage/vehicles","title":"Create vehicle","href":"/api-reference/v1/create-vehicle"},{"openapi":"post /v1/businesses/{businessId}/mileage/vehicles/bulk","title":"Bulk create vehicles","href":"/api-reference/v1/bulk-create-vehicles"},{"openapi":"get /v1/businesses/{businessId}/mileage/vehicles/{vehicleId}","title":"Get vehicle","href":"/api-reference/v1/get-vehicle"},{"openapi":"patch /v1/businesses/{businessId}/mileage/vehicles/{vehicleId}","title":"Update vehicle","href":"/api-reference/v1/update-vehicle"},{"openapi":"post /v1/businesses/{businessId}/mileage/vehicles/{vehicleId}/archive","title":"Archive vehicle","href":"/api-reference/v1/archive-vehicle"},{"openapi":"post /v1/businesses/{businessId}/mileage/vehicles/{vehicleId}/reactivate","title":"Reactivate vehicle","href":"/api-reference/v1/reactivate-vehicle"},{"openapi":"delete /v1/businesses/{businessId}/mileage/vehicles/{vehicleId}","title":"Delete vehicle","href":"/api-reference/v1/delete-vehicle"}]},{"group":"Trips","pages":[{"openapi":"get /v1/businesses/{businessId}/mileage/trips","title":"List trips","href":"/api-reference/v1/list-trips"},{"openapi":"post /v1/businesses/{businessId}/mileage/trips","title":"Create trip","href":"/api-reference/v1/create-trip"},{"openapi":"post /v1/businesses/{businessId}/mileage/trips/bulk","title":"Bulk create trips","href":"/api-reference/v1/bulk-create-trips"},{"openapi":"get /v1/businesses/{businessId}/mileage/trips/{tripId}","title":"Get trip","href":"/api-reference/v1/get-trip"},{"openapi":"patch /v1/businesses/{businessId}/mileage/trips/{tripId}","title":"Update trip","href":"/api-reference/v1/update-trip"},{"openapi":"delete /v1/businesses/{businessId}/mileage/trips/{tripId}","title":"Delete trip","href":"/api-reference/v1/delete-trip"}]},{"group":"Addresses","pages":[{"openapi":"get /v1/businesses/{businessId}/mileage/address-suggestions","title":"Get address suggestions","href":"/api-reference/v1/get-address-suggestions"},{"openapi":"get /v1/businesses/{businessId}/mileage/address-details","title":"Get address details","href":"/api-reference/v1/get-address-details"}]},{"group":"Reports","pages":[{"openapi":"get /v1/businesses/{businessId}/mileage/summary","title":"Get mileage summary","href":"/api-reference/v1/get-mileage-summary"}]}]},{"group":"Services Catalog","pages":[{"openapi":"get /v1/businesses/{businessId}/catalog/services","title":"List services","href":"/api-reference/v1/catalog/list-services"},{"openapi":"post /v1/businesses/{businessId}/catalog/services","title":"Create service","href":"/api-reference/v1/catalog/create-service"},{"openapi":"get /v1/businesses/{businessId}/catalog/services/{serviceId}","title":"Get service","href":"/api-reference/v1/catalog/get-service"},{"openapi":"patch /v1/businesses/{businessId}/catalog/services/{serviceId}","title":"Update service","href":"/api-reference/v1/catalog/update-service"},{"openapi":"delete /v1/businesses/{businessId}/catalog/services/{serviceId}","title":"Delete service","href":"/api-reference/v1/catalog/delete-service"}]},{"group":"Time Tracking","pages":[{"group":"Time Entries","pages":[{"openapi":"get /v1/businesses/{businessId}/time-tracking/time-entries","title":"List time entries","href":"/api-reference/v1/time-tracking/list-time-entries"},{"openapi":"post /v1/businesses/{businessId}/time-tracking/time-entries","title":"Create time entry","href":"/api-reference/v1/time-tracking/create-time-entry"},{"openapi":"post /v1/businesses/{businessId}/time-tracking/time-entries/bulk","title":"Bulk create time entries","href":"/api-reference/v1/time-tracking/bulk-create-time-entries"},{"openapi":"get /v1/businesses/{businessId}/time-tracking/time-entries/{timeEntryId}","title":"Get time entry","href":"/api-reference/v1/time-tracking/get-time-entry"},{"openapi":"patch /v1/businesses/{businessId}/time-tracking/time-entries/{timeEntryId}","title":"Update time entry","href":"/api-reference/v1/time-tracking/update-time-entry"}]},{"group":"Reports","pages":[{"openapi":"get /v1/businesses/{businessId}/time-tracking/time-entries/summary","title":"Get time entry summary","href":"/api-reference/v1/time-tracking/get-time-entry-summary"},{"openapi":"get /v1/businesses/{businessId}/time-tracking/invoice-preview","title":"Preview invoice from time entries","href":"/api-reference/v1/time-tracking/get-invoice-preview"}]}]},{"group":"Loans","pages":[{"title":"Loan object","href":"/api-reference/loan/loan"},{"openapi":"get /v1/businesses/{businessId}/loans","title":"List loans","description":"Returns a list of loans for the specified business. Results are paginated; see [Pagination](/api-details/pagination) for details.","href":"/api-reference/v1/loans/list-loans"},{"openapi":"post /v1/businesses/{businessId}/loans","title":"Create a loan","href":"/api-reference/v1/loans/create-loan"},{"openapi":"get /v1/businesses/{businessId}/loans/{loanId}","title":"Fetch a loan","description":"Returns a single loan by ID.","href":"/api-reference/v1/loans/fetch-loan"},{"openapi":"patch /v1/businesses/{businessId}/loans/{loanId}","title":"Update a loan","href":"/api-reference/v1/loans/update-loan"},{"openapi":"delete /v1/businesses/{businessId}/loans/{loanId}","title":"Archive a loan","href":"/api-reference/v1/loans/archive-loan"},{"group":"Loan Proceeds","pages":[{"openapi":"get /v1/businesses/{businessId}/loans/{loanId}/proceeds","title":"List loan proceeds","href":"/api-reference/v1/loans/list-loan-proceeds"},{"openapi":"post /v1/businesses/{businessId}/loans/{loanId}/proceeds","title":"Create a loan proceed","href":"/api-reference/v1/loans/create-loan-proceed"},{"openapi":"get /v1/businesses/{businessId}/loans/{loanId}/proceeds/{proceedId}","title":"Fetch a loan proceed","href":"/api-reference/v1/loans/fetch-loan-proceed"},{"openapi":"patch /v1/businesses/{businessId}/loans/{loanId}/proceeds/{proceedId}","title":"Update a loan proceed","href":"/api-reference/v1/loans/update-loan-proceed"},{"openapi":"delete /v1/businesses/{businessId}/loans/{loanId}/proceeds/{proceedId}","title":"Archive a loan proceed","href":"/api-reference/v1/loans/archive-loan-proceed"}]},{"group":"Loan Payments","pages":[{"openapi":"get /v1/businesses/{businessId}/loans/payments","title":"List loan payments","href":"/api-reference/v1/loans/list-loan-payments"},{"openapi":"post /v1/businesses/{businessId}/loans/payments","title":"Create a loan payment","href":"/api-reference/v1/loans/create-loan-payment"},{"openapi":"post /v1/businesses/{businessId}/loans/{loanId}/payments/bulk","title":"Bulk create loan payments","href":"/api-reference/v1/loans/bulk-create-loan-payments"},{"openapi":"get /v1/businesses/{businessId}/loans/payments/{paymentId}","title":"Fetch a loan payment","href":"/api-reference/v1/loans/fetch-loan-payment"},{"openapi":"patch /v1/businesses/{businessId}/loans/payments/{paymentId}","title":"Update a loan payment","href":"/api-reference/v1/loans/update-loan-payment"},{"openapi":"delete /v1/businesses/{businessId}/loans/payments/{paymentId}","title":"Archive a loan payment","href":"/api-reference/v1/loans/archive-loan-payment"},{"openapi":"get /v1/businesses/{businessId}/loans/{loanId}/payments","title":"List payments for a loan","href":"/api-reference/v1/loans/list-payments-for-loan"}]}]},{"group":"Assets","pages":[{"title":"Asset object","href":"/api-reference/asset/asset"},{"openapi":"get /v1/businesses/{businessId}/assets","title":"List assets","href":"/api-reference/v1/assets/list-assets"},{"openapi":"post /v1/businesses/{businessId}/assets","title":"Create an asset","href":"/api-reference/v1/assets/create-asset"},{"openapi":"get /v1/businesses/{businessId}/assets/{assetId}","title":"Fetch an asset","href":"/api-reference/v1/assets/fetch-asset"},{"openapi":"patch /v1/businesses/{businessId}/assets/{assetId}","title":"Update an asset","href":"/api-reference/v1/assets/update-asset"},{"openapi":"delete /v1/businesses/{businessId}/assets/{assetId}","title":"Archive an asset","href":"/api-reference/v1/assets/archive-asset"},{"group":"Value Updates","pages":[{"openapi":"get /v1/businesses/{businessId}/assets/value-updates","title":"List asset value updates","href":"/api-reference/v1/assets/list-asset-value-updates"},{"openapi":"post /v1/businesses/{businessId}/assets/value-updates","title":"Create an asset value update","href":"/api-reference/v1/assets/create-asset-value-update"},{"openapi":"get /v1/businesses/{businessId}/assets/value-updates/{valueUpdateId}","title":"Fetch an asset value update","href":"/api-reference/v1/assets/fetch-asset-value-update"},{"openapi":"patch /v1/businesses/{businessId}/assets/value-updates/{valueUpdateId}","title":"Update an asset value update","href":"/api-reference/v1/assets/update-asset-value-update"},{"openapi":"delete /v1/businesses/{businessId}/assets/value-updates/{valueUpdateId}","title":"Archive an asset value update","href":"/api-reference/v1/assets/archive-asset-value-update"},{"openapi":"get /v1/businesses/{businessId}/assets/{assetId}/value-updates","title":"List value updates for an asset","href":"/api-reference/v1/assets/list-value-updates-for-asset"}]}]}]},{"group":"Accounting Reports","pages":[{"group":"Profit and Loss","pages":[{"title":"Profit and Loss object","href":"/api-reference/reports/pnl/pnl"},{"title":"Profit and Loss Details object","href":"/api-reference/reports/pnl/pnl-details"},{"title":"Retrieve a Profit and Loss","api":"GET https://sandbox.layerfi.com/v1/businesses/{business_id}/reports/profit-and-loss","href":"/api-reference/reports/pnl/get"},{"title":"Retrieve Profit and Loss Details","api":"GET https://sandbox.layerfi.com/v1/businesses/{business_id}/reports/profit-and-loss-details","href":"/api-reference/reports/pnl/get-pnl-details"},{"openapi":"get /v1/businesses/{businessId}/reports/profit-and-loss-summaries","title":"Fetch P\u0026L summaries","href":"/api-reference/v1/fetch-p\u0026l-summaries"},{"openapi":"get /v1/businesses/{businessId}/reports/profit-and-loss-summary","title":"Fetch P\u0026L summary","href":"/api-reference/v1/fetch-p\u0026l-summary"},{"openapi":"get /v1/businesses/{businessId}/reports/profit-and-loss","title":"Fetch P\u0026L report","href":"/api-reference/v1/fetch-p\u0026l-report"},{"openapi":"get /v1/businesses/{businessId}/reports/profit-and-loss/lines","title":"Fetch P\u0026L line items","href":"/api-reference/v1/fetch-p\u0026l-line-items"},{"openapi":"post /v1/businesses/{businessId}/reports/profit-and-loss-comparison","title":"Create P\u0026L comparisons","href":"/api-reference/v1/create-p\u0026l-comparisons"},{"group":"Exports","pages":[{"openapi":"get /v1/businesses/{businessId}/reports/profit-and-loss/exports/csv","title":"Export P\u0026L as CSV","href":"/api-reference/v1/export-p\u0026l-as-csv"},{"openapi":"get /v1/businesses/{businessId}/reports/profit-and-loss/exports/excel","title":"Export P\u0026L as Excel","href":"/api-reference/v1/export-p\u0026l-as-excel"},{"openapi":"get /v1/businesses/{businessId}/reports/profit-and-loss/lines/exports/excel","title":"Export P\u0026L line items as Excel","href":"/api-reference/v1/export-p\u0026l-line-items-as-excel"},{"openapi":"get /v1/businesses/{businessId}/reports/profit-and-loss/exports/month-over-month","title":"Export month-over-month P\u0026L","href":"/api-reference/v1/export-month-over-month-p\u0026l"},{"openapi":"post /v1/businesses/{businessId}/reports/profit-and-loss/exports/comparison-csv","title":"Export P\u0026L comparison as CSV","href":"/api-reference/v1/export-p\u0026l-comparison-as-csv"}]}]},{"group":"Balance Sheet","pages":[{"title":"Balance Sheet object","href":"/api-reference/reports/balance-sheet/balance-sheet"},{"title":"Retrieve a Balance Sheet","api":"GET https://sandbox.layerfi.com/v1/businesses/{business_id}/reports/balance-sheet","href":"/api-reference/reports/balance-sheet/get-balance-sheet"},{"openapi":"get /v1/businesses/{businessId}/reports/balance-sheet","title":"Fetch balance sheet","href":"/api-reference/v1/fetch-balance-sheet"},{"group":"Exports","pages":[{"openapi":"get /v1/businesses/{businessId}/reports/balance-sheet/exports/csv","title":"Export balance sheet as CSV","href":"/api-reference/v1/export-balance-sheet-as-csv"},{"openapi":"get /v1/businesses/{businessId}/reports/balance-sheet/exports/excel","title":"Export balance sheet as Excel","href":"/api-reference/v1/export-balance-sheet-as-excel"}]}]},{"group":"Cash Flow Statement","pages":[{"title":"Cash Flow Statement object","href":"/api-reference/reports/cash-flow-statement/cash-flow-statement"},{"title":"Retrieve a Cash Flow Statement","api":"GET https://sandbox.layerfi.com/v1/businesses/{business_id}/reports/cash-flow-statement","href":"/api-reference/reports/cash-flow-statement/get-cash-flow-statement"},{"openapi":"get /v1/businesses/{businessId}/reports/cashflow-statement","title":"Fetch cashflow statement","href":"/api-reference/v1/fetch-cashflow-statement"},{"group":"Exports","pages":[{"openapi":"get /v1/businesses/{businessId}/reports/cashflow-statement/exports/csv","title":"Export cashflow statement as CSV","href":"/api-reference/v1/export-cashflow-statement-as-csv"}]}]},{"group":"AR Aging","pages":[{"openapi":"get /v1/businesses/{businessId}/invoices/ar-aging","title":"Fetch AR aging report","href":"/api-reference/v1/fetch-ar-aging-report"},{"openapi":"get /v1/businesses/{businessId}/invoices/ar-aging/customer/{customerId}","title":"Fetch AR aging detail for a customer","href":"/api-reference/v1/fetch-ar-aging-detail-for-a-customer"}]},{"group":"AP Aging","pages":[{"openapi":"get /v1/businesses/{businessId}/reports/unified/ap-aging","title":"Fetch AP aging report","href":"/api-reference/v1/fetch-ap-aging-report"},{"openapi":"get /v1/businesses/{businessId}/reports/unified/ap-aging/exports/excel","title":"Export AP aging report as Excel","href":"/api-reference/v1/export-ap-aging-report-as-excel"}]},{"group":"Tax","pages":[{"openapi":"get /v1/businesses/{businessId}/reports/tax/schedule-c","title":"Fetch Schedule C report","href":"/api-reference/v1/fetch-schedule-c-report"},{"group":"Tax Packets","pages":[{"openapi":"post /v1/businesses/{businessId}/reports/tax-packets","title":"Create tax packet","href":"/api-reference/v1/create-tax-packet"},{"openapi":"get /v1/businesses/{businessId}/reports/tax-packets","title":"List tax packets","href":"/api-reference/v1/list-tax-packets"}]}]},{"group":"Tax Estimates","pages":[{"title":"Overview","href":"/api-reference/v1/tax-estimates/overview"},{"openapi":"get /v1/businesses/{businessId}/tax-estimates/summary","title":"Get tax summary","href":"/api-reference/v1/tax-estimates/get-tax-summary"},{"openapi":"get /v1/businesses/{businessId}/tax-estimates/overview","title":"Get tax overview","href":"/api-reference/v1/tax-estimates/get-tax-overview"},{"openapi":"get /v1/businesses/{businessId}/tax-estimates/details","title":"Get tax details","href":"/api-reference/v1/tax-estimates/get-tax-details"},{"openapi":"get /v1/businesses/{businessId}/tax-estimates/checklist","title":"Get tax checklist","href":"/api-reference/v1/tax-estimates/get-tax-checklist"},{"openapi":"get /v1/businesses/{businessId}/tax-estimates/payments","title":"Get tax payments","href":"/api-reference/v1/tax-estimates/get-tax-payments"},{"openapi":"get /v1/businesses/{businessId}/tax-estimates/profile","title":"Get tax profile","href":"/api-reference/v1/tax-estimates/get-tax-profile"},{"openapi":"post /v1/businesses/{businessId}/tax-estimates/profile","title":"Create tax profile","href":"/api-reference/v1/tax-estimates/create-tax-profile"},{"openapi":"patch /v1/businesses/{businessId}/tax-estimates/profile","title":"Update tax profile","href":"/api-reference/v1/tax-estimates/update-tax-profile"},{"openapi":"post /v1/businesses/{businessId}/tax-estimates/export","title":"Export tax documents","href":"/api-reference/v1/tax-estimates/export-tax-documents"}]},{"group":"Data Sync Validation","pages":[{"openapi":"get /v1/businesses/{businessId}/reports/data-sync-validation","title":"Fetch data sync validation totals","href":"/api-reference/v1/fetch-data-sync-validation-totals"}]}]},{"group":"Platform Configuration","pages":[{"group":"Accounting","pages":[{"openapi":"get /v1/configure/{clientId}/accounting","title":"Fetch client accounting configuration","href":"/api-reference/v1/fetch-client-accounting-configuration"},{"openapi":"patch /v1/configure/{clientId}/accounting","title":"Update client accounting configuration","href":"/api-reference/v1/update-client-accounting-configuration"}]},{"group":"SMS","pages":[{"openapi":"get /v1/businesses/{businessId}/sms","title":"Fetch SMS configuration","href":"/api-reference/sms/sms"},{"title":"Set SMS Configuration","api":"PUT https://sandbox.layerfi.com/v1/configure/sms","href":"/api-reference/sms/set"},{"title":"Retrieve SMS Configuration","api":"GET https://sandbox.layerfi.com/v1/configure/sms","href":"/api-reference/sms/get"}]}]},{"group":"Platform reporting","pages":[{"group":"Platform wide activity","pages":[{"openapi":"get /v2/activity","title":"Fetch platform activity summary","href":"/api-reference/v1/fetch-platform-activity-summary"}]},{"group":"Business Activity","pages":[{"openapi":"get /v2/activity/businesses/{businessId}/activities","title":"Fetch business activities","href":"/api-reference/v1/fetch-business-activities"},{"openapi":"get /v2/activity/businesses/{businessId}","title":"Fetch business activity metrics","href":"/api-reference/v1/fetch-business-activity-summary"}]},{"group":"Bookkeeping Status","pages":[{"openapi":"get /v1/reports/bookkeeping","title":"List bookkeeping businesses","href":"/api-reference/v1/list-bookkeeping-businesses"},{"openapi":"get /v1/businesses/{businessId}/reports/bookkeeping/status","title":"Fetch bookkeeping reporting status","href":"/api-reference/v1/fetch-bookkeeping-reporting-status"},{"openapi":"get /v1/businesses/{businessId}/reports/bookkeeping/periods","title":"Fetch bookkeeping reporting periods","href":"/api-reference/v1/fetch-bookkeeping-reporting-periods"},{"openapi":"get /v1/businesses/{businessId}/bookkeeping/periods","title":"List bookkeeping periods for a business","href":"/api-reference/v1/bookkeeping/list-bookkeeping-periods-for-a-business"}]},{"group":"Async Exports","pages":[{"openapi":"post /v1/billing/reports","title":"Create billing report export","href":"/api-reference/v1/create-billing-report-export"},{"openapi":"post /v1/reports/bookkeeping/exports","title":"Create bookkeeping status report export","href":"/api-reference/v1/create-bookkeeping-status-report-export"},{"openapi":"get /v1/exports","title":"List exports","href":"/api-reference/v1/list-exports"},{"openapi":"get /v1/exports/{exportId}","title":"Fetch export","href":"/api-reference/v1/fetch-export"}]}]},{"group":"Integrations","pages":[{"group":"Plaid","pages":[{"title":"Plaid Configuration object","href":"/api-reference/plaid/plaid"},{"title":"Set Plaid Credentials","api":"PUT https://sandbox.layerfi.com/v1/configure/plaid","href":"/api-reference/plaid/set"},{"title":"Retrieve Plaid Configuration","api":"GET https://sandbox.layerfi.com/v1/configure/plaid","href":"/api-reference/plaid/get"}]},{"group":"Stripe","pages":[{"openapi":"get /v1/configure/stripe","title":"Fetch Stripe configuration","href":"/api-reference/v1/fetch-stripe-configuration"},{"openapi":"put /v1/configure/stripe","title":"Update Stripe configuration","href":"/api-reference/v1/update-stripe-configuration"}]},{"group":"Check Embedded Payroll","pages":[{"openapi":"get /v1/businesses/{businessId}/payroll/check/configs","title":"List Check payroll configs","href":"/api-reference/v1/list-check-payroll-configs"},{"openapi":"put /v1/businesses/{businessId}/payroll/check/configs","title":"Create Check payroll config","href":"/api-reference/v1/create-check-payroll-config"},{"openapi":"delete /v1/businesses/{businessId}/payroll/check/configs/{checkPayrollConfigId}","title":"Delete Check payroll config","href":"/api-reference/v1/delete-check-payroll-config"}]},{"group":"Quickbooks","pages":[{"group":"Configure Quickbooks","pages":[{"openapi":"get /v1/configure/quickbooks","title":"Fetch Quickbooks configuration","href":"/api-reference/v1/fetch-quickbooks-configuration"},{"openapi":"put /v1/configure/quickbooks","title":"Update Quickbooks configuration","href":"/api-reference/v1/update-quickbooks-configuration"}]},{"group":"Sync Quickbooks","pages":[{"openapi":"get /v1/businesses/{businessId}/quickbooks/connection-status","title":"Get connection status","href":"/api-reference/v1/get-connection-status"},{"openapi":"post /v1/businesses/{businessId}/quickbooks/sync-from","title":"Sync from Quickbooks","href":"/api-reference/v1/sync-from-quickbooks"},{"openapi":"post /v1/businesses/{businessId}/quickbooks/authorize","title":"Authorize Quickbooks OAuth flow","href":"/api-reference/v1/authorize-quickbooks-oauth-flow"}]},{"group":"Quickbooks Ledger","pages":[{"openapi":"get /v1/businesses/{businessId}/quickbooks/ledger/accounts","title":"List Quickbooks accounts","href":"/api-reference/v1/list-quickbooks-accounts"},{"openapi":"get /v1/businesses/{businessId}/quickbooks/ledger/accounts/{accountId}","title":"Fetch Quickbooks account","href":"/api-reference/v1/fetch-quickbooks-account"},{"openapi":"post /v1/businesses/{businessId}/quickbooks/ledger/accounts/{accountId}/update-mapping","title":"Update Quickbooks account mapping","href":"/api-reference/v1/update-quickbooks-account-mapping"}]}]}]}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/banking/plaid"}]},{"tab":"Embedded Components","pages":[{"title":"Embedded Components","href":"/embedded-components/layerprovider-context"}]},{"tab":"MCP","pages":[{"title":"MCP","href":"/insights/mcp-server"}]},{"tab":"Status","href":"https://status.layerfi.com/"}]},"basePath":"","title":"Create a loan - Layer","buildId":"dpl_G2Qd45vZZ7MkBiGF9yYx8ZsbbKXX","deploymentId":"dpl_G2Qd45vZZ7MkBiGF9yYx8ZsbbKXX","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-NXj-Rqjv.js","utils-m0thOP-_.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D13EKcfm.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema--XTdfsEb.js","snippetPresets-D3s4lmAH.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-ChURybxL.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-DL8CiXq2.js","shallow-DI2-YB2E.js","getApiPlaygroundDisplay-DxbW7b_y.js","CodeSnippet-CiNYS0pP.js","CodeSnippets-BT87bThu.js","Page-DSpdRuhM.js","getPastedJson-F_g_IrFQ.js","icon-CCIG5BAs.js","MethodPill-DY3E0jwx.js","DuplicateIcon-BN88xnEg.js","createIcon-VCCc5HO5.js","DynamicMarkdown-CaSwclgK.js","SectionHeading-DXV8nWhc.js","axios-vUo_bRtp.js","Markdown-CV32Re6G.js","clsx-5ydLOnhV.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-pFDdfjRe.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BUGO5bPJ.js"]}