{
"code": "authentication_missing",
"message": "The request has no authentication credentials. Send your API token in the Authorization header.",
"errors": [
{
"code": "authentication_missing",
"message": "The Authorization header is missing. Send your API token as a bearer token.",
"parameters": [
"Authorization"
]
}
]
}
{
"code": "internal_server_error",
"message": "Internal server error. Retry with exponential backoff. For a POST, PATCH or DELETE, reuse the same Idempotency-Key so the request isn't processed twice. If it keeps failing, contact Lead with the Lead-Request-ID."
}
Entities
Update an Entity
Update an individual, business, or sole_prop Entity. Some changes need a fresh KYC attestation. See Create and update for which changes need one and how PATCH handles each field.
A field sent as null clears the stored value. This applies to preferred_first_name, middle_name, date_of_birth, occupation, doing_business_as, website and gross_annual_revenue, to physical_address and mailing_address (which removes that address), and to line_2, state and postal_code inside an address. The updated entity is then checked like any other update: clearing date_of_birth needs kyc with a later screened_at in the same request, and the entity must still meet intended_eligibility. Every other field can’t be null, including type, first_name, last_name, name, identification, sole_proprietor_entity_id, legal_structure, currency, risk_score, kyc, ofac, rfi, metadata, the arrays, an address’s line_1, city and country, and the fields inside identification, kyc, ofac, rfi and each array entry. Sending one as null returns 422 parameters_invalid; send a new value instead, or [] to empty an array. Clearing needs a literal null in the JSON body; a client that leaves out unset fields can’t clear them.
{
"code": "authentication_missing",
"message": "The request has no authentication credentials. Send your API token in the Authorization header.",
"errors": [
{
"code": "authentication_missing",
"message": "The Authorization header is missing. Send your API token as a bearer token.",
"parameters": [
"Authorization"
]
}
]
}
{
"code": "internal_server_error",
"message": "Internal server error. Retry with exponential backoff. For a POST, PATCH or DELETE, reuse the same Idempotency-Key so the request isn't processed twice. If it keeps failing, contact Lead with the Lead-Request-ID."
}
See Errors for the common errors every v2 endpoint can return.
Authorizations
Authorization
string
header
required
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Idempotency-Key
string
required
A unique key for this request, up to 255 characters. Retrying with the same key and body returns the original response without applying the update twice. See Idempotency.
A unique key for this request, up to 255 characters. Retrying with the same key and body returns the original response instead of performing the operation again.
Required string length: 1 - 255
Example:
"3f1c9a52-7d4e-4b8a-9c21-6e0f5d2a8b14"
Path Parameters
entity_id
string
required
The ID of the entity.
The ID of your entity.
Pattern: ^entity_[^\s]{1,33}$
Example:
"entity_xyz123"
Body
application/json
Individual
Business
Sole Prop
Lead ignores fields not listed here. A field sent as null clears the stored value: preferred_first_name, middle_name, date_of_birth, occupation, and physical_address or mailing_address, which removes that address. These can't be null: type, first_name, last_name, identification, risk_score, kyc, ofac, rfi, metadata, the arrays, and the fields inside identification, kyc, ofac, rfi and each array entry. In physical_address and mailing_address, line_2, state and postal_code can be null; line_1, city and country can't. Send a new value instead, or [] to empty an array.
type
string
default:individual
required
Type of entity = individual.
Pattern: ^individual$
first_name
string
Legal first name, as your customer gave it. Non-Latin characters are accepted.
Maximum string length: 500
Example:
"Lucy"
preferred_first_name
string | null
Preferred first name.
Maximum string length: 500
Example:
"Lu"
middle_name
string | null
Middle name.
Maximum string length: 500
Example:
"Reginald"
last_name
string
Legal last name, as your customer gave it. Non-Latin characters are accepted.
Maximum string length: 500
Example:
"Collins"
date_of_birth
string<date> | null
Date of birth, in YYYY-MM-DD format. account_holder and authorized_signer require age 18 or older. minor_account_holder requires age 16 or 17.
Example:
"2002-02-15"
occupation
string | null
Occupation.
Maximum string length: 500
Example:
"Author"
contact_methods
(Email · object | Phone Number · object)[]
Email
Phone Number
Show child attributes
physical_address
object | null
The entity's physical address. It can't be a P.O. box, a registered agent's address, or in a prohibited country.
Show child attributes
mailing_address
object | null
The entity's mailing address.
Show child attributes
other_addresses
object[]
Other addresses for the entity. The array you send replaces the stored array.
Show child attributes
identification
US Entity · object
Required on every individual; only type is required inside it. tax_identification is required for a us_entity holding the account_holder, minor_account_holder, or authorized_signer relationship type, and for beneficial owners, control persons, and sole proprietors. It is not required for an authorized_user. A non_us_entity needs at least one documents entry for the same relationship types; on an entity created on v0, legacy_documents entries count.
US Entity
Non US Entity
Show child attributes
additional_documents
object[]
Supporting documents, one entry per document. You can send up to 100 documents. Each entry takes either a file_id or a type, not both. The array you send replaces the stored array, and Lead checks every file_id in it again. You don't need to confirm KYC again when you change documents.
The entity's risk score. You map your own risk scores to these values and give Lead the mapping.
Available options:
low,
medium,
high
Example:
"low"
kyc
object
Your KYC check of the entity.
Show child attributes
ofac
object
Your OFAC screen of the entity.
Show child attributes
rfi
object
Your request for information (RFI) to your customer.
Show child attributes
credit_reports
object[]
Credit reports from credit bureaus on the entity.
Show child attributes
intended_eligibility
enum<string>[]
The relationship types you intend this entity to hold. When you send it, Lead checks the entity's data against every listed type and rejects the request with 422 parameters_invalid if any fails. The check is all or nothing, and the error returns every failing check, not just the first. Listing fewer types than the entity qualifies for still succeeds, and eligibility shows everything it qualifies for.
If the check passes, Lead saves the list and returns it on the entity. On a PATCH, Lead checks the entity as it would be after the update, against the list you send or, if you leave the field out, the saved list. Send an empty array to clear the saved list; no check runs.
A relationship type an entity can hold.
account_holder: Full control of, and legal responsibility for, the account.
minor_account_holder: An individual aged 16 or 17 with account holder eligibility.
authorized_signer: An individual allowed to sign on behalf of the account holder, without legal responsibility.
authorized_user: An individual with restricted access to the account, without legal responsibility.
Available options:
account_holder,
minor_account_holder,
authorized_signer,
authorized_user
Example:
["account_holder"]
metadata
object
A set of key-value pairs that can be used to store additional information related to this object.
Show child attributes
Response
Entity object updated.
Individual
Business
Sole Prop
id
string
required
Unique ID for the Entity object.
Pattern: ^entity_[^\s]{1,33}$
Example:
"entity_xyz123"
type
string
default:individual
required
Type of entity = individual.
Pattern: ^individual$
created_at
string<date-time>
required
When the entity was created, in UTC to the second.
Example:
"2026-11-07T05:31:56Z"
first_name
string
required
Legal first name, as your customer gave it.
last_name
string
required
Legal last name, as your customer gave it.
contact_methods
(Email · object | Phone Number · object)[]
required
Email
Phone Number
Show child attributes
other_addresses
object[]
required
Other addresses for the entity.
Show child attributes
identification
US Entity · object
required
tax_identification is required for a us_entity holding the account_holder, minor_account_holder, or authorized_signer relationship type, and for beneficial owners, control persons, and sole proprietors. It is not required for an authorized_user. A non_us_entity needs at least one documents entry for the same relationship types; on an entity created on v0, legacy_documents entries count.
US Entity
Non US Entity
Show child attributes
additional_documents
object[]
required
Supporting documents, one entry per document. Each entry takes either a file_id or a type, not both. The array you send replaces the stored array, and Lead checks every file_id in it again. You don't need to confirm KYC again when you change documents.
The relationship types you intend this entity to hold. When you send it, Lead checks the entity's data against every listed type and rejects the request with 422 parameters_invalid if any fails. The check is all or nothing, and the error returns every failing check, not just the first. Listing fewer types than the entity qualifies for still succeeds, and eligibility shows everything it qualifies for.
If the check passes, Lead saves the list and returns it on the entity. On a PATCH, Lead checks the entity as it would be after the update, against the list you send or, if you leave the field out, the saved list. Send an empty array to clear the saved list; no check runs.
A relationship type an entity can hold.
account_holder: Full control of, and legal responsibility for, the account.
minor_account_holder: An individual aged 16 or 17 with account holder eligibility.
authorized_signer: An individual allowed to sign on behalf of the account holder, without legal responsibility.
authorized_user: An individual with restricted access to the account, without legal responsibility.
Available options:
account_holder,
minor_account_holder,
authorized_signer,
authorized_user
Example:
["account_holder"]
eligibility
object
required
Whether the entity's current data qualifies it for each relationship type, with the failing checks. Response only. Lead computes it from current data on every read and never stores it. All four keys are always present. On a program that does not offer minor account holders, minor_account_holder is ineligible for every entity.
Show child attributes
Example:
{ "account_holder": { "result": "eligible", "failed_checks": [] }, "minor_account_holder": { "result": "ineligible", "failed_checks": [ { "check": "check_date_of_birth_above_maximum", "entity_id": "entity_xyz123", "details": "The entity exceeds the maximum age for minor_account_holder." } ] }, "authorized_signer": { "result": "eligible", "failed_checks": [] }, "authorized_user": { "result": "eligible", "failed_checks": [] } }
metadata
object
required
A set of key-value pairs that can be used to store additional information related to this object.
Show child attributes
client_customer_id
string
Your customer ID, on entities created through Customer files. Response only. Lead ignores it if sent, and does not return it on entities created with POST /v2/entities.
preferred_first_name
string
Preferred first name.
middle_name
string
Middle name.
date_of_birth
string<date>
Date of birth, in YYYY-MM-DD format.
Example:
"2002-02-15"
occupation
string
Occupation.
physical_address
object
The entity's physical address.
Show child attributes
mailing_address
object
The entity's mailing address.
Show child attributes
risk_score
enum<string>
The entity's risk score. You map your own risk scores to these values and give Lead the mapping.
Available options:
low,
medium,
high
Example:
"low"
kyc
object
Your KYC check of the entity.
Show child attributes
ofac
object
Your OFAC screen of the entity.
Show child attributes
rfi
object
Your request for information (RFI) to your customer.
Show child attributes
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Lead | API Docs","description":"Documentation on integrating with Lead.","colors":{"primary":"#0a7dff","light":"#0A7DFF","dark":"#0A7DFF"},"logo":{"light":"https://mintcdn.com/lead/CBhAckaMlXKGU6Mg/logo/light.png?fit=max\u0026auto=format\u0026n=CBhAckaMlXKGU6Mg\u0026q=85\u0026s=15271cba9a93ada7db90b103ceca5861","dark":"https://mintcdn.com/lead/CBhAckaMlXKGU6Mg/logo/dark.png?fit=max\u0026auto=format\u0026n=CBhAckaMlXKGU6Mg\u0026q=85\u0026s=b903bd5379397802c864e5f18a2eb40a"},"favicon":"https://mintcdn.com/lead/xIgp8PZ3ECTtP05D/logo/favicon.png?fit=max\u0026auto=format\u0026n=xIgp8PZ3ECTtP05D\u0026q=85\u0026s=d2492ae48f213bed1dbf2b5b087b2df2","navbar":{"primary":{"type":"button","label":"Partner Site","href":"https://partners.lead.bank"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/lead-bank","x":"https://x.com/Lead_Bank","website":"https://www.lead.bank/"}},"fonts":{"heading":{"family":"Lead-Sans-Variable","weight":700,"source":"fonts/Lead-Sans-Variable.woff2","format":"woff2"},"body":{"family":"Lead-Sans-Variable","weight":400,"source":"fonts/Lead-Sans-Variable.woff2","format":"woff2"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"lead","hasAudioNarration":false,"actualSubdomain":"lead","customDomains":["docs.lead.bank"],"gitSource":{"type":"github","owner":"lunafinancialgroup","repo":"client-api-specs","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":"","_id":"6afe2c426d627ce391380405"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b134f2817382f16c6b09cde","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"API Reference","count":179},{"language":"default","tag":"Products","count":161},{"language":"default","tag":"Payment Rails","count":105},{"language":"default","tag":"Customers \u0026 Accounts","count":54},{"language":"default","tag":"File Reference","count":41},{"language":"default","tag":"ACH","count":36},{"language":"default","tag":"Blockchain Payments","count":27},{"language":"default","tag":"Banking Infrastructure","count":26},{"language":"default","tag":"Applications","count":22},{"language":"default","tag":"Lending \u0026 Receivables","count":21}]},"assistantConfig":{"enableStarterQuestions":false},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"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":"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":"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":"turbopuffer-dual-write","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":"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":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@font-face{font-family:Lead Sans Variable;src:url('https://dunclyde.s3.us-west-1.amazonaws.com/Lead+Bank/Lead+Sans+Variable+250523.ttf') format(\"truetype\");font-weight:50 900;font-style:normal;font-display:swap}body{color:#07021d;font-family:Lead Sans Variable, Arial, sans-serif;font-size:16px;line-height:20px;overscroll-behavior:none;font-feature-settings:\"calt\" 0, \"liga\" 1, \"rlig\" 1, \"rvrn\" 1, \"kern\" 1, \"rclt\" 1, \"ss20\" 1;font-variation-settings:slnt 0}h1,h2{font-feature-settings:\"calt\" 0, \"liga\" 1, \"rlig\" 1, \"rvrn\" 1, \"kern\" 1, \"rclt\" 1, \"ss13\" 1, \"ss05\" 1, \"ss04\" 1, \"ss03\" 1, \"ss20\" 1}table td:first-child code,table th:first-child code{white-space:nowrap}:root{--sd-panel: #F1F4F7;--sd-node: #FFFFFF;--sd-node-border: #DDE3EA;--sd-final-border: #8A94A3;--sd-text: #2E3440;--sd-line: #B0BAC4;--sd-label: #6B7480;--sd-title: #8A94A3}.dark{--sd-panel: #1A1F27;--sd-node: #232A34;--sd-node-border: #364150;--sd-final-border: #8A94A3;--sd-text: #E6E9EE;--sd-line: #5D6878;--sd-label: #A3ACB9;--sd-title: #8A94A3}svg[id^=\"mermaid\"]:has(g[id*=\"leadstyle\"]) .cluster rect{fill:var(--sd-panel)!important;stroke:var(--sd-panel)!important;rx:10px;ry:10px}svg[id^=\"mermaid\"]:has(g[id*=\"leadstyle\"]) .cluster-label,svg[id^=\"mermaid\"]:has(g[id*=\"leadstyle\"]) .cluster-label span,svg[id^=\"mermaid\"]:has(g[id*=\"leadstyle\"]) .cluster text{color:var(--sd-title)!important;fill:var(--sd-title)!important}svg[id^=\"mermaid\"]:has(g[id*=\"leadstyle\"]) .node rect,svg[id^=\"mermaid\"]:has(g[id*=\"leadstyle\"]) .node path{fill:var(--sd-node)!important;stroke:var(--sd-node-border)!important;stroke-width:1px!important}svg[id^=\"mermaid\"]:has(g[id*=\"leadstyle\"]) .node rect{rx:8px;ry:8px}svg[id^=\"mermaid\"]:has(g[id*=\"leadstyle\"]) .node.final rect,svg[id^=\"mermaid\"]:has(g[id*=\"leadstyle\"]) .node.final path{stroke:var(--sd-final-border)!important;stroke-width:1.5px!important}svg[id^=\"mermaid\"]:has(g[id*=\"leadstyle\"]) .nodeLabel,svg[id^=\"mermaid\"]:has(g[id*=\"leadstyle\"]) .node .label{color:var(--sd-text)!important;fill:var(--sd-text)!important}svg[id^=\"mermaid\"]:has(g[id*=\"leadstyle\"]) .flowchart-link{stroke:var(--sd-line)!important;stroke-width:1.5px!important}svg[id^=\"mermaid\"]:has(g[id*=\"leadstyle\"]) marker path{fill:var(--sd-line)!important;stroke:var(--sd-line)!important}svg[id^=\"mermaid\"]:has(g[id*=\"leadstyle\"]) .edgeLabel,svg[id^=\"mermaid\"]:has(g[id*=\"leadstyle\"]) .edgeLabel p,svg[id^=\"mermaid\"]:has(g[id*=\"leadstyle\"]) .edgeLabel span,svg[id^=\"mermaid\"]:has(g[id*=\"leadstyle\"]) .labelBkg{background-color:var(--sd-panel)!important;border:none!important;color:var(--sd-label)!important}svg[id^=\"mermaid\"]:has(g[id*=\"leadstyle\"]) .edgeLabel rect{fill:var(--sd-panel)!important;stroke:none!important}svg[id^=\"mermaid\"]:has(g[id*=\"leadstyle\"]) marker path{transform:translateX(-5px)}svg[id^=\"mermaid\"]:has(g[id*=\"leadstyle\"]) .edgeLabel foreignObject{overflow:visible}svg[id^=\"mermaid\"]:has(g[id*=\"leadstyle\"]) .edgeLabel p{padding:0 6px!important;margin:0 -6px!important}"}]}
{"page":{"pagePath":"api-reference/endpoint/entity/update-an-entity-v2","slug":"/api-reference/endpoint/entity/update-an-entity-v2","pageMetadata":{"openapi":"openapi.json PATCH /v2/entities/{entity_id}","title":"Update an Entity","description":"Update an `individual`, `business`, or `sole_prop` Entity. Some changes need a fresh KYC attestation. See [Create and update](/v2/products/entity/entity-object#create-and-update) for which changes need one and how `PATCH` handles each field.\n\nA field sent as `null` clears the stored value. This applies to `preferred_first_name`, `middle_name`, `date_of_birth`, `occupation`, `doing_business_as`, `website` and `gross_annual_revenue`, to `physical_address` and `mailing_address` (which removes that address), and to `line_2`, `state` and `postal_code` inside an address. The updated entity is then checked like any other update: clearing `date_of_birth` needs `kyc` with a later `screened_at` in the same request, and the entity must still meet `intended_eligibility`. Every other field can't be `null`, including `type`, `first_name`, `last_name`, `name`, `identification`, `sole_proprietor_entity_id`, `legal_structure`, `currency`, `risk_score`, `kyc`, `ofac`, `rfi`, `metadata`, the arrays, an address's `line_1`, `city` and `country`, and the fields inside `identification`, `kyc`, `ofac`, `rfi` and each array entry. Sending one as `null` returns `422 parameters_invalid`; send a new value instead, or `[]` to empty an array. Clearing needs a literal `null` in the JSON body; a client that leaves out unset fields can't clear them.","href":"/api-reference/endpoint/entity/update-an-entity-v2"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Update an \", _jsx(_components.code, {\n children: \"individual\"\n }), \", \", _jsx(_components.code, {\n children: \"business\"\n }), \", or \", _jsx(_components.code, {\n children: \"sole_prop\"\n }), \" Entity. Some changes need a fresh KYC attestation. See \", _jsx(_components.a, {\n href: \"/v2/products/entity/entity-object#create-and-update\",\n children: \"Create and update\"\n }), \" for which changes need one and how \", _jsx(_components.code, {\n children: \"PATCH\"\n }), \" handles each field.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"A field sent as \", _jsx(_components.code, {\n children: \"null\"\n }), \" clears the stored value. This applies to \", _jsx(_components.code, {\n children: \"preferred_first_name\"\n }), \", \", _jsx(_components.code, {\n children: \"middle_name\"\n }), \", \", _jsx(_components.code, {\n children: \"date_of_birth\"\n }), \", \", _jsx(_components.code, {\n children: \"occupation\"\n }), \", \", _jsx(_components.code, {\n children: \"doing_business_as\"\n }), \", \", _jsx(_components.code, {\n children: \"website\"\n }), \" and \", _jsx(_components.code, {\n children: \"gross_annual_revenue\"\n }), \", to \", _jsx(_components.code, {\n children: \"physical_address\"\n }), \" and \", _jsx(_components.code, {\n children: \"mailing_address\"\n }), \" (which removes that address), and to \", _jsx(_components.code, {\n children: \"line_2\"\n }), \", \", _jsx(_components.code, {\n children: \"state\"\n }), \" and \", _jsx(_components.code, {\n children: \"postal_code\"\n }), \" inside an address. The updated entity is then checked like any other update: clearing \", _jsx(_components.code, {\n children: \"date_of_birth\"\n }), \" needs \", _jsx(_components.code, {\n children: \"kyc\"\n }), \" with a later \", _jsx(_components.code, {\n children: \"screened_at\"\n }), \" in the same request, and the entity must still meet \", _jsx(_components.code, {\n children: \"intended_eligibility\"\n }), \". Every other field can’t be \", _jsx(_components.code, {\n children: \"null\"\n }), \", including \", _jsx(_components.code, {\n children: \"type\"\n }), \", \", _jsx(_components.code, {\n children: \"first_name\"\n }), \", \", _jsx(_components.code, {\n children: \"last_name\"\n }), \", \", _jsx(_components.code, {\n children: \"name\"\n }), \", \", _jsx(_components.code, {\n children: \"identification\"\n }), \", \", _jsx(_components.code, {\n children: \"sole_proprietor_entity_id\"\n }), \", \", _jsx(_components.code, {\n children: \"legal_structure\"\n }), \", \", _jsx(_components.code, {\n children: \"currency\"\n }), \", \", _jsx(_components.code, {\n children: \"risk_score\"\n }), \", \", _jsx(_components.code, {\n children: \"kyc\"\n }), \", \", _jsx(_components.code, {\n children: \"ofac\"\n }), \", \", _jsx(_components.code, {\n children: \"rfi\"\n }), \", \", _jsx(_components.code, {\n children: \"metadata\"\n }), \", the arrays, an address’s \", _jsx(_components.code, {\n children: \"line_1\"\n }), \", \", _jsx(_components.code, {\n children: \"city\"\n }), \" and \", _jsx(_components.code, {\n children: \"country\"\n }), \", and the fields inside \", _jsx(_components.code, {\n children: \"identification\"\n }), \", \", _jsx(_components.code, {\n children: \"kyc\"\n }), \", \", _jsx(_components.code, {\n children: \"ofac\"\n }), \", \", _jsx(_components.code, {\n children: \"rfi\"\n }), \" and each array entry. Sending one as \", _jsx(_components.code, {\n children: \"null\"\n }), \" returns \", _jsx(_components.code, {\n children: \"422 parameters_invalid\"\n }), \"; send a new value instead, or \", _jsx(_components.code, {\n children: \"[]\"\n }), \" to empty an array. Clearing needs a literal \", _jsx(_components.code, {\n children: \"null\"\n }), \" in the JSON body; a client that leaves out unset fields can’t clear them.\"]\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{jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,p:`p`,..._provideComponents(),...props.components},{Note}=_components;if(!Note)_missingMdxReference(`Note`,true);return _jsx(Note,{children:_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/api-reference/using-the-api/errors-v2`,children:`Errors`}),` for the common errors every v2 endpoint can return.`]})})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"openapi.json PATCH /v2/entities/{entity_id}","title":"Update an Entity","description":"Update an `individual`, `business`, or `sole_prop` Entity. Some changes need a fresh KYC attestation. See [Create and update](/v2/products/entity/entity-object#create-and-update) for which changes need one and how `PATCH` handles each field.\n\nA field sent as `null` clears the stored value. This applies to `preferred_first_name`, `middle_name`, `date_of_birth`, `occupation`, `doing_business_as`, `website` and `gross_annual_revenue`, to `physical_address` and `mailing_address` (which removes that address), and to `line_2`, `state` and `postal_code` inside an address. The updated entity is then checked like any other update: clearing `date_of_birth` needs `kyc` with a later `screened_at` in the same request, and the entity must still meet `intended_eligibility`. Every other field can't be `null`, including `type`, `first_name`, `last_name`, `name`, `identification`, `sole_proprietor_entity_id`, `legal_structure`, `currency`, `risk_score`, `kyc`, `ofac`, `rfi`, `metadata`, the arrays, an address's `line_1`, `city` and `country`, and the fields inside `identification`, `kyc`, `ofac`, `rfi` and each array entry. Sending one as `null` returns `422 parameters_invalid`; send a new value instead, or `[]` to empty an array. Clearing needs a literal `null` in the JSON body; a client that leaves out unset fields can't clear them.","href":"/api-reference/endpoint/entity/update-an-entity-v2"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/lead/84cc1bb218160b2c/ach-settlement-calculator.js"],"openApiReferenceData":{"operation":{"tags":["Entity"],"operationId":"update-an-entity-v2","summary":"Update an entity","description":"Update an `individual`, `business`, or `sole_prop` Entity. Some changes need a fresh KYC attestation. See [Create and update](/v2/products/entity/entity-object#create-and-update) for which changes need one and how `PATCH` handles each field.\n\nA field sent as `null` clears the stored value. This applies to `preferred_first_name`, `middle_name`, `date_of_birth`, `occupation`, `doing_business_as`, `website` and `gross_annual_revenue`, to `physical_address` and `mailing_address` (which removes that address), and to `line_2`, `state` and `postal_code` inside an address. The updated entity is then checked like any other update: clearing `date_of_birth` needs `kyc` with a later `screened_at` in the same request, and the entity must still meet `intended_eligibility`. Every other field can't be `null`, including `type`, `first_name`, `last_name`, `name`, `identification`, `sole_proprietor_entity_id`, `legal_structure`, `currency`, `risk_score`, `kyc`, `ofac`, `rfi`, `metadata`, the arrays, an address's `line_1`, `city` and `country`, and the fields inside `identification`, `kyc`, `ofac`, `rfi` and each array entry. Sending one as `null` returns `422 parameters_invalid`; send a new value instead, or `[]` to empty an array. Clearing needs a literal `null` in the JSON body; a client that leaves out unset fields can't clear them.","parameters":["8c83f8cb-70e4-4a1f-b716-4fe4a621c867","979cb19e-eb55-4d9d-9efa-5464c298bd60"],"requestBody":"9cc52a80-dbb7-42a0-9305-7c6ef6e6a452","responses":{"200":"eebf1f06-1501-44a2-8ed6-1d27236c5fb6","4XX":"3d026562-7a84-4ece-a7b2-2c3cc28494a9","5XX":"1178e2d3-d5f1-4dc0-9b3d-b70524f369dd"},"method":"patch","type":"path","servers":["27678d07-3b28-4b25-867d-1e4e882694f8","16aaf037-6df8-4238-beb3-66f996c517b6"],"security":["59c984ce-872d-47c2-b811-f78a1900472d"],"path":"/v2/entities/{entity_id}","baseUrlOptions":["https://api.sandbox.lead.bank","https://api.lead.bank"],"title":"Update an entity","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"8c83f8cb-70e4-4a1f-b716-4fe4a621c867":{"name":"entity_id","in":"path","required":true,"description":"The ID of the entity.","schema":{"type":"string","description":"The ID of the entity.\nThe ID of your entity.","example":"entity_xyz123","pattern":"^entity_[^\\s]{1,33}$","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"979cb19e-eb55-4d9d-9efa-5464c298bd60":{"name":"Idempotency-Key","in":"header","description":"A unique key for this request, up to 255 characters. Retrying with the same key and body returns the original response without applying the update twice. See [Idempotency](https://docs.lead.bank/api-reference/using-the-api/idempotency-v2).","required":true,"schema":{"type":"string","description":"A unique key for this request, up to 255 characters. Retrying with the same key and body returns the original response without applying the update twice. See [Idempotency](https://docs.lead.bank/api-reference/using-the-api/idempotency-v2).\nA unique key for this request, up to 255 characters. Retrying with the same key and body returns the original response instead of performing the operation again.","minLength":1,"maxLength":255,"example":"3f1c9a52-7d4e-4b8a-9c21-6e0f5d2a8b14","isRequired":true,"uniqueKey":"","typeLabel":"string"},"example":"3f1c9a52-7d4e-4b8a-9c21-6e0f5d2a8b14"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","title":"Individual","description":"Lead ignores fields not listed here. A field sent as `null` clears the stored value: `preferred_first_name`, `middle_name`, `date_of_birth`, `occupation`, and `physical_address` or `mailing_address`, which removes that address. These can't be `null`: `type`, `first_name`, `last_name`, `identification`, `risk_score`, `kyc`, `ofac`, `rfi`, `metadata`, the arrays, and the fields inside `identification`, `kyc`, `ofac`, `rfi` and each array entry. In `physical_address` and `mailing_address`, `line_2`, `state` and `postal_code` can be `null`; `line_1`, `city` and `country` can't. Send a new value instead, or `[]` to empty an array.","required":["type"],"properties":{"type":{"type":"string","pattern":"^individual$","default":"individual","description":"Type of entity = individual.","isRequired":true,"uniqueKey":"oneOf.0.type","typeLabel":"string"},"first_name":{"type":"string","maxLength":500,"description":"Legal first name, as your customer gave it. Non-Latin characters are accepted.","example":"Lucy","uniqueKey":"oneOf.0.first_name","typeLabel":"string"},"preferred_first_name":{"oneOf":[{"type":"string","maxLength":500,"description":"Preferred first name.","example":"Lu","uniqueKey":"oneOf.0.preferred_first_name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":500,"description":"Preferred first name.","example":"Lu","uniqueKey":"oneOf.0.preferred_first_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.preferred_first_name","typeLabel":"string | null"},"middle_name":{"oneOf":[{"type":"string","maxLength":500,"description":"Middle name.","example":"Reginald","uniqueKey":"oneOf.0.middle_name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":500,"description":"Middle name.","example":"Reginald","uniqueKey":"oneOf.0.middle_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.middle_name","typeLabel":"string | null"},"last_name":{"type":"string","maxLength":500,"description":"Legal last name, as your customer gave it. Non-Latin characters are accepted.","example":"Collins","uniqueKey":"oneOf.0.last_name","typeLabel":"string"},"date_of_birth":{"oneOf":[{"type":"string","format":"date","description":"Date of birth, in YYYY-MM-DD format. `account_holder` and `authorized_signer` require age 18 or older. `minor_account_holder` requires age 16 or 17.","example":"2002-02-15","uniqueKey":"oneOf.0.date_of_birth.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","description":"Date of birth, in YYYY-MM-DD format. `account_holder` and `authorized_signer` require age 18 or older. `minor_account_holder` requires age 16 or 17.","example":"2002-02-15","uniqueKey":"oneOf.0.date_of_birth.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.date_of_birth","typeLabel":"string\u003cdate> | null"},"occupation":{"oneOf":[{"type":"string","maxLength":500,"description":"Occupation.","example":"Author","uniqueKey":"oneOf.0.occupation.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":500,"description":"Occupation.","example":"Author","uniqueKey":"oneOf.0.occupation.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.occupation","typeLabel":"string | null"},"contact_methods":{"type":"array","items":{"oneOf":[{"type":"object","title":"Email","required":["type","email"],"properties":{"type":{"type":"string","pattern":"^email$","default":"email","description":"ContactMethodType = email.","isRequired":true,"uniqueKey":"oneOf.0.contact_methods.items.[INDEX].oneOf.0.type","typeLabel":"string"},"email":{"type":"string","maxLength":500,"description":"Must be a valid email address in the form `local-part@domain.tld`. The domain must contain at least one dot. Addresses using `localhost` or IP literals (for example, `user@[127.0.0.1]`) are not accepted. Only common, real-world email formats are supported.","example":"abc@gmail.com","isRequired":true,"uniqueKey":"oneOf.0.contact_methods.items.[INDEX].oneOf.0.email","typeLabel":"string"}},"uniqueKey":"oneOf.0.contact_methods.items.[INDEX].oneOf.0","typeLabel":"Email · object"},{"type":"object","title":"Phone Number","required":["type","phone_number"],"properties":{"type":{"type":"string","pattern":"^phone_number$","default":"phone_number","example":"+22 607 123 4567","description":"ContactMethodType = phone_number. Conforms to E.123 standard","isRequired":true,"uniqueKey":"oneOf.0.contact_methods.items.[INDEX].oneOf.1.type","typeLabel":"string"},"phone_number":{"type":"string","maxLength":500,"description":"Primary phone number of the entity. Must follow E.123 format.","isRequired":true,"uniqueKey":"oneOf.0.contact_methods.items.[INDEX].oneOf.1.phone_number","typeLabel":"string"}},"uniqueKey":"oneOf.0.contact_methods.items.[INDEX].oneOf.1","typeLabel":"Phone Number · object"}],"uniqueKey":"oneOf.0.contact_methods.items.[INDEX]","typeLabel":"Email · object | Phone Number · object"},"uniqueKey":"oneOf.0.contact_methods","typeLabel":"(Email · object | Phone Number · object)[]"},"physical_address":{"oneOf":[{"type":"object","description":"The entity's physical address. It can't be a P.O. box, a registered agent's address, or in a prohibited country.","properties":{"line_1":{"type":"string","maxLength":500,"description":"Address line 1, with the full street address, like the street number and name. Use `line_2` only for unit details.","example":"123 Main St.","uniqueKey":"oneOf.0.physical_address.oneOf.0.line_1","typeLabel":"string"},"line_2":{"oneOf":[{"type":"string","maxLength":500,"description":"Address line 2, for secondary or sub-premise information only.","example":"Apt 25","uniqueKey":"oneOf.0.physical_address.oneOf.0.line_2.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":500,"description":"Address line 2, for secondary or sub-premise information only.","example":"Apt 25","uniqueKey":"oneOf.0.physical_address.oneOf.0.line_2.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.physical_address.oneOf.0.line_2","typeLabel":"string | null"},"city":{"type":"string","maxLength":500,"description":"City.","example":"Denver","uniqueKey":"oneOf.0.physical_address.oneOf.0.city","typeLabel":"string"},"postal_code":{"oneOf":[{"type":"string","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014","uniqueKey":"oneOf.0.physical_address.oneOf.0.postal_code.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014","uniqueKey":"oneOf.0.physical_address.oneOf.0.postal_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.physical_address.oneOf.0.postal_code","typeLabel":"string | null"},"state":{"oneOf":[{"type":"string","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO","uniqueKey":"oneOf.0.physical_address.oneOf.0.state.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO","uniqueKey":"oneOf.0.physical_address.oneOf.0.state.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.physical_address.oneOf.0.state","typeLabel":"string | null"},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code. Lead accepts lowercase and returns it in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"uniqueKey":"oneOf.0.physical_address.oneOf.0.country","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.0.physical_address.oneOf.0","typeLabel":"object"},{"type":"null","description":"The entity's physical address. It can't be a P.O. box, a registered agent's address, or in a prohibited country.","properties":{"line_1":{"type":"string","maxLength":500,"description":"Address line 1, with the full street address, like the street number and name. Use `line_2` only for unit details.","example":"123 Main St."},"line_2":{"oneOf":[{"type":"string","maxLength":500,"description":"Address line 2, for secondary or sub-premise information only.","example":"Apt 25"},{"type":"null","maxLength":500,"description":"Address line 2, for secondary or sub-premise information only.","example":"Apt 25"}]},"city":{"type":"string","maxLength":500,"description":"City.","example":"Denver"},"postal_code":{"oneOf":[{"type":"string","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014"},{"type":"null","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014"}]},"state":{"oneOf":[{"type":"string","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO"},{"type":"null","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO"}]},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code. Lead accepts lowercase and returns it in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"]}},"uniqueKey":"oneOf.0.physical_address.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.physical_address","typeLabel":"object | null"},"mailing_address":{"oneOf":[{"type":"object","description":"The entity's mailing address.","properties":{"line_1":{"type":"string","maxLength":500,"description":"Address line 1, with the full street address, like the street number and name. Use `line_2` only for unit details.","example":"123 Main St.","uniqueKey":"oneOf.0.mailing_address.oneOf.0.line_1","typeLabel":"string"},"line_2":{"oneOf":[{"type":"string","maxLength":500,"description":"Address line 2, for secondary or sub-premise information only.","example":"Apt 25","uniqueKey":"oneOf.0.mailing_address.oneOf.0.line_2.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":500,"description":"Address line 2, for secondary or sub-premise information only.","example":"Apt 25","uniqueKey":"oneOf.0.mailing_address.oneOf.0.line_2.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.mailing_address.oneOf.0.line_2","typeLabel":"string | null"},"city":{"type":"string","maxLength":500,"description":"City.","example":"Denver","uniqueKey":"oneOf.0.mailing_address.oneOf.0.city","typeLabel":"string"},"postal_code":{"oneOf":[{"type":"string","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014","uniqueKey":"oneOf.0.mailing_address.oneOf.0.postal_code.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014","uniqueKey":"oneOf.0.mailing_address.oneOf.0.postal_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.mailing_address.oneOf.0.postal_code","typeLabel":"string | null"},"state":{"oneOf":[{"type":"string","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO","uniqueKey":"oneOf.0.mailing_address.oneOf.0.state.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO","uniqueKey":"oneOf.0.mailing_address.oneOf.0.state.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.mailing_address.oneOf.0.state","typeLabel":"string | null"},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code. Lead accepts lowercase and returns it in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"uniqueKey":"oneOf.0.mailing_address.oneOf.0.country","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.0.mailing_address.oneOf.0","typeLabel":"object"},{"type":"null","description":"The entity's mailing address.","properties":{"line_1":{"type":"string","maxLength":500,"description":"Address line 1, with the full street address, like the street number and name. Use `line_2` only for unit details.","example":"123 Main St."},"line_2":{"oneOf":[{"type":"string","maxLength":500,"description":"Address line 2, for secondary or sub-premise information only.","example":"Apt 25"},{"type":"null","maxLength":500,"description":"Address line 2, for secondary or sub-premise information only.","example":"Apt 25"}]},"city":{"type":"string","maxLength":500,"description":"City.","example":"Denver"},"postal_code":{"oneOf":[{"type":"string","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014"},{"type":"null","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014"}]},"state":{"oneOf":[{"type":"string","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO"},{"type":"null","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO"}]},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code. Lead accepts lowercase and returns it in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"]}},"uniqueKey":"oneOf.0.mailing_address.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.mailing_address","typeLabel":"object | null"},"other_addresses":{"type":"array","description":"Other addresses for the entity. The array you send replaces the stored array.","items":{"type":"object","required":["line_1","city","country"],"properties":{"line_1":{"type":"string","maxLength":500,"description":"Address line 1 is the required primary street-address field. It must contain the full base address needed to identify the physical location, such as the street number and street name together, or the closest local equivalent in countries where addresses do not use that exact structure.\n\nUse address line 1 for all core location details that describe the main property or thoroughfare. Regardless of how each component of an address is collected from your end-users, they must be combined into address line 1 before sending to Lead.\n\nDo not:\n- split the primary street address across line 1 and line 2\n- put only the street number in line 1 and the street name in line 2\n- pad line 1 with false or altered data to pass validation","example":"123 Main St.","isRequired":true,"uniqueKey":"oneOf.0.other_addresses.items.[INDEX].line_1","typeLabel":"string"},"city":{"type":"string","maxLength":500,"description":"City.","example":"Denver","isRequired":true,"uniqueKey":"oneOf.0.other_addresses.items.[INDEX].city","typeLabel":"string"},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code. Lead accepts lowercase and returns it in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.0.other_addresses.items.[INDEX].country","typeLabel":"enum\u003cstring>"},"line_2":{"type":"string","maxLength":500,"description":"Address line 2 is optional. Use it only for secondary or sub-premise information, such as:\n- apartment\n- unit\n- suite\n- floor\n- building\n- care of or attention\n\nIf there is no secondary or sub-premise information, leave address line 2 out.\n\nDo not use address line 2 for any part of the primary street address.","example":"Apt 25","uniqueKey":"oneOf.0.other_addresses.items.[INDEX].line_2","typeLabel":"string"},"postal_code":{"type":"string","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014","uniqueKey":"oneOf.0.other_addresses.items.[INDEX].postal_code","typeLabel":"string"},"state":{"type":"string","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO","uniqueKey":"oneOf.0.other_addresses.items.[INDEX].state","typeLabel":"string"}},"uniqueKey":"oneOf.0.other_addresses.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.other_addresses","typeLabel":"object[]"},"identification":{"oneOf":[{"type":"object","title":"US Entity","description":"Required on every individual; only `type` is required inside it. `tax_identification` is required for a `us_entity` holding the `account_holder`, `minor_account_holder`, or `authorized_signer` relationship type, and for beneficial owners, control persons, and sole proprietors. It is not required for an `authorized_user`. A `non_us_entity` needs at least one `documents` entry for the same relationship types; on an entity created on v0, `legacy_documents` entries count.","required":["type"],"properties":{"type":{"type":"string","pattern":"^us_entity$","default":"us_entity","description":"Use `us_entity` for an entity with US tax identification, including one you have not collected yet.","isRequired":true,"uniqueKey":"oneOf.0.identification.oneOf.0.type","typeLabel":"string"},"tax_identification":{"type":"object","description":"The entity's own US tax identification. Do not submit another person's SSN or ITIN (e.g. a parent's for a minor). If you have not collected it, omit `tax_identification`; `type` without a valid `value` is rejected. See https://docs.lead.bank/products/entity/entity-object#identification-for-us-and-non-us-entities.","required":["type","value"],"properties":{"type":{"type":"string","enum":["ssn","itin","ein"],"example":"ssn","description":"The entity's US tax identification type: `ssn`, `itin`, or `ein`.\n- For `individual` entity, use SSN or ITIN.\n- For `business` entity, use EIN. For single-member LLC entities where no EIN is available, SSN or ITIN may be used.\n- For `sole_prop` entity, use SSN, ITIN, or EIN.\n","isRequired":true,"uniqueKey":"oneOf.0.identification.oneOf.0.tax_identification.type","typeLabel":"enum\u003cstring>"},"value":{"type":"string","description":"The entity's US tax identification number. Must be 9 digits (e.g. XXXXXXXXX). An SSN must not start with 9. An EIN must begin with a number between 00 and 99. An ITIN must begin with 9. Required whenever `tax_identification` is sent; omit the whole object if you have not collected the tax identification.","pattern":"^\\d{9}$","isRequired":true,"uniqueKey":"oneOf.0.identification.oneOf.0.tax_identification.value","typeLabel":"string"}},"uniqueKey":"oneOf.0.identification.oneOf.0.tax_identification","typeLabel":"object"},"documents":{"type":"array","example":[{"file_id":"file_7Tq4mR9vKx2LpW8nZc3B","identification_number":"X1234567","issuing_country":"GB","expiration_date":"2030-06-01"},{"type":"passport","identification_number":"X7654321","issuing_country":"GB","expiration_date":"2031-01-15"}],"description":"Government-issued identification, one entry per document. You can send up to 100 documents. Each entry takes either a `file_id` or a `type`, not both. The array you send replaces the stored array, and Lead checks every `file_id` in it again. You don't need to confirm KYC again when you change documents.","maxItems":100,"items":{"type":"object","description":"A government-issued identification document. Send exactly one of `file_id` or `type`; both returns `422 parameters_invalid` (`parameters_mutually_exclusive`), and neither returns it with `parameter_group_empty`. With a `file_id`, Lead takes the type from the file and the response omits `type`. Retrieve it with `GET /v2/files/{file_id}`.","required":["identification_number","issuing_country"],"properties":{"identification_number":{"type":"string","maxLength":500,"description":"The number on the document.","example":"X1234567","isRequired":true,"uniqueKey":"oneOf.0.identification.oneOf.0.documents.items.[INDEX].identification_number","typeLabel":"string"},"issuing_country":{"type":"string","description":"Issuing country, as an ISO 3166-1 alpha-2 code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.0.identification.oneOf.0.documents.items.[INDEX].issuing_country","typeLabel":"enum\u003cstring>"},"file_id":{"type":"string","pattern":"^file_\\w+$","description":"A file ID from `POST /v2/files`. Send `file_id` or `type`, not both. When you send only a `file_id`, Lead determines the document type from the file. Retrieve that type with `GET /v2/files/{file_id}`. The file must exist, belong to your program, and have a type this entry accepts. Send each `file_id` only once per entity. You can still link several files of the same type, and link one file to other entities.","example":"file_7RwQ2mK9pL4xT1vN8jS5","uniqueKey":"oneOf.0.identification.oneOf.0.documents.items.[INDEX].file_id","typeLabel":"string"},"type":{"type":"string","enum":["drivers_license","state_id","provincial_id","passport","permanent_residency_id","national_id","consular_id","military_id","tax_certificate","tax_return","partnership_agreement","certificate_of_good_standing","formation_document","exchange_listing_certificate","exchange_listing_notice"],"example":"passport","description":"The identification document type, when you do not link a file. Send `file_id` or `type`, not both.\n- For an `individual`: `drivers_license`, `state_id`, `provincial_id`, `passport`, `permanent_residency_id`, `national_id`, `consular_id`, `military_id`.\n- For a `business`: `tax_certificate`, `tax_return`, `partnership_agreement`, `certificate_of_good_standing`, `formation_document`, `exchange_listing_certificate`, `exchange_listing_notice`.\n- For a `sole_prop`: `drivers_license`, `state_id`, `provincial_id`, `passport`, `permanent_residency_id`, `national_id`, `consular_id`, `military_id`, `tax_certificate`, `tax_return`, `formation_document`.\n\n`national_id` and `consular_id` are not applicable to a `us_entity`. `military_id` is accepted only as a declared `type`: the Files API has no such type, so you cannot link a file for it.\n","uniqueKey":"oneOf.0.identification.oneOf.0.documents.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"issuing_state":{"type":"string","maxLength":500,"description":"Issuing state, as a two-letter code. When `issuing_country` is `US`, it must be a valid US state.","uniqueKey":"oneOf.0.identification.oneOf.0.documents.items.[INDEX].issuing_state","typeLabel":"string"},"expiration_date":{"type":"string","format":"date","description":"Expiration date, in YYYY-MM-DD format. Cannot be in the past when you create the entity.","example":"2030-06-01","uniqueKey":"oneOf.0.identification.oneOf.0.documents.items.[INDEX].expiration_date","typeLabel":"string\u003cdate>"}},"uniqueKey":"oneOf.0.identification.oneOf.0.documents.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.identification.oneOf.0.documents","typeLabel":"object[]"}},"uniqueKey":"oneOf.0.identification.oneOf.0","typeLabel":"US Entity · object"},{"type":"object","title":"Non US Entity","description":"Required on every individual; only `type` is required inside it. `tax_identification` is required for a `us_entity` holding the `account_holder`, `minor_account_holder`, or `authorized_signer` relationship type, and for beneficial owners, control persons, and sole proprietors. It is not required for an `authorized_user`. A `non_us_entity` needs at least one `documents` entry for the same relationship types; on an entity created on v0, `legacy_documents` entries count.","required":["type"],"properties":{"type":{"type":"string","pattern":"^non_us_entity$","default":"non_us_entity","description":"Use `non_us_entity` for an entity without US tax identification.","isRequired":true,"uniqueKey":"oneOf.0.identification.oneOf.1.type","typeLabel":"string"},"documents":{"type":"array","example":[{"file_id":"file_7Tq4mR9vKx2LpW8nZc3B","identification_number":"X1234567","issuing_country":"GB","expiration_date":"2030-06-01"},{"type":"passport","identification_number":"X7654321","issuing_country":"GB","expiration_date":"2031-01-15"}],"description":"Government-issued identification, one entry per document. You can send up to 100 documents. Each entry takes either a `file_id` or a `type`, not both. The array you send replaces the stored array, and Lead checks every `file_id` in it again. You don't need to confirm KYC again when you change documents.","maxItems":100,"items":{"type":"object","description":"A government-issued identification document. Send exactly one of `file_id` or `type`; both returns `422 parameters_invalid` (`parameters_mutually_exclusive`), and neither returns it with `parameter_group_empty`. With a `file_id`, Lead takes the type from the file and the response omits `type`. Retrieve it with `GET /v2/files/{file_id}`.","required":["identification_number","issuing_country"],"properties":{"identification_number":{"type":"string","maxLength":500,"description":"The number on the document.","example":"X1234567","isRequired":true,"uniqueKey":"oneOf.0.identification.oneOf.1.documents.items.[INDEX].identification_number","typeLabel":"string"},"issuing_country":{"type":"string","description":"Issuing country, as an ISO 3166-1 alpha-2 code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.0.identification.oneOf.1.documents.items.[INDEX].issuing_country","typeLabel":"enum\u003cstring>"},"file_id":{"type":"string","pattern":"^file_\\w+$","description":"A file ID from `POST /v2/files`. Send `file_id` or `type`, not both. When you send only a `file_id`, Lead determines the document type from the file. Retrieve that type with `GET /v2/files/{file_id}`. The file must exist, belong to your program, and have a type this entry accepts. Send each `file_id` only once per entity. You can still link several files of the same type, and link one file to other entities.","example":"file_7RwQ2mK9pL4xT1vN8jS5","uniqueKey":"oneOf.0.identification.oneOf.1.documents.items.[INDEX].file_id","typeLabel":"string"},"type":{"type":"string","enum":["drivers_license","state_id","provincial_id","passport","permanent_residency_id","national_id","consular_id","military_id","tax_certificate","tax_return","partnership_agreement","certificate_of_good_standing","formation_document","exchange_listing_certificate","exchange_listing_notice"],"example":"passport","description":"The identification document type, when you do not link a file. Send `file_id` or `type`, not both.\n- For an `individual`: `drivers_license`, `state_id`, `provincial_id`, `passport`, `permanent_residency_id`, `national_id`, `consular_id`, `military_id`.\n- For a `business`: `tax_certificate`, `tax_return`, `partnership_agreement`, `certificate_of_good_standing`, `formation_document`, `exchange_listing_certificate`, `exchange_listing_notice`.\n- For a `sole_prop`: `drivers_license`, `state_id`, `provincial_id`, `passport`, `permanent_residency_id`, `national_id`, `consular_id`, `military_id`, `tax_certificate`, `tax_return`, `formation_document`.\n\n`national_id` and `consular_id` are not applicable to a `us_entity`. `military_id` is accepted only as a declared `type`: the Files API has no such type, so you cannot link a file for it.\n","uniqueKey":"oneOf.0.identification.oneOf.1.documents.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"issuing_state":{"type":"string","maxLength":500,"description":"Issuing state, as a two-letter code. When `issuing_country` is `US`, it must be a valid US state.","uniqueKey":"oneOf.0.identification.oneOf.1.documents.items.[INDEX].issuing_state","typeLabel":"string"},"expiration_date":{"type":"string","format":"date","description":"Expiration date, in YYYY-MM-DD format. Cannot be in the past when you create the entity.","example":"2030-06-01","uniqueKey":"oneOf.0.identification.oneOf.1.documents.items.[INDEX].expiration_date","typeLabel":"string\u003cdate>"}},"uniqueKey":"oneOf.0.identification.oneOf.1.documents.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.identification.oneOf.1.documents","typeLabel":"object[]"}},"uniqueKey":"oneOf.0.identification.oneOf.1","typeLabel":"Non US Entity · object"}],"uniqueKey":"oneOf.0.identification","typeLabel":"US Entity · object | Non US Entity · object"},"additional_documents":{"type":"array","example":[{"file_id":"file_X5jD8hN2sQ6yFb1Gt9Ka"},{"type":"financial_statement"}],"description":"Supporting documents, one entry per document. You can send up to 100 documents. Each entry takes either a `file_id` or a `type`, not both. The array you send replaces the stored array, and Lead checks every `file_id` in it again. You don't need to confirm KYC again when you change documents.","maxItems":100,"items":{"type":"object","description":"A supporting document. Send exactly one of `file_id` or `type`; both returns `422 parameters_invalid` (`parameters_mutually_exclusive`), and neither returns it with `parameter_group_empty`. With a `file_id`, Lead takes the type from the file and the response omits `type`. Retrieve it with `GET /v2/files/{file_id}`.","properties":{"file_id":{"type":"string","pattern":"^file_\\w+$","description":"A file ID from `POST /v2/files`. Send `file_id` or `type`, not both. When you send only a `file_id`, Lead determines the document type from the file. Retrieve that type with `GET /v2/files/{file_id}`. The file must exist, belong to your program, and have a type this entry accepts. Send each `file_id` only once per entity. You can still link several files of the same type, and link one file to other entities.","example":"file_7RwQ2mK9pL4xT1vN8jS5","uniqueKey":"oneOf.0.additional_documents.items.[INDEX].file_id","typeLabel":"string"},"type":{"type":"string","enum":["adverse_media","bank_statement","financial_statement","id_selfie","inheritance_letter","investigation_report","investment_record","public_record","salary_verification_letter","sale_agreement","social_security_card","utility_bill"],"example":"bank_statement","description":"The supporting document type, when you do not link a file. Send `file_id` or `type`, not both.\nEvery entity type accepts every value of this enum.\n","uniqueKey":"oneOf.0.additional_documents.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.0.additional_documents.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.additional_documents","typeLabel":"object[]"},"risk_score":{"type":"string","enum":["low","medium","high"],"example":"low","description":"The entity's risk score. You map your own risk scores to these values and give Lead the mapping.","uniqueKey":"oneOf.0.risk_score","typeLabel":"enum\u003cstring>"},"kyc":{"type":"object","description":"Your KYC check of the entity.","required":["result","screened_at"],"properties":{"result":{"type":"string","enum":["passed","failed"],"example":"passed","description":"The result of your KYC check, `passed` or `failed`.","isRequired":true,"uniqueKey":"oneOf.0.kyc.result","typeLabel":"enum\u003cstring>"},"screened_at":{"type":"string","format":"date-time","description":"When you ran the KYC check. It can't be in the future. Lead stores it in UTC, to the second.","example":"2026-11-07T05:31:56Z","isRequired":true,"uniqueKey":"oneOf.0.kyc.screened_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"oneOf.0.kyc","typeLabel":"object"},"ofac":{"type":"object","description":"Your OFAC screen of the entity.","required":["result","screened_at"],"properties":{"result":{"type":"string","enum":["passed","failed"],"example":"passed","description":"The result of your OFAC screen.\n* `passed`: The screen found no match, or you cleared every potential match.\n* `failed`: The screen found a potential or confirmed match that you have not cleared.\n","isRequired":true,"uniqueKey":"oneOf.0.ofac.result","typeLabel":"enum\u003cstring>"},"screened_at":{"type":"string","format":"date-time","description":"When you ran the OFAC screen. It can't be in the future. Lead stores it in UTC, to the second.","example":"2026-11-07T05:31:56Z","isRequired":true,"uniqueKey":"oneOf.0.ofac.screened_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"oneOf.0.ofac","typeLabel":"object"},"rfi":{"type":"object","description":"Your request for information (RFI) to your customer.","required":["stage","requested_at"],"properties":{"stage":{"type":"string","enum":["requested","completed"],"example":"completed","description":"The stage of your request for information (RFI) to your customer.\n* `requested`: You sent the RFI and are waiting for the answer.\n* `completed`: Your customer answered the RFI.\n","isRequired":true,"uniqueKey":"oneOf.0.rfi.stage","typeLabel":"enum\u003cstring>"},"requested_at":{"type":"string","format":"date-time","description":"When you sent the RFI. It can't be in the future. Lead stores it in UTC, to the second.","example":"2026-11-07T05:31:56Z","isRequired":true,"uniqueKey":"oneOf.0.rfi.requested_at","typeLabel":"string\u003cdate-time>"},"completed_at":{"type":"string","format":"date-time","description":"When your customer answered the RFI. Send it when `status` is `completed`. Lead stores it in UTC, to the second.","example":"2026-11-09T05:31:56Z","uniqueKey":"oneOf.0.rfi.completed_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"oneOf.0.rfi","typeLabel":"object"},"credit_reports":{"type":"array","description":"Credit reports from credit bureaus on the entity.","items":{"type":"object","description":"Credit report information. Exactly one of `score` or `no_score_reason` must be provided; `pulled_at` and `source` are always required when a credit report is supplied.\n","required":["pulled_at","source"],"properties":{"pulled_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp when the credit report was pulled.","example":"2026-11-02T14:00:00Z","isRequired":true,"uniqueKey":"oneOf.0.credit_reports.items.[INDEX].pulled_at","typeLabel":"string\u003cdate-time>"},"source":{"type":"string","enum":["equifax","experian","transunion"],"example":"equifax","description":"Credit bureau that issued the report.","isRequired":true,"uniqueKey":"oneOf.0.credit_reports.items.[INDEX].source","typeLabel":"enum\u003cstring>"},"score":{"type":"integer","description":"A credit score returned by the bureau, from 300 to 850.","minimum":300,"maximum":850,"example":712,"uniqueKey":"oneOf.0.credit_reports.items.[INDEX].score","typeLabel":"integer"},"no_score_reason":{"type":"string","enum":["unestablished","frozen"],"example":"unestablished","description":"Indicates the state of a credit file when a numeric score is not available. Mutually exclusive with `score`.","uniqueKey":"oneOf.0.credit_reports.items.[INDEX].no_score_reason","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.0.credit_reports.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.credit_reports","typeLabel":"object[]"},"intended_eligibility":{"type":"array","items":{"type":"string","enum":["account_holder","minor_account_holder","authorized_signer","authorized_user"],"example":"account_holder","description":"A relationship type an entity can hold.\n* `account_holder`: Full control of, and legal responsibility for, the account.\n* `minor_account_holder`: An individual aged 16 or 17 with account holder eligibility.\n* `authorized_signer`: An individual allowed to sign on behalf of the account holder, without legal responsibility.\n* `authorized_user`: An individual with restricted access to the account, without legal responsibility.\n","uniqueKey":"oneOf.0.intended_eligibility.items.[INDEX]","typeLabel":"enum\u003cstring>"},"example":["account_holder"],"description":"The relationship types you intend this entity to hold. When you send it, Lead checks the entity's data against every listed type and rejects the request with `422 parameters_invalid` if any fails. The check is all or nothing, and the error returns every failing check, not just the first. Listing fewer types than the entity qualifies for still succeeds, and `eligibility` shows everything it qualifies for.\n\nIf the check passes, Lead saves the list and returns it on the entity. On a `PATCH`, Lead checks the entity as it would be after the update, against the list you send or, if you leave the field out, the saved list. Send an empty array to clear the saved list; no check runs.\n","uniqueKey":"oneOf.0.intended_eligibility","typeLabel":"enum\u003cstring>[]"},"metadata":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"oneOf.0.metadata.additionalProperties","typeLabel":"string"},"description":"A set of key-value pairs that can be used to store additional information related to this object.","uniqueKey":"oneOf.0.metadata","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"Individual · object"},{"type":"object","title":"Business","description":"Lead ignores fields not listed here. A field sent as `null` clears the stored value: `doing_business_as`, `website`, `gross_annual_revenue`, and `physical_address` or `mailing_address`, which removes that address. These can't be `null`: `type`, `name`, `legal_structure`, `currency`, `identification`, `risk_score`, `kyc`, `ofac`, `rfi`, `metadata`, the arrays, and the fields inside `identification`, `kyc`, `ofac`, `rfi` and each array entry. In `physical_address` and `mailing_address`, `line_2`, `state` and `postal_code` can be `null`; `line_1`, `city` and `country` can't. Send a new value instead, or `[]` to empty an array.","required":["type"],"properties":{"type":{"type":"string","pattern":"^business$","default":"business","description":"Type of entity = business.","isRequired":true,"uniqueKey":"oneOf.1.type","typeLabel":"string"},"name":{"type":"string","maxLength":500,"description":"Legal name of the business. Must be at least 2 characters.","uniqueKey":"oneOf.1.name","typeLabel":"string"},"doing_business_as":{"oneOf":[{"type":"string","maxLength":500,"description":"The name the business operates under, if it differs from its legal name.","uniqueKey":"oneOf.1.doing_business_as.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":500,"description":"The name the business operates under, if it differs from its legal name.","uniqueKey":"oneOf.1.doing_business_as.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.doing_business_as","typeLabel":"string | null"},"legal_structure":{"type":"string","enum":["corporation","partnership","sole_prop","llc","trust","cooperative","other"],"example":"llc","description":"The business's legal structure. A `business` entity can't use `sole_prop`.","uniqueKey":"oneOf.1.legal_structure","typeLabel":"enum\u003cstring>"},"industry":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.industry.items.[INDEX]","typeLabel":"string"},"description":"NAICS codes for the business's industries, 2 to 6 digits each. Find valid codes at naics.com/search, using the 2022 NAICS reference files.","uniqueKey":"oneOf.1.industry","typeLabel":"string[]"},"website":{"oneOf":[{"type":"string","maxLength":500,"description":"The website of the business. Must start with `http://` or `https://`.","uniqueKey":"oneOf.1.website.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":500,"description":"The website of the business. Must start with `http://` or `https://`.","uniqueKey":"oneOf.1.website.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.website","typeLabel":"string | null"},"gross_annual_revenue":{"oneOf":[{"type":"integer","format":"int64","minimum":0,"description":"The business's gross revenue for the prior fiscal year, as an integer in the ISO 4217 minor units of `currency`, like cents for USD. For example, `125000000` with `currency` `USD` is 1,250,000.00 USD.","example":125000000,"uniqueKey":"oneOf.1.gross_annual_revenue.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","minimum":0,"description":"The business's gross revenue for the prior fiscal year, as an integer in the ISO 4217 minor units of `currency`, like cents for USD. For example, `125000000` with `currency` `USD` is 1,250,000.00 USD.","example":125000000,"uniqueKey":"oneOf.1.gross_annual_revenue.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.gross_annual_revenue","typeLabel":"integer\u003cint64> | null"},"currency":{"type":"string","description":"The currency of `gross_annual_revenue`, as an ISO 4217 code.","example":"USD","enum":["AED","AFN","ALL","AMD","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNH","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GGP","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HTG","HUF","IDR","ILS","IMP","INR","IQD","IRR","ISK","JEP","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLE","SOS","SRD","SSP","STD","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VED","VES","VND","VUV","WST","XAD","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XCG","XDR","XMW","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWG"],"uniqueKey":"oneOf.1.currency","typeLabel":"enum\u003cstring>"},"contact_methods":{"type":"array","items":{"oneOf":[{"type":"object","title":"Email","required":["type","email"],"properties":{"type":{"type":"string","pattern":"^email$","default":"email","description":"ContactMethodType = email.","isRequired":true,"uniqueKey":"oneOf.1.contact_methods.items.[INDEX].oneOf.0.type","typeLabel":"string"},"email":{"type":"string","maxLength":500,"description":"Must be a valid email address in the form `local-part@domain.tld`. The domain must contain at least one dot. Addresses using `localhost` or IP literals (for example, `user@[127.0.0.1]`) are not accepted. Only common, real-world email formats are supported.","example":"abc@gmail.com","isRequired":true,"uniqueKey":"oneOf.1.contact_methods.items.[INDEX].oneOf.0.email","typeLabel":"string"}},"uniqueKey":"oneOf.1.contact_methods.items.[INDEX].oneOf.0","typeLabel":"Email · object"},{"type":"object","title":"Phone Number","required":["type","phone_number"],"properties":{"type":{"type":"string","pattern":"^phone_number$","default":"phone_number","example":"+22 607 123 4567","description":"ContactMethodType = phone_number. Conforms to E.123 standard","isRequired":true,"uniqueKey":"oneOf.1.contact_methods.items.[INDEX].oneOf.1.type","typeLabel":"string"},"phone_number":{"type":"string","maxLength":500,"description":"Primary phone number of the entity. Must follow E.123 format.","isRequired":true,"uniqueKey":"oneOf.1.contact_methods.items.[INDEX].oneOf.1.phone_number","typeLabel":"string"}},"uniqueKey":"oneOf.1.contact_methods.items.[INDEX].oneOf.1","typeLabel":"Phone Number · object"}],"uniqueKey":"oneOf.1.contact_methods.items.[INDEX]","typeLabel":"Email · object | Phone Number · object"},"uniqueKey":"oneOf.1.contact_methods","typeLabel":"(Email · object | Phone Number · object)[]"},"physical_address":{"oneOf":[{"type":"object","description":"The business's physical address. It can't be a P.O. box, a registered agent's address, or in a prohibited country.","properties":{"line_1":{"type":"string","maxLength":500,"description":"Address line 1, with the full street address, like the street number and name. Use `line_2` only for unit details.","example":"123 Main St.","uniqueKey":"oneOf.1.physical_address.oneOf.0.line_1","typeLabel":"string"},"line_2":{"oneOf":[{"type":"string","maxLength":500,"description":"Address line 2, for secondary or sub-premise information only.","example":"Apt 25","uniqueKey":"oneOf.1.physical_address.oneOf.0.line_2.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":500,"description":"Address line 2, for secondary or sub-premise information only.","example":"Apt 25","uniqueKey":"oneOf.1.physical_address.oneOf.0.line_2.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.physical_address.oneOf.0.line_2","typeLabel":"string | null"},"city":{"type":"string","maxLength":500,"description":"City.","example":"Denver","uniqueKey":"oneOf.1.physical_address.oneOf.0.city","typeLabel":"string"},"postal_code":{"oneOf":[{"type":"string","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014","uniqueKey":"oneOf.1.physical_address.oneOf.0.postal_code.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014","uniqueKey":"oneOf.1.physical_address.oneOf.0.postal_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.physical_address.oneOf.0.postal_code","typeLabel":"string | null"},"state":{"oneOf":[{"type":"string","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO","uniqueKey":"oneOf.1.physical_address.oneOf.0.state.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO","uniqueKey":"oneOf.1.physical_address.oneOf.0.state.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.physical_address.oneOf.0.state","typeLabel":"string | null"},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code. Lead accepts lowercase and returns it in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"uniqueKey":"oneOf.1.physical_address.oneOf.0.country","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.1.physical_address.oneOf.0","typeLabel":"object"},{"type":"null","description":"The business's physical address. It can't be a P.O. box, a registered agent's address, or in a prohibited country.","properties":{"line_1":{"type":"string","maxLength":500,"description":"Address line 1, with the full street address, like the street number and name. Use `line_2` only for unit details.","example":"123 Main St."},"line_2":{"oneOf":[{"type":"string","maxLength":500,"description":"Address line 2, for secondary or sub-premise information only.","example":"Apt 25"},{"type":"null","maxLength":500,"description":"Address line 2, for secondary or sub-premise information only.","example":"Apt 25"}]},"city":{"type":"string","maxLength":500,"description":"City.","example":"Denver"},"postal_code":{"oneOf":[{"type":"string","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014"},{"type":"null","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014"}]},"state":{"oneOf":[{"type":"string","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO"},{"type":"null","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO"}]},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code. Lead accepts lowercase and returns it in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"]}},"uniqueKey":"oneOf.1.physical_address.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.physical_address","typeLabel":"object | null"},"mailing_address":{"oneOf":[{"type":"object","description":"The business's mailing address.","properties":{"line_1":{"type":"string","maxLength":500,"description":"Address line 1, with the full street address, like the street number and name. Use `line_2` only for unit details.","example":"123 Main St.","uniqueKey":"oneOf.1.mailing_address.oneOf.0.line_1","typeLabel":"string"},"line_2":{"oneOf":[{"type":"string","maxLength":500,"description":"Address line 2, for secondary or sub-premise information only.","example":"Apt 25","uniqueKey":"oneOf.1.mailing_address.oneOf.0.line_2.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":500,"description":"Address line 2, for secondary or sub-premise information only.","example":"Apt 25","uniqueKey":"oneOf.1.mailing_address.oneOf.0.line_2.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.mailing_address.oneOf.0.line_2","typeLabel":"string | null"},"city":{"type":"string","maxLength":500,"description":"City.","example":"Denver","uniqueKey":"oneOf.1.mailing_address.oneOf.0.city","typeLabel":"string"},"postal_code":{"oneOf":[{"type":"string","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014","uniqueKey":"oneOf.1.mailing_address.oneOf.0.postal_code.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014","uniqueKey":"oneOf.1.mailing_address.oneOf.0.postal_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.mailing_address.oneOf.0.postal_code","typeLabel":"string | null"},"state":{"oneOf":[{"type":"string","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO","uniqueKey":"oneOf.1.mailing_address.oneOf.0.state.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO","uniqueKey":"oneOf.1.mailing_address.oneOf.0.state.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.mailing_address.oneOf.0.state","typeLabel":"string | null"},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code. Lead accepts lowercase and returns it in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"uniqueKey":"oneOf.1.mailing_address.oneOf.0.country","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.1.mailing_address.oneOf.0","typeLabel":"object"},{"type":"null","description":"The business's mailing address.","properties":{"line_1":{"type":"string","maxLength":500,"description":"Address line 1, with the full street address, like the street number and name. Use `line_2` only for unit details.","example":"123 Main St."},"line_2":{"oneOf":[{"type":"string","maxLength":500,"description":"Address line 2, for secondary or sub-premise information only.","example":"Apt 25"},{"type":"null","maxLength":500,"description":"Address line 2, for secondary or sub-premise information only.","example":"Apt 25"}]},"city":{"type":"string","maxLength":500,"description":"City.","example":"Denver"},"postal_code":{"oneOf":[{"type":"string","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014"},{"type":"null","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014"}]},"state":{"oneOf":[{"type":"string","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO"},{"type":"null","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO"}]},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code. Lead accepts lowercase and returns it in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"]}},"uniqueKey":"oneOf.1.mailing_address.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.mailing_address","typeLabel":"object | null"},"other_addresses":{"type":"array","description":"Other addresses for the business. The array you send replaces the stored array.","items":{"type":"object","required":["line_1","city","country"],"properties":{"line_1":{"type":"string","maxLength":500,"description":"Address line 1 is the required primary street-address field. It must contain the full base address needed to identify the physical location, such as the street number and street name together, or the closest local equivalent in countries where addresses do not use that exact structure.\n\nUse address line 1 for all core location details that describe the main property or thoroughfare. Regardless of how each component of an address is collected from your end-users, they must be combined into address line 1 before sending to Lead.\n\nDo not:\n- split the primary street address across line 1 and line 2\n- put only the street number in line 1 and the street name in line 2\n- pad line 1 with false or altered data to pass validation","example":"123 Main St.","isRequired":true,"uniqueKey":"oneOf.1.other_addresses.items.[INDEX].line_1","typeLabel":"string"},"city":{"type":"string","maxLength":500,"description":"City.","example":"Denver","isRequired":true,"uniqueKey":"oneOf.1.other_addresses.items.[INDEX].city","typeLabel":"string"},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code. Lead accepts lowercase and returns it in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.1.other_addresses.items.[INDEX].country","typeLabel":"enum\u003cstring>"},"line_2":{"type":"string","maxLength":500,"description":"Address line 2 is optional. Use it only for secondary or sub-premise information, such as:\n- apartment\n- unit\n- suite\n- floor\n- building\n- care of or attention\n\nIf there is no secondary or sub-premise information, leave address line 2 out.\n\nDo not use address line 2 for any part of the primary street address.","example":"Apt 25","uniqueKey":"oneOf.1.other_addresses.items.[INDEX].line_2","typeLabel":"string"},"postal_code":{"type":"string","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014","uniqueKey":"oneOf.1.other_addresses.items.[INDEX].postal_code","typeLabel":"string"},"state":{"type":"string","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO","uniqueKey":"oneOf.1.other_addresses.items.[INDEX].state","typeLabel":"string"}},"uniqueKey":"oneOf.1.other_addresses.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.1.other_addresses","typeLabel":"object[]"},"identification":{"oneOf":[{"type":"object","title":"US Entity","description":"Only `type` is required inside it.","required":["type"],"properties":{"type":{"type":"string","pattern":"^us_entity$","default":"us_entity","description":"Use `us_entity` for an entity with US tax identification, including one you have not collected yet.","isRequired":true,"uniqueKey":"oneOf.1.identification.oneOf.0.type","typeLabel":"string"},"tax_identification":{"type":"object","description":"The entity's own US tax identification. Do not submit another person's SSN or ITIN (e.g. a parent's for a minor). If you have not collected it, omit `tax_identification`; `type` without a valid `value` is rejected. See https://docs.lead.bank/products/entity/entity-object#identification-for-us-and-non-us-entities.","required":["type","value"],"properties":{"type":{"type":"string","enum":["ssn","itin","ein"],"example":"ssn","description":"The entity's US tax identification type: `ssn`, `itin`, or `ein`.\n- For `individual` entity, use SSN or ITIN.\n- For `business` entity, use EIN. For single-member LLC entities where no EIN is available, SSN or ITIN may be used.\n- For `sole_prop` entity, use SSN, ITIN, or EIN.\n","isRequired":true,"uniqueKey":"oneOf.1.identification.oneOf.0.tax_identification.type","typeLabel":"enum\u003cstring>"},"value":{"type":"string","description":"The entity's US tax identification number. Must be 9 digits (e.g. XXXXXXXXX). An SSN must not start with 9. An EIN must begin with a number between 00 and 99. An ITIN must begin with 9. Required whenever `tax_identification` is sent; omit the whole object if you have not collected the tax identification.","pattern":"^\\d{9}$","isRequired":true,"uniqueKey":"oneOf.1.identification.oneOf.0.tax_identification.value","typeLabel":"string"}},"uniqueKey":"oneOf.1.identification.oneOf.0.tax_identification","typeLabel":"object"},"documents":{"type":"array","example":[{"file_id":"file_7Tq4mR9vKx2LpW8nZc3B","identification_number":"X1234567","issuing_country":"GB","expiration_date":"2030-06-01"},{"type":"passport","identification_number":"X7654321","issuing_country":"GB","expiration_date":"2031-01-15"}],"description":"Government-issued identification, one entry per document. You can send up to 100 documents. Each entry takes either a `file_id` or a `type`, not both. The array you send replaces the stored array, and Lead checks every `file_id` in it again. You don't need to confirm KYC again when you change documents.","maxItems":100,"items":{"type":"object","description":"A government-issued identification document. Send exactly one of `file_id` or `type`; both returns `422 parameters_invalid` (`parameters_mutually_exclusive`), and neither returns it with `parameter_group_empty`. With a `file_id`, Lead takes the type from the file and the response omits `type`. Retrieve it with `GET /v2/files/{file_id}`.","required":["identification_number","issuing_country"],"properties":{"identification_number":{"type":"string","maxLength":500,"description":"The number on the document.","example":"X1234567","isRequired":true,"uniqueKey":"oneOf.1.identification.oneOf.0.documents.items.[INDEX].identification_number","typeLabel":"string"},"issuing_country":{"type":"string","description":"Issuing country, as an ISO 3166-1 alpha-2 code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.1.identification.oneOf.0.documents.items.[INDEX].issuing_country","typeLabel":"enum\u003cstring>"},"file_id":{"type":"string","pattern":"^file_\\w+$","description":"A file ID from `POST /v2/files`. Send `file_id` or `type`, not both. When you send only a `file_id`, Lead determines the document type from the file. Retrieve that type with `GET /v2/files/{file_id}`. The file must exist, belong to your program, and have a type this entry accepts. Send each `file_id` only once per entity. You can still link several files of the same type, and link one file to other entities.","example":"file_7RwQ2mK9pL4xT1vN8jS5","uniqueKey":"oneOf.1.identification.oneOf.0.documents.items.[INDEX].file_id","typeLabel":"string"},"type":{"type":"string","enum":["drivers_license","state_id","provincial_id","passport","permanent_residency_id","national_id","consular_id","military_id","tax_certificate","tax_return","partnership_agreement","certificate_of_good_standing","formation_document","exchange_listing_certificate","exchange_listing_notice"],"example":"passport","description":"The identification document type, when you do not link a file. Send `file_id` or `type`, not both.\n- For an `individual`: `drivers_license`, `state_id`, `provincial_id`, `passport`, `permanent_residency_id`, `national_id`, `consular_id`, `military_id`.\n- For a `business`: `tax_certificate`, `tax_return`, `partnership_agreement`, `certificate_of_good_standing`, `formation_document`, `exchange_listing_certificate`, `exchange_listing_notice`.\n- For a `sole_prop`: `drivers_license`, `state_id`, `provincial_id`, `passport`, `permanent_residency_id`, `national_id`, `consular_id`, `military_id`, `tax_certificate`, `tax_return`, `formation_document`.\n\n`national_id` and `consular_id` are not applicable to a `us_entity`. `military_id` is accepted only as a declared `type`: the Files API has no such type, so you cannot link a file for it.\n","uniqueKey":"oneOf.1.identification.oneOf.0.documents.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"issuing_state":{"type":"string","maxLength":500,"description":"Issuing state, as a two-letter code. When `issuing_country` is `US`, it must be a valid US state.","uniqueKey":"oneOf.1.identification.oneOf.0.documents.items.[INDEX].issuing_state","typeLabel":"string"},"expiration_date":{"type":"string","format":"date","description":"Expiration date, in YYYY-MM-DD format. Cannot be in the past when you create the entity.","example":"2030-06-01","uniqueKey":"oneOf.1.identification.oneOf.0.documents.items.[INDEX].expiration_date","typeLabel":"string\u003cdate>"}},"uniqueKey":"oneOf.1.identification.oneOf.0.documents.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.1.identification.oneOf.0.documents","typeLabel":"object[]"}},"uniqueKey":"oneOf.1.identification.oneOf.0","typeLabel":"US Entity · object"},{"type":"object","title":"Non US Entity","description":"Only `type` is required inside it.","required":["type"],"properties":{"type":{"type":"string","pattern":"^non_us_entity$","default":"non_us_entity","description":"Use `non_us_entity` for an entity without US tax identification.","isRequired":true,"uniqueKey":"oneOf.1.identification.oneOf.1.type","typeLabel":"string"},"documents":{"type":"array","example":[{"file_id":"file_7Tq4mR9vKx2LpW8nZc3B","identification_number":"X1234567","issuing_country":"GB","expiration_date":"2030-06-01"},{"type":"passport","identification_number":"X7654321","issuing_country":"GB","expiration_date":"2031-01-15"}],"description":"Government-issued identification, one entry per document. You can send up to 100 documents. Each entry takes either a `file_id` or a `type`, not both. The array you send replaces the stored array, and Lead checks every `file_id` in it again. You don't need to confirm KYC again when you change documents.","maxItems":100,"items":{"type":"object","description":"A government-issued identification document. Send exactly one of `file_id` or `type`; both returns `422 parameters_invalid` (`parameters_mutually_exclusive`), and neither returns it with `parameter_group_empty`. With a `file_id`, Lead takes the type from the file and the response omits `type`. Retrieve it with `GET /v2/files/{file_id}`.","required":["identification_number","issuing_country"],"properties":{"identification_number":{"type":"string","maxLength":500,"description":"The number on the document.","example":"X1234567","isRequired":true,"uniqueKey":"oneOf.1.identification.oneOf.1.documents.items.[INDEX].identification_number","typeLabel":"string"},"issuing_country":{"type":"string","description":"Issuing country, as an ISO 3166-1 alpha-2 code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.1.identification.oneOf.1.documents.items.[INDEX].issuing_country","typeLabel":"enum\u003cstring>"},"file_id":{"type":"string","pattern":"^file_\\w+$","description":"A file ID from `POST /v2/files`. Send `file_id` or `type`, not both. When you send only a `file_id`, Lead determines the document type from the file. Retrieve that type with `GET /v2/files/{file_id}`. The file must exist, belong to your program, and have a type this entry accepts. Send each `file_id` only once per entity. You can still link several files of the same type, and link one file to other entities.","example":"file_7RwQ2mK9pL4xT1vN8jS5","uniqueKey":"oneOf.1.identification.oneOf.1.documents.items.[INDEX].file_id","typeLabel":"string"},"type":{"type":"string","enum":["drivers_license","state_id","provincial_id","passport","permanent_residency_id","national_id","consular_id","military_id","tax_certificate","tax_return","partnership_agreement","certificate_of_good_standing","formation_document","exchange_listing_certificate","exchange_listing_notice"],"example":"passport","description":"The identification document type, when you do not link a file. Send `file_id` or `type`, not both.\n- For an `individual`: `drivers_license`, `state_id`, `provincial_id`, `passport`, `permanent_residency_id`, `national_id`, `consular_id`, `military_id`.\n- For a `business`: `tax_certificate`, `tax_return`, `partnership_agreement`, `certificate_of_good_standing`, `formation_document`, `exchange_listing_certificate`, `exchange_listing_notice`.\n- For a `sole_prop`: `drivers_license`, `state_id`, `provincial_id`, `passport`, `permanent_residency_id`, `national_id`, `consular_id`, `military_id`, `tax_certificate`, `tax_return`, `formation_document`.\n\n`national_id` and `consular_id` are not applicable to a `us_entity`. `military_id` is accepted only as a declared `type`: the Files API has no such type, so you cannot link a file for it.\n","uniqueKey":"oneOf.1.identification.oneOf.1.documents.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"issuing_state":{"type":"string","maxLength":500,"description":"Issuing state, as a two-letter code. When `issuing_country` is `US`, it must be a valid US state.","uniqueKey":"oneOf.1.identification.oneOf.1.documents.items.[INDEX].issuing_state","typeLabel":"string"},"expiration_date":{"type":"string","format":"date","description":"Expiration date, in YYYY-MM-DD format. Cannot be in the past when you create the entity.","example":"2030-06-01","uniqueKey":"oneOf.1.identification.oneOf.1.documents.items.[INDEX].expiration_date","typeLabel":"string\u003cdate>"}},"uniqueKey":"oneOf.1.identification.oneOf.1.documents.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.1.identification.oneOf.1.documents","typeLabel":"object[]"}},"uniqueKey":"oneOf.1.identification.oneOf.1","typeLabel":"Non US Entity · object"}],"uniqueKey":"oneOf.1.identification","typeLabel":"US Entity · object | Non US Entity · object"},"additional_documents":{"type":"array","example":[{"file_id":"file_X5jD8hN2sQ6yFb1Gt9Ka"},{"type":"financial_statement"}],"description":"Supporting documents, one entry per document. You can send up to 100 documents. Each entry takes either a `file_id` or a `type`, not both. The array you send replaces the stored array, and Lead checks every `file_id` in it again. You don't need to confirm KYC again when you change documents.","maxItems":100,"items":{"type":"object","description":"A supporting document. Send exactly one of `file_id` or `type`; both returns `422 parameters_invalid` (`parameters_mutually_exclusive`), and neither returns it with `parameter_group_empty`. With a `file_id`, Lead takes the type from the file and the response omits `type`. Retrieve it with `GET /v2/files/{file_id}`.","properties":{"file_id":{"type":"string","pattern":"^file_\\w+$","description":"A file ID from `POST /v2/files`. Send `file_id` or `type`, not both. When you send only a `file_id`, Lead determines the document type from the file. Retrieve that type with `GET /v2/files/{file_id}`. The file must exist, belong to your program, and have a type this entry accepts. Send each `file_id` only once per entity. You can still link several files of the same type, and link one file to other entities.","example":"file_7RwQ2mK9pL4xT1vN8jS5","uniqueKey":"oneOf.1.additional_documents.items.[INDEX].file_id","typeLabel":"string"},"type":{"type":"string","enum":["adverse_media","bank_statement","financial_statement","id_selfie","inheritance_letter","investigation_report","investment_record","public_record","salary_verification_letter","sale_agreement","social_security_card","utility_bill"],"example":"bank_statement","description":"The supporting document type, when you do not link a file. Send `file_id` or `type`, not both.\nEvery entity type accepts every value of this enum.\n","uniqueKey":"oneOf.1.additional_documents.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.1.additional_documents.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.1.additional_documents","typeLabel":"object[]"},"beneficial_owners":{"type":"array","items":{"type":"object","required":["entity_id"],"properties":{"entity_id":{"type":"string","description":"The `entity_id` of the individual entity for this beneficial owner. Data requirements for beneficial owners match those of an `authorized_signer`.","example":"entity_xyz123","pattern":"^entity_[^\\s]{1,33}$","isRequired":true,"uniqueKey":"oneOf.1.beneficial_owners.items.[INDEX].entity_id","typeLabel":"string"},"ownership_percentage":{"type":"string","description":"Percentage of the business this person owns, from 0 to 100 with up to two decimal places. For example, `25.5` means 25.5%. The percentages of all beneficial owners must add up to 100 or less. A beneficial owner sent without a percentage is returned with `0`. A value set outside v2, like through v0, is returned as stored, without rescaling. For example, a v0 value of `0.25` is returned as `0.25`, not `25`.","pattern":"^(0(\\.\\d{1,2})?|[1-9]\\d{0,1}(\\.\\d{1,2})?|100(\\.0{1,2})?)$","example":"25.5","uniqueKey":"oneOf.1.beneficial_owners.items.[INDEX].ownership_percentage","typeLabel":"string"},"relationship_established_date":{"type":"string","format":"date","description":"The date the relationship was established.","uniqueKey":"oneOf.1.beneficial_owners.items.[INDEX].relationship_established_date","typeLabel":"string\u003cdate>"}},"uniqueKey":"oneOf.1.beneficial_owners.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.1.beneficial_owners","typeLabel":"object[]"},"control_persons":{"type":"array","items":{"type":"object","required":["entity_id","title"],"properties":{"entity_id":{"type":"string","description":"The `entity_id` of the individual entity for this control person. Data requirements for control persons match those of an `authorized_signer`.","example":"entity_xyz123","pattern":"^entity_[^\\s]{1,33}$","isRequired":true,"uniqueKey":"oneOf.1.control_persons.items.[INDEX].entity_id","typeLabel":"string"},"title":{"type":"string","maxLength":500,"description":"The title of this control person.","isRequired":true,"uniqueKey":"oneOf.1.control_persons.items.[INDEX].title","typeLabel":"string"},"relationship_established_date":{"type":"string","format":"date","description":"The date the relationship was established.","uniqueKey":"oneOf.1.control_persons.items.[INDEX].relationship_established_date","typeLabel":"string\u003cdate>"}},"uniqueKey":"oneOf.1.control_persons.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.1.control_persons","typeLabel":"object[]"},"risk_score":{"type":"string","enum":["low","medium","high"],"example":"low","description":"The entity's risk score. You map your own risk scores to these values and give Lead the mapping.","uniqueKey":"oneOf.1.risk_score","typeLabel":"enum\u003cstring>"},"kyc":{"type":"object","description":"Your KYC check of the entity.","required":["result","screened_at"],"properties":{"result":{"type":"string","enum":["passed","failed"],"example":"passed","description":"The result of your KYC check, `passed` or `failed`.","isRequired":true,"uniqueKey":"oneOf.1.kyc.result","typeLabel":"enum\u003cstring>"},"screened_at":{"type":"string","format":"date-time","description":"When you ran the KYC check. It can't be in the future. Lead stores it in UTC, to the second.","example":"2026-11-07T05:31:56Z","isRequired":true,"uniqueKey":"oneOf.1.kyc.screened_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"oneOf.1.kyc","typeLabel":"object"},"ofac":{"type":"object","description":"Your OFAC screen of the entity.","required":["result","screened_at"],"properties":{"result":{"type":"string","enum":["passed","failed"],"example":"passed","description":"The result of your OFAC screen.\n* `passed`: The screen found no match, or you cleared every potential match.\n* `failed`: The screen found a potential or confirmed match that you have not cleared.\n","isRequired":true,"uniqueKey":"oneOf.1.ofac.result","typeLabel":"enum\u003cstring>"},"screened_at":{"type":"string","format":"date-time","description":"When you ran the OFAC screen. It can't be in the future. Lead stores it in UTC, to the second.","example":"2026-11-07T05:31:56Z","isRequired":true,"uniqueKey":"oneOf.1.ofac.screened_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"oneOf.1.ofac","typeLabel":"object"},"rfi":{"type":"object","description":"Your request for information (RFI) to your customer.","required":["stage","requested_at"],"properties":{"stage":{"type":"string","enum":["requested","completed"],"example":"completed","description":"The stage of your request for information (RFI) to your customer.\n* `requested`: You sent the RFI and are waiting for the answer.\n* `completed`: Your customer answered the RFI.\n","isRequired":true,"uniqueKey":"oneOf.1.rfi.stage","typeLabel":"enum\u003cstring>"},"requested_at":{"type":"string","format":"date-time","description":"When you sent the RFI. It can't be in the future. Lead stores it in UTC, to the second.","example":"2026-11-07T05:31:56Z","isRequired":true,"uniqueKey":"oneOf.1.rfi.requested_at","typeLabel":"string\u003cdate-time>"},"completed_at":{"type":"string","format":"date-time","description":"When your customer answered the RFI. Send it when `status` is `completed`. Lead stores it in UTC, to the second.","example":"2026-11-09T05:31:56Z","uniqueKey":"oneOf.1.rfi.completed_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"oneOf.1.rfi","typeLabel":"object"},"credit_reports":{"type":"array","description":"Credit reports from credit bureaus on the entity.","items":{"type":"object","description":"Credit report information. Exactly one of `score` or `no_score_reason` must be provided; `pulled_at` and `source` are always required when a credit report is supplied.\n","required":["pulled_at","source"],"properties":{"pulled_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp when the credit report was pulled.","example":"2026-11-02T14:00:00Z","isRequired":true,"uniqueKey":"oneOf.1.credit_reports.items.[INDEX].pulled_at","typeLabel":"string\u003cdate-time>"},"source":{"type":"string","enum":["equifax","experian","transunion"],"example":"equifax","description":"Credit bureau that issued the report.","isRequired":true,"uniqueKey":"oneOf.1.credit_reports.items.[INDEX].source","typeLabel":"enum\u003cstring>"},"score":{"type":"integer","description":"A credit score returned by the bureau, from 300 to 850.","minimum":300,"maximum":850,"example":712,"uniqueKey":"oneOf.1.credit_reports.items.[INDEX].score","typeLabel":"integer"},"no_score_reason":{"type":"string","enum":["unestablished","frozen"],"example":"unestablished","description":"Indicates the state of a credit file when a numeric score is not available. Mutually exclusive with `score`.","uniqueKey":"oneOf.1.credit_reports.items.[INDEX].no_score_reason","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.1.credit_reports.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.1.credit_reports","typeLabel":"object[]"},"intended_eligibility":{"type":"array","items":{"type":"string","enum":["account_holder","minor_account_holder","authorized_signer","authorized_user"],"example":"account_holder","description":"A relationship type an entity can hold.\n* `account_holder`: Full control of, and legal responsibility for, the account.\n* `minor_account_holder`: An individual aged 16 or 17 with account holder eligibility.\n* `authorized_signer`: An individual allowed to sign on behalf of the account holder, without legal responsibility.\n* `authorized_user`: An individual with restricted access to the account, without legal responsibility.\n","uniqueKey":"oneOf.1.intended_eligibility.items.[INDEX]","typeLabel":"enum\u003cstring>"},"example":["account_holder"],"description":"The relationship types you intend this entity to hold. When you send it, Lead checks the entity's data against every listed type and rejects the request with `422 parameters_invalid` if any fails. The check is all or nothing, and the error returns every failing check, not just the first. Listing fewer types than the entity qualifies for still succeeds, and `eligibility` shows everything it qualifies for.\n\nIf the check passes, Lead saves the list and returns it on the entity. On a `PATCH`, Lead checks the entity as it would be after the update, against the list you send or, if you leave the field out, the saved list. Send an empty array to clear the saved list; no check runs.\n","uniqueKey":"oneOf.1.intended_eligibility","typeLabel":"enum\u003cstring>[]"},"metadata":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"oneOf.1.metadata.additionalProperties","typeLabel":"string"},"description":"A set of key-value pairs that can be used to store additional information related to this object.","uniqueKey":"oneOf.1.metadata","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"Business · object"},{"type":"object","title":"Sole Prop","description":"Lead ignores fields not listed here. A field sent as `null` clears the stored value: `doing_business_as`, `website`, `gross_annual_revenue`, and `physical_address` or `mailing_address`, which removes that address. These can't be `null`: `type`, `name`, `legal_structure`, `currency`, `identification`, `sole_proprietor_entity_id`, `risk_score`, `kyc`, `ofac`, `rfi`, `metadata`, the arrays, and the fields inside `identification`, `kyc`, `ofac`, `rfi` and each array entry. In `physical_address` and `mailing_address`, `line_2`, `state` and `postal_code` can be `null`; `line_1`, `city` and `country` can't. Send a new value instead, or `[]` to empty an array.","required":["type"],"properties":{"type":{"type":"string","pattern":"^sole_prop$","default":"sole_prop","description":"Type of entity = sole_prop.","isRequired":true,"uniqueKey":"oneOf.2.type","typeLabel":"string"},"name":{"type":"string","maxLength":500,"description":"Legal name of the business. Must be at least 2 characters.","uniqueKey":"oneOf.2.name","typeLabel":"string"},"doing_business_as":{"oneOf":[{"type":"string","maxLength":500,"description":"The name the business operates under, if it differs from its legal name.","uniqueKey":"oneOf.2.doing_business_as.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":500,"description":"The name the business operates under, if it differs from its legal name.","uniqueKey":"oneOf.2.doing_business_as.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.doing_business_as","typeLabel":"string | null"},"legal_structure":{"type":"string","enum":["corporation","partnership","sole_prop","llc","trust","cooperative","other"],"example":"llc","description":"The business's legal structure. A `sole_prop` entity must use `sole_prop`.","uniqueKey":"oneOf.2.legal_structure","typeLabel":"enum\u003cstring>"},"industry":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.2.industry.items.[INDEX]","typeLabel":"string"},"description":"NAICS codes for the business's industries, 2 to 6 digits each. Find valid codes at naics.com/search, using the 2022 NAICS reference files.","uniqueKey":"oneOf.2.industry","typeLabel":"string[]"},"website":{"oneOf":[{"type":"string","maxLength":500,"description":"The website of the business. Must start with `http://` or `https://`.","uniqueKey":"oneOf.2.website.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":500,"description":"The website of the business. Must start with `http://` or `https://`.","uniqueKey":"oneOf.2.website.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.website","typeLabel":"string | null"},"gross_annual_revenue":{"oneOf":[{"type":"integer","format":"int64","minimum":0,"description":"The business's gross revenue for the prior fiscal year, as an integer in the ISO 4217 minor units of `currency`, like cents for USD. For example, `125000000` with `currency` `USD` is 1,250,000.00 USD.","example":125000000,"uniqueKey":"oneOf.2.gross_annual_revenue.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","minimum":0,"description":"The business's gross revenue for the prior fiscal year, as an integer in the ISO 4217 minor units of `currency`, like cents for USD. For example, `125000000` with `currency` `USD` is 1,250,000.00 USD.","example":125000000,"uniqueKey":"oneOf.2.gross_annual_revenue.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.gross_annual_revenue","typeLabel":"integer\u003cint64> | null"},"currency":{"type":"string","description":"The currency of `gross_annual_revenue`, as an ISO 4217 code.","example":"USD","enum":["AED","AFN","ALL","AMD","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNH","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GGP","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HTG","HUF","IDR","ILS","IMP","INR","IQD","IRR","ISK","JEP","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLE","SOS","SRD","SSP","STD","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VED","VES","VND","VUV","WST","XAD","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XCG","XDR","XMW","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWG"],"uniqueKey":"oneOf.2.currency","typeLabel":"enum\u003cstring>"},"contact_methods":{"type":"array","items":{"oneOf":[{"type":"object","title":"Email","required":["type","email"],"properties":{"type":{"type":"string","pattern":"^email$","default":"email","description":"ContactMethodType = email.","isRequired":true,"uniqueKey":"oneOf.2.contact_methods.items.[INDEX].oneOf.0.type","typeLabel":"string"},"email":{"type":"string","maxLength":500,"description":"Must be a valid email address in the form `local-part@domain.tld`. The domain must contain at least one dot. Addresses using `localhost` or IP literals (for example, `user@[127.0.0.1]`) are not accepted. Only common, real-world email formats are supported.","example":"abc@gmail.com","isRequired":true,"uniqueKey":"oneOf.2.contact_methods.items.[INDEX].oneOf.0.email","typeLabel":"string"}},"uniqueKey":"oneOf.2.contact_methods.items.[INDEX].oneOf.0","typeLabel":"Email · object"},{"type":"object","title":"Phone Number","required":["type","phone_number"],"properties":{"type":{"type":"string","pattern":"^phone_number$","default":"phone_number","example":"+22 607 123 4567","description":"ContactMethodType = phone_number. Conforms to E.123 standard","isRequired":true,"uniqueKey":"oneOf.2.contact_methods.items.[INDEX].oneOf.1.type","typeLabel":"string"},"phone_number":{"type":"string","maxLength":500,"description":"Primary phone number of the entity. Must follow E.123 format.","isRequired":true,"uniqueKey":"oneOf.2.contact_methods.items.[INDEX].oneOf.1.phone_number","typeLabel":"string"}},"uniqueKey":"oneOf.2.contact_methods.items.[INDEX].oneOf.1","typeLabel":"Phone Number · object"}],"uniqueKey":"oneOf.2.contact_methods.items.[INDEX]","typeLabel":"Email · object | Phone Number · object"},"uniqueKey":"oneOf.2.contact_methods","typeLabel":"(Email · object | Phone Number · object)[]"},"physical_address":{"oneOf":[{"type":"object","description":"The business's physical address. It can't be a P.O. box, a registered agent's address, or in a prohibited country.","properties":{"line_1":{"type":"string","maxLength":500,"description":"Address line 1, with the full street address, like the street number and name. Use `line_2` only for unit details.","example":"123 Main St.","uniqueKey":"oneOf.2.physical_address.oneOf.0.line_1","typeLabel":"string"},"line_2":{"oneOf":[{"type":"string","maxLength":500,"description":"Address line 2, for secondary or sub-premise information only.","example":"Apt 25","uniqueKey":"oneOf.2.physical_address.oneOf.0.line_2.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":500,"description":"Address line 2, for secondary or sub-premise information only.","example":"Apt 25","uniqueKey":"oneOf.2.physical_address.oneOf.0.line_2.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.physical_address.oneOf.0.line_2","typeLabel":"string | null"},"city":{"type":"string","maxLength":500,"description":"City.","example":"Denver","uniqueKey":"oneOf.2.physical_address.oneOf.0.city","typeLabel":"string"},"postal_code":{"oneOf":[{"type":"string","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014","uniqueKey":"oneOf.2.physical_address.oneOf.0.postal_code.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014","uniqueKey":"oneOf.2.physical_address.oneOf.0.postal_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.physical_address.oneOf.0.postal_code","typeLabel":"string | null"},"state":{"oneOf":[{"type":"string","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO","uniqueKey":"oneOf.2.physical_address.oneOf.0.state.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO","uniqueKey":"oneOf.2.physical_address.oneOf.0.state.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.physical_address.oneOf.0.state","typeLabel":"string | null"},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code. Lead accepts lowercase and returns it in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"uniqueKey":"oneOf.2.physical_address.oneOf.0.country","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.2.physical_address.oneOf.0","typeLabel":"object"},{"type":"null","description":"The business's physical address. It can't be a P.O. box, a registered agent's address, or in a prohibited country.","properties":{"line_1":{"type":"string","maxLength":500,"description":"Address line 1, with the full street address, like the street number and name. Use `line_2` only for unit details.","example":"123 Main St."},"line_2":{"oneOf":[{"type":"string","maxLength":500,"description":"Address line 2, for secondary or sub-premise information only.","example":"Apt 25"},{"type":"null","maxLength":500,"description":"Address line 2, for secondary or sub-premise information only.","example":"Apt 25"}]},"city":{"type":"string","maxLength":500,"description":"City.","example":"Denver"},"postal_code":{"oneOf":[{"type":"string","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014"},{"type":"null","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014"}]},"state":{"oneOf":[{"type":"string","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO"},{"type":"null","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO"}]},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code. Lead accepts lowercase and returns it in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"]}},"uniqueKey":"oneOf.2.physical_address.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.physical_address","typeLabel":"object | null"},"mailing_address":{"oneOf":[{"type":"object","description":"The business's mailing address.","properties":{"line_1":{"type":"string","maxLength":500,"description":"Address line 1, with the full street address, like the street number and name. Use `line_2` only for unit details.","example":"123 Main St.","uniqueKey":"oneOf.2.mailing_address.oneOf.0.line_1","typeLabel":"string"},"line_2":{"oneOf":[{"type":"string","maxLength":500,"description":"Address line 2, for secondary or sub-premise information only.","example":"Apt 25","uniqueKey":"oneOf.2.mailing_address.oneOf.0.line_2.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":500,"description":"Address line 2, for secondary or sub-premise information only.","example":"Apt 25","uniqueKey":"oneOf.2.mailing_address.oneOf.0.line_2.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.mailing_address.oneOf.0.line_2","typeLabel":"string | null"},"city":{"type":"string","maxLength":500,"description":"City.","example":"Denver","uniqueKey":"oneOf.2.mailing_address.oneOf.0.city","typeLabel":"string"},"postal_code":{"oneOf":[{"type":"string","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014","uniqueKey":"oneOf.2.mailing_address.oneOf.0.postal_code.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014","uniqueKey":"oneOf.2.mailing_address.oneOf.0.postal_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.mailing_address.oneOf.0.postal_code","typeLabel":"string | null"},"state":{"oneOf":[{"type":"string","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO","uniqueKey":"oneOf.2.mailing_address.oneOf.0.state.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO","uniqueKey":"oneOf.2.mailing_address.oneOf.0.state.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.mailing_address.oneOf.0.state","typeLabel":"string | null"},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code. Lead accepts lowercase and returns it in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"uniqueKey":"oneOf.2.mailing_address.oneOf.0.country","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.2.mailing_address.oneOf.0","typeLabel":"object"},{"type":"null","description":"The business's mailing address.","properties":{"line_1":{"type":"string","maxLength":500,"description":"Address line 1, with the full street address, like the street number and name. Use `line_2` only for unit details.","example":"123 Main St."},"line_2":{"oneOf":[{"type":"string","maxLength":500,"description":"Address line 2, for secondary or sub-premise information only.","example":"Apt 25"},{"type":"null","maxLength":500,"description":"Address line 2, for secondary or sub-premise information only.","example":"Apt 25"}]},"city":{"type":"string","maxLength":500,"description":"City.","example":"Denver"},"postal_code":{"oneOf":[{"type":"string","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014"},{"type":"null","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014"}]},"state":{"oneOf":[{"type":"string","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO"},{"type":"null","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO"}]},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code. Lead accepts lowercase and returns it in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"]}},"uniqueKey":"oneOf.2.mailing_address.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.2.mailing_address","typeLabel":"object | null"},"other_addresses":{"type":"array","description":"Other addresses for the business. The array you send replaces the stored array.","items":{"type":"object","required":["line_1","city","country"],"properties":{"line_1":{"type":"string","maxLength":500,"description":"Address line 1 is the required primary street-address field. It must contain the full base address needed to identify the physical location, such as the street number and street name together, or the closest local equivalent in countries where addresses do not use that exact structure.\n\nUse address line 1 for all core location details that describe the main property or thoroughfare. Regardless of how each component of an address is collected from your end-users, they must be combined into address line 1 before sending to Lead.\n\nDo not:\n- split the primary street address across line 1 and line 2\n- put only the street number in line 1 and the street name in line 2\n- pad line 1 with false or altered data to pass validation","example":"123 Main St.","isRequired":true,"uniqueKey":"oneOf.2.other_addresses.items.[INDEX].line_1","typeLabel":"string"},"city":{"type":"string","maxLength":500,"description":"City.","example":"Denver","isRequired":true,"uniqueKey":"oneOf.2.other_addresses.items.[INDEX].city","typeLabel":"string"},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code. Lead accepts lowercase and returns it in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.2.other_addresses.items.[INDEX].country","typeLabel":"enum\u003cstring>"},"line_2":{"type":"string","maxLength":500,"description":"Address line 2 is optional. Use it only for secondary or sub-premise information, such as:\n- apartment\n- unit\n- suite\n- floor\n- building\n- care of or attention\n\nIf there is no secondary or sub-premise information, leave address line 2 out.\n\nDo not use address line 2 for any part of the primary street address.","example":"Apt 25","uniqueKey":"oneOf.2.other_addresses.items.[INDEX].line_2","typeLabel":"string"},"postal_code":{"type":"string","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014","uniqueKey":"oneOf.2.other_addresses.items.[INDEX].postal_code","typeLabel":"string"},"state":{"type":"string","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO","uniqueKey":"oneOf.2.other_addresses.items.[INDEX].state","typeLabel":"string"}},"uniqueKey":"oneOf.2.other_addresses.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.2.other_addresses","typeLabel":"object[]"},"identification":{"oneOf":[{"type":"object","title":"US Entity","description":"Only `type` is required inside it.","required":["type"],"properties":{"type":{"type":"string","pattern":"^us_entity$","default":"us_entity","description":"Use `us_entity` for an entity with US tax identification, including one you have not collected yet.","isRequired":true,"uniqueKey":"oneOf.2.identification.oneOf.0.type","typeLabel":"string"},"tax_identification":{"type":"object","description":"The entity's own US tax identification. Do not submit another person's SSN or ITIN (e.g. a parent's for a minor). If you have not collected it, omit `tax_identification`; `type` without a valid `value` is rejected. See https://docs.lead.bank/products/entity/entity-object#identification-for-us-and-non-us-entities.","required":["type","value"],"properties":{"type":{"type":"string","enum":["ssn","itin","ein"],"example":"ssn","description":"The entity's US tax identification type: `ssn`, `itin`, or `ein`.\n- For `individual` entity, use SSN or ITIN.\n- For `business` entity, use EIN. For single-member LLC entities where no EIN is available, SSN or ITIN may be used.\n- For `sole_prop` entity, use SSN, ITIN, or EIN.\n","isRequired":true,"uniqueKey":"oneOf.2.identification.oneOf.0.tax_identification.type","typeLabel":"enum\u003cstring>"},"value":{"type":"string","description":"The entity's US tax identification number. Must be 9 digits (e.g. XXXXXXXXX). An SSN must not start with 9. An EIN must begin with a number between 00 and 99. An ITIN must begin with 9. Required whenever `tax_identification` is sent; omit the whole object if you have not collected the tax identification.","pattern":"^\\d{9}$","isRequired":true,"uniqueKey":"oneOf.2.identification.oneOf.0.tax_identification.value","typeLabel":"string"}},"uniqueKey":"oneOf.2.identification.oneOf.0.tax_identification","typeLabel":"object"},"documents":{"type":"array","example":[{"file_id":"file_7Tq4mR9vKx2LpW8nZc3B","identification_number":"X1234567","issuing_country":"GB","expiration_date":"2030-06-01"},{"type":"passport","identification_number":"X7654321","issuing_country":"GB","expiration_date":"2031-01-15"}],"description":"Government-issued identification, one entry per document. You can send up to 100 documents. Each entry takes either a `file_id` or a `type`, not both. The array you send replaces the stored array, and Lead checks every `file_id` in it again. You don't need to confirm KYC again when you change documents.","maxItems":100,"items":{"type":"object","description":"A government-issued identification document. Send exactly one of `file_id` or `type`; both returns `422 parameters_invalid` (`parameters_mutually_exclusive`), and neither returns it with `parameter_group_empty`. With a `file_id`, Lead takes the type from the file and the response omits `type`. Retrieve it with `GET /v2/files/{file_id}`.","required":["identification_number","issuing_country"],"properties":{"identification_number":{"type":"string","maxLength":500,"description":"The number on the document.","example":"X1234567","isRequired":true,"uniqueKey":"oneOf.2.identification.oneOf.0.documents.items.[INDEX].identification_number","typeLabel":"string"},"issuing_country":{"type":"string","description":"Issuing country, as an ISO 3166-1 alpha-2 code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.2.identification.oneOf.0.documents.items.[INDEX].issuing_country","typeLabel":"enum\u003cstring>"},"file_id":{"type":"string","pattern":"^file_\\w+$","description":"A file ID from `POST /v2/files`. Send `file_id` or `type`, not both. When you send only a `file_id`, Lead determines the document type from the file. Retrieve that type with `GET /v2/files/{file_id}`. The file must exist, belong to your program, and have a type this entry accepts. Send each `file_id` only once per entity. You can still link several files of the same type, and link one file to other entities.","example":"file_7RwQ2mK9pL4xT1vN8jS5","uniqueKey":"oneOf.2.identification.oneOf.0.documents.items.[INDEX].file_id","typeLabel":"string"},"type":{"type":"string","enum":["drivers_license","state_id","provincial_id","passport","permanent_residency_id","national_id","consular_id","military_id","tax_certificate","tax_return","partnership_agreement","certificate_of_good_standing","formation_document","exchange_listing_certificate","exchange_listing_notice"],"example":"passport","description":"The identification document type, when you do not link a file. Send `file_id` or `type`, not both.\n- For an `individual`: `drivers_license`, `state_id`, `provincial_id`, `passport`, `permanent_residency_id`, `national_id`, `consular_id`, `military_id`.\n- For a `business`: `tax_certificate`, `tax_return`, `partnership_agreement`, `certificate_of_good_standing`, `formation_document`, `exchange_listing_certificate`, `exchange_listing_notice`.\n- For a `sole_prop`: `drivers_license`, `state_id`, `provincial_id`, `passport`, `permanent_residency_id`, `national_id`, `consular_id`, `military_id`, `tax_certificate`, `tax_return`, `formation_document`.\n\n`national_id` and `consular_id` are not applicable to a `us_entity`. `military_id` is accepted only as a declared `type`: the Files API has no such type, so you cannot link a file for it.\n","uniqueKey":"oneOf.2.identification.oneOf.0.documents.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"issuing_state":{"type":"string","maxLength":500,"description":"Issuing state, as a two-letter code. When `issuing_country` is `US`, it must be a valid US state.","uniqueKey":"oneOf.2.identification.oneOf.0.documents.items.[INDEX].issuing_state","typeLabel":"string"},"expiration_date":{"type":"string","format":"date","description":"Expiration date, in YYYY-MM-DD format. Cannot be in the past when you create the entity.","example":"2030-06-01","uniqueKey":"oneOf.2.identification.oneOf.0.documents.items.[INDEX].expiration_date","typeLabel":"string\u003cdate>"}},"uniqueKey":"oneOf.2.identification.oneOf.0.documents.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.2.identification.oneOf.0.documents","typeLabel":"object[]"}},"uniqueKey":"oneOf.2.identification.oneOf.0","typeLabel":"US Entity · object"},{"type":"object","title":"Non US Entity","description":"Only `type` is required inside it.","required":["type"],"properties":{"type":{"type":"string","pattern":"^non_us_entity$","default":"non_us_entity","description":"Use `non_us_entity` for an entity without US tax identification.","isRequired":true,"uniqueKey":"oneOf.2.identification.oneOf.1.type","typeLabel":"string"},"documents":{"type":"array","example":[{"file_id":"file_7Tq4mR9vKx2LpW8nZc3B","identification_number":"X1234567","issuing_country":"GB","expiration_date":"2030-06-01"},{"type":"passport","identification_number":"X7654321","issuing_country":"GB","expiration_date":"2031-01-15"}],"description":"Government-issued identification, one entry per document. You can send up to 100 documents. Each entry takes either a `file_id` or a `type`, not both. The array you send replaces the stored array, and Lead checks every `file_id` in it again. You don't need to confirm KYC again when you change documents.","maxItems":100,"items":{"type":"object","description":"A government-issued identification document. Send exactly one of `file_id` or `type`; both returns `422 parameters_invalid` (`parameters_mutually_exclusive`), and neither returns it with `parameter_group_empty`. With a `file_id`, Lead takes the type from the file and the response omits `type`. Retrieve it with `GET /v2/files/{file_id}`.","required":["identification_number","issuing_country"],"properties":{"identification_number":{"type":"string","maxLength":500,"description":"The number on the document.","example":"X1234567","isRequired":true,"uniqueKey":"oneOf.2.identification.oneOf.1.documents.items.[INDEX].identification_number","typeLabel":"string"},"issuing_country":{"type":"string","description":"Issuing country, as an ISO 3166-1 alpha-2 code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.2.identification.oneOf.1.documents.items.[INDEX].issuing_country","typeLabel":"enum\u003cstring>"},"file_id":{"type":"string","pattern":"^file_\\w+$","description":"A file ID from `POST /v2/files`. Send `file_id` or `type`, not both. When you send only a `file_id`, Lead determines the document type from the file. Retrieve that type with `GET /v2/files/{file_id}`. The file must exist, belong to your program, and have a type this entry accepts. Send each `file_id` only once per entity. You can still link several files of the same type, and link one file to other entities.","example":"file_7RwQ2mK9pL4xT1vN8jS5","uniqueKey":"oneOf.2.identification.oneOf.1.documents.items.[INDEX].file_id","typeLabel":"string"},"type":{"type":"string","enum":["drivers_license","state_id","provincial_id","passport","permanent_residency_id","national_id","consular_id","military_id","tax_certificate","tax_return","partnership_agreement","certificate_of_good_standing","formation_document","exchange_listing_certificate","exchange_listing_notice"],"example":"passport","description":"The identification document type, when you do not link a file. Send `file_id` or `type`, not both.\n- For an `individual`: `drivers_license`, `state_id`, `provincial_id`, `passport`, `permanent_residency_id`, `national_id`, `consular_id`, `military_id`.\n- For a `business`: `tax_certificate`, `tax_return`, `partnership_agreement`, `certificate_of_good_standing`, `formation_document`, `exchange_listing_certificate`, `exchange_listing_notice`.\n- For a `sole_prop`: `drivers_license`, `state_id`, `provincial_id`, `passport`, `permanent_residency_id`, `national_id`, `consular_id`, `military_id`, `tax_certificate`, `tax_return`, `formation_document`.\n\n`national_id` and `consular_id` are not applicable to a `us_entity`. `military_id` is accepted only as a declared `type`: the Files API has no such type, so you cannot link a file for it.\n","uniqueKey":"oneOf.2.identification.oneOf.1.documents.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"issuing_state":{"type":"string","maxLength":500,"description":"Issuing state, as a two-letter code. When `issuing_country` is `US`, it must be a valid US state.","uniqueKey":"oneOf.2.identification.oneOf.1.documents.items.[INDEX].issuing_state","typeLabel":"string"},"expiration_date":{"type":"string","format":"date","description":"Expiration date, in YYYY-MM-DD format. Cannot be in the past when you create the entity.","example":"2030-06-01","uniqueKey":"oneOf.2.identification.oneOf.1.documents.items.[INDEX].expiration_date","typeLabel":"string\u003cdate>"}},"uniqueKey":"oneOf.2.identification.oneOf.1.documents.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.2.identification.oneOf.1.documents","typeLabel":"object[]"}},"uniqueKey":"oneOf.2.identification.oneOf.1","typeLabel":"Non US Entity · object"}],"uniqueKey":"oneOf.2.identification","typeLabel":"US Entity · object | Non US Entity · object"},"additional_documents":{"type":"array","example":[{"file_id":"file_X5jD8hN2sQ6yFb1Gt9Ka"},{"type":"financial_statement"}],"description":"Supporting documents, one entry per document. You can send up to 100 documents. Each entry takes either a `file_id` or a `type`, not both. The array you send replaces the stored array, and Lead checks every `file_id` in it again. You don't need to confirm KYC again when you change documents.","maxItems":100,"items":{"type":"object","description":"A supporting document. Send exactly one of `file_id` or `type`; both returns `422 parameters_invalid` (`parameters_mutually_exclusive`), and neither returns it with `parameter_group_empty`. With a `file_id`, Lead takes the type from the file and the response omits `type`. Retrieve it with `GET /v2/files/{file_id}`.","properties":{"file_id":{"type":"string","pattern":"^file_\\w+$","description":"A file ID from `POST /v2/files`. Send `file_id` or `type`, not both. When you send only a `file_id`, Lead determines the document type from the file. Retrieve that type with `GET /v2/files/{file_id}`. The file must exist, belong to your program, and have a type this entry accepts. Send each `file_id` only once per entity. You can still link several files of the same type, and link one file to other entities.","example":"file_7RwQ2mK9pL4xT1vN8jS5","uniqueKey":"oneOf.2.additional_documents.items.[INDEX].file_id","typeLabel":"string"},"type":{"type":"string","enum":["adverse_media","bank_statement","financial_statement","id_selfie","inheritance_letter","investigation_report","investment_record","public_record","salary_verification_letter","sale_agreement","social_security_card","utility_bill"],"example":"bank_statement","description":"The supporting document type, when you do not link a file. Send `file_id` or `type`, not both.\nEvery entity type accepts every value of this enum.\n","uniqueKey":"oneOf.2.additional_documents.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.2.additional_documents.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.2.additional_documents","typeLabel":"object[]"},"sole_proprietor_entity_id":{"type":"string","description":"The `entity_id` of the individual who owns the sole proprietorship. Data requirements for sole proprietors match those of an `authorized_signer`.","example":"entity_xyz123","pattern":"^entity_[^\\s]{1,33}$","uniqueKey":"oneOf.2.sole_proprietor_entity_id","typeLabel":"string"},"risk_score":{"type":"string","enum":["low","medium","high"],"example":"low","description":"The entity's risk score. You map your own risk scores to these values and give Lead the mapping.","uniqueKey":"oneOf.2.risk_score","typeLabel":"enum\u003cstring>"},"kyc":{"type":"object","description":"Your KYC check of the entity.","required":["result","screened_at"],"properties":{"result":{"type":"string","enum":["passed","failed"],"example":"passed","description":"The result of your KYC check, `passed` or `failed`.","isRequired":true,"uniqueKey":"oneOf.2.kyc.result","typeLabel":"enum\u003cstring>"},"screened_at":{"type":"string","format":"date-time","description":"When you ran the KYC check. It can't be in the future. Lead stores it in UTC, to the second.","example":"2026-11-07T05:31:56Z","isRequired":true,"uniqueKey":"oneOf.2.kyc.screened_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"oneOf.2.kyc","typeLabel":"object"},"ofac":{"type":"object","description":"Your OFAC screen of the entity.","required":["result","screened_at"],"properties":{"result":{"type":"string","enum":["passed","failed"],"example":"passed","description":"The result of your OFAC screen.\n* `passed`: The screen found no match, or you cleared every potential match.\n* `failed`: The screen found a potential or confirmed match that you have not cleared.\n","isRequired":true,"uniqueKey":"oneOf.2.ofac.result","typeLabel":"enum\u003cstring>"},"screened_at":{"type":"string","format":"date-time","description":"When you ran the OFAC screen. It can't be in the future. Lead stores it in UTC, to the second.","example":"2026-11-07T05:31:56Z","isRequired":true,"uniqueKey":"oneOf.2.ofac.screened_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"oneOf.2.ofac","typeLabel":"object"},"rfi":{"type":"object","description":"Your request for information (RFI) to your customer.","required":["stage","requested_at"],"properties":{"stage":{"type":"string","enum":["requested","completed"],"example":"completed","description":"The stage of your request for information (RFI) to your customer.\n* `requested`: You sent the RFI and are waiting for the answer.\n* `completed`: Your customer answered the RFI.\n","isRequired":true,"uniqueKey":"oneOf.2.rfi.stage","typeLabel":"enum\u003cstring>"},"requested_at":{"type":"string","format":"date-time","description":"When you sent the RFI. It can't be in the future. Lead stores it in UTC, to the second.","example":"2026-11-07T05:31:56Z","isRequired":true,"uniqueKey":"oneOf.2.rfi.requested_at","typeLabel":"string\u003cdate-time>"},"completed_at":{"type":"string","format":"date-time","description":"When your customer answered the RFI. Send it when `status` is `completed`. Lead stores it in UTC, to the second.","example":"2026-11-09T05:31:56Z","uniqueKey":"oneOf.2.rfi.completed_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"oneOf.2.rfi","typeLabel":"object"},"credit_reports":{"type":"array","description":"Credit reports from credit bureaus on the entity.","items":{"type":"object","description":"Credit report information. Exactly one of `score` or `no_score_reason` must be provided; `pulled_at` and `source` are always required when a credit report is supplied.\n","required":["pulled_at","source"],"properties":{"pulled_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp when the credit report was pulled.","example":"2026-11-02T14:00:00Z","isRequired":true,"uniqueKey":"oneOf.2.credit_reports.items.[INDEX].pulled_at","typeLabel":"string\u003cdate-time>"},"source":{"type":"string","enum":["equifax","experian","transunion"],"example":"equifax","description":"Credit bureau that issued the report.","isRequired":true,"uniqueKey":"oneOf.2.credit_reports.items.[INDEX].source","typeLabel":"enum\u003cstring>"},"score":{"type":"integer","description":"A credit score returned by the bureau, from 300 to 850.","minimum":300,"maximum":850,"example":712,"uniqueKey":"oneOf.2.credit_reports.items.[INDEX].score","typeLabel":"integer"},"no_score_reason":{"type":"string","enum":["unestablished","frozen"],"example":"unestablished","description":"Indicates the state of a credit file when a numeric score is not available. Mutually exclusive with `score`.","uniqueKey":"oneOf.2.credit_reports.items.[INDEX].no_score_reason","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.2.credit_reports.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.2.credit_reports","typeLabel":"object[]"},"intended_eligibility":{"type":"array","items":{"type":"string","enum":["account_holder","minor_account_holder","authorized_signer","authorized_user"],"example":"account_holder","description":"A relationship type an entity can hold.\n* `account_holder`: Full control of, and legal responsibility for, the account.\n* `minor_account_holder`: An individual aged 16 or 17 with account holder eligibility.\n* `authorized_signer`: An individual allowed to sign on behalf of the account holder, without legal responsibility.\n* `authorized_user`: An individual with restricted access to the account, without legal responsibility.\n","uniqueKey":"oneOf.2.intended_eligibility.items.[INDEX]","typeLabel":"enum\u003cstring>"},"example":["account_holder"],"description":"The relationship types you intend this entity to hold. When you send it, Lead checks the entity's data against every listed type and rejects the request with `422 parameters_invalid` if any fails. The check is all or nothing, and the error returns every failing check, not just the first. Listing fewer types than the entity qualifies for still succeeds, and `eligibility` shows everything it qualifies for.\n\nIf the check passes, Lead saves the list and returns it on the entity. On a `PATCH`, Lead checks the entity as it would be after the update, against the list you send or, if you leave the field out, the saved list. Send an empty array to clear the saved list; no check runs.\n","uniqueKey":"oneOf.2.intended_eligibility","typeLabel":"enum\u003cstring>[]"},"metadata":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"oneOf.2.metadata.additionalProperties","typeLabel":"string"},"description":"A set of key-value pairs that can be used to store additional information related to this object.","uniqueKey":"oneOf.2.metadata","typeLabel":"object"}},"uniqueKey":"oneOf.2","typeLabel":"Sole Prop · object"}],"uniqueKey":"","typeLabel":"Individual · object | Business · object | Sole Prop · object"},"examples":{"Example":{"title":"Example","value":{"type":"individual","first_name":"Lucy","preferred_first_name":"Lu","middle_name":"Reginald","last_name":"Collins","date_of_birth":"2002-02-15","occupation":"Author","contact_methods":[{"type":"email","email":"abc@gmail.com"}],"physical_address":{"line_1":"123 Main St.","line_2":"Apt 25","city":"Denver","postal_code":"80014","state":"CO","country":"US"},"mailing_address":{"line_1":"123 Main St.","line_2":"Apt 25","city":"Denver","postal_code":"80014","state":"CO","country":"US"},"other_addresses":[{"line_1":"123 Main St.","city":"Denver","country":"US","line_2":"Apt 25","postal_code":"80014","state":"CO"}],"identification":{"type":"us_entity","documents":[{"file_id":"file_7Tq4mR9vKx2LpW8nZc3B","identification_number":"X1234567","issuing_country":"GB","expiration_date":"2030-06-01"},{"type":"passport","identification_number":"X7654321","issuing_country":"GB","expiration_date":"2031-01-15"}]},"additional_documents":[{"file_id":"file_X5jD8hN2sQ6yFb1Gt9Ka"},{"type":"financial_statement"}],"risk_score":"low","credit_reports":[{"pulled_at":"2026-11-02T14:00:00Z","source":"equifax","score":712,"no_score_reason":"unestablished"}],"intended_eligibility":["account_holder"],"metadata":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"eebf1f06-1501-44a2-8ed6-1d27236c5fb6":{"description":"Entity object updated.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","title":"Individual","required":["id","type","created_at","first_name","last_name","contact_methods","other_addresses","identification","additional_documents","legacy_additional_documents","credit_reports","intended_eligibility","eligibility","metadata"],"properties":{"id":{"type":"string","description":"Unique ID for the Entity object.","example":"entity_xyz123","pattern":"^entity_[^\\s]{1,33}$","isRequired":true,"uniqueKey":"oneOf.0.id","typeLabel":"string"},"type":{"type":"string","pattern":"^individual$","default":"individual","description":"Type of entity = individual.","isRequired":true,"uniqueKey":"oneOf.0.type","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","description":"When the entity was created, in UTC to the second.","example":"2026-11-07T05:31:56Z","isRequired":true,"uniqueKey":"oneOf.0.created_at","typeLabel":"string\u003cdate-time>"},"first_name":{"type":"string","description":"Legal first name, as your customer gave it.","isRequired":true,"uniqueKey":"oneOf.0.first_name","typeLabel":"string"},"last_name":{"type":"string","description":"Legal last name, as your customer gave it.","isRequired":true,"uniqueKey":"oneOf.0.last_name","typeLabel":"string"},"contact_methods":{"type":"array","items":{"oneOf":[{"type":"object","title":"Email","required":["type","email"],"properties":{"type":{"type":"string","pattern":"^email$","default":"email","description":"ContactMethodType = email.","isRequired":true,"uniqueKey":"oneOf.0.contact_methods.items.[INDEX].oneOf.0.type","typeLabel":"string"},"email":{"type":"string","maxLength":500,"description":"Must be a valid email address in the form `local-part@domain.tld`. The domain must contain at least one dot. Addresses using `localhost` or IP literals (for example, `user@[127.0.0.1]`) are not accepted. Only common, real-world email formats are supported.","example":"abc@gmail.com","isRequired":true,"uniqueKey":"oneOf.0.contact_methods.items.[INDEX].oneOf.0.email","typeLabel":"string"}},"uniqueKey":"oneOf.0.contact_methods.items.[INDEX].oneOf.0","typeLabel":"Email · object"},{"type":"object","title":"Phone Number","required":["type","phone_number"],"properties":{"type":{"type":"string","pattern":"^phone_number$","default":"phone_number","example":"+22 607 123 4567","description":"ContactMethodType = phone_number. Conforms to E.123 standard","isRequired":true,"uniqueKey":"oneOf.0.contact_methods.items.[INDEX].oneOf.1.type","typeLabel":"string"},"phone_number":{"type":"string","maxLength":500,"description":"Primary phone number of the entity. Must follow E.123 format.","isRequired":true,"uniqueKey":"oneOf.0.contact_methods.items.[INDEX].oneOf.1.phone_number","typeLabel":"string"}},"uniqueKey":"oneOf.0.contact_methods.items.[INDEX].oneOf.1","typeLabel":"Phone Number · object"}],"uniqueKey":"oneOf.0.contact_methods.items.[INDEX]","typeLabel":"Email · object | Phone Number · object"},"isRequired":true,"uniqueKey":"oneOf.0.contact_methods","typeLabel":"(Email · object | Phone Number · object)[]"},"other_addresses":{"type":"array","description":"Other addresses for the entity.","items":{"type":"object","required":["line_1","city","country"],"properties":{"line_1":{"type":"string","maxLength":500,"description":"Address line 1 is the required primary street-address field. It must contain the full base address needed to identify the physical location, such as the street number and street name together, or the closest local equivalent in countries where addresses do not use that exact structure.\n\nUse address line 1 for all core location details that describe the main property or thoroughfare. Regardless of how each component of an address is collected from your end-users, they must be combined into address line 1 before sending to Lead.\n\nDo not:\n- split the primary street address across line 1 and line 2\n- put only the street number in line 1 and the street name in line 2\n- pad line 1 with false or altered data to pass validation","example":"123 Main St.","isRequired":true,"uniqueKey":"oneOf.0.other_addresses.items.[INDEX].line_1","typeLabel":"string"},"city":{"type":"string","maxLength":500,"description":"City.","example":"Denver","isRequired":true,"uniqueKey":"oneOf.0.other_addresses.items.[INDEX].city","typeLabel":"string"},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code. Lead accepts lowercase and returns it in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.0.other_addresses.items.[INDEX].country","typeLabel":"enum\u003cstring>"},"line_2":{"type":"string","maxLength":500,"description":"Address line 2 is optional. Use it only for secondary or sub-premise information, such as:\n- apartment\n- unit\n- suite\n- floor\n- building\n- care of or attention\n\nIf there is no secondary or sub-premise information, leave address line 2 out.\n\nDo not use address line 2 for any part of the primary street address.","example":"Apt 25","uniqueKey":"oneOf.0.other_addresses.items.[INDEX].line_2","typeLabel":"string"},"postal_code":{"type":"string","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014","uniqueKey":"oneOf.0.other_addresses.items.[INDEX].postal_code","typeLabel":"string"},"state":{"type":"string","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO","uniqueKey":"oneOf.0.other_addresses.items.[INDEX].state","typeLabel":"string"}},"uniqueKey":"oneOf.0.other_addresses.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.other_addresses","typeLabel":"object[]"},"identification":{"oneOf":[{"type":"object","title":"US Entity","description":"`tax_identification` is required for a `us_entity` holding the `account_holder`, `minor_account_holder`, or `authorized_signer` relationship type, and for beneficial owners, control persons, and sole proprietors. It is not required for an `authorized_user`. A `non_us_entity` needs at least one `documents` entry for the same relationship types; on an entity created on v0, `legacy_documents` entries count.","required":["type","documents","legacy_documents"],"properties":{"type":{"type":"string","pattern":"^us_entity$","default":"us_entity","description":"Use `us_entity` for an entity with US tax identification, including one you have not collected yet.","isRequired":true,"uniqueKey":"oneOf.0.identification.oneOf.0.type","typeLabel":"string"},"documents":{"type":"array","example":[{"file_id":"file_7Tq4mR9vKx2LpW8nZc3B","identification_number":"X1234567","issuing_country":"GB","expiration_date":"2030-06-01"},{"type":"passport","identification_number":"X7654321","issuing_country":"GB","expiration_date":"2031-01-15"}],"description":"Government-issued identification, one entry per document. Each entry takes either a `file_id` or a `type`, not both. The array you send replaces the stored array, and Lead checks every `file_id` in it again. You don't need to confirm KYC again when you change documents.","items":{"type":"object","description":"A government-issued identification document. Send exactly one of `file_id` or `type`; both returns `422 parameters_invalid` (`parameters_mutually_exclusive`), and neither returns it with `parameter_group_empty`. With a `file_id`, Lead takes the type from the file and the response omits `type`. Retrieve it with `GET /v2/files/{file_id}`.","required":["identification_number","issuing_country"],"properties":{"identification_number":{"type":"string","maxLength":500,"description":"The number on the document.","example":"X1234567","isRequired":true,"uniqueKey":"oneOf.0.identification.oneOf.0.documents.items.[INDEX].identification_number","typeLabel":"string"},"issuing_country":{"type":"string","description":"Issuing country, as an ISO 3166-1 alpha-2 code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.0.identification.oneOf.0.documents.items.[INDEX].issuing_country","typeLabel":"enum\u003cstring>"},"file_id":{"type":"string","pattern":"^file_\\w+$","description":"A file ID from `POST /v2/files`. Send `file_id` or `type`, not both. When you send only a `file_id`, Lead determines the document type from the file. Retrieve that type with `GET /v2/files/{file_id}`. The file must exist, belong to your program, and have a type this entry accepts. Send each `file_id` only once per entity. You can still link several files of the same type, and link one file to other entities.","example":"file_7RwQ2mK9pL4xT1vN8jS5","uniqueKey":"oneOf.0.identification.oneOf.0.documents.items.[INDEX].file_id","typeLabel":"string"},"type":{"type":"string","enum":["drivers_license","state_id","provincial_id","passport","permanent_residency_id","national_id","consular_id","military_id","tax_certificate","tax_return","partnership_agreement","certificate_of_good_standing","formation_document","exchange_listing_certificate","exchange_listing_notice"],"example":"passport","description":"The identification document type, when you do not link a file. Send `file_id` or `type`, not both.\n- For an `individual`: `drivers_license`, `state_id`, `provincial_id`, `passport`, `permanent_residency_id`, `national_id`, `consular_id`, `military_id`.\n- For a `business`: `tax_certificate`, `tax_return`, `partnership_agreement`, `certificate_of_good_standing`, `formation_document`, `exchange_listing_certificate`, `exchange_listing_notice`.\n- For a `sole_prop`: `drivers_license`, `state_id`, `provincial_id`, `passport`, `permanent_residency_id`, `national_id`, `consular_id`, `military_id`, `tax_certificate`, `tax_return`, `formation_document`.\n\n`national_id` and `consular_id` are not applicable to a `us_entity`. `military_id` is accepted only as a declared `type`: the Files API has no such type, so you cannot link a file for it.\n","uniqueKey":"oneOf.0.identification.oneOf.0.documents.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"issuing_state":{"type":"string","maxLength":500,"description":"Issuing state, as a two-letter code. When `issuing_country` is `US`, it must be a valid US state.","uniqueKey":"oneOf.0.identification.oneOf.0.documents.items.[INDEX].issuing_state","typeLabel":"string"},"expiration_date":{"type":"string","format":"date","description":"Expiration date, in YYYY-MM-DD format. Cannot be in the past when you create the entity.","example":"2030-06-01","uniqueKey":"oneOf.0.identification.oneOf.0.documents.items.[INDEX].expiration_date","typeLabel":"string\u003cdate>"}},"uniqueKey":"oneOf.0.identification.oneOf.0.documents.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.identification.oneOf.0.documents","typeLabel":"object[]"},"legacy_documents":{"type":"array","example":[{"client_document_id":"passport_jane_doe.pdf","type":"passport","identification_number":"X1234567","issuing_country":"GB","expiration_date":"2026-06-01"}],"description":"Identification document entries created on v0 Entities, returned as sent, with country codes in uppercase. Read only: ignored if included on a POST or PATCH.","items":{"type":"object","description":"An identification document entry created on a v0 Entity.","required":["type","identification_number","issuing_country"],"properties":{"type":{"type":"string","enum":["drivers_license","state_or_provincial_id","passport","permanent_residency_id","military_id","national_id","matriculate_id","other","tax_certificate","tax_returns","partnership_agreement","certificate_of_good_standing","formation_document","proof_of_place_on_stock_exchange","name_certificate"],"example":"drivers_license","description":"The entity's government-verified identification document type. This will apply for identification types other than US tax identification.\n- For `individual` entity, possible types are: `drivers_license`, `state_or_provincial_id`, `passport`, `permanent_residency_id`, `military_id`, `national_id`, `matriculate_id`, `other`. Note that `national_id` and `matriculate_id` are not applicable for `us_entity`.\n- For `business` entity, possible types are: `tax_certificate`, `tax_returns`, `partnership_agreement`, `certificate_of_good_standing`, `formation_document`, `proof_of_place_on_stock_exchange`, `other`.\n- For `sole_prop` entity, possible types are: `tax_certificate`, `tax_returns`, `name_certificate`, `drivers_license`, `state_or_provincial_id`, `passport`, `permanent_residency_id`, `military_id`, `national_id`, `matriculate_id`, `other`. Note that `national_id` and `matriculate_id` are not applicable for `us_entity`.\n","isRequired":true,"uniqueKey":"oneOf.0.identification.oneOf.0.legacy_documents.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"identification_number":{"type":"string","description":"The number on the document.","isRequired":true,"uniqueKey":"oneOf.0.identification.oneOf.0.legacy_documents.items.[INDEX].identification_number","typeLabel":"string"},"issuing_country":{"type":"string","description":"Issuing country, as an ISO 3166-1 alpha-2 code, returned in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.0.identification.oneOf.0.legacy_documents.items.[INDEX].issuing_country","typeLabel":"enum\u003cstring>"},"client_document_id":{"type":"string","description":"Your ID for the document, named for the Customer-file property it mirrors (a legacy file-era identifier, like `client_customer_id`).","uniqueKey":"oneOf.0.identification.oneOf.0.legacy_documents.items.[INDEX].client_document_id","typeLabel":"string"},"description":{"type":"string","description":"Description of the document, sent on v0 with type `other`.","uniqueKey":"oneOf.0.identification.oneOf.0.legacy_documents.items.[INDEX].description","typeLabel":"string"},"expiration_date":{"type":"string","format":"date","description":"Expiration date of the document.","uniqueKey":"oneOf.0.identification.oneOf.0.legacy_documents.items.[INDEX].expiration_date","typeLabel":"string\u003cdate>"},"issuing_state":{"type":"string","description":"Issuing state, as a two-letter code.","uniqueKey":"oneOf.0.identification.oneOf.0.legacy_documents.items.[INDEX].issuing_state","typeLabel":"string"}},"uniqueKey":"oneOf.0.identification.oneOf.0.legacy_documents.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.identification.oneOf.0.legacy_documents","typeLabel":"object[]"},"tax_identification":{"type":"object","description":"The entity's own US tax identification. Do not submit another person's SSN or ITIN (e.g. a parent's for a minor). If you have not collected it, omit `tax_identification`; `type` without a valid `value` is rejected. See https://docs.lead.bank/products/entity/entity-object#identification-for-us-and-non-us-entities.","required":["type","value"],"properties":{"type":{"type":"string","enum":["ssn","itin","ein"],"example":"ssn","description":"The entity's US tax identification type: `ssn`, `itin`, or `ein`.\n- For `individual` entity, use SSN or ITIN.\n- For `business` entity, use EIN. For single-member LLC entities where no EIN is available, SSN or ITIN may be used.\n- For `sole_prop` entity, use SSN, ITIN, or EIN.\n","isRequired":true,"uniqueKey":"oneOf.0.identification.oneOf.0.tax_identification.type","typeLabel":"enum\u003cstring>"},"value":{"type":"string","description":"The entity's US tax identification number. Must be 9 digits (e.g. XXXXXXXXX). An SSN must not start with 9. An EIN must begin with a number between 00 and 99. An ITIN must begin with 9. Required whenever `tax_identification` is sent; omit the whole object if you have not collected the tax identification.","pattern":"^\\d{9}$","isRequired":true,"uniqueKey":"oneOf.0.identification.oneOf.0.tax_identification.value","typeLabel":"string"}},"uniqueKey":"oneOf.0.identification.oneOf.0.tax_identification","typeLabel":"object"}},"isRequired":true,"uniqueKey":"oneOf.0.identification.oneOf.0","typeLabel":"US Entity · object"},{"type":"object","title":"Non US Entity","description":"`tax_identification` is required for a `us_entity` holding the `account_holder`, `minor_account_holder`, or `authorized_signer` relationship type, and for beneficial owners, control persons, and sole proprietors. It is not required for an `authorized_user`. A `non_us_entity` needs at least one `documents` entry for the same relationship types; on an entity created on v0, `legacy_documents` entries count.","required":["type","documents","legacy_documents"],"properties":{"type":{"type":"string","pattern":"^non_us_entity$","default":"non_us_entity","description":"Use `non_us_entity` for an entity without US tax identification.","isRequired":true,"uniqueKey":"oneOf.0.identification.oneOf.1.type","typeLabel":"string"},"documents":{"type":"array","example":[{"file_id":"file_7Tq4mR9vKx2LpW8nZc3B","identification_number":"X1234567","issuing_country":"GB","expiration_date":"2030-06-01"},{"type":"passport","identification_number":"X7654321","issuing_country":"GB","expiration_date":"2031-01-15"}],"description":"Government-issued identification, one entry per document. Each entry takes either a `file_id` or a `type`, not both. The array you send replaces the stored array, and Lead checks every `file_id` in it again. You don't need to confirm KYC again when you change documents.","items":{"type":"object","description":"A government-issued identification document. Send exactly one of `file_id` or `type`; both returns `422 parameters_invalid` (`parameters_mutually_exclusive`), and neither returns it with `parameter_group_empty`. With a `file_id`, Lead takes the type from the file and the response omits `type`. Retrieve it with `GET /v2/files/{file_id}`.","required":["identification_number","issuing_country"],"properties":{"identification_number":{"type":"string","maxLength":500,"description":"The number on the document.","example":"X1234567","isRequired":true,"uniqueKey":"oneOf.0.identification.oneOf.1.documents.items.[INDEX].identification_number","typeLabel":"string"},"issuing_country":{"type":"string","description":"Issuing country, as an ISO 3166-1 alpha-2 code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.0.identification.oneOf.1.documents.items.[INDEX].issuing_country","typeLabel":"enum\u003cstring>"},"file_id":{"type":"string","pattern":"^file_\\w+$","description":"A file ID from `POST /v2/files`. Send `file_id` or `type`, not both. When you send only a `file_id`, Lead determines the document type from the file. Retrieve that type with `GET /v2/files/{file_id}`. The file must exist, belong to your program, and have a type this entry accepts. Send each `file_id` only once per entity. You can still link several files of the same type, and link one file to other entities.","example":"file_7RwQ2mK9pL4xT1vN8jS5","uniqueKey":"oneOf.0.identification.oneOf.1.documents.items.[INDEX].file_id","typeLabel":"string"},"type":{"type":"string","enum":["drivers_license","state_id","provincial_id","passport","permanent_residency_id","national_id","consular_id","military_id","tax_certificate","tax_return","partnership_agreement","certificate_of_good_standing","formation_document","exchange_listing_certificate","exchange_listing_notice"],"example":"passport","description":"The identification document type, when you do not link a file. Send `file_id` or `type`, not both.\n- For an `individual`: `drivers_license`, `state_id`, `provincial_id`, `passport`, `permanent_residency_id`, `national_id`, `consular_id`, `military_id`.\n- For a `business`: `tax_certificate`, `tax_return`, `partnership_agreement`, `certificate_of_good_standing`, `formation_document`, `exchange_listing_certificate`, `exchange_listing_notice`.\n- For a `sole_prop`: `drivers_license`, `state_id`, `provincial_id`, `passport`, `permanent_residency_id`, `national_id`, `consular_id`, `military_id`, `tax_certificate`, `tax_return`, `formation_document`.\n\n`national_id` and `consular_id` are not applicable to a `us_entity`. `military_id` is accepted only as a declared `type`: the Files API has no such type, so you cannot link a file for it.\n","uniqueKey":"oneOf.0.identification.oneOf.1.documents.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"issuing_state":{"type":"string","maxLength":500,"description":"Issuing state, as a two-letter code. When `issuing_country` is `US`, it must be a valid US state.","uniqueKey":"oneOf.0.identification.oneOf.1.documents.items.[INDEX].issuing_state","typeLabel":"string"},"expiration_date":{"type":"string","format":"date","description":"Expiration date, in YYYY-MM-DD format. Cannot be in the past when you create the entity.","example":"2030-06-01","uniqueKey":"oneOf.0.identification.oneOf.1.documents.items.[INDEX].expiration_date","typeLabel":"string\u003cdate>"}},"uniqueKey":"oneOf.0.identification.oneOf.1.documents.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.identification.oneOf.1.documents","typeLabel":"object[]"},"legacy_documents":{"type":"array","example":[{"client_document_id":"passport_jane_doe.pdf","type":"passport","identification_number":"X1234567","issuing_country":"GB","expiration_date":"2026-06-01"}],"description":"Identification document entries created on v0 Entities, returned as sent, with country codes in uppercase. Read only: ignored if included on a POST or PATCH.","items":{"type":"object","description":"An identification document entry created on a v0 Entity.","required":["type","identification_number","issuing_country"],"properties":{"type":{"type":"string","enum":["drivers_license","state_or_provincial_id","passport","permanent_residency_id","military_id","national_id","matriculate_id","other","tax_certificate","tax_returns","partnership_agreement","certificate_of_good_standing","formation_document","proof_of_place_on_stock_exchange","name_certificate"],"example":"drivers_license","description":"The entity's government-verified identification document type. This will apply for identification types other than US tax identification.\n- For `individual` entity, possible types are: `drivers_license`, `state_or_provincial_id`, `passport`, `permanent_residency_id`, `military_id`, `national_id`, `matriculate_id`, `other`. Note that `national_id` and `matriculate_id` are not applicable for `us_entity`.\n- For `business` entity, possible types are: `tax_certificate`, `tax_returns`, `partnership_agreement`, `certificate_of_good_standing`, `formation_document`, `proof_of_place_on_stock_exchange`, `other`.\n- For `sole_prop` entity, possible types are: `tax_certificate`, `tax_returns`, `name_certificate`, `drivers_license`, `state_or_provincial_id`, `passport`, `permanent_residency_id`, `military_id`, `national_id`, `matriculate_id`, `other`. Note that `national_id` and `matriculate_id` are not applicable for `us_entity`.\n","isRequired":true,"uniqueKey":"oneOf.0.identification.oneOf.1.legacy_documents.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"identification_number":{"type":"string","description":"The number on the document.","isRequired":true,"uniqueKey":"oneOf.0.identification.oneOf.1.legacy_documents.items.[INDEX].identification_number","typeLabel":"string"},"issuing_country":{"type":"string","description":"Issuing country, as an ISO 3166-1 alpha-2 code, returned in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.0.identification.oneOf.1.legacy_documents.items.[INDEX].issuing_country","typeLabel":"enum\u003cstring>"},"client_document_id":{"type":"string","description":"Your ID for the document, named for the Customer-file property it mirrors (a legacy file-era identifier, like `client_customer_id`).","uniqueKey":"oneOf.0.identification.oneOf.1.legacy_documents.items.[INDEX].client_document_id","typeLabel":"string"},"description":{"type":"string","description":"Description of the document, sent on v0 with type `other`.","uniqueKey":"oneOf.0.identification.oneOf.1.legacy_documents.items.[INDEX].description","typeLabel":"string"},"expiration_date":{"type":"string","format":"date","description":"Expiration date of the document.","uniqueKey":"oneOf.0.identification.oneOf.1.legacy_documents.items.[INDEX].expiration_date","typeLabel":"string\u003cdate>"},"issuing_state":{"type":"string","description":"Issuing state, as a two-letter code.","uniqueKey":"oneOf.0.identification.oneOf.1.legacy_documents.items.[INDEX].issuing_state","typeLabel":"string"}},"uniqueKey":"oneOf.0.identification.oneOf.1.legacy_documents.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.identification.oneOf.1.legacy_documents","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"oneOf.0.identification.oneOf.1","typeLabel":"Non US Entity · object"}],"isRequired":true,"uniqueKey":"oneOf.0.identification","typeLabel":"US Entity · object | Non US Entity · object"},"additional_documents":{"type":"array","example":[{"file_id":"file_X5jD8hN2sQ6yFb1Gt9Ka"},{"type":"financial_statement"}],"description":"Supporting documents, one entry per document. Each entry takes either a `file_id` or a `type`, not both. The array you send replaces the stored array, and Lead checks every `file_id` in it again. You don't need to confirm KYC again when you change documents.","items":{"type":"object","description":"A supporting document. Send exactly one of `file_id` or `type`; both returns `422 parameters_invalid` (`parameters_mutually_exclusive`), and neither returns it with `parameter_group_empty`. With a `file_id`, Lead takes the type from the file and the response omits `type`. Retrieve it with `GET /v2/files/{file_id}`.","properties":{"file_id":{"type":"string","pattern":"^file_\\w+$","description":"A file ID from `POST /v2/files`. Send `file_id` or `type`, not both. When you send only a `file_id`, Lead determines the document type from the file. Retrieve that type with `GET /v2/files/{file_id}`. The file must exist, belong to your program, and have a type this entry accepts. Send each `file_id` only once per entity. You can still link several files of the same type, and link one file to other entities.","example":"file_7RwQ2mK9pL4xT1vN8jS5","uniqueKey":"oneOf.0.additional_documents.items.[INDEX].file_id","typeLabel":"string"},"type":{"type":"string","enum":["adverse_media","bank_statement","financial_statement","id_selfie","inheritance_letter","investigation_report","investment_record","public_record","salary_verification_letter","sale_agreement","social_security_card","utility_bill"],"example":"bank_statement","description":"The supporting document type, when you do not link a file. Send `file_id` or `type`, not both.\nEvery entity type accepts every value of this enum.\n","uniqueKey":"oneOf.0.additional_documents.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.0.additional_documents.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.additional_documents","typeLabel":"object[]"},"legacy_additional_documents":{"type":"array","example":[{"client_document_id":"2026_01_02_statement","type":"bank_statement","description":"Bank statement for January"}],"description":"Additional document entries created on v0 Entities, returned as sent. Read only: ignored if included on a POST or PATCH.","items":{"type":"object","description":"An additional document entry created on a v0 Entity.","required":["type"],"properties":{"type":{"type":"string","enum":["bank_statement","utility_bills","proof_of_address","investigation_report","financial_statement","public_records","adverse_media","id_selfie","other"],"example":"bank_statement","description":"Type of additional non-government documents being provided to verify entity. Possible values are `bank_statement`, `utility_bills`, `proof_of_address`, `investigation_report`, `financial_statement`, `public_records`, `adverse_media`, `id_selfie`, `other`.","isRequired":true,"uniqueKey":"oneOf.0.legacy_additional_documents.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"client_document_id":{"type":"string","description":"Your ID for the document, named for the Customer-file property it mirrors (a legacy file-era identifier, like `client_customer_id`).","uniqueKey":"oneOf.0.legacy_additional_documents.items.[INDEX].client_document_id","typeLabel":"string"},"description":{"type":"string","description":"Description of the document, sent on v0 with type `other`.","uniqueKey":"oneOf.0.legacy_additional_documents.items.[INDEX].description","typeLabel":"string"}},"uniqueKey":"oneOf.0.legacy_additional_documents.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.legacy_additional_documents","typeLabel":"object[]"},"credit_reports":{"type":"array","description":"Credit reports from credit bureaus on the entity.","items":{"type":"object","description":"Credit report information. Exactly one of `score` or `no_score_reason` must be provided; `pulled_at` and `source` are always required when a credit report is supplied.\n","required":["pulled_at","source"],"properties":{"pulled_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp when the credit report was pulled.","example":"2026-11-02T14:00:00Z","isRequired":true,"uniqueKey":"oneOf.0.credit_reports.items.[INDEX].pulled_at","typeLabel":"string\u003cdate-time>"},"source":{"type":"string","enum":["equifax","experian","transunion"],"example":"equifax","description":"Credit bureau that issued the report.","isRequired":true,"uniqueKey":"oneOf.0.credit_reports.items.[INDEX].source","typeLabel":"enum\u003cstring>"},"score":{"type":"integer","description":"A credit score returned by the bureau, from 300 to 850.","minimum":300,"maximum":850,"example":712,"uniqueKey":"oneOf.0.credit_reports.items.[INDEX].score","typeLabel":"integer"},"no_score_reason":{"type":"string","enum":["unestablished","frozen"],"example":"unestablished","description":"Indicates the state of a credit file when a numeric score is not available. Mutually exclusive with `score`.","uniqueKey":"oneOf.0.credit_reports.items.[INDEX].no_score_reason","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.0.credit_reports.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.credit_reports","typeLabel":"object[]"},"intended_eligibility":{"type":"array","items":{"type":"string","enum":["account_holder","minor_account_holder","authorized_signer","authorized_user"],"example":"account_holder","description":"A relationship type an entity can hold.\n* `account_holder`: Full control of, and legal responsibility for, the account.\n* `minor_account_holder`: An individual aged 16 or 17 with account holder eligibility.\n* `authorized_signer`: An individual allowed to sign on behalf of the account holder, without legal responsibility.\n* `authorized_user`: An individual with restricted access to the account, without legal responsibility.\n","uniqueKey":"oneOf.0.intended_eligibility.items.[INDEX]","typeLabel":"enum\u003cstring>"},"example":["account_holder"],"description":"The relationship types you intend this entity to hold. When you send it, Lead checks the entity's data against every listed type and rejects the request with `422 parameters_invalid` if any fails. The check is all or nothing, and the error returns every failing check, not just the first. Listing fewer types than the entity qualifies for still succeeds, and `eligibility` shows everything it qualifies for.\n\nIf the check passes, Lead saves the list and returns it on the entity. On a `PATCH`, Lead checks the entity as it would be after the update, against the list you send or, if you leave the field out, the saved list. Send an empty array to clear the saved list; no check runs.\n","isRequired":true,"uniqueKey":"oneOf.0.intended_eligibility","typeLabel":"enum\u003cstring>[]"},"eligibility":{"type":"object","description":"Whether the entity's current data qualifies it for each relationship type, with the failing checks. Response only. Lead computes it from current data on every read and never stores it. All four keys are always present. On a program that does not offer minor account holders, `minor_account_holder` is `ineligible` for every entity.","required":["account_holder","minor_account_holder","authorized_signer","authorized_user"],"properties":{"account_holder":{"type":"object","required":["result","failed_checks"],"properties":{"result":{"type":"string","enum":["eligible","ineligible"],"example":"eligible","description":"Whether the entity's current data qualifies it for the relationship type.","isRequired":true,"uniqueKey":"oneOf.0.eligibility.account_holder.result","typeLabel":"enum\u003cstring>"},"failed_checks":{"type":"array","description":"The checks the entity fails for this relationship type. Empty when `result` is `eligible`.","items":{"type":"object","required":["check","entity_id","details"],"properties":{"check":{"type":"string","example":"check_kyc_status","description":"The name of the failing check. When an `intended_eligibility` assertion fails, the `422` has an `eligibility_check_failed` error for each failed check and listed relationship type. Lead may add checks, so handle names you do not recognize. Current checks:\n- Identity and contact: `check_first_name`, `check_last_name`, `check_date_of_birth`, `check_date_of_birth_missing`, `check_date_of_birth_below_minimum`, `check_date_of_birth_above_maximum`, `check_phone_or_email`, `check_physical_address`, `check_government_id`.\n- Business: `check_business_name`, `check_business_type`, `check_business_industry`, `check_control_person_exists`, `check_child_entity_not_found`.\n- Screening and risk: `check_kyc_status`, `check_ofac`, `check_risk_score`, `check_manual_review_status` (a manual review of the entity is pending).\n- Relationship type: `check_individual_entity` (only individuals can hold `minor_account_holder`, `authorized_signer`, and `authorized_user`), `check_minor_account_holder_enabled` (your program is not approved for minor account holders).\n- Stored data: `invalid_entity` (the entity's stored data fails Lead's current validations, which can happen to an older entity when rules change).\n\nSee [Eligibility](https://docs.lead.bank/v2/products/entity/eligibility).","isRequired":true,"uniqueKey":"oneOf.0.eligibility.account_holder.failed_checks.items.[INDEX].check","typeLabel":"string"},"entity_id":{"type":"string","description":"The entity whose data failed the check. A business or sole proprietorship fails when a linked individual fails, and the check then points at that individual's `entity_id`.","example":"entity_xyz123","pattern":"^entity_[^\\s]{1,33}$","isRequired":true,"uniqueKey":"oneOf.0.eligibility.account_holder.failed_checks.items.[INDEX].entity_id","typeLabel":"string"},"details":{"type":"string","example":"KYC must be passed. Update kyc.result and kyc.screened_at on entity_xyz123.","description":"A human-readable explanation of the failure and how to fix it. Not part of the API contract, so do not parse it. It may change without notice.","isRequired":true,"uniqueKey":"oneOf.0.eligibility.account_holder.failed_checks.items.[INDEX].details","typeLabel":"string"}},"uniqueKey":"oneOf.0.eligibility.account_holder.failed_checks.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.eligibility.account_holder.failed_checks","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"oneOf.0.eligibility.account_holder","typeLabel":"object"},"minor_account_holder":{"type":"object","required":["result","failed_checks"],"properties":{"result":{"type":"string","enum":["eligible","ineligible"],"example":"eligible","description":"Whether the entity's current data qualifies it for the relationship type.","isRequired":true,"uniqueKey":"oneOf.0.eligibility.minor_account_holder.result","typeLabel":"enum\u003cstring>"},"failed_checks":{"type":"array","description":"The checks the entity fails for this relationship type. Empty when `result` is `eligible`.","items":{"type":"object","required":["check","entity_id","details"],"properties":{"check":{"type":"string","example":"check_kyc_status","description":"The name of the failing check. When an `intended_eligibility` assertion fails, the `422` has an `eligibility_check_failed` error for each failed check and listed relationship type. Lead may add checks, so handle names you do not recognize. Current checks:\n- Identity and contact: `check_first_name`, `check_last_name`, `check_date_of_birth`, `check_date_of_birth_missing`, `check_date_of_birth_below_minimum`, `check_date_of_birth_above_maximum`, `check_phone_or_email`, `check_physical_address`, `check_government_id`.\n- Business: `check_business_name`, `check_business_type`, `check_business_industry`, `check_control_person_exists`, `check_child_entity_not_found`.\n- Screening and risk: `check_kyc_status`, `check_ofac`, `check_risk_score`, `check_manual_review_status` (a manual review of the entity is pending).\n- Relationship type: `check_individual_entity` (only individuals can hold `minor_account_holder`, `authorized_signer`, and `authorized_user`), `check_minor_account_holder_enabled` (your program is not approved for minor account holders).\n- Stored data: `invalid_entity` (the entity's stored data fails Lead's current validations, which can happen to an older entity when rules change).\n\nSee [Eligibility](https://docs.lead.bank/v2/products/entity/eligibility).","isRequired":true,"uniqueKey":"oneOf.0.eligibility.minor_account_holder.failed_checks.items.[INDEX].check","typeLabel":"string"},"entity_id":{"type":"string","description":"The entity whose data failed the check. A business or sole proprietorship fails when a linked individual fails, and the check then points at that individual's `entity_id`.","example":"entity_xyz123","pattern":"^entity_[^\\s]{1,33}$","isRequired":true,"uniqueKey":"oneOf.0.eligibility.minor_account_holder.failed_checks.items.[INDEX].entity_id","typeLabel":"string"},"details":{"type":"string","example":"KYC must be passed. Update kyc.result and kyc.screened_at on entity_xyz123.","description":"A human-readable explanation of the failure and how to fix it. Not part of the API contract, so do not parse it. It may change without notice.","isRequired":true,"uniqueKey":"oneOf.0.eligibility.minor_account_holder.failed_checks.items.[INDEX].details","typeLabel":"string"}},"uniqueKey":"oneOf.0.eligibility.minor_account_holder.failed_checks.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.eligibility.minor_account_holder.failed_checks","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"oneOf.0.eligibility.minor_account_holder","typeLabel":"object"},"authorized_signer":{"type":"object","required":["result","failed_checks"],"properties":{"result":{"type":"string","enum":["eligible","ineligible"],"example":"eligible","description":"Whether the entity's current data qualifies it for the relationship type.","isRequired":true,"uniqueKey":"oneOf.0.eligibility.authorized_signer.result","typeLabel":"enum\u003cstring>"},"failed_checks":{"type":"array","description":"The checks the entity fails for this relationship type. Empty when `result` is `eligible`.","items":{"type":"object","required":["check","entity_id","details"],"properties":{"check":{"type":"string","example":"check_kyc_status","description":"The name of the failing check. When an `intended_eligibility` assertion fails, the `422` has an `eligibility_check_failed` error for each failed check and listed relationship type. Lead may add checks, so handle names you do not recognize. Current checks:\n- Identity and contact: `check_first_name`, `check_last_name`, `check_date_of_birth`, `check_date_of_birth_missing`, `check_date_of_birth_below_minimum`, `check_date_of_birth_above_maximum`, `check_phone_or_email`, `check_physical_address`, `check_government_id`.\n- Business: `check_business_name`, `check_business_type`, `check_business_industry`, `check_control_person_exists`, `check_child_entity_not_found`.\n- Screening and risk: `check_kyc_status`, `check_ofac`, `check_risk_score`, `check_manual_review_status` (a manual review of the entity is pending).\n- Relationship type: `check_individual_entity` (only individuals can hold `minor_account_holder`, `authorized_signer`, and `authorized_user`), `check_minor_account_holder_enabled` (your program is not approved for minor account holders).\n- Stored data: `invalid_entity` (the entity's stored data fails Lead's current validations, which can happen to an older entity when rules change).\n\nSee [Eligibility](https://docs.lead.bank/v2/products/entity/eligibility).","isRequired":true,"uniqueKey":"oneOf.0.eligibility.authorized_signer.failed_checks.items.[INDEX].check","typeLabel":"string"},"entity_id":{"type":"string","description":"The entity whose data failed the check. A business or sole proprietorship fails when a linked individual fails, and the check then points at that individual's `entity_id`.","example":"entity_xyz123","pattern":"^entity_[^\\s]{1,33}$","isRequired":true,"uniqueKey":"oneOf.0.eligibility.authorized_signer.failed_checks.items.[INDEX].entity_id","typeLabel":"string"},"details":{"type":"string","example":"KYC must be passed. Update kyc.result and kyc.screened_at on entity_xyz123.","description":"A human-readable explanation of the failure and how to fix it. Not part of the API contract, so do not parse it. It may change without notice.","isRequired":true,"uniqueKey":"oneOf.0.eligibility.authorized_signer.failed_checks.items.[INDEX].details","typeLabel":"string"}},"uniqueKey":"oneOf.0.eligibility.authorized_signer.failed_checks.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.eligibility.authorized_signer.failed_checks","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"oneOf.0.eligibility.authorized_signer","typeLabel":"object"},"authorized_user":{"type":"object","required":["result","failed_checks"],"properties":{"result":{"type":"string","enum":["eligible","ineligible"],"example":"eligible","description":"Whether the entity's current data qualifies it for the relationship type.","isRequired":true,"uniqueKey":"oneOf.0.eligibility.authorized_user.result","typeLabel":"enum\u003cstring>"},"failed_checks":{"type":"array","description":"The checks the entity fails for this relationship type. Empty when `result` is `eligible`.","items":{"type":"object","required":["check","entity_id","details"],"properties":{"check":{"type":"string","example":"check_kyc_status","description":"The name of the failing check. When an `intended_eligibility` assertion fails, the `422` has an `eligibility_check_failed` error for each failed check and listed relationship type. Lead may add checks, so handle names you do not recognize. Current checks:\n- Identity and contact: `check_first_name`, `check_last_name`, `check_date_of_birth`, `check_date_of_birth_missing`, `check_date_of_birth_below_minimum`, `check_date_of_birth_above_maximum`, `check_phone_or_email`, `check_physical_address`, `check_government_id`.\n- Business: `check_business_name`, `check_business_type`, `check_business_industry`, `check_control_person_exists`, `check_child_entity_not_found`.\n- Screening and risk: `check_kyc_status`, `check_ofac`, `check_risk_score`, `check_manual_review_status` (a manual review of the entity is pending).\n- Relationship type: `check_individual_entity` (only individuals can hold `minor_account_holder`, `authorized_signer`, and `authorized_user`), `check_minor_account_holder_enabled` (your program is not approved for minor account holders).\n- Stored data: `invalid_entity` (the entity's stored data fails Lead's current validations, which can happen to an older entity when rules change).\n\nSee [Eligibility](https://docs.lead.bank/v2/products/entity/eligibility).","isRequired":true,"uniqueKey":"oneOf.0.eligibility.authorized_user.failed_checks.items.[INDEX].check","typeLabel":"string"},"entity_id":{"type":"string","description":"The entity whose data failed the check. A business or sole proprietorship fails when a linked individual fails, and the check then points at that individual's `entity_id`.","example":"entity_xyz123","pattern":"^entity_[^\\s]{1,33}$","isRequired":true,"uniqueKey":"oneOf.0.eligibility.authorized_user.failed_checks.items.[INDEX].entity_id","typeLabel":"string"},"details":{"type":"string","example":"KYC must be passed. Update kyc.result and kyc.screened_at on entity_xyz123.","description":"A human-readable explanation of the failure and how to fix it. Not part of the API contract, so do not parse it. It may change without notice.","isRequired":true,"uniqueKey":"oneOf.0.eligibility.authorized_user.failed_checks.items.[INDEX].details","typeLabel":"string"}},"uniqueKey":"oneOf.0.eligibility.authorized_user.failed_checks.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.eligibility.authorized_user.failed_checks","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"oneOf.0.eligibility.authorized_user","typeLabel":"object"}},"example":{"account_holder":{"result":"eligible","failed_checks":[]},"minor_account_holder":{"result":"ineligible","failed_checks":[{"check":"check_date_of_birth_above_maximum","entity_id":"entity_xyz123","details":"The entity exceeds the maximum age for minor_account_holder."}]},"authorized_signer":{"result":"eligible","failed_checks":[]},"authorized_user":{"result":"eligible","failed_checks":[]}},"isRequired":true,"uniqueKey":"oneOf.0.eligibility","typeLabel":"object"},"metadata":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"oneOf.0.metadata.additionalProperties","typeLabel":"string"},"description":"A set of key-value pairs that can be used to store additional information related to this object.","isRequired":true,"uniqueKey":"oneOf.0.metadata","typeLabel":"object"},"client_customer_id":{"type":"string","description":"Your customer ID, on entities created through Customer files. Response only. Lead ignores it if sent, and does not return it on entities created with `POST /v2/entities`.","uniqueKey":"oneOf.0.client_customer_id","typeLabel":"string"},"preferred_first_name":{"type":"string","description":"Preferred first name.","uniqueKey":"oneOf.0.preferred_first_name","typeLabel":"string"},"middle_name":{"type":"string","description":"Middle name.","uniqueKey":"oneOf.0.middle_name","typeLabel":"string"},"date_of_birth":{"type":"string","format":"date","description":"Date of birth, in YYYY-MM-DD format.","example":"2002-02-15","uniqueKey":"oneOf.0.date_of_birth","typeLabel":"string\u003cdate>"},"occupation":{"type":"string","description":"Occupation.","uniqueKey":"oneOf.0.occupation","typeLabel":"string"},"physical_address":{"type":"object","required":["line_1","city","country"],"properties":{"line_1":{"type":"string","maxLength":500,"description":"Address line 1 is the required primary street-address field. It must contain the full base address needed to identify the physical location, such as the street number and street name together, or the closest local equivalent in countries where addresses do not use that exact structure.\n\nUse address line 1 for all core location details that describe the main property or thoroughfare. Regardless of how each component of an address is collected from your end-users, they must be combined into address line 1 before sending to Lead.\n\nDo not:\n- split the primary street address across line 1 and line 2\n- put only the street number in line 1 and the street name in line 2\n- pad line 1 with false or altered data to pass validation","example":"123 Main St.","isRequired":true,"uniqueKey":"oneOf.0.physical_address.line_1","typeLabel":"string"},"city":{"type":"string","maxLength":500,"description":"City.","example":"Denver","isRequired":true,"uniqueKey":"oneOf.0.physical_address.city","typeLabel":"string"},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code. Lead accepts lowercase and returns it in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.0.physical_address.country","typeLabel":"enum\u003cstring>"},"line_2":{"type":"string","maxLength":500,"description":"Address line 2 is optional. Use it only for secondary or sub-premise information, such as:\n- apartment\n- unit\n- suite\n- floor\n- building\n- care of or attention\n\nIf there is no secondary or sub-premise information, leave address line 2 out.\n\nDo not use address line 2 for any part of the primary street address.","example":"Apt 25","uniqueKey":"oneOf.0.physical_address.line_2","typeLabel":"string"},"postal_code":{"type":"string","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014","uniqueKey":"oneOf.0.physical_address.postal_code","typeLabel":"string"},"state":{"type":"string","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO","uniqueKey":"oneOf.0.physical_address.state","typeLabel":"string"}},"description":"The entity's physical address.","uniqueKey":"oneOf.0.physical_address","typeLabel":"object"},"mailing_address":{"type":"object","required":["line_1","city","country"],"properties":{"line_1":{"type":"string","maxLength":500,"description":"Address line 1 is the required primary street-address field. It must contain the full base address needed to identify the physical location, such as the street number and street name together, or the closest local equivalent in countries where addresses do not use that exact structure.\n\nUse address line 1 for all core location details that describe the main property or thoroughfare. Regardless of how each component of an address is collected from your end-users, they must be combined into address line 1 before sending to Lead.\n\nDo not:\n- split the primary street address across line 1 and line 2\n- put only the street number in line 1 and the street name in line 2\n- pad line 1 with false or altered data to pass validation","example":"123 Main St.","isRequired":true,"uniqueKey":"oneOf.0.mailing_address.line_1","typeLabel":"string"},"city":{"type":"string","maxLength":500,"description":"City.","example":"Denver","isRequired":true,"uniqueKey":"oneOf.0.mailing_address.city","typeLabel":"string"},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code. Lead accepts lowercase and returns it in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.0.mailing_address.country","typeLabel":"enum\u003cstring>"},"line_2":{"type":"string","maxLength":500,"description":"Address line 2 is optional. Use it only for secondary or sub-premise information, such as:\n- apartment\n- unit\n- suite\n- floor\n- building\n- care of or attention\n\nIf there is no secondary or sub-premise information, leave address line 2 out.\n\nDo not use address line 2 for any part of the primary street address.","example":"Apt 25","uniqueKey":"oneOf.0.mailing_address.line_2","typeLabel":"string"},"postal_code":{"type":"string","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014","uniqueKey":"oneOf.0.mailing_address.postal_code","typeLabel":"string"},"state":{"type":"string","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO","uniqueKey":"oneOf.0.mailing_address.state","typeLabel":"string"}},"description":"The entity's mailing address.","uniqueKey":"oneOf.0.mailing_address","typeLabel":"object"},"risk_score":{"type":"string","enum":["low","medium","high"],"example":"low","description":"The entity's risk score. You map your own risk scores to these values and give Lead the mapping.","uniqueKey":"oneOf.0.risk_score","typeLabel":"enum\u003cstring>"},"kyc":{"type":"object","description":"Your KYC check of the entity.","required":["screened_at"],"properties":{"screened_at":{"type":"string","format":"date-time","description":"When you ran the KYC check, in UTC to the second.","example":"2026-11-07T05:31:56Z","isRequired":true,"uniqueKey":"oneOf.0.kyc.screened_at","typeLabel":"string\u003cdate-time>"},"result":{"type":"string","enum":["passed","failed"],"example":"passed","description":"The result of your KYC check, `passed` or `failed`. Absent when the stored result is `pending`, a value that v2 doesn't accept.","uniqueKey":"oneOf.0.kyc.result","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.0.kyc","typeLabel":"object"},"ofac":{"type":"object","description":"Your OFAC screen of the entity.","required":["screened_at"],"properties":{"screened_at":{"type":"string","format":"date-time","description":"When you ran the OFAC screen, in UTC to the second.","example":"2026-11-07T05:31:56Z","isRequired":true,"uniqueKey":"oneOf.0.ofac.screened_at","typeLabel":"string\u003cdate-time>"},"result":{"type":"string","enum":["passed","failed"],"example":"passed","description":"The result of your OFAC screen, `passed` or `failed`. Absent when the stored result is `pending`, a value that v2 doesn't accept.","uniqueKey":"oneOf.0.ofac.result","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.0.ofac","typeLabel":"object"},"rfi":{"type":"object","description":"Your request for information (RFI) to your customer.","required":["stage","requested_at"],"properties":{"stage":{"type":"string","enum":["requested","completed"],"example":"completed","description":"The stage of your request for information (RFI) to your customer.\n* `requested`: You sent the RFI and are waiting for the answer.\n* `completed`: Your customer answered the RFI.\n","isRequired":true,"uniqueKey":"oneOf.0.rfi.stage","typeLabel":"enum\u003cstring>"},"requested_at":{"type":"string","format":"date-time","description":"When you sent the RFI. It can't be in the future. Lead stores it in UTC, to the second.","example":"2026-11-07T05:31:56Z","isRequired":true,"uniqueKey":"oneOf.0.rfi.requested_at","typeLabel":"string\u003cdate-time>"},"completed_at":{"type":"string","format":"date-time","description":"When your customer answered the RFI. Send it when `status` is `completed`. Lead stores it in UTC, to the second.","example":"2026-11-09T05:31:56Z","uniqueKey":"oneOf.0.rfi.completed_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"oneOf.0.rfi","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"Individual · object"},{"type":"object","title":"Business","required":["id","type","created_at","name","industry","contact_methods","other_addresses","identification","additional_documents","legacy_additional_documents","beneficial_owners","control_persons","credit_reports","intended_eligibility","eligibility","metadata"],"properties":{"id":{"type":"string","description":"Unique ID for the Entity object.","example":"entity_xyz123","pattern":"^entity_[^\\s]{1,33}$","isRequired":true,"uniqueKey":"oneOf.1.id","typeLabel":"string"},"type":{"type":"string","pattern":"^business$","default":"business","description":"Type of entity = business.","isRequired":true,"uniqueKey":"oneOf.1.type","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","description":"When the entity was created, in UTC to the second.","example":"2026-11-07T05:31:56Z","isRequired":true,"uniqueKey":"oneOf.1.created_at","typeLabel":"string\u003cdate-time>"},"name":{"type":"string","description":"Legal name of the business.","isRequired":true,"uniqueKey":"oneOf.1.name","typeLabel":"string"},"industry":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.industry.items.[INDEX]","typeLabel":"string"},"description":"NAICS codes for the business's industries.","isRequired":true,"uniqueKey":"oneOf.1.industry","typeLabel":"string[]"},"contact_methods":{"type":"array","items":{"oneOf":[{"type":"object","title":"Email","required":["type","email"],"properties":{"type":{"type":"string","pattern":"^email$","default":"email","description":"ContactMethodType = email.","isRequired":true,"uniqueKey":"oneOf.1.contact_methods.items.[INDEX].oneOf.0.type","typeLabel":"string"},"email":{"type":"string","maxLength":500,"description":"Must be a valid email address in the form `local-part@domain.tld`. The domain must contain at least one dot. Addresses using `localhost` or IP literals (for example, `user@[127.0.0.1]`) are not accepted. Only common, real-world email formats are supported.","example":"abc@gmail.com","isRequired":true,"uniqueKey":"oneOf.1.contact_methods.items.[INDEX].oneOf.0.email","typeLabel":"string"}},"uniqueKey":"oneOf.1.contact_methods.items.[INDEX].oneOf.0","typeLabel":"Email · object"},{"type":"object","title":"Phone Number","required":["type","phone_number"],"properties":{"type":{"type":"string","pattern":"^phone_number$","default":"phone_number","example":"+22 607 123 4567","description":"ContactMethodType = phone_number. Conforms to E.123 standard","isRequired":true,"uniqueKey":"oneOf.1.contact_methods.items.[INDEX].oneOf.1.type","typeLabel":"string"},"phone_number":{"type":"string","maxLength":500,"description":"Primary phone number of the entity. Must follow E.123 format.","isRequired":true,"uniqueKey":"oneOf.1.contact_methods.items.[INDEX].oneOf.1.phone_number","typeLabel":"string"}},"uniqueKey":"oneOf.1.contact_methods.items.[INDEX].oneOf.1","typeLabel":"Phone Number · object"}],"uniqueKey":"oneOf.1.contact_methods.items.[INDEX]","typeLabel":"Email · object | Phone Number · object"},"isRequired":true,"uniqueKey":"oneOf.1.contact_methods","typeLabel":"(Email · object | Phone Number · object)[]"},"other_addresses":{"type":"array","description":"Other addresses for the business.","items":{"type":"object","required":["line_1","city","country"],"properties":{"line_1":{"type":"string","maxLength":500,"description":"Address line 1 is the required primary street-address field. It must contain the full base address needed to identify the physical location, such as the street number and street name together, or the closest local equivalent in countries where addresses do not use that exact structure.\n\nUse address line 1 for all core location details that describe the main property or thoroughfare. Regardless of how each component of an address is collected from your end-users, they must be combined into address line 1 before sending to Lead.\n\nDo not:\n- split the primary street address across line 1 and line 2\n- put only the street number in line 1 and the street name in line 2\n- pad line 1 with false or altered data to pass validation","example":"123 Main St.","isRequired":true,"uniqueKey":"oneOf.1.other_addresses.items.[INDEX].line_1","typeLabel":"string"},"city":{"type":"string","maxLength":500,"description":"City.","example":"Denver","isRequired":true,"uniqueKey":"oneOf.1.other_addresses.items.[INDEX].city","typeLabel":"string"},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code. Lead accepts lowercase and returns it in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.1.other_addresses.items.[INDEX].country","typeLabel":"enum\u003cstring>"},"line_2":{"type":"string","maxLength":500,"description":"Address line 2 is optional. Use it only for secondary or sub-premise information, such as:\n- apartment\n- unit\n- suite\n- floor\n- building\n- care of or attention\n\nIf there is no secondary or sub-premise information, leave address line 2 out.\n\nDo not use address line 2 for any part of the primary street address.","example":"Apt 25","uniqueKey":"oneOf.1.other_addresses.items.[INDEX].line_2","typeLabel":"string"},"postal_code":{"type":"string","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014","uniqueKey":"oneOf.1.other_addresses.items.[INDEX].postal_code","typeLabel":"string"},"state":{"type":"string","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO","uniqueKey":"oneOf.1.other_addresses.items.[INDEX].state","typeLabel":"string"}},"uniqueKey":"oneOf.1.other_addresses.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.other_addresses","typeLabel":"object[]"},"identification":{"oneOf":[{"type":"object","title":"US Entity","required":["type","documents","legacy_documents"],"properties":{"type":{"type":"string","pattern":"^us_entity$","default":"us_entity","description":"Use `us_entity` for an entity with US tax identification, including one you have not collected yet.","isRequired":true,"uniqueKey":"oneOf.1.identification.oneOf.0.type","typeLabel":"string"},"documents":{"type":"array","example":[{"file_id":"file_7Tq4mR9vKx2LpW8nZc3B","identification_number":"X1234567","issuing_country":"GB","expiration_date":"2030-06-01"},{"type":"passport","identification_number":"X7654321","issuing_country":"GB","expiration_date":"2031-01-15"}],"description":"Government-issued identification, one entry per document. Each entry takes either a `file_id` or a `type`, not both. The array you send replaces the stored array, and Lead checks every `file_id` in it again. You don't need to confirm KYC again when you change documents.","items":{"type":"object","description":"A government-issued identification document. Send exactly one of `file_id` or `type`; both returns `422 parameters_invalid` (`parameters_mutually_exclusive`), and neither returns it with `parameter_group_empty`. With a `file_id`, Lead takes the type from the file and the response omits `type`. Retrieve it with `GET /v2/files/{file_id}`.","required":["identification_number","issuing_country"],"properties":{"identification_number":{"type":"string","maxLength":500,"description":"The number on the document.","example":"X1234567","isRequired":true,"uniqueKey":"oneOf.1.identification.oneOf.0.documents.items.[INDEX].identification_number","typeLabel":"string"},"issuing_country":{"type":"string","description":"Issuing country, as an ISO 3166-1 alpha-2 code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.1.identification.oneOf.0.documents.items.[INDEX].issuing_country","typeLabel":"enum\u003cstring>"},"file_id":{"type":"string","pattern":"^file_\\w+$","description":"A file ID from `POST /v2/files`. Send `file_id` or `type`, not both. When you send only a `file_id`, Lead determines the document type from the file. Retrieve that type with `GET /v2/files/{file_id}`. The file must exist, belong to your program, and have a type this entry accepts. Send each `file_id` only once per entity. You can still link several files of the same type, and link one file to other entities.","example":"file_7RwQ2mK9pL4xT1vN8jS5","uniqueKey":"oneOf.1.identification.oneOf.0.documents.items.[INDEX].file_id","typeLabel":"string"},"type":{"type":"string","enum":["drivers_license","state_id","provincial_id","passport","permanent_residency_id","national_id","consular_id","military_id","tax_certificate","tax_return","partnership_agreement","certificate_of_good_standing","formation_document","exchange_listing_certificate","exchange_listing_notice"],"example":"passport","description":"The identification document type, when you do not link a file. Send `file_id` or `type`, not both.\n- For an `individual`: `drivers_license`, `state_id`, `provincial_id`, `passport`, `permanent_residency_id`, `national_id`, `consular_id`, `military_id`.\n- For a `business`: `tax_certificate`, `tax_return`, `partnership_agreement`, `certificate_of_good_standing`, `formation_document`, `exchange_listing_certificate`, `exchange_listing_notice`.\n- For a `sole_prop`: `drivers_license`, `state_id`, `provincial_id`, `passport`, `permanent_residency_id`, `national_id`, `consular_id`, `military_id`, `tax_certificate`, `tax_return`, `formation_document`.\n\n`national_id` and `consular_id` are not applicable to a `us_entity`. `military_id` is accepted only as a declared `type`: the Files API has no such type, so you cannot link a file for it.\n","uniqueKey":"oneOf.1.identification.oneOf.0.documents.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"issuing_state":{"type":"string","maxLength":500,"description":"Issuing state, as a two-letter code. When `issuing_country` is `US`, it must be a valid US state.","uniqueKey":"oneOf.1.identification.oneOf.0.documents.items.[INDEX].issuing_state","typeLabel":"string"},"expiration_date":{"type":"string","format":"date","description":"Expiration date, in YYYY-MM-DD format. Cannot be in the past when you create the entity.","example":"2030-06-01","uniqueKey":"oneOf.1.identification.oneOf.0.documents.items.[INDEX].expiration_date","typeLabel":"string\u003cdate>"}},"uniqueKey":"oneOf.1.identification.oneOf.0.documents.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.identification.oneOf.0.documents","typeLabel":"object[]"},"legacy_documents":{"type":"array","example":[{"client_document_id":"passport_jane_doe.pdf","type":"passport","identification_number":"X1234567","issuing_country":"GB","expiration_date":"2026-06-01"}],"description":"Identification document entries created on v0 Entities, returned as sent, with country codes in uppercase. Read only: ignored if included on a POST or PATCH.","items":{"type":"object","description":"An identification document entry created on a v0 Entity.","required":["type","identification_number","issuing_country"],"properties":{"type":{"type":"string","enum":["drivers_license","state_or_provincial_id","passport","permanent_residency_id","military_id","national_id","matriculate_id","other","tax_certificate","tax_returns","partnership_agreement","certificate_of_good_standing","formation_document","proof_of_place_on_stock_exchange","name_certificate"],"example":"drivers_license","description":"The entity's government-verified identification document type. This will apply for identification types other than US tax identification.\n- For `individual` entity, possible types are: `drivers_license`, `state_or_provincial_id`, `passport`, `permanent_residency_id`, `military_id`, `national_id`, `matriculate_id`, `other`. Note that `national_id` and `matriculate_id` are not applicable for `us_entity`.\n- For `business` entity, possible types are: `tax_certificate`, `tax_returns`, `partnership_agreement`, `certificate_of_good_standing`, `formation_document`, `proof_of_place_on_stock_exchange`, `other`.\n- For `sole_prop` entity, possible types are: `tax_certificate`, `tax_returns`, `name_certificate`, `drivers_license`, `state_or_provincial_id`, `passport`, `permanent_residency_id`, `military_id`, `national_id`, `matriculate_id`, `other`. Note that `national_id` and `matriculate_id` are not applicable for `us_entity`.\n","isRequired":true,"uniqueKey":"oneOf.1.identification.oneOf.0.legacy_documents.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"identification_number":{"type":"string","description":"The number on the document.","isRequired":true,"uniqueKey":"oneOf.1.identification.oneOf.0.legacy_documents.items.[INDEX].identification_number","typeLabel":"string"},"issuing_country":{"type":"string","description":"Issuing country, as an ISO 3166-1 alpha-2 code, returned in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.1.identification.oneOf.0.legacy_documents.items.[INDEX].issuing_country","typeLabel":"enum\u003cstring>"},"client_document_id":{"type":"string","description":"Your ID for the document, named for the Customer-file property it mirrors (a legacy file-era identifier, like `client_customer_id`).","uniqueKey":"oneOf.1.identification.oneOf.0.legacy_documents.items.[INDEX].client_document_id","typeLabel":"string"},"description":{"type":"string","description":"Description of the document, sent on v0 with type `other`.","uniqueKey":"oneOf.1.identification.oneOf.0.legacy_documents.items.[INDEX].description","typeLabel":"string"},"expiration_date":{"type":"string","format":"date","description":"Expiration date of the document.","uniqueKey":"oneOf.1.identification.oneOf.0.legacy_documents.items.[INDEX].expiration_date","typeLabel":"string\u003cdate>"},"issuing_state":{"type":"string","description":"Issuing state, as a two-letter code.","uniqueKey":"oneOf.1.identification.oneOf.0.legacy_documents.items.[INDEX].issuing_state","typeLabel":"string"}},"uniqueKey":"oneOf.1.identification.oneOf.0.legacy_documents.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.identification.oneOf.0.legacy_documents","typeLabel":"object[]"},"tax_identification":{"type":"object","description":"The entity's own US tax identification. Do not submit another person's SSN or ITIN (e.g. a parent's for a minor). If you have not collected it, omit `tax_identification`; `type` without a valid `value` is rejected. See https://docs.lead.bank/products/entity/entity-object#identification-for-us-and-non-us-entities.","required":["type","value"],"properties":{"type":{"type":"string","enum":["ssn","itin","ein"],"example":"ssn","description":"The entity's US tax identification type: `ssn`, `itin`, or `ein`.\n- For `individual` entity, use SSN or ITIN.\n- For `business` entity, use EIN. For single-member LLC entities where no EIN is available, SSN or ITIN may be used.\n- For `sole_prop` entity, use SSN, ITIN, or EIN.\n","isRequired":true,"uniqueKey":"oneOf.1.identification.oneOf.0.tax_identification.type","typeLabel":"enum\u003cstring>"},"value":{"type":"string","description":"The entity's US tax identification number. Must be 9 digits (e.g. XXXXXXXXX). An SSN must not start with 9. An EIN must begin with a number between 00 and 99. An ITIN must begin with 9. Required whenever `tax_identification` is sent; omit the whole object if you have not collected the tax identification.","pattern":"^\\d{9}$","isRequired":true,"uniqueKey":"oneOf.1.identification.oneOf.0.tax_identification.value","typeLabel":"string"}},"uniqueKey":"oneOf.1.identification.oneOf.0.tax_identification","typeLabel":"object"}},"isRequired":true,"uniqueKey":"oneOf.1.identification.oneOf.0","typeLabel":"US Entity · object"},{"type":"object","title":"Non US Entity","required":["type","documents","legacy_documents"],"properties":{"type":{"type":"string","pattern":"^non_us_entity$","default":"non_us_entity","description":"Use `non_us_entity` for an entity without US tax identification.","isRequired":true,"uniqueKey":"oneOf.1.identification.oneOf.1.type","typeLabel":"string"},"documents":{"type":"array","example":[{"file_id":"file_7Tq4mR9vKx2LpW8nZc3B","identification_number":"X1234567","issuing_country":"GB","expiration_date":"2030-06-01"},{"type":"passport","identification_number":"X7654321","issuing_country":"GB","expiration_date":"2031-01-15"}],"description":"Government-issued identification, one entry per document. Each entry takes either a `file_id` or a `type`, not both. The array you send replaces the stored array, and Lead checks every `file_id` in it again. You don't need to confirm KYC again when you change documents.","items":{"type":"object","description":"A government-issued identification document. Send exactly one of `file_id` or `type`; both returns `422 parameters_invalid` (`parameters_mutually_exclusive`), and neither returns it with `parameter_group_empty`. With a `file_id`, Lead takes the type from the file and the response omits `type`. Retrieve it with `GET /v2/files/{file_id}`.","required":["identification_number","issuing_country"],"properties":{"identification_number":{"type":"string","maxLength":500,"description":"The number on the document.","example":"X1234567","isRequired":true,"uniqueKey":"oneOf.1.identification.oneOf.1.documents.items.[INDEX].identification_number","typeLabel":"string"},"issuing_country":{"type":"string","description":"Issuing country, as an ISO 3166-1 alpha-2 code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.1.identification.oneOf.1.documents.items.[INDEX].issuing_country","typeLabel":"enum\u003cstring>"},"file_id":{"type":"string","pattern":"^file_\\w+$","description":"A file ID from `POST /v2/files`. Send `file_id` or `type`, not both. When you send only a `file_id`, Lead determines the document type from the file. Retrieve that type with `GET /v2/files/{file_id}`. The file must exist, belong to your program, and have a type this entry accepts. Send each `file_id` only once per entity. You can still link several files of the same type, and link one file to other entities.","example":"file_7RwQ2mK9pL4xT1vN8jS5","uniqueKey":"oneOf.1.identification.oneOf.1.documents.items.[INDEX].file_id","typeLabel":"string"},"type":{"type":"string","enum":["drivers_license","state_id","provincial_id","passport","permanent_residency_id","national_id","consular_id","military_id","tax_certificate","tax_return","partnership_agreement","certificate_of_good_standing","formation_document","exchange_listing_certificate","exchange_listing_notice"],"example":"passport","description":"The identification document type, when you do not link a file. Send `file_id` or `type`, not both.\n- For an `individual`: `drivers_license`, `state_id`, `provincial_id`, `passport`, `permanent_residency_id`, `national_id`, `consular_id`, `military_id`.\n- For a `business`: `tax_certificate`, `tax_return`, `partnership_agreement`, `certificate_of_good_standing`, `formation_document`, `exchange_listing_certificate`, `exchange_listing_notice`.\n- For a `sole_prop`: `drivers_license`, `state_id`, `provincial_id`, `passport`, `permanent_residency_id`, `national_id`, `consular_id`, `military_id`, `tax_certificate`, `tax_return`, `formation_document`.\n\n`national_id` and `consular_id` are not applicable to a `us_entity`. `military_id` is accepted only as a declared `type`: the Files API has no such type, so you cannot link a file for it.\n","uniqueKey":"oneOf.1.identification.oneOf.1.documents.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"issuing_state":{"type":"string","maxLength":500,"description":"Issuing state, as a two-letter code. When `issuing_country` is `US`, it must be a valid US state.","uniqueKey":"oneOf.1.identification.oneOf.1.documents.items.[INDEX].issuing_state","typeLabel":"string"},"expiration_date":{"type":"string","format":"date","description":"Expiration date, in YYYY-MM-DD format. Cannot be in the past when you create the entity.","example":"2030-06-01","uniqueKey":"oneOf.1.identification.oneOf.1.documents.items.[INDEX].expiration_date","typeLabel":"string\u003cdate>"}},"uniqueKey":"oneOf.1.identification.oneOf.1.documents.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.identification.oneOf.1.documents","typeLabel":"object[]"},"legacy_documents":{"type":"array","example":[{"client_document_id":"passport_jane_doe.pdf","type":"passport","identification_number":"X1234567","issuing_country":"GB","expiration_date":"2026-06-01"}],"description":"Identification document entries created on v0 Entities, returned as sent, with country codes in uppercase. Read only: ignored if included on a POST or PATCH.","items":{"type":"object","description":"An identification document entry created on a v0 Entity.","required":["type","identification_number","issuing_country"],"properties":{"type":{"type":"string","enum":["drivers_license","state_or_provincial_id","passport","permanent_residency_id","military_id","national_id","matriculate_id","other","tax_certificate","tax_returns","partnership_agreement","certificate_of_good_standing","formation_document","proof_of_place_on_stock_exchange","name_certificate"],"example":"drivers_license","description":"The entity's government-verified identification document type. This will apply for identification types other than US tax identification.\n- For `individual` entity, possible types are: `drivers_license`, `state_or_provincial_id`, `passport`, `permanent_residency_id`, `military_id`, `national_id`, `matriculate_id`, `other`. Note that `national_id` and `matriculate_id` are not applicable for `us_entity`.\n- For `business` entity, possible types are: `tax_certificate`, `tax_returns`, `partnership_agreement`, `certificate_of_good_standing`, `formation_document`, `proof_of_place_on_stock_exchange`, `other`.\n- For `sole_prop` entity, possible types are: `tax_certificate`, `tax_returns`, `name_certificate`, `drivers_license`, `state_or_provincial_id`, `passport`, `permanent_residency_id`, `military_id`, `national_id`, `matriculate_id`, `other`. Note that `national_id` and `matriculate_id` are not applicable for `us_entity`.\n","isRequired":true,"uniqueKey":"oneOf.1.identification.oneOf.1.legacy_documents.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"identification_number":{"type":"string","description":"The number on the document.","isRequired":true,"uniqueKey":"oneOf.1.identification.oneOf.1.legacy_documents.items.[INDEX].identification_number","typeLabel":"string"},"issuing_country":{"type":"string","description":"Issuing country, as an ISO 3166-1 alpha-2 code, returned in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.1.identification.oneOf.1.legacy_documents.items.[INDEX].issuing_country","typeLabel":"enum\u003cstring>"},"client_document_id":{"type":"string","description":"Your ID for the document, named for the Customer-file property it mirrors (a legacy file-era identifier, like `client_customer_id`).","uniqueKey":"oneOf.1.identification.oneOf.1.legacy_documents.items.[INDEX].client_document_id","typeLabel":"string"},"description":{"type":"string","description":"Description of the document, sent on v0 with type `other`.","uniqueKey":"oneOf.1.identification.oneOf.1.legacy_documents.items.[INDEX].description","typeLabel":"string"},"expiration_date":{"type":"string","format":"date","description":"Expiration date of the document.","uniqueKey":"oneOf.1.identification.oneOf.1.legacy_documents.items.[INDEX].expiration_date","typeLabel":"string\u003cdate>"},"issuing_state":{"type":"string","description":"Issuing state, as a two-letter code.","uniqueKey":"oneOf.1.identification.oneOf.1.legacy_documents.items.[INDEX].issuing_state","typeLabel":"string"}},"uniqueKey":"oneOf.1.identification.oneOf.1.legacy_documents.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.identification.oneOf.1.legacy_documents","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"oneOf.1.identification.oneOf.1","typeLabel":"Non US Entity · object"}],"isRequired":true,"uniqueKey":"oneOf.1.identification","typeLabel":"US Entity · object | Non US Entity · object"},"additional_documents":{"type":"array","example":[{"file_id":"file_X5jD8hN2sQ6yFb1Gt9Ka"},{"type":"financial_statement"}],"description":"Supporting documents, one entry per document. Each entry takes either a `file_id` or a `type`, not both. The array you send replaces the stored array, and Lead checks every `file_id` in it again. You don't need to confirm KYC again when you change documents.","items":{"type":"object","description":"A supporting document. Send exactly one of `file_id` or `type`; both returns `422 parameters_invalid` (`parameters_mutually_exclusive`), and neither returns it with `parameter_group_empty`. With a `file_id`, Lead takes the type from the file and the response omits `type`. Retrieve it with `GET /v2/files/{file_id}`.","properties":{"file_id":{"type":"string","pattern":"^file_\\w+$","description":"A file ID from `POST /v2/files`. Send `file_id` or `type`, not both. When you send only a `file_id`, Lead determines the document type from the file. Retrieve that type with `GET /v2/files/{file_id}`. The file must exist, belong to your program, and have a type this entry accepts. Send each `file_id` only once per entity. You can still link several files of the same type, and link one file to other entities.","example":"file_7RwQ2mK9pL4xT1vN8jS5","uniqueKey":"oneOf.1.additional_documents.items.[INDEX].file_id","typeLabel":"string"},"type":{"type":"string","enum":["adverse_media","bank_statement","financial_statement","id_selfie","inheritance_letter","investigation_report","investment_record","public_record","salary_verification_letter","sale_agreement","social_security_card","utility_bill"],"example":"bank_statement","description":"The supporting document type, when you do not link a file. Send `file_id` or `type`, not both.\nEvery entity type accepts every value of this enum.\n","uniqueKey":"oneOf.1.additional_documents.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.1.additional_documents.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.additional_documents","typeLabel":"object[]"},"legacy_additional_documents":{"type":"array","example":[{"client_document_id":"2026_01_02_statement","type":"bank_statement","description":"Bank statement for January"}],"description":"Additional document entries created on v0 Entities, returned as sent. Read only: ignored if included on a POST or PATCH.","items":{"type":"object","description":"An additional document entry created on a v0 Entity.","required":["type"],"properties":{"type":{"type":"string","enum":["bank_statement","utility_bills","proof_of_address","investigation_report","financial_statement","public_records","adverse_media","id_selfie","other"],"example":"bank_statement","description":"Type of additional non-government documents being provided to verify entity. Possible values are `bank_statement`, `utility_bills`, `proof_of_address`, `investigation_report`, `financial_statement`, `public_records`, `adverse_media`, `id_selfie`, `other`.","isRequired":true,"uniqueKey":"oneOf.1.legacy_additional_documents.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"client_document_id":{"type":"string","description":"Your ID for the document, named for the Customer-file property it mirrors (a legacy file-era identifier, like `client_customer_id`).","uniqueKey":"oneOf.1.legacy_additional_documents.items.[INDEX].client_document_id","typeLabel":"string"},"description":{"type":"string","description":"Description of the document, sent on v0 with type `other`.","uniqueKey":"oneOf.1.legacy_additional_documents.items.[INDEX].description","typeLabel":"string"}},"uniqueKey":"oneOf.1.legacy_additional_documents.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.legacy_additional_documents","typeLabel":"object[]"},"beneficial_owners":{"type":"array","items":{"type":"object","required":["entity_id"],"properties":{"entity_id":{"type":"string","description":"The `entity_id` of the individual entity for this beneficial owner. Data requirements for beneficial owners match those of an `authorized_signer`.","example":"entity_xyz123","pattern":"^entity_[^\\s]{1,33}$","isRequired":true,"uniqueKey":"oneOf.1.beneficial_owners.items.[INDEX].entity_id","typeLabel":"string"},"ownership_percentage":{"type":"string","description":"Percentage of the business this person owns, from 0 to 100 with up to two decimal places. For example, `25.5` means 25.5%. The percentages of all beneficial owners must add up to 100 or less. A beneficial owner sent without a percentage is returned with `0`. A value set outside v2, like through v0, is returned as stored, without rescaling. For example, a v0 value of `0.25` is returned as `0.25`, not `25`.","pattern":"^(0(\\.\\d{1,2})?|[1-9]\\d{0,1}(\\.\\d{1,2})?|100(\\.0{1,2})?)$","example":"25.5","uniqueKey":"oneOf.1.beneficial_owners.items.[INDEX].ownership_percentage","typeLabel":"string"},"relationship_established_date":{"type":"string","format":"date","description":"The date the relationship was established.","uniqueKey":"oneOf.1.beneficial_owners.items.[INDEX].relationship_established_date","typeLabel":"string\u003cdate>"}},"uniqueKey":"oneOf.1.beneficial_owners.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.beneficial_owners","typeLabel":"object[]"},"control_persons":{"type":"array","items":{"type":"object","required":["entity_id","title"],"properties":{"entity_id":{"type":"string","description":"The `entity_id` of the individual entity for this control person. Data requirements for control persons match those of an `authorized_signer`.","example":"entity_xyz123","pattern":"^entity_[^\\s]{1,33}$","isRequired":true,"uniqueKey":"oneOf.1.control_persons.items.[INDEX].entity_id","typeLabel":"string"},"title":{"type":"string","maxLength":500,"description":"The title of this control person.","isRequired":true,"uniqueKey":"oneOf.1.control_persons.items.[INDEX].title","typeLabel":"string"},"relationship_established_date":{"type":"string","format":"date","description":"The date the relationship was established.","uniqueKey":"oneOf.1.control_persons.items.[INDEX].relationship_established_date","typeLabel":"string\u003cdate>"}},"uniqueKey":"oneOf.1.control_persons.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.control_persons","typeLabel":"object[]"},"credit_reports":{"type":"array","description":"Credit reports from credit bureaus on the entity.","items":{"type":"object","description":"Credit report information. Exactly one of `score` or `no_score_reason` must be provided; `pulled_at` and `source` are always required when a credit report is supplied.\n","required":["pulled_at","source"],"properties":{"pulled_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp when the credit report was pulled.","example":"2026-11-02T14:00:00Z","isRequired":true,"uniqueKey":"oneOf.1.credit_reports.items.[INDEX].pulled_at","typeLabel":"string\u003cdate-time>"},"source":{"type":"string","enum":["equifax","experian","transunion"],"example":"equifax","description":"Credit bureau that issued the report.","isRequired":true,"uniqueKey":"oneOf.1.credit_reports.items.[INDEX].source","typeLabel":"enum\u003cstring>"},"score":{"type":"integer","description":"A credit score returned by the bureau, from 300 to 850.","minimum":300,"maximum":850,"example":712,"uniqueKey":"oneOf.1.credit_reports.items.[INDEX].score","typeLabel":"integer"},"no_score_reason":{"type":"string","enum":["unestablished","frozen"],"example":"unestablished","description":"Indicates the state of a credit file when a numeric score is not available. Mutually exclusive with `score`.","uniqueKey":"oneOf.1.credit_reports.items.[INDEX].no_score_reason","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.1.credit_reports.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.credit_reports","typeLabel":"object[]"},"intended_eligibility":{"type":"array","items":{"type":"string","enum":["account_holder","minor_account_holder","authorized_signer","authorized_user"],"example":"account_holder","description":"A relationship type an entity can hold.\n* `account_holder`: Full control of, and legal responsibility for, the account.\n* `minor_account_holder`: An individual aged 16 or 17 with account holder eligibility.\n* `authorized_signer`: An individual allowed to sign on behalf of the account holder, without legal responsibility.\n* `authorized_user`: An individual with restricted access to the account, without legal responsibility.\n","uniqueKey":"oneOf.1.intended_eligibility.items.[INDEX]","typeLabel":"enum\u003cstring>"},"example":["account_holder"],"description":"The relationship types you intend this entity to hold. When you send it, Lead checks the entity's data against every listed type and rejects the request with `422 parameters_invalid` if any fails. The check is all or nothing, and the error returns every failing check, not just the first. Listing fewer types than the entity qualifies for still succeeds, and `eligibility` shows everything it qualifies for.\n\nIf the check passes, Lead saves the list and returns it on the entity. On a `PATCH`, Lead checks the entity as it would be after the update, against the list you send or, if you leave the field out, the saved list. Send an empty array to clear the saved list; no check runs.\n","isRequired":true,"uniqueKey":"oneOf.1.intended_eligibility","typeLabel":"enum\u003cstring>[]"},"eligibility":{"type":"object","description":"Whether the entity's current data qualifies it for each relationship type, with the failing checks. Response only. Lead computes it from current data on every read and never stores it. All four keys are always present. On a program that does not offer minor account holders, `minor_account_holder` is `ineligible` for every entity.","required":["account_holder","minor_account_holder","authorized_signer","authorized_user"],"properties":{"account_holder":{"type":"object","required":["result","failed_checks"],"properties":{"result":{"type":"string","enum":["eligible","ineligible"],"example":"eligible","description":"Whether the entity's current data qualifies it for the relationship type.","isRequired":true,"uniqueKey":"oneOf.1.eligibility.account_holder.result","typeLabel":"enum\u003cstring>"},"failed_checks":{"type":"array","description":"The checks the entity fails for this relationship type. Empty when `result` is `eligible`.","items":{"type":"object","required":["check","entity_id","details"],"properties":{"check":{"type":"string","example":"check_kyc_status","description":"The name of the failing check. When an `intended_eligibility` assertion fails, the `422` has an `eligibility_check_failed` error for each failed check and listed relationship type. Lead may add checks, so handle names you do not recognize. Current checks:\n- Identity and contact: `check_first_name`, `check_last_name`, `check_date_of_birth`, `check_date_of_birth_missing`, `check_date_of_birth_below_minimum`, `check_date_of_birth_above_maximum`, `check_phone_or_email`, `check_physical_address`, `check_government_id`.\n- Business: `check_business_name`, `check_business_type`, `check_business_industry`, `check_control_person_exists`, `check_child_entity_not_found`.\n- Screening and risk: `check_kyc_status`, `check_ofac`, `check_risk_score`, `check_manual_review_status` (a manual review of the entity is pending).\n- Relationship type: `check_individual_entity` (only individuals can hold `minor_account_holder`, `authorized_signer`, and `authorized_user`), `check_minor_account_holder_enabled` (your program is not approved for minor account holders).\n- Stored data: `invalid_entity` (the entity's stored data fails Lead's current validations, which can happen to an older entity when rules change).\n\nSee [Eligibility](https://docs.lead.bank/v2/products/entity/eligibility).","isRequired":true,"uniqueKey":"oneOf.1.eligibility.account_holder.failed_checks.items.[INDEX].check","typeLabel":"string"},"entity_id":{"type":"string","description":"The entity whose data failed the check. A business or sole proprietorship fails when a linked individual fails, and the check then points at that individual's `entity_id`.","example":"entity_xyz123","pattern":"^entity_[^\\s]{1,33}$","isRequired":true,"uniqueKey":"oneOf.1.eligibility.account_holder.failed_checks.items.[INDEX].entity_id","typeLabel":"string"},"details":{"type":"string","example":"KYC must be passed. Update kyc.result and kyc.screened_at on entity_xyz123.","description":"A human-readable explanation of the failure and how to fix it. Not part of the API contract, so do not parse it. It may change without notice.","isRequired":true,"uniqueKey":"oneOf.1.eligibility.account_holder.failed_checks.items.[INDEX].details","typeLabel":"string"}},"uniqueKey":"oneOf.1.eligibility.account_holder.failed_checks.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.eligibility.account_holder.failed_checks","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"oneOf.1.eligibility.account_holder","typeLabel":"object"},"minor_account_holder":{"type":"object","required":["result","failed_checks"],"properties":{"result":{"type":"string","enum":["eligible","ineligible"],"example":"eligible","description":"Whether the entity's current data qualifies it for the relationship type.","isRequired":true,"uniqueKey":"oneOf.1.eligibility.minor_account_holder.result","typeLabel":"enum\u003cstring>"},"failed_checks":{"type":"array","description":"The checks the entity fails for this relationship type. Empty when `result` is `eligible`.","items":{"type":"object","required":["check","entity_id","details"],"properties":{"check":{"type":"string","example":"check_kyc_status","description":"The name of the failing check. When an `intended_eligibility` assertion fails, the `422` has an `eligibility_check_failed` error for each failed check and listed relationship type. Lead may add checks, so handle names you do not recognize. Current checks:\n- Identity and contact: `check_first_name`, `check_last_name`, `check_date_of_birth`, `check_date_of_birth_missing`, `check_date_of_birth_below_minimum`, `check_date_of_birth_above_maximum`, `check_phone_or_email`, `check_physical_address`, `check_government_id`.\n- Business: `check_business_name`, `check_business_type`, `check_business_industry`, `check_control_person_exists`, `check_child_entity_not_found`.\n- Screening and risk: `check_kyc_status`, `check_ofac`, `check_risk_score`, `check_manual_review_status` (a manual review of the entity is pending).\n- Relationship type: `check_individual_entity` (only individuals can hold `minor_account_holder`, `authorized_signer`, and `authorized_user`), `check_minor_account_holder_enabled` (your program is not approved for minor account holders).\n- Stored data: `invalid_entity` (the entity's stored data fails Lead's current validations, which can happen to an older entity when rules change).\n\nSee [Eligibility](https://docs.lead.bank/v2/products/entity/eligibility).","isRequired":true,"uniqueKey":"oneOf.1.eligibility.minor_account_holder.failed_checks.items.[INDEX].check","typeLabel":"string"},"entity_id":{"type":"string","description":"The entity whose data failed the check. A business or sole proprietorship fails when a linked individual fails, and the check then points at that individual's `entity_id`.","example":"entity_xyz123","pattern":"^entity_[^\\s]{1,33}$","isRequired":true,"uniqueKey":"oneOf.1.eligibility.minor_account_holder.failed_checks.items.[INDEX].entity_id","typeLabel":"string"},"details":{"type":"string","example":"KYC must be passed. Update kyc.result and kyc.screened_at on entity_xyz123.","description":"A human-readable explanation of the failure and how to fix it. Not part of the API contract, so do not parse it. It may change without notice.","isRequired":true,"uniqueKey":"oneOf.1.eligibility.minor_account_holder.failed_checks.items.[INDEX].details","typeLabel":"string"}},"uniqueKey":"oneOf.1.eligibility.minor_account_holder.failed_checks.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.eligibility.minor_account_holder.failed_checks","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"oneOf.1.eligibility.minor_account_holder","typeLabel":"object"},"authorized_signer":{"type":"object","required":["result","failed_checks"],"properties":{"result":{"type":"string","enum":["eligible","ineligible"],"example":"eligible","description":"Whether the entity's current data qualifies it for the relationship type.","isRequired":true,"uniqueKey":"oneOf.1.eligibility.authorized_signer.result","typeLabel":"enum\u003cstring>"},"failed_checks":{"type":"array","description":"The checks the entity fails for this relationship type. Empty when `result` is `eligible`.","items":{"type":"object","required":["check","entity_id","details"],"properties":{"check":{"type":"string","example":"check_kyc_status","description":"The name of the failing check. When an `intended_eligibility` assertion fails, the `422` has an `eligibility_check_failed` error for each failed check and listed relationship type. Lead may add checks, so handle names you do not recognize. Current checks:\n- Identity and contact: `check_first_name`, `check_last_name`, `check_date_of_birth`, `check_date_of_birth_missing`, `check_date_of_birth_below_minimum`, `check_date_of_birth_above_maximum`, `check_phone_or_email`, `check_physical_address`, `check_government_id`.\n- Business: `check_business_name`, `check_business_type`, `check_business_industry`, `check_control_person_exists`, `check_child_entity_not_found`.\n- Screening and risk: `check_kyc_status`, `check_ofac`, `check_risk_score`, `check_manual_review_status` (a manual review of the entity is pending).\n- Relationship type: `check_individual_entity` (only individuals can hold `minor_account_holder`, `authorized_signer`, and `authorized_user`), `check_minor_account_holder_enabled` (your program is not approved for minor account holders).\n- Stored data: `invalid_entity` (the entity's stored data fails Lead's current validations, which can happen to an older entity when rules change).\n\nSee [Eligibility](https://docs.lead.bank/v2/products/entity/eligibility).","isRequired":true,"uniqueKey":"oneOf.1.eligibility.authorized_signer.failed_checks.items.[INDEX].check","typeLabel":"string"},"entity_id":{"type":"string","description":"The entity whose data failed the check. A business or sole proprietorship fails when a linked individual fails, and the check then points at that individual's `entity_id`.","example":"entity_xyz123","pattern":"^entity_[^\\s]{1,33}$","isRequired":true,"uniqueKey":"oneOf.1.eligibility.authorized_signer.failed_checks.items.[INDEX].entity_id","typeLabel":"string"},"details":{"type":"string","example":"KYC must be passed. Update kyc.result and kyc.screened_at on entity_xyz123.","description":"A human-readable explanation of the failure and how to fix it. Not part of the API contract, so do not parse it. It may change without notice.","isRequired":true,"uniqueKey":"oneOf.1.eligibility.authorized_signer.failed_checks.items.[INDEX].details","typeLabel":"string"}},"uniqueKey":"oneOf.1.eligibility.authorized_signer.failed_checks.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.eligibility.authorized_signer.failed_checks","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"oneOf.1.eligibility.authorized_signer","typeLabel":"object"},"authorized_user":{"type":"object","required":["result","failed_checks"],"properties":{"result":{"type":"string","enum":["eligible","ineligible"],"example":"eligible","description":"Whether the entity's current data qualifies it for the relationship type.","isRequired":true,"uniqueKey":"oneOf.1.eligibility.authorized_user.result","typeLabel":"enum\u003cstring>"},"failed_checks":{"type":"array","description":"The checks the entity fails for this relationship type. Empty when `result` is `eligible`.","items":{"type":"object","required":["check","entity_id","details"],"properties":{"check":{"type":"string","example":"check_kyc_status","description":"The name of the failing check. When an `intended_eligibility` assertion fails, the `422` has an `eligibility_check_failed` error for each failed check and listed relationship type. Lead may add checks, so handle names you do not recognize. Current checks:\n- Identity and contact: `check_first_name`, `check_last_name`, `check_date_of_birth`, `check_date_of_birth_missing`, `check_date_of_birth_below_minimum`, `check_date_of_birth_above_maximum`, `check_phone_or_email`, `check_physical_address`, `check_government_id`.\n- Business: `check_business_name`, `check_business_type`, `check_business_industry`, `check_control_person_exists`, `check_child_entity_not_found`.\n- Screening and risk: `check_kyc_status`, `check_ofac`, `check_risk_score`, `check_manual_review_status` (a manual review of the entity is pending).\n- Relationship type: `check_individual_entity` (only individuals can hold `minor_account_holder`, `authorized_signer`, and `authorized_user`), `check_minor_account_holder_enabled` (your program is not approved for minor account holders).\n- Stored data: `invalid_entity` (the entity's stored data fails Lead's current validations, which can happen to an older entity when rules change).\n\nSee [Eligibility](https://docs.lead.bank/v2/products/entity/eligibility).","isRequired":true,"uniqueKey":"oneOf.1.eligibility.authorized_user.failed_checks.items.[INDEX].check","typeLabel":"string"},"entity_id":{"type":"string","description":"The entity whose data failed the check. A business or sole proprietorship fails when a linked individual fails, and the check then points at that individual's `entity_id`.","example":"entity_xyz123","pattern":"^entity_[^\\s]{1,33}$","isRequired":true,"uniqueKey":"oneOf.1.eligibility.authorized_user.failed_checks.items.[INDEX].entity_id","typeLabel":"string"},"details":{"type":"string","example":"KYC must be passed. Update kyc.result and kyc.screened_at on entity_xyz123.","description":"A human-readable explanation of the failure and how to fix it. Not part of the API contract, so do not parse it. It may change without notice.","isRequired":true,"uniqueKey":"oneOf.1.eligibility.authorized_user.failed_checks.items.[INDEX].details","typeLabel":"string"}},"uniqueKey":"oneOf.1.eligibility.authorized_user.failed_checks.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.eligibility.authorized_user.failed_checks","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"oneOf.1.eligibility.authorized_user","typeLabel":"object"}},"example":{"account_holder":{"result":"eligible","failed_checks":[]},"minor_account_holder":{"result":"ineligible","failed_checks":[{"check":"check_date_of_birth_above_maximum","entity_id":"entity_xyz123","details":"The entity exceeds the maximum age for minor_account_holder."}]},"authorized_signer":{"result":"eligible","failed_checks":[]},"authorized_user":{"result":"eligible","failed_checks":[]}},"isRequired":true,"uniqueKey":"oneOf.1.eligibility","typeLabel":"object"},"metadata":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"oneOf.1.metadata.additionalProperties","typeLabel":"string"},"description":"A set of key-value pairs that can be used to store additional information related to this object.","isRequired":true,"uniqueKey":"oneOf.1.metadata","typeLabel":"object"},"client_customer_id":{"type":"string","description":"Your customer ID, on entities created through Customer files. Response only. Lead ignores it if sent, and does not return it on entities created with `POST /v2/entities`.","uniqueKey":"oneOf.1.client_customer_id","typeLabel":"string"},"doing_business_as":{"type":"string","description":"The name the business operates under, if it differs from its legal name.","uniqueKey":"oneOf.1.doing_business_as","typeLabel":"string"},"legal_structure":{"type":"string","enum":["corporation","partnership","sole_prop","llc","trust","cooperative","other"],"example":"llc","description":"The business's legal structure.","uniqueKey":"oneOf.1.legal_structure","typeLabel":"enum\u003cstring>"},"website":{"type":"string","description":"The website of the business.","uniqueKey":"oneOf.1.website","typeLabel":"string"},"gross_annual_revenue":{"type":"integer","format":"int64","minimum":0,"description":"The business's gross revenue for the prior fiscal year, as an integer in the ISO 4217 minor units of `currency`, like cents for USD.","example":125000000,"uniqueKey":"oneOf.1.gross_annual_revenue","typeLabel":"integer\u003cint64>"},"currency":{"type":"string","description":"The currency of `gross_annual_revenue`, as an ISO 4217 code.","example":"USD","enum":["AED","AFN","ALL","AMD","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNH","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GGP","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HTG","HUF","IDR","ILS","IMP","INR","IQD","IRR","ISK","JEP","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLE","SOS","SRD","SSP","STD","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VED","VES","VND","VUV","WST","XAD","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XCG","XDR","XMW","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWG"],"uniqueKey":"oneOf.1.currency","typeLabel":"enum\u003cstring>"},"physical_address":{"type":"object","required":["line_1","city","country"],"properties":{"line_1":{"type":"string","maxLength":500,"description":"Address line 1 is the required primary street-address field. It must contain the full base address needed to identify the physical location, such as the street number and street name together, or the closest local equivalent in countries where addresses do not use that exact structure.\n\nUse address line 1 for all core location details that describe the main property or thoroughfare. Regardless of how each component of an address is collected from your end-users, they must be combined into address line 1 before sending to Lead.\n\nDo not:\n- split the primary street address across line 1 and line 2\n- put only the street number in line 1 and the street name in line 2\n- pad line 1 with false or altered data to pass validation","example":"123 Main St.","isRequired":true,"uniqueKey":"oneOf.1.physical_address.line_1","typeLabel":"string"},"city":{"type":"string","maxLength":500,"description":"City.","example":"Denver","isRequired":true,"uniqueKey":"oneOf.1.physical_address.city","typeLabel":"string"},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code. Lead accepts lowercase and returns it in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.1.physical_address.country","typeLabel":"enum\u003cstring>"},"line_2":{"type":"string","maxLength":500,"description":"Address line 2 is optional. Use it only for secondary or sub-premise information, such as:\n- apartment\n- unit\n- suite\n- floor\n- building\n- care of or attention\n\nIf there is no secondary or sub-premise information, leave address line 2 out.\n\nDo not use address line 2 for any part of the primary street address.","example":"Apt 25","uniqueKey":"oneOf.1.physical_address.line_2","typeLabel":"string"},"postal_code":{"type":"string","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014","uniqueKey":"oneOf.1.physical_address.postal_code","typeLabel":"string"},"state":{"type":"string","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO","uniqueKey":"oneOf.1.physical_address.state","typeLabel":"string"}},"description":"The business's physical address.","uniqueKey":"oneOf.1.physical_address","typeLabel":"object"},"mailing_address":{"type":"object","required":["line_1","city","country"],"properties":{"line_1":{"type":"string","maxLength":500,"description":"Address line 1 is the required primary street-address field. It must contain the full base address needed to identify the physical location, such as the street number and street name together, or the closest local equivalent in countries where addresses do not use that exact structure.\n\nUse address line 1 for all core location details that describe the main property or thoroughfare. Regardless of how each component of an address is collected from your end-users, they must be combined into address line 1 before sending to Lead.\n\nDo not:\n- split the primary street address across line 1 and line 2\n- put only the street number in line 1 and the street name in line 2\n- pad line 1 with false or altered data to pass validation","example":"123 Main St.","isRequired":true,"uniqueKey":"oneOf.1.mailing_address.line_1","typeLabel":"string"},"city":{"type":"string","maxLength":500,"description":"City.","example":"Denver","isRequired":true,"uniqueKey":"oneOf.1.mailing_address.city","typeLabel":"string"},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code. Lead accepts lowercase and returns it in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.1.mailing_address.country","typeLabel":"enum\u003cstring>"},"line_2":{"type":"string","maxLength":500,"description":"Address line 2 is optional. Use it only for secondary or sub-premise information, such as:\n- apartment\n- unit\n- suite\n- floor\n- building\n- care of or attention\n\nIf there is no secondary or sub-premise information, leave address line 2 out.\n\nDo not use address line 2 for any part of the primary street address.","example":"Apt 25","uniqueKey":"oneOf.1.mailing_address.line_2","typeLabel":"string"},"postal_code":{"type":"string","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014","uniqueKey":"oneOf.1.mailing_address.postal_code","typeLabel":"string"},"state":{"type":"string","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO","uniqueKey":"oneOf.1.mailing_address.state","typeLabel":"string"}},"description":"The business's mailing address.","uniqueKey":"oneOf.1.mailing_address","typeLabel":"object"},"risk_score":{"type":"string","enum":["low","medium","high"],"example":"low","description":"The entity's risk score. You map your own risk scores to these values and give Lead the mapping.","uniqueKey":"oneOf.1.risk_score","typeLabel":"enum\u003cstring>"},"kyc":{"type":"object","description":"Your KYC check of the entity.","required":["screened_at"],"properties":{"screened_at":{"type":"string","format":"date-time","description":"When you ran the KYC check, in UTC to the second.","example":"2026-11-07T05:31:56Z","isRequired":true,"uniqueKey":"oneOf.1.kyc.screened_at","typeLabel":"string\u003cdate-time>"},"result":{"type":"string","enum":["passed","failed"],"example":"passed","description":"The result of your KYC check, `passed` or `failed`. Absent when the stored result is `pending`, a value that v2 doesn't accept.","uniqueKey":"oneOf.1.kyc.result","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.1.kyc","typeLabel":"object"},"ofac":{"type":"object","description":"Your OFAC screen of the entity.","required":["screened_at"],"properties":{"screened_at":{"type":"string","format":"date-time","description":"When you ran the OFAC screen, in UTC to the second.","example":"2026-11-07T05:31:56Z","isRequired":true,"uniqueKey":"oneOf.1.ofac.screened_at","typeLabel":"string\u003cdate-time>"},"result":{"type":"string","enum":["passed","failed"],"example":"passed","description":"The result of your OFAC screen, `passed` or `failed`. Absent when the stored result is `pending`, a value that v2 doesn't accept.","uniqueKey":"oneOf.1.ofac.result","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.1.ofac","typeLabel":"object"},"rfi":{"type":"object","description":"Your request for information (RFI) to your customer.","required":["stage","requested_at"],"properties":{"stage":{"type":"string","enum":["requested","completed"],"example":"completed","description":"The stage of your request for information (RFI) to your customer.\n* `requested`: You sent the RFI and are waiting for the answer.\n* `completed`: Your customer answered the RFI.\n","isRequired":true,"uniqueKey":"oneOf.1.rfi.stage","typeLabel":"enum\u003cstring>"},"requested_at":{"type":"string","format":"date-time","description":"When you sent the RFI. It can't be in the future. Lead stores it in UTC, to the second.","example":"2026-11-07T05:31:56Z","isRequired":true,"uniqueKey":"oneOf.1.rfi.requested_at","typeLabel":"string\u003cdate-time>"},"completed_at":{"type":"string","format":"date-time","description":"When your customer answered the RFI. Send it when `status` is `completed`. Lead stores it in UTC, to the second.","example":"2026-11-09T05:31:56Z","uniqueKey":"oneOf.1.rfi.completed_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"oneOf.1.rfi","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"Business · object"},{"type":"object","title":"Sole Prop","required":["id","type","created_at","name","industry","contact_methods","other_addresses","identification","additional_documents","legacy_additional_documents","sole_proprietor_entity_id","credit_reports","intended_eligibility","eligibility","metadata"],"properties":{"id":{"type":"string","description":"Unique ID for the Entity object.","example":"entity_xyz123","pattern":"^entity_[^\\s]{1,33}$","isRequired":true,"uniqueKey":"oneOf.2.id","typeLabel":"string"},"type":{"type":"string","pattern":"^sole_prop$","default":"sole_prop","description":"Type of entity = sole_prop.","isRequired":true,"uniqueKey":"oneOf.2.type","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","description":"When the entity was created, in UTC to the second.","example":"2026-11-07T05:31:56Z","isRequired":true,"uniqueKey":"oneOf.2.created_at","typeLabel":"string\u003cdate-time>"},"name":{"type":"string","description":"Legal name of the business.","isRequired":true,"uniqueKey":"oneOf.2.name","typeLabel":"string"},"industry":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.2.industry.items.[INDEX]","typeLabel":"string"},"description":"NAICS codes for the business's industries.","isRequired":true,"uniqueKey":"oneOf.2.industry","typeLabel":"string[]"},"contact_methods":{"type":"array","items":{"oneOf":[{"type":"object","title":"Email","required":["type","email"],"properties":{"type":{"type":"string","pattern":"^email$","default":"email","description":"ContactMethodType = email.","isRequired":true,"uniqueKey":"oneOf.2.contact_methods.items.[INDEX].oneOf.0.type","typeLabel":"string"},"email":{"type":"string","maxLength":500,"description":"Must be a valid email address in the form `local-part@domain.tld`. The domain must contain at least one dot. Addresses using `localhost` or IP literals (for example, `user@[127.0.0.1]`) are not accepted. Only common, real-world email formats are supported.","example":"abc@gmail.com","isRequired":true,"uniqueKey":"oneOf.2.contact_methods.items.[INDEX].oneOf.0.email","typeLabel":"string"}},"uniqueKey":"oneOf.2.contact_methods.items.[INDEX].oneOf.0","typeLabel":"Email · object"},{"type":"object","title":"Phone Number","required":["type","phone_number"],"properties":{"type":{"type":"string","pattern":"^phone_number$","default":"phone_number","example":"+22 607 123 4567","description":"ContactMethodType = phone_number. Conforms to E.123 standard","isRequired":true,"uniqueKey":"oneOf.2.contact_methods.items.[INDEX].oneOf.1.type","typeLabel":"string"},"phone_number":{"type":"string","maxLength":500,"description":"Primary phone number of the entity. Must follow E.123 format.","isRequired":true,"uniqueKey":"oneOf.2.contact_methods.items.[INDEX].oneOf.1.phone_number","typeLabel":"string"}},"uniqueKey":"oneOf.2.contact_methods.items.[INDEX].oneOf.1","typeLabel":"Phone Number · object"}],"uniqueKey":"oneOf.2.contact_methods.items.[INDEX]","typeLabel":"Email · object | Phone Number · object"},"isRequired":true,"uniqueKey":"oneOf.2.contact_methods","typeLabel":"(Email · object | Phone Number · object)[]"},"other_addresses":{"type":"array","description":"Other addresses for the business.","items":{"type":"object","required":["line_1","city","country"],"properties":{"line_1":{"type":"string","maxLength":500,"description":"Address line 1 is the required primary street-address field. It must contain the full base address needed to identify the physical location, such as the street number and street name together, or the closest local equivalent in countries where addresses do not use that exact structure.\n\nUse address line 1 for all core location details that describe the main property or thoroughfare. Regardless of how each component of an address is collected from your end-users, they must be combined into address line 1 before sending to Lead.\n\nDo not:\n- split the primary street address across line 1 and line 2\n- put only the street number in line 1 and the street name in line 2\n- pad line 1 with false or altered data to pass validation","example":"123 Main St.","isRequired":true,"uniqueKey":"oneOf.2.other_addresses.items.[INDEX].line_1","typeLabel":"string"},"city":{"type":"string","maxLength":500,"description":"City.","example":"Denver","isRequired":true,"uniqueKey":"oneOf.2.other_addresses.items.[INDEX].city","typeLabel":"string"},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code. Lead accepts lowercase and returns it in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.2.other_addresses.items.[INDEX].country","typeLabel":"enum\u003cstring>"},"line_2":{"type":"string","maxLength":500,"description":"Address line 2 is optional. Use it only for secondary or sub-premise information, such as:\n- apartment\n- unit\n- suite\n- floor\n- building\n- care of or attention\n\nIf there is no secondary or sub-premise information, leave address line 2 out.\n\nDo not use address line 2 for any part of the primary street address.","example":"Apt 25","uniqueKey":"oneOf.2.other_addresses.items.[INDEX].line_2","typeLabel":"string"},"postal_code":{"type":"string","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014","uniqueKey":"oneOf.2.other_addresses.items.[INDEX].postal_code","typeLabel":"string"},"state":{"type":"string","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO","uniqueKey":"oneOf.2.other_addresses.items.[INDEX].state","typeLabel":"string"}},"uniqueKey":"oneOf.2.other_addresses.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.2.other_addresses","typeLabel":"object[]"},"identification":{"oneOf":[{"type":"object","title":"US Entity","required":["type","documents","legacy_documents"],"properties":{"type":{"type":"string","pattern":"^us_entity$","default":"us_entity","description":"Use `us_entity` for an entity with US tax identification, including one you have not collected yet.","isRequired":true,"uniqueKey":"oneOf.2.identification.oneOf.0.type","typeLabel":"string"},"documents":{"type":"array","example":[{"file_id":"file_7Tq4mR9vKx2LpW8nZc3B","identification_number":"X1234567","issuing_country":"GB","expiration_date":"2030-06-01"},{"type":"passport","identification_number":"X7654321","issuing_country":"GB","expiration_date":"2031-01-15"}],"description":"Government-issued identification, one entry per document. Each entry takes either a `file_id` or a `type`, not both. The array you send replaces the stored array, and Lead checks every `file_id` in it again. You don't need to confirm KYC again when you change documents.","items":{"type":"object","description":"A government-issued identification document. Send exactly one of `file_id` or `type`; both returns `422 parameters_invalid` (`parameters_mutually_exclusive`), and neither returns it with `parameter_group_empty`. With a `file_id`, Lead takes the type from the file and the response omits `type`. Retrieve it with `GET /v2/files/{file_id}`.","required":["identification_number","issuing_country"],"properties":{"identification_number":{"type":"string","maxLength":500,"description":"The number on the document.","example":"X1234567","isRequired":true,"uniqueKey":"oneOf.2.identification.oneOf.0.documents.items.[INDEX].identification_number","typeLabel":"string"},"issuing_country":{"type":"string","description":"Issuing country, as an ISO 3166-1 alpha-2 code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.2.identification.oneOf.0.documents.items.[INDEX].issuing_country","typeLabel":"enum\u003cstring>"},"file_id":{"type":"string","pattern":"^file_\\w+$","description":"A file ID from `POST /v2/files`. Send `file_id` or `type`, not both. When you send only a `file_id`, Lead determines the document type from the file. Retrieve that type with `GET /v2/files/{file_id}`. The file must exist, belong to your program, and have a type this entry accepts. Send each `file_id` only once per entity. You can still link several files of the same type, and link one file to other entities.","example":"file_7RwQ2mK9pL4xT1vN8jS5","uniqueKey":"oneOf.2.identification.oneOf.0.documents.items.[INDEX].file_id","typeLabel":"string"},"type":{"type":"string","enum":["drivers_license","state_id","provincial_id","passport","permanent_residency_id","national_id","consular_id","military_id","tax_certificate","tax_return","partnership_agreement","certificate_of_good_standing","formation_document","exchange_listing_certificate","exchange_listing_notice"],"example":"passport","description":"The identification document type, when you do not link a file. Send `file_id` or `type`, not both.\n- For an `individual`: `drivers_license`, `state_id`, `provincial_id`, `passport`, `permanent_residency_id`, `national_id`, `consular_id`, `military_id`.\n- For a `business`: `tax_certificate`, `tax_return`, `partnership_agreement`, `certificate_of_good_standing`, `formation_document`, `exchange_listing_certificate`, `exchange_listing_notice`.\n- For a `sole_prop`: `drivers_license`, `state_id`, `provincial_id`, `passport`, `permanent_residency_id`, `national_id`, `consular_id`, `military_id`, `tax_certificate`, `tax_return`, `formation_document`.\n\n`national_id` and `consular_id` are not applicable to a `us_entity`. `military_id` is accepted only as a declared `type`: the Files API has no such type, so you cannot link a file for it.\n","uniqueKey":"oneOf.2.identification.oneOf.0.documents.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"issuing_state":{"type":"string","maxLength":500,"description":"Issuing state, as a two-letter code. When `issuing_country` is `US`, it must be a valid US state.","uniqueKey":"oneOf.2.identification.oneOf.0.documents.items.[INDEX].issuing_state","typeLabel":"string"},"expiration_date":{"type":"string","format":"date","description":"Expiration date, in YYYY-MM-DD format. Cannot be in the past when you create the entity.","example":"2030-06-01","uniqueKey":"oneOf.2.identification.oneOf.0.documents.items.[INDEX].expiration_date","typeLabel":"string\u003cdate>"}},"uniqueKey":"oneOf.2.identification.oneOf.0.documents.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.2.identification.oneOf.0.documents","typeLabel":"object[]"},"legacy_documents":{"type":"array","example":[{"client_document_id":"passport_jane_doe.pdf","type":"passport","identification_number":"X1234567","issuing_country":"GB","expiration_date":"2026-06-01"}],"description":"Identification document entries created on v0 Entities, returned as sent, with country codes in uppercase. Read only: ignored if included on a POST or PATCH.","items":{"type":"object","description":"An identification document entry created on a v0 Entity.","required":["type","identification_number","issuing_country"],"properties":{"type":{"type":"string","enum":["drivers_license","state_or_provincial_id","passport","permanent_residency_id","military_id","national_id","matriculate_id","other","tax_certificate","tax_returns","partnership_agreement","certificate_of_good_standing","formation_document","proof_of_place_on_stock_exchange","name_certificate"],"example":"drivers_license","description":"The entity's government-verified identification document type. This will apply for identification types other than US tax identification.\n- For `individual` entity, possible types are: `drivers_license`, `state_or_provincial_id`, `passport`, `permanent_residency_id`, `military_id`, `national_id`, `matriculate_id`, `other`. Note that `national_id` and `matriculate_id` are not applicable for `us_entity`.\n- For `business` entity, possible types are: `tax_certificate`, `tax_returns`, `partnership_agreement`, `certificate_of_good_standing`, `formation_document`, `proof_of_place_on_stock_exchange`, `other`.\n- For `sole_prop` entity, possible types are: `tax_certificate`, `tax_returns`, `name_certificate`, `drivers_license`, `state_or_provincial_id`, `passport`, `permanent_residency_id`, `military_id`, `national_id`, `matriculate_id`, `other`. Note that `national_id` and `matriculate_id` are not applicable for `us_entity`.\n","isRequired":true,"uniqueKey":"oneOf.2.identification.oneOf.0.legacy_documents.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"identification_number":{"type":"string","description":"The number on the document.","isRequired":true,"uniqueKey":"oneOf.2.identification.oneOf.0.legacy_documents.items.[INDEX].identification_number","typeLabel":"string"},"issuing_country":{"type":"string","description":"Issuing country, as an ISO 3166-1 alpha-2 code, returned in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.2.identification.oneOf.0.legacy_documents.items.[INDEX].issuing_country","typeLabel":"enum\u003cstring>"},"client_document_id":{"type":"string","description":"Your ID for the document, named for the Customer-file property it mirrors (a legacy file-era identifier, like `client_customer_id`).","uniqueKey":"oneOf.2.identification.oneOf.0.legacy_documents.items.[INDEX].client_document_id","typeLabel":"string"},"description":{"type":"string","description":"Description of the document, sent on v0 with type `other`.","uniqueKey":"oneOf.2.identification.oneOf.0.legacy_documents.items.[INDEX].description","typeLabel":"string"},"expiration_date":{"type":"string","format":"date","description":"Expiration date of the document.","uniqueKey":"oneOf.2.identification.oneOf.0.legacy_documents.items.[INDEX].expiration_date","typeLabel":"string\u003cdate>"},"issuing_state":{"type":"string","description":"Issuing state, as a two-letter code.","uniqueKey":"oneOf.2.identification.oneOf.0.legacy_documents.items.[INDEX].issuing_state","typeLabel":"string"}},"uniqueKey":"oneOf.2.identification.oneOf.0.legacy_documents.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.2.identification.oneOf.0.legacy_documents","typeLabel":"object[]"},"tax_identification":{"type":"object","description":"The entity's own US tax identification. Do not submit another person's SSN or ITIN (e.g. a parent's for a minor). If you have not collected it, omit `tax_identification`; `type` without a valid `value` is rejected. See https://docs.lead.bank/products/entity/entity-object#identification-for-us-and-non-us-entities.","required":["type","value"],"properties":{"type":{"type":"string","enum":["ssn","itin","ein"],"example":"ssn","description":"The entity's US tax identification type: `ssn`, `itin`, or `ein`.\n- For `individual` entity, use SSN or ITIN.\n- For `business` entity, use EIN. For single-member LLC entities where no EIN is available, SSN or ITIN may be used.\n- For `sole_prop` entity, use SSN, ITIN, or EIN.\n","isRequired":true,"uniqueKey":"oneOf.2.identification.oneOf.0.tax_identification.type","typeLabel":"enum\u003cstring>"},"value":{"type":"string","description":"The entity's US tax identification number. Must be 9 digits (e.g. XXXXXXXXX). An SSN must not start with 9. An EIN must begin with a number between 00 and 99. An ITIN must begin with 9. Required whenever `tax_identification` is sent; omit the whole object if you have not collected the tax identification.","pattern":"^\\d{9}$","isRequired":true,"uniqueKey":"oneOf.2.identification.oneOf.0.tax_identification.value","typeLabel":"string"}},"uniqueKey":"oneOf.2.identification.oneOf.0.tax_identification","typeLabel":"object"}},"isRequired":true,"uniqueKey":"oneOf.2.identification.oneOf.0","typeLabel":"US Entity · object"},{"type":"object","title":"Non US Entity","required":["type","documents","legacy_documents"],"properties":{"type":{"type":"string","pattern":"^non_us_entity$","default":"non_us_entity","description":"Use `non_us_entity` for an entity without US tax identification.","isRequired":true,"uniqueKey":"oneOf.2.identification.oneOf.1.type","typeLabel":"string"},"documents":{"type":"array","example":[{"file_id":"file_7Tq4mR9vKx2LpW8nZc3B","identification_number":"X1234567","issuing_country":"GB","expiration_date":"2030-06-01"},{"type":"passport","identification_number":"X7654321","issuing_country":"GB","expiration_date":"2031-01-15"}],"description":"Government-issued identification, one entry per document. Each entry takes either a `file_id` or a `type`, not both. The array you send replaces the stored array, and Lead checks every `file_id` in it again. You don't need to confirm KYC again when you change documents.","items":{"type":"object","description":"A government-issued identification document. Send exactly one of `file_id` or `type`; both returns `422 parameters_invalid` (`parameters_mutually_exclusive`), and neither returns it with `parameter_group_empty`. With a `file_id`, Lead takes the type from the file and the response omits `type`. Retrieve it with `GET /v2/files/{file_id}`.","required":["identification_number","issuing_country"],"properties":{"identification_number":{"type":"string","maxLength":500,"description":"The number on the document.","example":"X1234567","isRequired":true,"uniqueKey":"oneOf.2.identification.oneOf.1.documents.items.[INDEX].identification_number","typeLabel":"string"},"issuing_country":{"type":"string","description":"Issuing country, as an ISO 3166-1 alpha-2 code.","example":"GB","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.2.identification.oneOf.1.documents.items.[INDEX].issuing_country","typeLabel":"enum\u003cstring>"},"file_id":{"type":"string","pattern":"^file_\\w+$","description":"A file ID from `POST /v2/files`. Send `file_id` or `type`, not both. When you send only a `file_id`, Lead determines the document type from the file. Retrieve that type with `GET /v2/files/{file_id}`. The file must exist, belong to your program, and have a type this entry accepts. Send each `file_id` only once per entity. You can still link several files of the same type, and link one file to other entities.","example":"file_7RwQ2mK9pL4xT1vN8jS5","uniqueKey":"oneOf.2.identification.oneOf.1.documents.items.[INDEX].file_id","typeLabel":"string"},"type":{"type":"string","enum":["drivers_license","state_id","provincial_id","passport","permanent_residency_id","national_id","consular_id","military_id","tax_certificate","tax_return","partnership_agreement","certificate_of_good_standing","formation_document","exchange_listing_certificate","exchange_listing_notice"],"example":"passport","description":"The identification document type, when you do not link a file. Send `file_id` or `type`, not both.\n- For an `individual`: `drivers_license`, `state_id`, `provincial_id`, `passport`, `permanent_residency_id`, `national_id`, `consular_id`, `military_id`.\n- For a `business`: `tax_certificate`, `tax_return`, `partnership_agreement`, `certificate_of_good_standing`, `formation_document`, `exchange_listing_certificate`, `exchange_listing_notice`.\n- For a `sole_prop`: `drivers_license`, `state_id`, `provincial_id`, `passport`, `permanent_residency_id`, `national_id`, `consular_id`, `military_id`, `tax_certificate`, `tax_return`, `formation_document`.\n\n`national_id` and `consular_id` are not applicable to a `us_entity`. `military_id` is accepted only as a declared `type`: the Files API has no such type, so you cannot link a file for it.\n","uniqueKey":"oneOf.2.identification.oneOf.1.documents.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"issuing_state":{"type":"string","maxLength":500,"description":"Issuing state, as a two-letter code. When `issuing_country` is `US`, it must be a valid US state.","uniqueKey":"oneOf.2.identification.oneOf.1.documents.items.[INDEX].issuing_state","typeLabel":"string"},"expiration_date":{"type":"string","format":"date","description":"Expiration date, in YYYY-MM-DD format. Cannot be in the past when you create the entity.","example":"2030-06-01","uniqueKey":"oneOf.2.identification.oneOf.1.documents.items.[INDEX].expiration_date","typeLabel":"string\u003cdate>"}},"uniqueKey":"oneOf.2.identification.oneOf.1.documents.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.2.identification.oneOf.1.documents","typeLabel":"object[]"},"legacy_documents":{"type":"array","example":[{"client_document_id":"passport_jane_doe.pdf","type":"passport","identification_number":"X1234567","issuing_country":"GB","expiration_date":"2026-06-01"}],"description":"Identification document entries created on v0 Entities, returned as sent, with country codes in uppercase. Read only: ignored if included on a POST or PATCH.","items":{"type":"object","description":"An identification document entry created on a v0 Entity.","required":["type","identification_number","issuing_country"],"properties":{"type":{"type":"string","enum":["drivers_license","state_or_provincial_id","passport","permanent_residency_id","military_id","national_id","matriculate_id","other","tax_certificate","tax_returns","partnership_agreement","certificate_of_good_standing","formation_document","proof_of_place_on_stock_exchange","name_certificate"],"example":"drivers_license","description":"The entity's government-verified identification document type. This will apply for identification types other than US tax identification.\n- For `individual` entity, possible types are: `drivers_license`, `state_or_provincial_id`, `passport`, `permanent_residency_id`, `military_id`, `national_id`, `matriculate_id`, `other`. Note that `national_id` and `matriculate_id` are not applicable for `us_entity`.\n- For `business` entity, possible types are: `tax_certificate`, `tax_returns`, `partnership_agreement`, `certificate_of_good_standing`, `formation_document`, `proof_of_place_on_stock_exchange`, `other`.\n- For `sole_prop` entity, possible types are: `tax_certificate`, `tax_returns`, `name_certificate`, `drivers_license`, `state_or_provincial_id`, `passport`, `permanent_residency_id`, `military_id`, `national_id`, `matriculate_id`, `other`. Note that `national_id` and `matriculate_id` are not applicable for `us_entity`.\n","isRequired":true,"uniqueKey":"oneOf.2.identification.oneOf.1.legacy_documents.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"identification_number":{"type":"string","description":"The number on the document.","isRequired":true,"uniqueKey":"oneOf.2.identification.oneOf.1.legacy_documents.items.[INDEX].identification_number","typeLabel":"string"},"issuing_country":{"type":"string","description":"Issuing country, as an ISO 3166-1 alpha-2 code, returned in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.2.identification.oneOf.1.legacy_documents.items.[INDEX].issuing_country","typeLabel":"enum\u003cstring>"},"client_document_id":{"type":"string","description":"Your ID for the document, named for the Customer-file property it mirrors (a legacy file-era identifier, like `client_customer_id`).","uniqueKey":"oneOf.2.identification.oneOf.1.legacy_documents.items.[INDEX].client_document_id","typeLabel":"string"},"description":{"type":"string","description":"Description of the document, sent on v0 with type `other`.","uniqueKey":"oneOf.2.identification.oneOf.1.legacy_documents.items.[INDEX].description","typeLabel":"string"},"expiration_date":{"type":"string","format":"date","description":"Expiration date of the document.","uniqueKey":"oneOf.2.identification.oneOf.1.legacy_documents.items.[INDEX].expiration_date","typeLabel":"string\u003cdate>"},"issuing_state":{"type":"string","description":"Issuing state, as a two-letter code.","uniqueKey":"oneOf.2.identification.oneOf.1.legacy_documents.items.[INDEX].issuing_state","typeLabel":"string"}},"uniqueKey":"oneOf.2.identification.oneOf.1.legacy_documents.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.2.identification.oneOf.1.legacy_documents","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"oneOf.2.identification.oneOf.1","typeLabel":"Non US Entity · object"}],"isRequired":true,"uniqueKey":"oneOf.2.identification","typeLabel":"US Entity · object | Non US Entity · object"},"additional_documents":{"type":"array","example":[{"file_id":"file_X5jD8hN2sQ6yFb1Gt9Ka"},{"type":"financial_statement"}],"description":"Supporting documents, one entry per document. Each entry takes either a `file_id` or a `type`, not both. The array you send replaces the stored array, and Lead checks every `file_id` in it again. You don't need to confirm KYC again when you change documents.","items":{"type":"object","description":"A supporting document. Send exactly one of `file_id` or `type`; both returns `422 parameters_invalid` (`parameters_mutually_exclusive`), and neither returns it with `parameter_group_empty`. With a `file_id`, Lead takes the type from the file and the response omits `type`. Retrieve it with `GET /v2/files/{file_id}`.","properties":{"file_id":{"type":"string","pattern":"^file_\\w+$","description":"A file ID from `POST /v2/files`. Send `file_id` or `type`, not both. When you send only a `file_id`, Lead determines the document type from the file. Retrieve that type with `GET /v2/files/{file_id}`. The file must exist, belong to your program, and have a type this entry accepts. Send each `file_id` only once per entity. You can still link several files of the same type, and link one file to other entities.","example":"file_7RwQ2mK9pL4xT1vN8jS5","uniqueKey":"oneOf.2.additional_documents.items.[INDEX].file_id","typeLabel":"string"},"type":{"type":"string","enum":["adverse_media","bank_statement","financial_statement","id_selfie","inheritance_letter","investigation_report","investment_record","public_record","salary_verification_letter","sale_agreement","social_security_card","utility_bill"],"example":"bank_statement","description":"The supporting document type, when you do not link a file. Send `file_id` or `type`, not both.\nEvery entity type accepts every value of this enum.\n","uniqueKey":"oneOf.2.additional_documents.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.2.additional_documents.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.2.additional_documents","typeLabel":"object[]"},"legacy_additional_documents":{"type":"array","example":[{"client_document_id":"2026_01_02_statement","type":"bank_statement","description":"Bank statement for January"}],"description":"Additional document entries created on v0 Entities, returned as sent. Read only: ignored if included on a POST or PATCH.","items":{"type":"object","description":"An additional document entry created on a v0 Entity.","required":["type"],"properties":{"type":{"type":"string","enum":["bank_statement","utility_bills","proof_of_address","investigation_report","financial_statement","public_records","adverse_media","id_selfie","other"],"example":"bank_statement","description":"Type of additional non-government documents being provided to verify entity. Possible values are `bank_statement`, `utility_bills`, `proof_of_address`, `investigation_report`, `financial_statement`, `public_records`, `adverse_media`, `id_selfie`, `other`.","isRequired":true,"uniqueKey":"oneOf.2.legacy_additional_documents.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"client_document_id":{"type":"string","description":"Your ID for the document, named for the Customer-file property it mirrors (a legacy file-era identifier, like `client_customer_id`).","uniqueKey":"oneOf.2.legacy_additional_documents.items.[INDEX].client_document_id","typeLabel":"string"},"description":{"type":"string","description":"Description of the document, sent on v0 with type `other`.","uniqueKey":"oneOf.2.legacy_additional_documents.items.[INDEX].description","typeLabel":"string"}},"uniqueKey":"oneOf.2.legacy_additional_documents.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.2.legacy_additional_documents","typeLabel":"object[]"},"sole_proprietor_entity_id":{"type":"string","description":"The `entity_id` of the individual who owns the sole proprietorship.","example":"entity_xyz123","pattern":"^entity_[^\\s]{1,33}$","isRequired":true,"uniqueKey":"oneOf.2.sole_proprietor_entity_id","typeLabel":"string"},"credit_reports":{"type":"array","description":"Credit reports from credit bureaus on the entity.","items":{"type":"object","description":"Credit report information. Exactly one of `score` or `no_score_reason` must be provided; `pulled_at` and `source` are always required when a credit report is supplied.\n","required":["pulled_at","source"],"properties":{"pulled_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp when the credit report was pulled.","example":"2026-11-02T14:00:00Z","isRequired":true,"uniqueKey":"oneOf.2.credit_reports.items.[INDEX].pulled_at","typeLabel":"string\u003cdate-time>"},"source":{"type":"string","enum":["equifax","experian","transunion"],"example":"equifax","description":"Credit bureau that issued the report.","isRequired":true,"uniqueKey":"oneOf.2.credit_reports.items.[INDEX].source","typeLabel":"enum\u003cstring>"},"score":{"type":"integer","description":"A credit score returned by the bureau, from 300 to 850.","minimum":300,"maximum":850,"example":712,"uniqueKey":"oneOf.2.credit_reports.items.[INDEX].score","typeLabel":"integer"},"no_score_reason":{"type":"string","enum":["unestablished","frozen"],"example":"unestablished","description":"Indicates the state of a credit file when a numeric score is not available. Mutually exclusive with `score`.","uniqueKey":"oneOf.2.credit_reports.items.[INDEX].no_score_reason","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.2.credit_reports.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.2.credit_reports","typeLabel":"object[]"},"intended_eligibility":{"type":"array","items":{"type":"string","enum":["account_holder","minor_account_holder","authorized_signer","authorized_user"],"example":"account_holder","description":"A relationship type an entity can hold.\n* `account_holder`: Full control of, and legal responsibility for, the account.\n* `minor_account_holder`: An individual aged 16 or 17 with account holder eligibility.\n* `authorized_signer`: An individual allowed to sign on behalf of the account holder, without legal responsibility.\n* `authorized_user`: An individual with restricted access to the account, without legal responsibility.\n","uniqueKey":"oneOf.2.intended_eligibility.items.[INDEX]","typeLabel":"enum\u003cstring>"},"example":["account_holder"],"description":"The relationship types you intend this entity to hold. When you send it, Lead checks the entity's data against every listed type and rejects the request with `422 parameters_invalid` if any fails. The check is all or nothing, and the error returns every failing check, not just the first. Listing fewer types than the entity qualifies for still succeeds, and `eligibility` shows everything it qualifies for.\n\nIf the check passes, Lead saves the list and returns it on the entity. On a `PATCH`, Lead checks the entity as it would be after the update, against the list you send or, if you leave the field out, the saved list. Send an empty array to clear the saved list; no check runs.\n","isRequired":true,"uniqueKey":"oneOf.2.intended_eligibility","typeLabel":"enum\u003cstring>[]"},"eligibility":{"type":"object","description":"Whether the entity's current data qualifies it for each relationship type, with the failing checks. Response only. Lead computes it from current data on every read and never stores it. All four keys are always present. On a program that does not offer minor account holders, `minor_account_holder` is `ineligible` for every entity.","required":["account_holder","minor_account_holder","authorized_signer","authorized_user"],"properties":{"account_holder":{"type":"object","required":["result","failed_checks"],"properties":{"result":{"type":"string","enum":["eligible","ineligible"],"example":"eligible","description":"Whether the entity's current data qualifies it for the relationship type.","isRequired":true,"uniqueKey":"oneOf.2.eligibility.account_holder.result","typeLabel":"enum\u003cstring>"},"failed_checks":{"type":"array","description":"The checks the entity fails for this relationship type. Empty when `result` is `eligible`.","items":{"type":"object","required":["check","entity_id","details"],"properties":{"check":{"type":"string","example":"check_kyc_status","description":"The name of the failing check. When an `intended_eligibility` assertion fails, the `422` has an `eligibility_check_failed` error for each failed check and listed relationship type. Lead may add checks, so handle names you do not recognize. Current checks:\n- Identity and contact: `check_first_name`, `check_last_name`, `check_date_of_birth`, `check_date_of_birth_missing`, `check_date_of_birth_below_minimum`, `check_date_of_birth_above_maximum`, `check_phone_or_email`, `check_physical_address`, `check_government_id`.\n- Business: `check_business_name`, `check_business_type`, `check_business_industry`, `check_control_person_exists`, `check_child_entity_not_found`.\n- Screening and risk: `check_kyc_status`, `check_ofac`, `check_risk_score`, `check_manual_review_status` (a manual review of the entity is pending).\n- Relationship type: `check_individual_entity` (only individuals can hold `minor_account_holder`, `authorized_signer`, and `authorized_user`), `check_minor_account_holder_enabled` (your program is not approved for minor account holders).\n- Stored data: `invalid_entity` (the entity's stored data fails Lead's current validations, which can happen to an older entity when rules change).\n\nSee [Eligibility](https://docs.lead.bank/v2/products/entity/eligibility).","isRequired":true,"uniqueKey":"oneOf.2.eligibility.account_holder.failed_checks.items.[INDEX].check","typeLabel":"string"},"entity_id":{"type":"string","description":"The entity whose data failed the check. A business or sole proprietorship fails when a linked individual fails, and the check then points at that individual's `entity_id`.","example":"entity_xyz123","pattern":"^entity_[^\\s]{1,33}$","isRequired":true,"uniqueKey":"oneOf.2.eligibility.account_holder.failed_checks.items.[INDEX].entity_id","typeLabel":"string"},"details":{"type":"string","example":"KYC must be passed. Update kyc.result and kyc.screened_at on entity_xyz123.","description":"A human-readable explanation of the failure and how to fix it. Not part of the API contract, so do not parse it. It may change without notice.","isRequired":true,"uniqueKey":"oneOf.2.eligibility.account_holder.failed_checks.items.[INDEX].details","typeLabel":"string"}},"uniqueKey":"oneOf.2.eligibility.account_holder.failed_checks.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.2.eligibility.account_holder.failed_checks","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"oneOf.2.eligibility.account_holder","typeLabel":"object"},"minor_account_holder":{"type":"object","required":["result","failed_checks"],"properties":{"result":{"type":"string","enum":["eligible","ineligible"],"example":"eligible","description":"Whether the entity's current data qualifies it for the relationship type.","isRequired":true,"uniqueKey":"oneOf.2.eligibility.minor_account_holder.result","typeLabel":"enum\u003cstring>"},"failed_checks":{"type":"array","description":"The checks the entity fails for this relationship type. Empty when `result` is `eligible`.","items":{"type":"object","required":["check","entity_id","details"],"properties":{"check":{"type":"string","example":"check_kyc_status","description":"The name of the failing check. When an `intended_eligibility` assertion fails, the `422` has an `eligibility_check_failed` error for each failed check and listed relationship type. Lead may add checks, so handle names you do not recognize. Current checks:\n- Identity and contact: `check_first_name`, `check_last_name`, `check_date_of_birth`, `check_date_of_birth_missing`, `check_date_of_birth_below_minimum`, `check_date_of_birth_above_maximum`, `check_phone_or_email`, `check_physical_address`, `check_government_id`.\n- Business: `check_business_name`, `check_business_type`, `check_business_industry`, `check_control_person_exists`, `check_child_entity_not_found`.\n- Screening and risk: `check_kyc_status`, `check_ofac`, `check_risk_score`, `check_manual_review_status` (a manual review of the entity is pending).\n- Relationship type: `check_individual_entity` (only individuals can hold `minor_account_holder`, `authorized_signer`, and `authorized_user`), `check_minor_account_holder_enabled` (your program is not approved for minor account holders).\n- Stored data: `invalid_entity` (the entity's stored data fails Lead's current validations, which can happen to an older entity when rules change).\n\nSee [Eligibility](https://docs.lead.bank/v2/products/entity/eligibility).","isRequired":true,"uniqueKey":"oneOf.2.eligibility.minor_account_holder.failed_checks.items.[INDEX].check","typeLabel":"string"},"entity_id":{"type":"string","description":"The entity whose data failed the check. A business or sole proprietorship fails when a linked individual fails, and the check then points at that individual's `entity_id`.","example":"entity_xyz123","pattern":"^entity_[^\\s]{1,33}$","isRequired":true,"uniqueKey":"oneOf.2.eligibility.minor_account_holder.failed_checks.items.[INDEX].entity_id","typeLabel":"string"},"details":{"type":"string","example":"KYC must be passed. Update kyc.result and kyc.screened_at on entity_xyz123.","description":"A human-readable explanation of the failure and how to fix it. Not part of the API contract, so do not parse it. It may change without notice.","isRequired":true,"uniqueKey":"oneOf.2.eligibility.minor_account_holder.failed_checks.items.[INDEX].details","typeLabel":"string"}},"uniqueKey":"oneOf.2.eligibility.minor_account_holder.failed_checks.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.2.eligibility.minor_account_holder.failed_checks","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"oneOf.2.eligibility.minor_account_holder","typeLabel":"object"},"authorized_signer":{"type":"object","required":["result","failed_checks"],"properties":{"result":{"type":"string","enum":["eligible","ineligible"],"example":"eligible","description":"Whether the entity's current data qualifies it for the relationship type.","isRequired":true,"uniqueKey":"oneOf.2.eligibility.authorized_signer.result","typeLabel":"enum\u003cstring>"},"failed_checks":{"type":"array","description":"The checks the entity fails for this relationship type. Empty when `result` is `eligible`.","items":{"type":"object","required":["check","entity_id","details"],"properties":{"check":{"type":"string","example":"check_kyc_status","description":"The name of the failing check. When an `intended_eligibility` assertion fails, the `422` has an `eligibility_check_failed` error for each failed check and listed relationship type. Lead may add checks, so handle names you do not recognize. Current checks:\n- Identity and contact: `check_first_name`, `check_last_name`, `check_date_of_birth`, `check_date_of_birth_missing`, `check_date_of_birth_below_minimum`, `check_date_of_birth_above_maximum`, `check_phone_or_email`, `check_physical_address`, `check_government_id`.\n- Business: `check_business_name`, `check_business_type`, `check_business_industry`, `check_control_person_exists`, `check_child_entity_not_found`.\n- Screening and risk: `check_kyc_status`, `check_ofac`, `check_risk_score`, `check_manual_review_status` (a manual review of the entity is pending).\n- Relationship type: `check_individual_entity` (only individuals can hold `minor_account_holder`, `authorized_signer`, and `authorized_user`), `check_minor_account_holder_enabled` (your program is not approved for minor account holders).\n- Stored data: `invalid_entity` (the entity's stored data fails Lead's current validations, which can happen to an older entity when rules change).\n\nSee [Eligibility](https://docs.lead.bank/v2/products/entity/eligibility).","isRequired":true,"uniqueKey":"oneOf.2.eligibility.authorized_signer.failed_checks.items.[INDEX].check","typeLabel":"string"},"entity_id":{"type":"string","description":"The entity whose data failed the check. A business or sole proprietorship fails when a linked individual fails, and the check then points at that individual's `entity_id`.","example":"entity_xyz123","pattern":"^entity_[^\\s]{1,33}$","isRequired":true,"uniqueKey":"oneOf.2.eligibility.authorized_signer.failed_checks.items.[INDEX].entity_id","typeLabel":"string"},"details":{"type":"string","example":"KYC must be passed. Update kyc.result and kyc.screened_at on entity_xyz123.","description":"A human-readable explanation of the failure and how to fix it. Not part of the API contract, so do not parse it. It may change without notice.","isRequired":true,"uniqueKey":"oneOf.2.eligibility.authorized_signer.failed_checks.items.[INDEX].details","typeLabel":"string"}},"uniqueKey":"oneOf.2.eligibility.authorized_signer.failed_checks.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.2.eligibility.authorized_signer.failed_checks","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"oneOf.2.eligibility.authorized_signer","typeLabel":"object"},"authorized_user":{"type":"object","required":["result","failed_checks"],"properties":{"result":{"type":"string","enum":["eligible","ineligible"],"example":"eligible","description":"Whether the entity's current data qualifies it for the relationship type.","isRequired":true,"uniqueKey":"oneOf.2.eligibility.authorized_user.result","typeLabel":"enum\u003cstring>"},"failed_checks":{"type":"array","description":"The checks the entity fails for this relationship type. Empty when `result` is `eligible`.","items":{"type":"object","required":["check","entity_id","details"],"properties":{"check":{"type":"string","example":"check_kyc_status","description":"The name of the failing check. When an `intended_eligibility` assertion fails, the `422` has an `eligibility_check_failed` error for each failed check and listed relationship type. Lead may add checks, so handle names you do not recognize. Current checks:\n- Identity and contact: `check_first_name`, `check_last_name`, `check_date_of_birth`, `check_date_of_birth_missing`, `check_date_of_birth_below_minimum`, `check_date_of_birth_above_maximum`, `check_phone_or_email`, `check_physical_address`, `check_government_id`.\n- Business: `check_business_name`, `check_business_type`, `check_business_industry`, `check_control_person_exists`, `check_child_entity_not_found`.\n- Screening and risk: `check_kyc_status`, `check_ofac`, `check_risk_score`, `check_manual_review_status` (a manual review of the entity is pending).\n- Relationship type: `check_individual_entity` (only individuals can hold `minor_account_holder`, `authorized_signer`, and `authorized_user`), `check_minor_account_holder_enabled` (your program is not approved for minor account holders).\n- Stored data: `invalid_entity` (the entity's stored data fails Lead's current validations, which can happen to an older entity when rules change).\n\nSee [Eligibility](https://docs.lead.bank/v2/products/entity/eligibility).","isRequired":true,"uniqueKey":"oneOf.2.eligibility.authorized_user.failed_checks.items.[INDEX].check","typeLabel":"string"},"entity_id":{"type":"string","description":"The entity whose data failed the check. A business or sole proprietorship fails when a linked individual fails, and the check then points at that individual's `entity_id`.","example":"entity_xyz123","pattern":"^entity_[^\\s]{1,33}$","isRequired":true,"uniqueKey":"oneOf.2.eligibility.authorized_user.failed_checks.items.[INDEX].entity_id","typeLabel":"string"},"details":{"type":"string","example":"KYC must be passed. Update kyc.result and kyc.screened_at on entity_xyz123.","description":"A human-readable explanation of the failure and how to fix it. Not part of the API contract, so do not parse it. It may change without notice.","isRequired":true,"uniqueKey":"oneOf.2.eligibility.authorized_user.failed_checks.items.[INDEX].details","typeLabel":"string"}},"uniqueKey":"oneOf.2.eligibility.authorized_user.failed_checks.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.2.eligibility.authorized_user.failed_checks","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"oneOf.2.eligibility.authorized_user","typeLabel":"object"}},"example":{"account_holder":{"result":"eligible","failed_checks":[]},"minor_account_holder":{"result":"ineligible","failed_checks":[{"check":"check_date_of_birth_above_maximum","entity_id":"entity_xyz123","details":"The entity exceeds the maximum age for minor_account_holder."}]},"authorized_signer":{"result":"eligible","failed_checks":[]},"authorized_user":{"result":"eligible","failed_checks":[]}},"isRequired":true,"uniqueKey":"oneOf.2.eligibility","typeLabel":"object"},"metadata":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"oneOf.2.metadata.additionalProperties","typeLabel":"string"},"description":"A set of key-value pairs that can be used to store additional information related to this object.","isRequired":true,"uniqueKey":"oneOf.2.metadata","typeLabel":"object"},"client_customer_id":{"type":"string","description":"Your customer ID, on entities created through Customer files. Response only. Lead ignores it if sent, and does not return it on entities created with `POST /v2/entities`.","uniqueKey":"oneOf.2.client_customer_id","typeLabel":"string"},"doing_business_as":{"type":"string","description":"The name the business operates under, if it differs from its legal name.","uniqueKey":"oneOf.2.doing_business_as","typeLabel":"string"},"legal_structure":{"type":"string","enum":["corporation","partnership","sole_prop","llc","trust","cooperative","other"],"example":"llc","description":"The business's legal structure.","uniqueKey":"oneOf.2.legal_structure","typeLabel":"enum\u003cstring>"},"website":{"type":"string","description":"The website of the business.","uniqueKey":"oneOf.2.website","typeLabel":"string"},"gross_annual_revenue":{"type":"integer","format":"int64","minimum":0,"description":"The business's gross revenue for the prior fiscal year, as an integer in the ISO 4217 minor units of `currency`, like cents for USD.","example":125000000,"uniqueKey":"oneOf.2.gross_annual_revenue","typeLabel":"integer\u003cint64>"},"currency":{"type":"string","description":"The currency of `gross_annual_revenue`, as an ISO 4217 code.","example":"USD","enum":["AED","AFN","ALL","AMD","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNH","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GGP","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HTG","HUF","IDR","ILS","IMP","INR","IQD","IRR","ISK","JEP","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLE","SOS","SRD","SSP","STD","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VED","VES","VND","VUV","WST","XAD","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XCG","XDR","XMW","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWG"],"uniqueKey":"oneOf.2.currency","typeLabel":"enum\u003cstring>"},"physical_address":{"type":"object","required":["line_1","city","country"],"properties":{"line_1":{"type":"string","maxLength":500,"description":"Address line 1 is the required primary street-address field. It must contain the full base address needed to identify the physical location, such as the street number and street name together, or the closest local equivalent in countries where addresses do not use that exact structure.\n\nUse address line 1 for all core location details that describe the main property or thoroughfare. Regardless of how each component of an address is collected from your end-users, they must be combined into address line 1 before sending to Lead.\n\nDo not:\n- split the primary street address across line 1 and line 2\n- put only the street number in line 1 and the street name in line 2\n- pad line 1 with false or altered data to pass validation","example":"123 Main St.","isRequired":true,"uniqueKey":"oneOf.2.physical_address.line_1","typeLabel":"string"},"city":{"type":"string","maxLength":500,"description":"City.","example":"Denver","isRequired":true,"uniqueKey":"oneOf.2.physical_address.city","typeLabel":"string"},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code. Lead accepts lowercase and returns it in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.2.physical_address.country","typeLabel":"enum\u003cstring>"},"line_2":{"type":"string","maxLength":500,"description":"Address line 2 is optional. Use it only for secondary or sub-premise information, such as:\n- apartment\n- unit\n- suite\n- floor\n- building\n- care of or attention\n\nIf there is no secondary or sub-premise information, leave address line 2 out.\n\nDo not use address line 2 for any part of the primary street address.","example":"Apt 25","uniqueKey":"oneOf.2.physical_address.line_2","typeLabel":"string"},"postal_code":{"type":"string","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014","uniqueKey":"oneOf.2.physical_address.postal_code","typeLabel":"string"},"state":{"type":"string","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO","uniqueKey":"oneOf.2.physical_address.state","typeLabel":"string"}},"description":"The business's physical address.","uniqueKey":"oneOf.2.physical_address","typeLabel":"object"},"mailing_address":{"type":"object","required":["line_1","city","country"],"properties":{"line_1":{"type":"string","maxLength":500,"description":"Address line 1 is the required primary street-address field. It must contain the full base address needed to identify the physical location, such as the street number and street name together, or the closest local equivalent in countries where addresses do not use that exact structure.\n\nUse address line 1 for all core location details that describe the main property or thoroughfare. Regardless of how each component of an address is collected from your end-users, they must be combined into address line 1 before sending to Lead.\n\nDo not:\n- split the primary street address across line 1 and line 2\n- put only the street number in line 1 and the street name in line 2\n- pad line 1 with false or altered data to pass validation","example":"123 Main St.","isRequired":true,"uniqueKey":"oneOf.2.mailing_address.line_1","typeLabel":"string"},"city":{"type":"string","maxLength":500,"description":"City.","example":"Denver","isRequired":true,"uniqueKey":"oneOf.2.mailing_address.city","typeLabel":"string"},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code. Lead accepts lowercase and returns it in uppercase.","example":"US","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"isRequired":true,"uniqueKey":"oneOf.2.mailing_address.country","typeLabel":"enum\u003cstring>"},"line_2":{"type":"string","maxLength":500,"description":"Address line 2 is optional. Use it only for secondary or sub-premise information, such as:\n- apartment\n- unit\n- suite\n- floor\n- building\n- care of or attention\n\nIf there is no secondary or sub-premise information, leave address line 2 out.\n\nDo not use address line 2 for any part of the primary street address.","example":"Apt 25","uniqueKey":"oneOf.2.mailing_address.line_2","typeLabel":"string"},"postal_code":{"type":"string","maxLength":500,"description":"Postal code. Required for US addresses, written as `12345`, `12345-6789`, or `12345 6789`.","example":"80014","uniqueKey":"oneOf.2.mailing_address.postal_code","typeLabel":"string"},"state":{"type":"string","maxLength":500,"description":"State. Required for US addresses, as a two-letter code, for example `NY`.","example":"CO","uniqueKey":"oneOf.2.mailing_address.state","typeLabel":"string"}},"description":"The business's mailing address.","uniqueKey":"oneOf.2.mailing_address","typeLabel":"object"},"risk_score":{"type":"string","enum":["low","medium","high"],"example":"low","description":"The entity's risk score. You map your own risk scores to these values and give Lead the mapping.","uniqueKey":"oneOf.2.risk_score","typeLabel":"enum\u003cstring>"},"kyc":{"type":"object","description":"Your KYC check of the entity.","required":["screened_at"],"properties":{"screened_at":{"type":"string","format":"date-time","description":"When you ran the KYC check, in UTC to the second.","example":"2026-11-07T05:31:56Z","isRequired":true,"uniqueKey":"oneOf.2.kyc.screened_at","typeLabel":"string\u003cdate-time>"},"result":{"type":"string","enum":["passed","failed"],"example":"passed","description":"The result of your KYC check, `passed` or `failed`. Absent when the stored result is `pending`, a value that v2 doesn't accept.","uniqueKey":"oneOf.2.kyc.result","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.2.kyc","typeLabel":"object"},"ofac":{"type":"object","description":"Your OFAC screen of the entity.","required":["screened_at"],"properties":{"screened_at":{"type":"string","format":"date-time","description":"When you ran the OFAC screen, in UTC to the second.","example":"2026-11-07T05:31:56Z","isRequired":true,"uniqueKey":"oneOf.2.ofac.screened_at","typeLabel":"string\u003cdate-time>"},"result":{"type":"string","enum":["passed","failed"],"example":"passed","description":"The result of your OFAC screen, `passed` or `failed`. Absent when the stored result is `pending`, a value that v2 doesn't accept.","uniqueKey":"oneOf.2.ofac.result","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.2.ofac","typeLabel":"object"},"rfi":{"type":"object","description":"Your request for information (RFI) to your customer.","required":["stage","requested_at"],"properties":{"stage":{"type":"string","enum":["requested","completed"],"example":"completed","description":"The stage of your request for information (RFI) to your customer.\n* `requested`: You sent the RFI and are waiting for the answer.\n* `completed`: Your customer answered the RFI.\n","isRequired":true,"uniqueKey":"oneOf.2.rfi.stage","typeLabel":"enum\u003cstring>"},"requested_at":{"type":"string","format":"date-time","description":"When you sent the RFI. It can't be in the future. Lead stores it in UTC, to the second.","example":"2026-11-07T05:31:56Z","isRequired":true,"uniqueKey":"oneOf.2.rfi.requested_at","typeLabel":"string\u003cdate-time>"},"completed_at":{"type":"string","format":"date-time","description":"When your customer answered the RFI. Send it when `status` is `completed`. Lead stores it in UTC, to the second.","example":"2026-11-09T05:31:56Z","uniqueKey":"oneOf.2.rfi.completed_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"oneOf.2.rfi","typeLabel":"object"}},"uniqueKey":"oneOf.2","typeLabel":"Sole Prop · object"}],"uniqueKey":"","typeLabel":"Individual · object | Business · object | Sole Prop · object"},"examples":{"Example":{"title":"Example","value":{"id":"entity_xyz123","type":"individual","created_at":"2026-11-07T05:31:56Z","first_name":"\u003cstring>","last_name":"\u003cstring>","contact_methods":[{"type":"email","email":"abc@gmail.com"}],"other_addresses":[{"line_1":"123 Main St.","city":"Denver","country":"US","line_2":"Apt 25","postal_code":"80014","state":"CO"}],"identification":{"type":"us_entity","documents":[{"file_id":"file_7Tq4mR9vKx2LpW8nZc3B","identification_number":"X1234567","issuing_country":"GB","expiration_date":"2030-06-01"},{"type":"passport","identification_number":"X7654321","issuing_country":"GB","expiration_date":"2031-01-15"}],"legacy_documents":[{"client_document_id":"passport_jane_doe.pdf","type":"passport","identification_number":"X1234567","issuing_country":"GB","expiration_date":"2026-06-01"}],"tax_identification":{"type":"ssn","value":"\u003cstring>"}},"additional_documents":[{"file_id":"file_X5jD8hN2sQ6yFb1Gt9Ka"},{"type":"financial_statement"}],"legacy_additional_documents":[{"client_document_id":"2026_01_02_statement","type":"bank_statement","description":"Bank statement for January"}],"credit_reports":[{"pulled_at":"2026-11-02T14:00:00Z","source":"equifax","score":712,"no_score_reason":"unestablished"}],"intended_eligibility":["account_holder"],"eligibility":{"account_holder":{"result":"eligible","failed_checks":[]},"minor_account_holder":{"result":"ineligible","failed_checks":[{"check":"check_date_of_birth_above_maximum","entity_id":"entity_xyz123","details":"The entity exceeds the maximum age for minor_account_holder."}]},"authorized_signer":{"result":"eligible","failed_checks":[]},"authorized_user":{"result":"eligible","failed_checks":[]}},"metadata":{},"client_customer_id":"\u003cstring>","preferred_first_name":"\u003cstring>","middle_name":"\u003cstring>","date_of_birth":"2002-02-15","occupation":"\u003cstring>","physical_address":{"line_1":"123 Main St.","city":"Denver","country":"US","line_2":"Apt 25","postal_code":"80014","state":"CO"},"mailing_address":{"line_1":"123 Main St.","city":"Denver","country":"US","line_2":"Apt 25","postal_code":"80014","state":"CO"},"risk_score":"low","kyc":{"screened_at":"2026-11-07T05:31:56Z","result":"passed"},"ofac":{"screened_at":"2026-11-07T05:31:56Z","result":"passed"},"rfi":{"stage":"completed","requested_at":"2026-11-07T05:31:56Z","completed_at":"2026-11-09T05:31:56Z"}}}},"exampleType":"generated"}},"exampleType":"generated"},"3d026562-7a84-4ece-a7b2-2c3cc28494a9":{"description":"Error. The response body is an Error object; `code` identifies the error family and `errors` lists field-level detail where applicable. See the Errors guide for the full list of codes per status.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"A snake_case code identifying the error family — the stable, machine-readable value partners branch on, together with the HTTP status.","example":"parameters_invalid","enum":["request_malformed","content_too_large","headers_invalid","unsupported_media_type","authentication_missing","token_invalid","source_ip_not_permitted","client_credentials_invalid","url_invalid","object_not_found","method_not_allowed","idempotency_key_in_use","idempotency_request_mismatched","rate_limit_exceeded","internal_server_error","service_unavailable","endpoint_disabled","gateway_timeout","parameters_invalid","related_object_invalid","related_object_not_ready","related_object_incompatible","limit_exceeded","partner_control_restricted","lead_control_restricted","object_state_mismatched","object_modified_concurrently","operation_invalid"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"A human-readable description of the error family. Identical for every occurrence of a given `code`; carries no request-specific detail.","example":"One or more parameters are invalid. See errors for each one.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"errors":{"type":"array","description":"Zero or more specific errors within this family. Always present for validation errors, one entry per failing field.","items":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"A snake_case code naming the specific error or sub-category.","example":"schema_violation","isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","description":"A human-readable description of this specific error, with interpolated values where relevant.","example":"account_number_id is required.","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"},"parameters":{"type":"array","description":"The request fields that caused this error, as `jq` paths without the leading dot. For example, a nested field is `address.city` and an array item is `beneficial_owners[1].ownership`. A key with characters other than letters, digits, and underscores is JSON-quoted, like `metadata[\"order.id\"]`. Headers appear by name, like `Idempotency-Key`. Present for validation errors.","items":{"type":"string","uniqueKey":"errors.items.[INDEX].parameters.items.[INDEX]","typeLabel":"string"},"example":["account_number_id"],"uniqueKey":"errors.items.[INDEX].parameters","typeLabel":"string[]"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"authentication_missing","message":"The request has no authentication credentials. Send your API token in the Authorization header.","errors":[{"code":"authentication_missing","message":"The Authorization header is missing. Send your API token as a bearer token.","parameters":["Authorization"]}]},"examples":{"Example":{"title":"Example","value":{"code":"authentication_missing","message":"The request has no authentication credentials. Send your API token in the Authorization header.","errors":[{"code":"authentication_missing","message":"The Authorization header is missing. Send your API token as a bearer token.","parameters":["Authorization"]}]}}},"exampleType":"examples"}},"exampleType":"examples"},"1178e2d3-d5f1-4dc0-9b3d-b70524f369dd":{"description":"Server error. The response body is an Error object; `code` identifies the error family. See the Errors guide for the full list of codes per status.","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"A snake_case code identifying the error family — the stable, machine-readable value partners branch on, together with the HTTP status.","example":"parameters_invalid","enum":["request_malformed","content_too_large","headers_invalid","unsupported_media_type","authentication_missing","token_invalid","source_ip_not_permitted","client_credentials_invalid","url_invalid","object_not_found","method_not_allowed","idempotency_key_in_use","idempotency_request_mismatched","rate_limit_exceeded","internal_server_error","service_unavailable","endpoint_disabled","gateway_timeout","parameters_invalid","related_object_invalid","related_object_not_ready","related_object_incompatible","limit_exceeded","partner_control_restricted","lead_control_restricted","object_state_mismatched","object_modified_concurrently","operation_invalid"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"A human-readable description of the error family. Identical for every occurrence of a given `code`; carries no request-specific detail.","example":"One or more parameters are invalid. See errors for each one.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"errors":{"type":"array","description":"Zero or more specific errors within this family. Always present for validation errors, one entry per failing field.","items":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"A snake_case code naming the specific error or sub-category.","example":"schema_violation","isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","description":"A human-readable description of this specific error, with interpolated values where relevant.","example":"account_number_id is required.","isRequired":true,"uniqueKey":"errors.items.[INDEX].message","typeLabel":"string"},"parameters":{"type":"array","description":"The request fields that caused this error, as `jq` paths without the leading dot. For example, a nested field is `address.city` and an array item is `beneficial_owners[1].ownership`. A key with characters other than letters, digits, and underscores is JSON-quoted, like `metadata[\"order.id\"]`. Headers appear by name, like `Idempotency-Key`. Present for validation errors.","items":{"type":"string","uniqueKey":"errors.items.[INDEX].parameters.items.[INDEX]","typeLabel":"string"},"example":["account_number_id"],"uniqueKey":"errors.items.[INDEX].parameters","typeLabel":"string[]"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"internal_server_error","message":"Internal server error. Retry with exponential backoff. For a POST, PATCH or DELETE, reuse the same Idempotency-Key so the request isn't processed twice. If it keeps failing, contact Lead with the Lead-Request-ID."},"examples":{"Example":{"title":"Example","value":{"code":"internal_server_error","message":"Internal server error. Retry with exponential backoff. For a POST, PATCH or DELETE, reuse the same Idempotency-Key so the request isn't processed twice. If it keeps failing, contact Lead with the Lead-Request-ID."}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"59c984ce-872d-47c2-b811-f78a1900472d":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"27678d07-3b28-4b25-867d-1e4e882694f8":{"url":"https://api.sandbox.lead.bank"},"16aaf037-6df8-4238-beb3-66f996c517b6":{"url":"https://api.lead.bank"}},"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":"openapi.json"},"subdomain":"lead","siteName":"Lead | API Docs","title":"Update an Entity - Lead | API Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"v1":{"href":"/get-started/what-is-lead","matchLevel":4},"v2":{"href":"/api-reference/endpoint/entity/update-an-entity-v2","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-12-03T19:33:37.143Z","originalFileLocation":"api-reference/endpoint/entity/update-an-entity-v2.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Update an individual, business, or sole_prop Entity. Some changes need a fresh KYC attestation. See Create and update for which changes need one and how PATCH handles each field. A field sent as null clears the stored value. This applies to preferred_first_name, middle_name, date_of_birth, occupation, doing_business_as, website and gross_annual_revenue, to physical_address and mailing_address (which removes that address), and to line_2, state and postal_code inside an address. The updated entity is then checked like any other update: clearing date_of_birth needs kyc with a later screened_at in the same request, and the entity must still meet intended_eligibility. Every other field can\u0026#x27;t be null, including type, first_name, last_name, name, identification, sole_proprietor_entity_id, legal_structure, currency, risk_score, kyc, ofac, rfi, metadata, the arrays, an address\u0026#x27;s line_1, city and country, and the fields inside identification, kyc, ofac, rfi and each array entry. Sending one as null returns 422 parameters_invalid; send a new value instead, or [] to empty an array. Clearing needs a literal null in the JSON body; a client that leaves out unset fields can\u0026#x27;t clear them.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Lead | API Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lead/A4oS57fRsEfS3qru/_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/lead/A4oS57fRsEfS3qru/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lead/A4oS57fRsEfS3qru/_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/lead/A4oS57fRsEfS3qru/_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/lead/A4oS57fRsEfS3qru/_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/lead/A4oS57fRsEfS3qru/_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/lead/A4oS57fRsEfS3qru/_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/lead/A4oS57fRsEfS3qru/_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/lead/A4oS57fRsEfS3qru/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update an Entity - Lead | API Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Update an individual, business, or sole_prop Entity. Some changes need a fresh KYC attestation. See Create and update for which changes need one and how PATCH handles each field. A field sent as null clears the stored value. This applies to preferred_first_name, middle_name, date_of_birth, occupation, doing_business_as, website and gross_annual_revenue, to physical_address and mailing_address (which removes that address), and to line_2, state and postal_code inside an address. The updated entity is then checked like any other update: clearing date_of_birth needs kyc with a later screened_at in the same request, and the entity must still meet intended_eligibility. Every other field can\u0026#x27;t be null, including type, first_name, last_name, name, identification, sole_proprietor_entity_id, legal_structure, currency, risk_score, kyc, ofac, rfi, metadata, the arrays, an address\u0026#x27;s line_1, city and country, and the fields inside identification, kyc, ofac, rfi and each array entry. Sending one as null returns 422 parameters_invalid; send a new value instead, or [] to empty an array. Clearing needs a literal null in the JSON body; a client that leaves out unset fields can\u0026#x27;t clear them.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Lead | API Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.lead.bank/api-reference/endpoint/entity/update-an-entity-v2\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://lead.mintlify.site/_mintlify/api/og/v2?division=Entities\u0026amp;title=Update+an+Entity\u0026amp;description=Update+an+%60individual%60%2C+%60business%60%2C+or+%60sole_prop%60+Entity.+Some+changes+need+a+fresh+KYC+attestation.+See+%5BCreate+and+update%5D%28%2Fv2%2Fproducts%2Fentity%2Fentity-object%23\u0026amp;theme=319958618d627c957874ebb8\u0026amp;signature=cac6a0ffc6b146ec06a2567254a80b4b46264be20a952007a4fe00cf973f36d5\">\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=\"Update an Entity - Lead | API Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Update an individual, business, or sole_prop Entity. Some changes need a fresh KYC attestation. See Create and update for which changes need one and how PATCH handles each field. A field sent as null clears the stored value. This applies to preferred_first_name, middle_name, date_of_birth, occupation, doing_business_as, website and gross_annual_revenue, to physical_address and mailing_address (which removes that address), and to line_2, state and postal_code inside an address. The updated entity is then checked like any other update: clearing date_of_birth needs kyc with a later screened_at in the same request, and the entity must still meet intended_eligibility. Every other field can\u0026#x27;t be null, including type, first_name, last_name, name, identification, sole_proprietor_entity_id, legal_structure, currency, risk_score, kyc, ofac, rfi, metadata, the arrays, an address\u0026#x27;s line_1, city and country, and the fields inside identification, kyc, ofac, rfi and each array entry. Sending one as null returns 422 parameters_invalid; send a new value instead, or [] to empty an array. Clearing needs a literal null in the JSON body; a client that leaves out unset fields can\u0026#x27;t clear them.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://lead.mintlify.site/_mintlify/api/og/v2?division=Entities\u0026amp;title=Update+an+Entity\u0026amp;description=Update+an+%60individual%60%2C+%60business%60%2C+or+%60sole_prop%60+Entity.+Some+changes+need+a+fresh+KYC+attestation.+See+%5BCreate+and+update%5D%28%2Fv2%2Fproducts%2Fentity%2Fentity-object%23\u0026amp;theme=319958618d627c957874ebb8\u0026amp;signature=cac6a0ffc6b146ec06a2567254a80b4b46264be20a952007a4fe00cf973f36d5\">\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/lead/A4oS57fRsEfS3qru/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Lead | API Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0a7dff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.lead.bank/api-reference/endpoint/entity/update-an-entity-v2\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/entity/update-an-entity-v2.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.lead.bank/#organization\",\"name\":\"Lead | API Docs\",\"url\":\"https://docs.lead.bank\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/lead/CBhAckaMlXKGU6Mg/logo/light.png?fit=max\u0026auto=format\u0026n=CBhAckaMlXKGU6Mg\u0026q=85\u0026s=15271cba9a93ada7db90b103ceca5861\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.lead.bank#website\",\"name\":\"Lead | API Docs\",\"url\":\"https://docs.lead.bank\",\"publisher\":{\"@id\":\"https://docs.lead.bank/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.lead.bank/api-reference/endpoint/entity/update-an-entity-v2#webpage\",\"url\":\"https://docs.lead.bank/api-reference/endpoint/entity/update-an-entity-v2\",\"name\":\"Update an Entity\",\"description\":\"Update an individual, business, or sole_prop Entity. Some changes need a fresh KYC attestation. See Create and update for which changes need one and how PATCH handles each field. A field sent as null clears the stored value. This applies to preferred_first_name, middle_name, date_of_birth, occupation, doing_business_as, website and gross_annual_revenue, to physical_address and mailing_address (which removes that address), and to line_2, state and postal_code inside an address. The updated entity is then checked like any other update: clearing date_of_birth needs kyc with a later screened_at in the same request, and the entity must still meet intended_eligibility. Every other field can't be null, including type, first_name, last_name, name, identification, sole_proprietor_entity_id, legal_structure, currency, risk_score, kyc, ofac, rfi, metadata, the arrays, an address's line_1, city and country, and the fields inside identification, kyc, ofac, rfi and each array entry. Sending one as null returns 422 parameters_invalid; send a new value instead, or [] to empty an array. Clearing needs a literal null in the JSON body; a client that leaves out unset fields can't clear them.\",\"dateModified\":\"2026-12-03T19:33:37.143Z\",\"isPartOf\":{\"@id\":\"https://docs.lead.bank#website\"},\"breadcrumb\":{\"@id\":\"https://docs.lead.bank/api-reference/endpoint/entity/update-an-entity-v2#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.lead.bank/api-reference/endpoint/entity/update-an-entity-v2#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Customers \u0026 Accounts\",\"item\":\"https://docs.lead.bank/api-reference/endpoint/entity/create-an-entity-v2\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Entities\",\"item\":\"https://docs.lead.bank/api-reference/endpoint/entity/create-an-entity-v2\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Update an Entity\",\"item\":\"https://docs.lead.bank/api-reference/endpoint/entity/update-an-entity-v2\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.lead.bank/api-reference/endpoint/entity/update-an-entity-v2#apireference\",\"headline\":\"Update an Entity\",\"name\":\"Update an Entity\",\"description\":\"Update an individual, business, or sole_prop Entity. Some changes need a fresh KYC attestation. See Create and update for which changes need one and how PATCH handles each field. A field sent as null clears the stored value. This applies to preferred_first_name, middle_name, date_of_birth, occupation, doing_business_as, website and gross_annual_revenue, to physical_address and mailing_address (which removes that address), and to line_2, state and postal_code inside an address. The updated entity is then checked like any other update: clearing date_of_birth needs kyc with a later screened_at in the same request, and the entity must still meet intended_eligibility. Every other field can't be null, including type, first_name, last_name, name, identification, sole_proprietor_entity_id, legal_structure, currency, risk_score, kyc, ofac, rfi, metadata, the arrays, an address's line_1, city and country, and the fields inside identification, kyc, ofac, rfi and each array entry. Sending one as null returns 422 parameters_invalid; send a new value instead, or [] to empty an array. Clearing needs a literal null in the JSON body; a client that leaves out unset fields can't clear them.\",\"url\":\"https://docs.lead.bank/api-reference/endpoint/entity/update-an-entity-v2\",\"mainEntityOfPage\":{\"@id\":\"https://docs.lead.bank/api-reference/endpoint/entity/update-an-entity-v2#webpage\"},\"dateModified\":\"2026-12-03T19:33:37.143Z\",\"publisher\":{\"@id\":\"https://docs.lead.bank/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.lead.bank#website\"}}]}\u003c/script>","agentPointerHref":"/api-reference/endpoint/entity/update-an-entity-v2.md","siteName":"Lead | API Docs","nav":{"global":null,"versions":[{"version":"v1","default":true,"pages":[{"title":"v1","href":"/get-started/what-is-lead"}]},{"version":"v2","tag":"Preview","tabs":[{"tab":"Get Started","pages":[{"title":"Get Started","href":"/v2/get-started/welcome"}]},{"tab":"Core Concepts","pages":[{"title":"Core Concepts","href":"/v2/core-concepts/platform/object-model"}]},{"tab":"Products","pages":[{"title":"Products","href":"/v2/products/overview"}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/v2/guides/lend/on-sheet-loan-origination-and-servicing"}]},{"tab":"API Reference","groups":[{"group":"Using the API","pages":[{"title":"API Overview, OAuth Authentication, and IP Allowlist","icon":"key","sidebarTitle":"Overview \u0026 Auth","href":"/api-reference/using-the-api/authentication"},{"title":"Webhooks \u0026 Events","icon":"webhook","sidebarTitle":"Webhooks \u0026 Events","href":"/api-reference/using-the-api/webhooks-v2"},{"icon":"arrow-rotate-right","title":"Idempotency","href":"/api-reference/using-the-api/idempotency-v2"},{"title":"Errors","icon":"triangle-exclamation","href":"/api-reference/using-the-api/errors-v2"}]},{"group":"Banking Infrastructure","pages":[{"group":"Core Accounts","tag":"Beta","pages":[{"openapi":"openapi.json GET /v2/core_accounts","title":"List all Core Accounts","href":"/api-reference/endpoint/core-account/list-all-core-accounts"},{"openapi":"openapi.json GET /v2/core_accounts/{id}","title":"Retrieve a Core Account","href":"/api-reference/endpoint/core-account/retrieve-a-core-account"}]},{"group":"Core Balances","tag":"Beta","pages":[{"openapi":"openapi.json GET /v2/core_balances","title":"List all Core Balances","href":"/api-reference/endpoint/core-balance/list-all-core-balances"},{"openapi":"openapi.json GET /v2/core_balances/{id}","title":"Retrieve a Core Balance","href":"/api-reference/endpoint/core-balance/retrieve-a-core-balance"}]},{"group":"Core Transactions","tag":"Beta","pages":[{"openapi":"openapi.json GET /v2/core_transactions","title":"List all Core Transactions","href":"/api-reference/endpoint/core-transaction/list-all-core-transactions"},{"openapi":"openapi.json GET /v2/core_transactions/{core_transaction_id}","title":"Retrieve a Core Transaction","href":"/api-reference/endpoint/core-transaction/retrieve-a-core-transaction"}]}]},{"group":"Customers \u0026 Accounts","pages":[{"group":"Entities","tag":"Preview","pages":[{"openapi":"openapi.json POST /v2/entities","title":"Create an Entity","href":"/api-reference/endpoint/entity/create-an-entity-v2"},{"openapi":"openapi.json GET /v2/entities/{entity_id}","title":"Retrieve an Entity","href":"/api-reference/endpoint/entity/retrieve-an-entity-by-entity-id-v2"},{"openapi":"openapi.json GET /v2/entities","title":"List Entities","description":"List Entities, filtered by the `client_customer_id` you assigned in a Customer file. Use it to find the `id` of Entities you reported in Customer files. The filter is required. A `client_customer_id` matches at most one Entity, so `objects` has zero or one entry and `has_more` is `false`. Each object in `objects` has the same shape as `GET /v2/entities/{entity_id}` returns.","href":"/api-reference/endpoint/entity/list-entities-v2"},{"openapi":"openapi.json PATCH /v2/entities/{entity_id}","title":"Update an Entity","href":"/api-reference/endpoint/entity/update-an-entity-v2"}]},{"group":"Applications","tag":"Preview","pages":[{"openapi":"openapi.json POST /v2/applications","title":"Create an Application","description":"Report a final underwriting decision. The Application is created in its final status, `approved`, `declined`, or `canceled`, and the status cannot change afterward.\n\nEach `documents` entry references a File you uploaded with `POST /v2/files`. Lead checks that each File exists, belongs to your program, and has a [compliance document type](https://docs.lead.bank/v2/products/files/file-object#the-type-enum). Send `[]` when you have no documents yet.","href":"/api-reference/endpoint/application/create-an-application-v2"},{"openapi":"openapi.json GET /v2/applications/{id}","title":"Retrieve an Application","href":"/api-reference/endpoint/application/retrieve-an-application-v2"},{"openapi":"openapi.json GET /v2/applications","title":"List Applications","href":"/api-reference/endpoint/application/list-applications-v2"},{"openapi":"openapi.json PATCH /v2/applications/{id}","title":"Update an Application","href":"/api-reference/endpoint/application/update-an-application-v2"},{"openapi":"openapi.json GET /v2/applications/{id}/entity_relationships","title":"List Application Entity Relationships","href":"/api-reference/endpoint/application/list-application-entity-relationships-v2"}]},{"group":"User Accounts","tag":"Preview","pages":[{"openapi":"openapi.json POST /v2/user_accounts","title":"Create a User Account","href":"/api-reference/endpoint/user-account/create-a-user-account-v2"},{"openapi":"openapi.json GET /v2/user_accounts/{user_account_id}","title":"Retrieve a User Account","href":"/api-reference/endpoint/user-account/retrieve-a-user-account-v2"},{"openapi":"openapi.json GET /v2/user_accounts","title":"List User Accounts","href":"/api-reference/endpoint/user-account/list-user-accounts-v2"},{"openapi":"openapi.json PATCH /v2/user_accounts/{user_account_id}","title":"Update a User Account","href":"/api-reference/endpoint/user-account/update-a-user-account-v2"},{"openapi":"openapi.json POST /v2/user_accounts/{user_account_id}/activate","title":"Activate a User Account","href":"/api-reference/endpoint/user-account/activate-a-user-account-v2"},{"openapi":"openapi.json POST /v2/user_accounts/{user_account_id}/deactivate","title":"Deactivate a User Account","href":"/api-reference/endpoint/user-account/deactivate-a-user-account-v2"},{"openapi":"openapi.json POST /v2/user_accounts/{user_account_id}/close","title":"Close a User Account","href":"/api-reference/endpoint/user-account/close-a-user-account-v2"},{"openapi":"openapi.json GET /v2/user_accounts/{user_account_id}/entity_relationships","title":"List User Account Entity Relationships","href":"/api-reference/endpoint/user-account/list-user-account-entity-relationships-v2"},{"openapi":"openapi.json POST /v2/user_accounts/{user_account_id}/entity_relationships/batch","title":"Batch Create User Account Entity Relationships","href":"/api-reference/endpoint/user-account/batch-create-user-account-entity-relationships-v2"},{"openapi":"openapi.json DELETE /v2/user_accounts/{user_account_id}/entity_relationships/{entity_id}","title":"Delete User Account Entity Relationship","href":"/api-reference/endpoint/user-account/delete-user-account-entity-relationship-v2"}]},{"group":"Files","tag":"Preview","pages":[{"openapi":"openapi.json POST /v2/files","title":"Create a File","href":"/api-reference/endpoint/file/create-a-file"},{"openapi":"openapi.json GET /v2/files/{file_id}","title":"Retrieve a File","href":"/api-reference/endpoint/file/retrieve-a-file"}]}]},{"group":"Balances and Transactions","pages":[{"group":"User Credit Balances","tag":"Preview","pages":[{"openapi":"openapi.json POST /v2/user_credit_balances","title":"Create a User Credit Balance","href":"/api-reference/endpoint/user-credit-balance/create-a-user-credit-balance-v2"},{"openapi":"openapi.json GET /v2/user_credit_balances/{user_credit_balance_id}","title":"Retrieve a User Credit Balance","href":"/api-reference/endpoint/user-credit-balance/retrieve-a-user-credit-balance-v2"},{"openapi":"openapi.json PATCH /v2/user_credit_balances/{user_credit_balance_id}","title":"Update a User Credit Balance","href":"/api-reference/endpoint/user-credit-balance/update-a-user-credit-balance-v2"},{"openapi":"openapi.json POST /v2/user_credit_balances/{user_credit_balance_id}/activate","title":"Activate a User Credit Balance","href":"/api-reference/endpoint/user-credit-balance/activate-a-user-credit-balance-v2"},{"openapi":"openapi.json POST /v2/user_credit_balances/{user_credit_balance_id}/deactivate","title":"Deactivate a User Credit Balance","href":"/api-reference/endpoint/user-credit-balance/deactivate-a-user-credit-balance-v2"},{"openapi":"openapi.json POST /v2/user_credit_balances/{user_credit_balance_id}/close","title":"Close a User Credit Balance","href":"/api-reference/endpoint/user-credit-balance/close-a-user-credit-balance-v2"},{"openapi":"openapi.json POST /v2/user_credit_balances/{user_credit_balance_id}/stop_reporting","title":"Stop Reporting on a User Credit Balance","href":"/api-reference/endpoint/user-credit-balance/stop-reporting-a-user-credit-balance-v2"}]},{"group":"User Credit Transactions","tag":"Preview","pages":[{"openapi":"openapi.json POST /v2/user_credit_transactions","title":"Create a User Credit Transaction","href":"/api-reference/endpoint/user-credit-transaction/create-a-user-credit-transaction-v2"},{"openapi":"openapi.json GET /v2/user_credit_transactions/{user_credit_transaction_id}","title":"Retrieve a User Credit Transaction","href":"/api-reference/endpoint/user-credit-transaction/retrieve-a-user-credit-transaction-v2"},{"openapi":"openapi.json PATCH /v2/user_credit_transactions/{user_credit_transaction_id}","title":"Update a User Credit Transaction","href":"/api-reference/endpoint/user-credit-transaction/update-a-user-credit-transaction-v2"},{"openapi":"openapi.json POST /v2/user_credit_transactions/{user_credit_transaction_id}/reverse","title":"Reverse a User Credit Transaction","href":"/api-reference/endpoint/user-credit-transaction/reverse-a-user-credit-transaction-v2"}]}]},{"group":"Lending \u0026 Receivables","pages":[{"group":"Fundings","tag":"Preview","pages":[{"openapi":"openapi.json POST /v2/fundings","title":"Create a Funding","href":"/api-reference/endpoint/funding/create-a-funding-v2"},{"openapi":"openapi.json GET /v2/fundings/{funding_id}","title":"Retrieve a Funding","href":"/api-reference/endpoint/funding/retrieve-a-funding-v2"}]},{"group":"Receivables","tag":"Preview","pages":[{"openapi":"openapi.json GET /v2/receivables","title":"List all Receivables","href":"/api-reference/endpoint/receivable/list-all-receivables-v2"},{"openapi":"openapi.json GET /v2/receivables/{receivable_id}","title":"Retrieve a Receivable","href":"/api-reference/endpoint/receivable/retrieve-a-receivable-v2"}]},{"group":"Receivable Sales","tag":"Preview","pages":[{"openapi":"openapi.json GET /v2/receivable_sales","title":"List all Receivable Sales","href":"/api-reference/endpoint/receivable-sale/list-all-receivable-sales-v2"},{"openapi":"openapi.json GET /v2/receivable_sales/{receivable_sale_id}","title":"Retrieve a Receivable Sale","href":"/api-reference/endpoint/receivable-sale/retrieve-a-receivable-sale-v2"}]}]},{"group":"Payment Rails","pages":[{"group":"ACH","tag":"Preview","pages":[{"openapi":"openapi.json POST /v2/ach","title":"Create an ACH","href":"/api-reference/endpoint/ach/create-an-ach-v2"},{"openapi":"openapi.json GET /v2/ach","title":"List all ACH","href":"/api-reference/endpoint/ach/list-all-ach-v2"},{"openapi":"openapi.json GET /v2/ach/{id}","title":"Retrieve an ACH","href":"/api-reference/endpoint/ach/retrieve-an-ach-v2"},{"openapi":"openapi.json PATCH /v2/ach/{id}","title":"Update an ACH","href":"/api-reference/endpoint/ach/update-an-ach-v2"},{"openapi":"openapi.json POST /v2/ach/{id}/cancel","title":"Cancel an ACH","href":"/api-reference/endpoint/ach/cancel-an-ach-v2"},{"openapi":"openapi.json POST /v2/ach/{id}/return","title":"Return an ACH","href":"/api-reference/endpoint/ach/return-an-ach-v2"},{"openapi":"openapi.json POST /v2/ach/{id}/reverse","title":"Reverse an ACH","href":"/api-reference/endpoint/ach/reverse-an-ach-v2"}]},{"group":"Wires","tag":"Preview","pages":[{"openapi":"openapi.json POST /v2/wires","title":"Create a Wire","href":"/api-reference/endpoint/wire/create-a-wire-v2"},{"openapi":"openapi.json GET /v2/wires","title":"List all Wires","href":"/api-reference/endpoint/wire/list-all-wires-v2"},{"openapi":"openapi.json GET /v2/wires/{wire_id}","title":"Retrieve a Wire","href":"/api-reference/endpoint/wire/retrieve-a-wire-v2"},{"openapi":"openapi.json PATCH /v2/wires/{wire_id}","title":"Update a Wire","href":"/api-reference/endpoint/wire/update-a-wire-v2"},{"openapi":"openapi.json POST /v2/wires/{wire_id}/cancel","title":"Cancel a Wire","href":"/api-reference/endpoint/wire/cancel-a-wire-v2"},{"openapi":"openapi.json POST /v2/wires/{wire_id}/return","title":"Return a Wire","href":"/api-reference/endpoint/wire/return-a-wire-v2"},{"openapi":"openapi.json POST /v2/wires/{wire_id}/request_return","title":"Request Return for a Wire","href":"/api-reference/endpoint/wire/request-return-for-wire-v2"},{"openapi":"openapi.json POST /v2/wires/{wire_id}/reject_return_request","title":"Reject a Return Request for a Wire","href":"/api-reference/endpoint/wire/reject-return-request-for-wire-v2"}]},{"group":"Blockchain Payments","tag":"Beta","pages":[{"openapi":"openapi.json POST /beta/blockchain_payments","title":"Create a Blockchain Payment","href":"/api-reference/endpoint/blockchain-payment/create-a-blockchain-payment-beta"},{"openapi":"openapi.json GET /beta/blockchain_payments","title":"List all Blockchain Payments","href":"/api-reference/endpoint/blockchain-payment/list-all-blockchain-payments-beta"},{"openapi":"openapi.json GET /beta/blockchain_payments/{blockchain_payment_id}","title":"Retrieve a Blockchain Payment","href":"/api-reference/endpoint/blockchain-payment/retrieve-a-blockchain-payment-beta"},{"openapi":"openapi.json POST /beta/blockchain_payments/{blockchain_payment_id}/cancel","title":"Cancel a Blockchain Payment","href":"/api-reference/endpoint/blockchain-payment/cancel-a-blockchain-payment-beta"},{"openapi":"openapi.json POST /beta/blockchain_deposit_addresses","title":"Create a Blockchain Deposit Address","href":"/api-reference/endpoint/blockchain-deposit-address/create-a-blockchain-deposit-address-beta"},{"openapi":"openapi.json GET /beta/blockchain_deposit_addresses","title":"List all Blockchain Deposit Addresses","href":"/api-reference/endpoint/blockchain-deposit-address/list-all-blockchain-deposit-addresses-beta"},{"openapi":"openapi.json GET /beta/blockchain_deposit_addresses/{blockchain_deposit_address_id}","title":"Retrieve a Blockchain Deposit Address","href":"/api-reference/endpoint/blockchain-deposit-address/retrieve-a-blockchain-deposit-address-beta"},{"openapi":"openapi.json PATCH /beta/blockchain_deposit_addresses/{blockchain_deposit_address_id}","title":"Update a Blockchain Deposit Address","href":"/api-reference/endpoint/blockchain-deposit-address/update-a-blockchain-deposit-address-beta"}]}]},{"group":"Events","tag":"Preview","pages":[{"openapi":"openapi.json GET /v2/events","title":"List all Events","href":"/api-reference/endpoint/events/list-all-events-v2"},{"openapi":"openapi.json GET /v2/events/{event_id}","title":"Retrieve an Event","href":"/api-reference/endpoint/events/retrieve-an-event-v2"}]},{"group":"OAuth","pages":[{"openapi":"POST /v1/oauth/token","title":"Get an Access Token","href":"/api-reference/endpoint/oauth/get-an-access-token"}]},{"group":"Simulations","tag":"Preview","pages":[{"openapi":"openapi.json POST /v2/simulate/fundings/{funding_id}/advance","title":"Simulate Advance Funding","href":"/api-reference/endpoint/simulation/simulate-advance-a-funding-v2"},{"openapi":"openapi.json POST /v2/simulate/card_network_settlements","title":"Simulate a Card Network Settlement","href":"/api-reference/endpoint/simulation/simulate-a-network-settlement-v2"},{"openapi":"openapi.json POST /v2/simulate/wires","title":"Simulate Wire","href":"/api-reference/endpoint/simulation/simulate-wire-v2"},{"openapi":"openapi.json POST /v2/simulate/wires/{wire_id}/advance","title":"Simulate Advance Wire","href":"/api-reference/endpoint/simulation/simulate-advance-wire-v2"},{"openapi":"openapi.json POST /v2/simulate/ach","title":"Simulate ACH","href":"/api-reference/endpoint/simulation/simulate-ach-v2"},{"openapi":"openapi.json POST /v2/simulate/ach/{id}/advance","title":"Simulate Advance ACH","href":"/api-reference/endpoint/simulation/simulate-advance-ach-v2"}]},{"group":"v2 overlay spec","hidden":true,"pages":[{"group":"ACH","pages":[{"title":"List all ACHes","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/ach","href":"/api-reference/ach/list-all-aches"},{"title":"Create an ACH","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/ach","href":"/api-reference/ach/create-an-ach"},{"title":"Retrieve an ACH","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/ach/{ach_id}","href":"/api-reference/ach/retrieve-an-ach"},{"title":"Update an ACH","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/ach/{ach_id}","href":"/api-reference/ach/update-an-ach"},{"title":"Cancel an ACH","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/ach/{ach_id}/cancel","href":"/api-reference/ach/cancel-an-ach"},{"title":"Return an ACH","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/ach/{ach_id}/return","href":"/api-reference/ach/return-an-ach"},{"title":"Reverse an ACH","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/ach/{ach_id}/reverse","href":"/api-reference/ach/reverse-an-ach"}]},{"group":"ACHv2","pages":[{"title":"List all ACH V2","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/ach","href":"/api-reference/achv2/list-all-ach-v2"},{"title":"Create an ACH V2","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/ach","href":"/api-reference/achv2/create-an-ach-v2"},{"title":"Retrieve an ACH V2","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/ach/{id}","href":"/api-reference/achv2/retrieve-an-ach-v2"},{"title":"Update an ACH V2","deprecated":null,"version":null,"openapi":"/openapi.json patch /v2/ach/{id}","href":"/api-reference/achv2/update-an-ach-v2"},{"title":"Cancel an ACH V2","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/ach/{id}/cancel","href":"/api-reference/achv2/cancel-an-ach-v2"},{"title":"Return an ACH V2","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/ach/{id}/return","href":"/api-reference/achv2/return-an-ach-v2"},{"title":"Reverse an ACH V2","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/ach/{id}/reverse","href":"/api-reference/achv2/reverse-an-ach-v2"}]},{"group":"Account Number","pages":[{"title":"List all Account Numbers","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/account_number","href":"/api-reference/account-number/list-all-account-numbers"},{"title":"Create an Account Number","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/account_number","href":"/api-reference/account-number/create-an-account-number"},{"title":"Register an Account Number","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/account_number/register","href":"/api-reference/account-number/register-an-account-number"},{"title":"Assign an Account Number","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/account_number/{account_number_id}/assign","href":"/api-reference/account-number/assign-an-account-number"},{"title":"Retrieve an Account Number","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/account_number/{account_number_id}","href":"/api-reference/account-number/retrieve-an-account-number"},{"title":"Update an Account Number","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/account_number/{account_number_id}","href":"/api-reference/account-number/update-an-account-number"},{"title":"Activate an Account Number","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/account_number/{account_number_id}/activate","href":"/api-reference/account-number/activate-an-account-number"},{"title":"Deactivate an Account Number","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/account_number/{account_number_id}/deactivate","href":"/api-reference/account-number/deactivate-an-account-number"},{"title":"Cancel an Account Number","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/account_number/{account_number_id}/cancel","href":"/api-reference/account-number/cancel-an-account-number"}]},{"group":"Core Account","pages":[{"title":"List all Core Accounts","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/core_accounts","href":"/api-reference/core-account/list-all-core-accounts"},{"title":"Retrieve a Core Account","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/core_accounts/{id}","href":"/api-reference/core-account/retrieve-a-core-account"}]},{"group":"Core Balance","pages":[{"title":"List all Core Balances","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/core_balances","href":"/api-reference/core-balance/list-all-core-balances"},{"title":"Retrieve a Core Balance","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/core_balances/{id}","href":"/api-reference/core-balance/retrieve-a-core-balance"}]},{"group":"Core Transaction","pages":[{"title":"List all Core Transactions","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/core_transactions","href":"/api-reference/core-transaction/list-all-core-transactions"},{"title":"Retrieve a Core Transaction","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/core_transactions/{core_transaction_id}","href":"/api-reference/core-transaction/retrieve-a-core-transaction"}]},{"group":"OAuth","pages":[{"title":"Get an Access Token","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/oauth/token","href":"/api-reference/oauth/get-an-access-token"}]},{"group":"Events","pages":[{"title":"Retrieve an event","deprecated":false,"version":null,"openapi":"/openapi.json get /v1/event/{event_id}","href":"/api-reference/events/retrieve-an-event"},{"title":"List all events","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/event","href":"/api-reference/events/list-all-events"},{"title":"Retrieve an Event","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/events/{event_id}","href":"/api-reference/events/retrieve-an-event-1"},{"title":"List all Events","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/events","href":"/api-reference/events/list-all-events-1"}]},{"group":"Lending","pages":[{"title":"Create a Disbursement","deprecated":null,"version":null,"openapi":"/openapi.json post /v0/lending/disbursements","href":"/api-reference/lending/create-a-disbursement"},{"title":"Retrieve a disbursement","deprecated":null,"version":null,"openapi":"/openapi.json get /v0/lending/disbursements/{disbursement_id}","href":"/api-reference/lending/retrieve-a-disbursement"},{"title":"Cancel a disbursement","deprecated":null,"version":null,"openapi":"/openapi.json post /v0/lending/disbursements/{disbursement_id}/cancel","href":"/api-reference/lending/cancel-a-disbursement"}]},{"group":"Lending Simulation","pages":[{"title":"Advance Sandbox Disbursement","deprecated":null,"version":null,"openapi":"/openapi.json post /v0/simulate/lending/disbursements/{disbursement_id}/advance","href":"/api-reference/lending-simulation/advance-sandbox-disbursement"}]},{"group":"Simulation","pages":[{"title":"Simulate Incoming ACH","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/simulate/ach/incoming_ach","href":"/api-reference/simulation/simulate-incoming-ach"},{"title":"Simulate Incoming Return","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/simulate/ach/{ach_id}/incoming_return","href":"/api-reference/simulation/simulate-incoming-return"},{"title":"Advance Sandbox ACH","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/simulate/ach/{ach_id}/advance","href":"/api-reference/simulation/advance-sandbox-ach"},{"title":"Simulate ACH V2","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/simulate/ach","href":"/api-reference/simulation/simulate-ach-v2"},{"title":"Advance Sandbox ACH V2","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/simulate/ach/{id}/advance","href":"/api-reference/simulation/advance-sandbox-ach-v2"},{"title":"Advance Sandbox Wire","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/simulate/wires/{wire_id}/advance","href":"/api-reference/simulation/advance-sandbox-wire"},{"title":"Simulate Incoming Wire","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/simulate/wires/incoming","href":"/api-reference/simulation/simulate-incoming-wire"},{"title":"Simulate Incoming Wire Return","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/simulate/wires/{wire_id}/incoming_return","href":"/api-reference/simulation/simulate-incoming-wire-return"},{"title":"Simulate Incoming Wire Return Request","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/simulate/wires/{wire_id}/incoming_return_request","href":"/api-reference/simulation/simulate-incoming-wire-return-request"},{"title":"Simulate Incoming Wire Return Request Rejection","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/simulate/wires/{wire_id}/incoming_return_request_rejection","href":"/api-reference/simulation/simulate-incoming-wire-return-request-rejection"},{"title":"Simulate Incoming Wire Return Request Acceptance","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/simulate/wires/{wire_id}/incoming_return_request_acceptance","href":"/api-reference/simulation/simulate-incoming-wire-return-request-acceptance"},{"title":"Simulate Advancing a Funding","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/simulate/fundings/{funding_id}/advance","href":"/api-reference/simulation/simulate-advancing-a-funding"},{"title":"Simulate Incoming Instant Payment","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/simulate/instant_payments/incoming","href":"/api-reference/simulation/simulate-incoming-instant-payment"},{"title":"Simulate Incoming Instant Payment Return","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/simulate/instant_payments/{instant_payment_id}/incoming_return","href":"/api-reference/simulation/simulate-incoming-instant-payment-return"},{"title":"Simulate Incoming Instant Payment Return Request","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/simulate/instant_payments/{instant_payment_id}/incoming_return_request","href":"/api-reference/simulation/simulate-incoming-instant-payment-return-request"},{"title":"Simulate Incoming Instant Payment Return Request Rejection","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/simulate/instant_payments/{instant_payment_id}/incoming_return_request_rejection","href":"/api-reference/simulation/simulate-incoming-instant-payment-return-request-rejection"},{"title":"Simulate Incoming Instant Payment Return Request Acceptance","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/simulate/instant_payments/{instant_payment_id}/incoming_return_request_acceptance","href":"/api-reference/simulation/simulate-incoming-instant-payment-return-request-acceptance"},{"title":"Simulate a Card Network Settlement","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/simulate/card_network_settlements","href":"/api-reference/simulation/simulate-a-card-network-settlement"}]},{"group":"Internal Transfer","pages":[{"title":"List all Internal Transfers","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/internal_transfer","href":"/api-reference/internal-transfer/list-all-internal-transfers"},{"title":"Create an asynchronous Internal Transfer","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/internal_transfer","href":"/api-reference/internal-transfer/create-an-asynchronous-internal-transfer"},{"title":"Retrieve an Internal Transfer","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/internal_transfer/{internal_transfer_id}","href":"/api-reference/internal-transfer/retrieve-an-internal-transfer"}]},{"group":"Wire","pages":[{"title":"Retrieve a wire V1","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/wires/{wire_id}","href":"/api-reference/wire/retrieve-a-wire-v1"},{"title":"Update a wire V1","deprecated":null,"version":null,"openapi":"/openapi.json patch /v1/wires/{wire_id}","href":"/api-reference/wire/update-a-wire-v1"},{"title":"List all wires V1","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/wires","href":"/api-reference/wire/list-all-wires-v1"},{"title":"Create a wire V1","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/wires","href":"/api-reference/wire/create-a-wire-v1"},{"title":"Return a wire V1","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/wires/{wire_id}/return","href":"/api-reference/wire/return-a-wire-v1"},{"title":"Request return for a wire V1","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/wires/{wire_id}/request_return","href":"/api-reference/wire/request-return-for-a-wire-v1"},{"title":"Reject a return request","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/wires/{wire_id}/reject_return_request","href":"/api-reference/wire/reject-a-return-request"},{"title":"Cancel a wire V1","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/wires/{wire_id}/cancel","href":"/api-reference/wire/cancel-a-wire-v1"},{"title":"List all wires V2","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/wires","href":"/api-reference/wire/list-all-wires-v2"},{"title":"Create a wire V2","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/wires","href":"/api-reference/wire/create-a-wire-v2"},{"title":"Retrieve a wire V2","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/wires/{wire_id}","href":"/api-reference/wire/retrieve-a-wire-v2"},{"title":"Update a wire V2","deprecated":null,"version":null,"openapi":"/openapi.json patch /v2/wires/{wire_id}","href":"/api-reference/wire/update-a-wire-v2"},{"title":"Cancel a wire V2","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/wires/{wire_id}/cancel","href":"/api-reference/wire/cancel-a-wire-v2"},{"title":"Return a wire V2","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/wires/{wire_id}/return","href":"/api-reference/wire/return-a-wire-v2"},{"title":"Request return for a wire V2","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/wires/{wire_id}/request_return","href":"/api-reference/wire/request-return-for-a-wire-v2"},{"title":"Reject a return request for a wire V2","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/wires/{wire_id}/reject_return_request","href":"/api-reference/wire/reject-a-return-request-for-a-wire-v2"}]},{"group":"Sandbox","pages":[{"title":"Simulate Wire V2","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/simulate/wires","href":"/api-reference/sandbox/simulate-wire-v2"},{"title":"Advance Sandbox Wire V2","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/simulate/wires/{wire_id}/advance","href":"/api-reference/sandbox/advance-sandbox-wire-v2"}]},{"group":"Entity","pages":[{"title":"Retrieve an entity by client customer id","deprecated":null,"version":null,"openapi":"/openapi.json get /v0/entities","href":"/api-reference/entity/retrieve-an-entity-by-client-customer-id"},{"title":"Create an entity","deprecated":null,"version":null,"openapi":"/openapi.json post /v0/entities","href":"/api-reference/entity/create-an-entity"},{"title":"Retrieve an entity by entity id","deprecated":null,"version":null,"openapi":"/openapi.json get /v0/entities/{id}","href":"/api-reference/entity/retrieve-an-entity-by-entity-id"},{"title":"Update an entity","deprecated":null,"version":null,"openapi":"/openapi.json patch /v0/entities/{id}","href":"/api-reference/entity/update-an-entity"},{"title":"List entities","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/entities","href":"/api-reference/entity/list-entities"},{"title":"Create an entity","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/entities","href":"/api-reference/entity/create-an-entity-1"},{"title":"Retrieve an entity","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/entities/{entity_id}","href":"/api-reference/entity/retrieve-an-entity"},{"title":"Update an entity","deprecated":null,"version":null,"openapi":"/openapi.json patch /v2/entities/{entity_id}","href":"/api-reference/entity/update-an-entity-1"}]},{"group":"Originator","pages":[{"title":"List all Originators","deprecated":null,"version":null,"openapi":"/openapi.json get /v0/originators","href":"/api-reference/originator/list-all-originators"},{"title":"Create an Originator","deprecated":null,"version":null,"openapi":"/openapi.json post /v0/originators","href":"/api-reference/originator/create-an-originator"},{"title":"Retrieve an Originator","deprecated":null,"version":null,"openapi":"/openapi.json get /v0/originators/{originator_id}","href":"/api-reference/originator/retrieve-an-originator"},{"title":"Update an Originator","deprecated":null,"version":null,"openapi":"/openapi.json patch /v0/originators/{originator_id}","href":"/api-reference/originator/update-an-originator"},{"title":"Activate an Originator","deprecated":null,"version":null,"openapi":"/openapi.json post /v0/originators/{originator_id}/activate","href":"/api-reference/originator/activate-an-originator"},{"title":"Deactivate an Originator","deprecated":null,"version":null,"openapi":"/openapi.json post /v0/originators/{originator_id}/deactivate","href":"/api-reference/originator/deactivate-an-originator"},{"title":"Cancel an Originator","deprecated":null,"version":null,"openapi":"/openapi.json post /v0/originators/{originator_id}/cancel","href":"/api-reference/originator/cancel-an-originator"}]},{"group":"Funding","pages":[{"title":"Create a Funding","deprecated":null,"version":null,"openapi":"/openapi.json post /v0/fundings","href":"/api-reference/funding/create-a-funding"},{"title":"Retrieve a Funding","deprecated":null,"version":null,"openapi":"/openapi.json get /v0/fundings/{id}","href":"/api-reference/funding/retrieve-a-funding"},{"title":"Advance a Funding (Simulation)","deprecated":null,"version":null,"openapi":"/openapi.json post /v0/fundings/{id}/advance","href":"/api-reference/funding/advance-a-funding-simulation"},{"title":"Create a Funding","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/fundings","href":"/api-reference/funding/create-a-funding-1"},{"title":"Retrieve a Funding","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/fundings/{funding_id}","href":"/api-reference/funding/retrieve-a-funding-1"}]},{"group":"Receivable Sale","pages":[{"title":"List all Receivable Sales","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/receivable_sales","href":"/api-reference/receivable-sale/list-all-receivable-sales"},{"title":"Retrieve a Receivable Sale","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/receivable_sales/{receivable_sale_id}","href":"/api-reference/receivable-sale/retrieve-a-receivable-sale"}]},{"group":"Subledger Balances","pages":[{"title":"Create a Subledger Balance","deprecated":null,"version":null,"openapi":"/openapi.json post /v0/subledger_balances","href":"/api-reference/subledger-balances/create-a-subledger-balance"},{"title":"Retrieve a Subledger Balance","deprecated":null,"version":null,"openapi":"/openapi.json get /v0/subledger_balances/{id}","href":"/api-reference/subledger-balances/retrieve-a-subledger-balance"}]},{"group":"Instant Payments","pages":[{"title":"List all instant payments","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/instant_payments","href":"/api-reference/instant-payments/list-all-instant-payments"},{"title":"Create an instant payment","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/instant_payments","href":"/api-reference/instant-payments/create-an-instant-payment"},{"title":"Retrieve an instant payment","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/instant_payments/{instant_payment_id}","href":"/api-reference/instant-payments/retrieve-an-instant-payment"},{"title":"Return an instant payment","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/instant_payments/{instant_payment_id}/return","href":"/api-reference/instant-payments/return-an-instant-payment"},{"title":"Cancel an instant payment","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/instant_payments/{instant_payment_id}/cancel","href":"/api-reference/instant-payments/cancel-an-instant-payment"},{"title":"Request return for an instant payment","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/instant_payments/{instant_payment_id}/request_return","href":"/api-reference/instant-payments/request-return-for-an-instant-payment"},{"title":"Reject return request for an instant payment","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/instant_payments/{instant_payment_id}/reject_return_request","href":"/api-reference/instant-payments/reject-return-request-for-an-instant-payment"},{"title":"Check instant payment availability","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/instant_payments/check_availability","href":"/api-reference/instant-payments/check-instant-payment-availability"}]},{"group":"Compliance","pages":[{"title":"Retrieve an application by client application ID","deprecated":null,"version":null,"openapi":"/openapi.json get /v0/applications","href":"/api-reference/compliance/retrieve-an-application-by-client-application-id"},{"title":"Create an application","deprecated":null,"version":null,"openapi":"/openapi.json post /v0/applications","href":"/api-reference/compliance/create-an-application"},{"title":"Retrieve an application","deprecated":null,"version":null,"openapi":"/openapi.json get /v0/applications/{id}","href":"/api-reference/compliance/retrieve-an-application"},{"title":"Update an application","deprecated":null,"version":null,"openapi":"/openapi.json patch /v0/applications/{id}","href":"/api-reference/compliance/update-an-application"},{"title":"List application entity relationships","deprecated":null,"version":null,"openapi":"/openapi.json get /v0/applications/{id}/entity_relationships","href":"/api-reference/compliance/list-application-entity-relationships"},{"title":"Retrieve an account by client account ID","deprecated":null,"version":null,"openapi":"/openapi.json get /v0/accounts","href":"/api-reference/compliance/retrieve-an-account-by-client-account-id"},{"title":"Create an account","deprecated":null,"version":null,"openapi":"/openapi.json post /v0/accounts","href":"/api-reference/compliance/create-an-account"},{"title":"Retrieve an account","deprecated":null,"version":null,"openapi":"/openapi.json get /v0/accounts/{id}","href":"/api-reference/compliance/retrieve-an-account"},{"title":"Update an account","deprecated":null,"version":null,"openapi":"/openapi.json patch /v0/accounts/{id}","href":"/api-reference/compliance/update-an-account"},{"title":"Activate an account","deprecated":null,"version":null,"openapi":"/openapi.json post /v0/accounts/{id}/activate","href":"/api-reference/compliance/activate-an-account"},{"title":"Deactivate an account","deprecated":null,"version":null,"openapi":"/openapi.json post /v0/accounts/{id}/deactivate","href":"/api-reference/compliance/deactivate-an-account"},{"title":"Close an account","deprecated":null,"version":null,"openapi":"/openapi.json post /v0/accounts/{id}/close","href":"/api-reference/compliance/close-an-account"},{"title":"List account entity relationships","deprecated":null,"version":null,"openapi":"/openapi.json get /v0/accounts/{id}/entity_relationships","href":"/api-reference/compliance/list-account-entity-relationships"},{"title":"Delete account entity relationship","deprecated":null,"version":null,"openapi":"/openapi.json delete /v0/accounts/{id}/entity_relationships/{entity_id}","href":"/api-reference/compliance/delete-account-entity-relationship"},{"title":"Batch create account entity relationships","deprecated":null,"version":null,"openapi":"/openapi.json post /v0/accounts/{id}/entity_relationships/batch","href":"/api-reference/compliance/batch-create-account-entity-relationships"},{"title":"Retrieve a card by client card ID","deprecated":null,"version":null,"openapi":"/openapi.json get /v0/cards","href":"/api-reference/compliance/retrieve-a-card-by-client-card-id"},{"title":"Create a card","deprecated":null,"version":null,"openapi":"/openapi.json post /v0/cards","href":"/api-reference/compliance/create-a-card"},{"title":"Retrieve a card","deprecated":null,"version":null,"openapi":"/openapi.json get /v0/cards/{id}","href":"/api-reference/compliance/retrieve-a-card"},{"title":"Update a card","deprecated":null,"version":null,"openapi":"/openapi.json patch /v0/cards/{id}","href":"/api-reference/compliance/update-a-card"},{"title":"Activate a card","deprecated":null,"version":null,"openapi":"/openapi.json post /v0/cards/{id}/activate","href":"/api-reference/compliance/activate-a-card"},{"title":"Deactivate a card","deprecated":null,"version":null,"openapi":"/openapi.json post /v0/cards/{id}/deactivate","href":"/api-reference/compliance/deactivate-a-card"},{"title":"Close a card","deprecated":null,"version":null,"openapi":"/openapi.json post /v0/cards/{id}/close","href":"/api-reference/compliance/close-a-card"}]},{"group":"Application","pages":[{"title":"List applications","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/applications","href":"/api-reference/application/list-applications"},{"title":"Create an application","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/applications","href":"/api-reference/application/create-an-application"},{"title":"Retrieve an application","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/applications/{application_id}","href":"/api-reference/application/retrieve-an-application"},{"title":"Update an application","deprecated":null,"version":null,"openapi":"/openapi.json patch /v2/applications/{application_id}","href":"/api-reference/application/update-an-application"},{"title":"List application entity relationships","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/applications/{application_id}/entity_relationships","href":"/api-reference/application/list-application-entity-relationships"}]},{"group":"User Account","pages":[{"title":"List user accounts","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/user_accounts","href":"/api-reference/user-account/list-user-accounts"},{"title":"Create a user account","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/user_accounts","href":"/api-reference/user-account/create-a-user-account"},{"title":"Retrieve a user account","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/user_accounts/{user_account_id}","href":"/api-reference/user-account/retrieve-a-user-account"},{"title":"Update a user account","deprecated":null,"version":null,"openapi":"/openapi.json patch /v2/user_accounts/{user_account_id}","href":"/api-reference/user-account/update-a-user-account"},{"title":"Activate a user account","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/user_accounts/{user_account_id}/activate","href":"/api-reference/user-account/activate-a-user-account"},{"title":"Deactivate a user account","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/user_accounts/{user_account_id}/deactivate","href":"/api-reference/user-account/deactivate-a-user-account"},{"title":"Close a user account","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/user_accounts/{user_account_id}/close","href":"/api-reference/user-account/close-a-user-account"},{"title":"List user account entity relationships","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/user_accounts/{user_account_id}/entity_relationships","href":"/api-reference/user-account/list-user-account-entity-relationships"},{"title":"Delete user account entity relationship","deprecated":null,"version":null,"openapi":"/openapi.json delete /v2/user_accounts/{user_account_id}/entity_relationships/{entity_id}","href":"/api-reference/user-account/delete-user-account-entity-relationship"},{"title":"Batch create user account entity relationships","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/user_accounts/{user_account_id}/entity_relationships/batch","href":"/api-reference/user-account/batch-create-user-account-entity-relationships"}]},{"group":"User Credit Transaction","pages":[{"title":"Create a User Credit Transaction","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/user_credit_transactions","href":"/api-reference/user-credit-transaction/create-a-user-credit-transaction"},{"title":"Retrieve a User Credit Transaction","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/user_credit_transactions/{user_credit_transaction_id}","href":"/api-reference/user-credit-transaction/retrieve-a-user-credit-transaction"},{"title":"Update a User Credit Transaction","deprecated":null,"version":null,"openapi":"/openapi.json patch /v2/user_credit_transactions/{user_credit_transaction_id}","href":"/api-reference/user-credit-transaction/update-a-user-credit-transaction"},{"title":"Reverse a User Credit Transaction","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/user_credit_transactions/{user_credit_transaction_id}/reverse","href":"/api-reference/user-credit-transaction/reverse-a-user-credit-transaction"}]},{"group":"Blockchain Payment","pages":[{"title":"List all Blockchain Payments","deprecated":null,"version":null,"openapi":"/openapi.json get /v0/blockchain_payments","href":"/api-reference/blockchain-payment/list-all-blockchain-payments"},{"title":"Create a Blockchain Payment","deprecated":null,"version":null,"openapi":"/openapi.json post /v0/blockchain_payments","href":"/api-reference/blockchain-payment/create-a-blockchain-payment"},{"title":"Retrieve a Blockchain Payment","deprecated":null,"version":null,"openapi":"/openapi.json get /v0/blockchain_payments/{blockchain_payment_id}","href":"/api-reference/blockchain-payment/retrieve-a-blockchain-payment"}]},{"group":"Blockchain Payment Beta","pages":[{"title":"List all Blockchain Payments Beta","deprecated":null,"version":null,"openapi":"/openapi.json get /beta/blockchain_payments","href":"/api-reference/blockchain-payment-beta/list-all-blockchain-payments-beta"},{"title":"Create a Blockchain Payment Beta","deprecated":null,"version":null,"openapi":"/openapi.json post /beta/blockchain_payments","href":"/api-reference/blockchain-payment-beta/create-a-blockchain-payment-beta"},{"title":"Retrieve a Blockchain Payment Beta","deprecated":null,"version":null,"openapi":"/openapi.json get /beta/blockchain_payments/{blockchain_payment_id}","href":"/api-reference/blockchain-payment-beta/retrieve-a-blockchain-payment-beta"},{"title":"Cancel a Blockchain Payment Beta","deprecated":null,"version":null,"openapi":"/openapi.json post /beta/blockchain_payments/{blockchain_payment_id}/cancel","href":"/api-reference/blockchain-payment-beta/cancel-a-blockchain-payment-beta"}]},{"group":"Blockchain Deposit Address Beta","pages":[{"title":"List all Blockchain Deposit Addresses Beta","deprecated":null,"version":null,"openapi":"/openapi.json get /beta/blockchain_deposit_addresses","href":"/api-reference/blockchain-deposit-address-beta/list-all-blockchain-deposit-addresses-beta"},{"title":"Create a Blockchain Deposit Address Beta","deprecated":null,"version":null,"openapi":"/openapi.json post /beta/blockchain_deposit_addresses","href":"/api-reference/blockchain-deposit-address-beta/create-a-blockchain-deposit-address-beta"},{"title":"Retrieve a Blockchain Deposit Address Beta","deprecated":null,"version":null,"openapi":"/openapi.json get /beta/blockchain_deposit_addresses/{blockchain_deposit_address_id}","href":"/api-reference/blockchain-deposit-address-beta/retrieve-a-blockchain-deposit-address-beta"},{"title":"Update a Blockchain Deposit Address Beta","deprecated":null,"version":null,"openapi":"/openapi.json patch /beta/blockchain_deposit_addresses/{blockchain_deposit_address_id}","href":"/api-reference/blockchain-deposit-address-beta/update-a-blockchain-deposit-address-beta"}]},{"group":"Receivable","pages":[{"title":"List all Receivables","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/receivables","href":"/api-reference/receivable/list-all-receivables"},{"title":"Retrieve a Receivable","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/receivables/{receivable_id}","href":"/api-reference/receivable/retrieve-a-receivable"}]},{"group":"User Credit Balance","pages":[{"title":"Create a Credit Balance","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/user_credit_balances","href":"/api-reference/user-credit-balance/create-a-credit-balance"},{"title":"Retrieve a Credit Balance","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/user_credit_balances/{user_credit_balance_id}","href":"/api-reference/user-credit-balance/retrieve-a-credit-balance"},{"title":"Update a Credit Balance","deprecated":null,"version":null,"openapi":"/openapi.json patch /v2/user_credit_balances/{user_credit_balance_id}","href":"/api-reference/user-credit-balance/update-a-credit-balance"},{"title":"Activate a Credit Balance","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/user_credit_balances/{user_credit_balance_id}/activate","href":"/api-reference/user-credit-balance/activate-a-credit-balance"},{"title":"Deactivate a Credit Balance","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/user_credit_balances/{user_credit_balance_id}/deactivate","href":"/api-reference/user-credit-balance/deactivate-a-credit-balance"},{"title":"Close a Credit Balance","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/user_credit_balances/{user_credit_balance_id}/close","href":"/api-reference/user-credit-balance/close-a-credit-balance"},{"title":"Stop Reporting on a Credit Balance","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/user_credit_balances/{user_credit_balance_id}/stop_reporting","href":"/api-reference/user-credit-balance/stop-reporting-on-a-credit-balance"}]},{"group":"Files","pages":[{"title":"Create a file","deprecated":null,"version":null,"openapi":"/openapi.json post /v2/files","href":"/api-reference/files/create-a-file"},{"title":"Retrieve a file","deprecated":null,"version":null,"openapi":"/openapi.json get /v2/files/{file_id}","href":"/api-reference/files/retrieve-a-file"}]}]}]}]}]},"basePath":"","title":"Update an Entity - Lead | API Docs","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BuieBNTB.js","snippetPresets-alIv9Yoc.js","utils-BS41p-Nj.js","style-to-object-BY3JEAdk.js","utils-D0Za9LU_.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Lx7TZ5XR.js","conditional-requirements-CFM0id0Q.js","cloneDeep-4e5CS5ZI.js","_Uint8Array-B2-W7EM3.js","isObject-FP1Yky1u.js","ApiExamples-sCe6z2hN.js","usePlaygroundInputsStore-cU_dFE5n.js","shallow-BwNCr__O.js","isEqual-Cnvzqd4L.js","CodeSnippets-CMIr49P8.js","CodeSnippet-BC-bKzyy.js","use-playground-group-access-c3bgmn-x.js","Page-Acw_JRP6.js","api-description-markdown-1o8U1kkQ.js","DynamicMarkdown-CvOkzads.js","SectionHeading-CJ97Kdt-.js","MethodPill-DynWltjQ.js","getPastedJson-CBCnXiWl.js","Check2Icon-CPHq_WNu.js","axios-CsQoIw0U.js","Markdown-4tjIF-hK.js","AssistantPageLink-BcChI7L3.js","dist-MIf_HGLZ.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}