Creates or updates invoices, their payments, and refunds in one request. Layer applies the invoices first, then the payments and their dedicated refunds, then the standalone refunds. Layer validates invoice balances once at the end.The request is atomic. If any invoice, payment, or refund fails, nothing is saved.
Request rules
Send payments in the top-level payments list, not inside an invoice.
If a payment pays several invoices, include all of those invoices in the same request.
Payments and refunds that you don’t include are left unchanged.
For details on rate limit headers, see Rate Limiting.
Authorizations
Authorization
string
header
required
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Content-Type
string
Content-Type must be set to application/json.
Path Parameters
businessId
string<uuid>
required
The UUID of the business to sync invoices for.
Body
application/json
Invoices, payments, and standalone refunds to apply in one atomic request.
invoices
object[]
Invoices to create or update, matched by external_id. Each uses the same parameters as the create invoice endpoint, except that payments must be omitted. Send payments in the top-level payments list.
Show child attributes
payments
object[]
Payments to create or update, matched by external_id. Each uses the same parameters as the bulk create invoice payments endpoint, including dedicated_refunds. A payment may allocate to several invoices.
Standalone refunds to create or update, matched by external_id. Each uses the same parameters as the bulk create refunds endpoint. A refund with allocations is itemized, and any other refund is simple. Layer applies refunds after payments, so a refund can target a payment from the same request. To lower an invoice's net payments, target the payment with invoice_payment_id or invoice_payment_external_id.
Simple refund creation parameters. The system will automatically calculate the refund amount based on the specified target (invoice, line item, or payment). At least one target identifier must be provided.
Simple Refund
Itemized Refund
Show child attributes
Response
Every invoice, payment, and refund was applied. Returns each one in its final state.
data
object
required
Final state of the invoices, payments, and refunds in a sync request.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Layer","colors":{"primary":"#5ba183","light":"#7e9be5","dark":"#5ba183"},"logo":{"light":"https://mintcdn.com/layerfinancialtechnologiesinc/vN7_-byPIlUr9WYu/logo/layer_logo.svg?fit=max\u0026auto=format\u0026n=vN7_-byPIlUr9WYu\u0026q=85\u0026s=731d805a8bf32985beb197f69ae937e6","dark":"https://mintcdn.com/layerfinancialtechnologiesinc/vN7_-byPIlUr9WYu/logo/layer_logo.svg?fit=max\u0026auto=format\u0026n=vN7_-byPIlUr9WYu\u0026q=85\u0026s=731d805a8bf32985beb197f69ae937e6","href":"http://layerfi.com"},"favicon":"https://mintcdn.com/layerfinancialtechnologiesinc/0_c_qPO4Af3kMlwQ/favicon.png?fit=max\u0026auto=format\u0026n=0_c_qPO4Af3kMlwQ\u0026q=85\u0026s=ec8ea64f9b358b7cf5fac926e2a06566","api":{"openapi":["openApiSpec.json"],"playground":{"display":"simple"},"mdx":{"auth":{"method":"bearer"},"server":"https://sandbox.layerfi.com"}},"appearance":{"default":"light","strict":true},"background":{"color":{"dark":"#090014"}},"navbar":{"links":[{"href":"https://dashboard.layerfi.com/sign-in","label":"Log in"}],"primary":{"type":"button","label":"Contact Sales","href":"https://www.layerfi.com/contact"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"layerfinancialtechnologiesinc","hasAudioNarration":false,"actualSubdomain":"layerfinancialtechnologiesinc","customDomains":["docs.layerfi.com"],"gitSource":{"type":"github","owner":"layer-fi","repo":"api-documentation","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b076bfba28c9316ce5ce4a5","clientVersion":"0.0.4342","searchFilterCounts":[{"language":"default","tag":"API Reference","count":382},{"language":"default","tag":"Financial Activity","count":262},{"language":"default","tag":"Businesses","count":66},{"language":"default","tag":"Accounts Receivable","count":65},{"language":"default","tag":"Accounts Payable","count":47},{"language":"default","tag":"Integrations","count":41},{"language":"default","tag":"Accounting Reports","count":41},{"language":"default","tag":"Guides","count":33},{"language":"default","tag":"Bank Transactions","count":33},{"language":"default","tag":"Embedded Components","count":31}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"site-roles","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":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/v1/sync-invoices","slug":"/api-reference/v1/sync-invoices","pageMetadata":{"openapi":"post /v1/businesses/{businessId}/invoices/sync","title":"Sync invoices and payments","description":"Create or update invoices, their payments, and refunds in one atomic request. Invoice balances are validated once, after all changes are applied.","href":"/api-reference/v1/sync-invoices"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create or update invoices, their payments, and refunds in one atomic request. Invoice balances are validated once, after all changes are applied.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Creates or updates invoices, their payments, and refunds in one request. Layer applies the invoices first, then the payments and their dedicated refunds, then the standalone refunds. Layer validates invoice balances once at the end.`}),`\n`,_jsx(_components.p,{children:`The request is atomic. If any invoice, payment, or refund fails, nothing is saved.`}),`\n`,_jsx(Heading,{level:`2`,id:`request-rules`,children:`Request rules`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Send payments in the top-level `,_jsx(_components.code,{children:`payments`}),` list, not inside an invoice.`]}),`\n`,_jsx(_components.li,{children:`If a payment pays several invoices, include all of those invoices in the same request.`}),`\n`,_jsx(_components.li,{children:`Payments and refunds that you don’t include are left unchanged.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`example`,children:`Example`}),`\n`,_jsx(CodeBlock,{filename:`Request`,numberOfLines:`49`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`49`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -X POST https://sandbox.layerfi.com/v1/businesses/{businessId}/invoices/sync \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -H `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authorization: Bearer \u003caccess_token>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -H `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -d `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"invoices\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"external_id\": \"inv-1001\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"customer_external_id\": \"customer-42\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"sent_at\": \"2026-11-10T16:41:07Z\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"line_items\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"external_id\": \"inv-1001-line-1\", \"product\": \"Brake pads\", \"unit_price\": 9000, \"quantity\": 1 }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"payments\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"external_id\": \"pay-456\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"paid_at\": \"2026-11-10T17:00:00Z\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"method\": \"CREDIT_CARD\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"amount\": 10000,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"invoice_payments\": [{ \"invoice_external_id\": \"inv-1001\", \"amount\": 10000 }],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"dedicated_refunds\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"external_id\": \"ref-123\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"completed_at\": \"2026-11-18T00:00:00Z\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"method\": \"CREDIT_CARD\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"line_items\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"amount\": 1000, \"account_identifier\": { \"type\": \"StableName\", \"stable_name\": \"CUSTOMER_REFUNDS\" } }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"refunds\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"external_id\": \"ref-124\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"completed_at\": \"2026-11-18T00:00:00Z\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"method\": \"CASH\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"allocations\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"invoice_payment_external_id\": \"pay-456\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"line_items\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"amount\": 500, \"account_identifier\": { \"type\": \"StableName\", \"stable_name\": \"CUSTOMER_REFUNDS\" } }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`rate-limiting`,children:`Rate Limiting`}),`\n`,_jsxs(_components.p,{children:[`This endpoint shares its rate limit with `,_jsx(_components.a,{href:`/api-reference/v1/bulk-create-invoices`,children:`Bulk create invoices`}),` and `,_jsx(_components.a,{href:`/api-reference/v1/batch-create-invoices`,children:`Batch create invoices`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Environment`}),_jsx(_components.th,{children:`Limit`}),_jsx(_components.th,{children:`Refill Period`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Sandbox`}),_jsx(_components.td,{children:`20 requests`}),_jsx(_components.td,{children:`1 second`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Production`}),_jsx(_components.td,{children:`20 requests`}),_jsx(_components.td,{children:`1 second`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`For details on rate limit headers, see `,_jsx(_components.a,{href:`/api-details/rate-limiting`,children:`Rate Limiting`}),`.`]})]})}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":"post /v1/businesses/{businessId}/invoices/sync","title":"Sync invoices and payments","description":"Create or update invoices, their payments, and refunds in one atomic request. Invoice balances are validated once, after all changes are applied.","href":"/api-reference/v1/sync-invoices"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Request rules","slug":"request-rules","depth":2,"children":[]},{"title":"Example","slug":"example","depth":2,"children":[]},{"title":"Rate Limiting","slug":"rate-limiting","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/layerfinancialtechnologiesinc/9c1eae5d582125a5/scripts/validate-docs-links.js","/_mintlify/custom/layerfinancialtechnologiesinc/b18193903b896216/scripts/validate-local-images.js"],"openApiReferenceData":{"operation":{"tags":[],"summary":"Sync invoices and payments","description":"Create or update invoices, their payments, and refunds in one atomic request. Invoice balances are validated once, after all changes are applied.","operationId":"business.invoices.sync.post","parameters":["c83843ff-92dc-49e4-a3ca-1f79fe73305f","4927b134-4363-4e72-886c-a48ef909aa70"],"requestBody":"97b85c81-1415-439c-ada2-020a5850bd71","responses":{"200":"76889411-e26f-49bf-a350-1a06ce38ab58","400":"9adba068-78ac-42d1-a64c-4570620a7d53","404":"2baedef8-957f-4b3f-a35c-6cad0fc7716d"},"deprecated":false,"method":"post","type":"path","servers":[],"security":["cf482010-f292-4576-bdab-9629fe093486"],"path":"/v1/businesses/{businessId}/invoices/sync","baseUrlOptions":["https://sandbox.layerfi.com"],"title":"Sync invoices and payments","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"c83843ff-92dc-49e4-a3ca-1f79fe73305f":{"name":"businessId","in":"path","description":"The UUID of the business to sync invoices for.","required":true,"schema":{"type":"string","format":"uuid","isRequired":true,"description":"The UUID of the business to sync invoices for.","uniqueKey":"","typeLabel":"string\u003cuuid>"}},"4927b134-4363-4e72-886c-a48ef909aa70":{"name":"Content-Type","in":"header","description":"Content-Type must be set to application/json.","schema":{"type":"string","description":"Content-Type must be set to application/json.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Invoices, payments, and standalone refunds to apply in one atomic request.","properties":{"invoices":{"type":"array","items":{"type":"object","properties":{"external_id":{"type":"string","description":"External ID for the invoice within your platform. **Idempotency key**. If an invoice with this `external_id` exists and the request differs from it, Layer updates that invoice in place.","example":"019234","uniqueKey":"invoices.items.[INDEX].external_id","typeLabel":"string"},"sent_at":{"type":"string","description":"When the invoice was sent by the business to the recipient. Accepts an ISO 8601 date (`YYYY-MM-DD`) or a full ISO 8601 timestamp. A date-only value is stored as midnight Eastern Time on that day.","example":"2024-04-02","uniqueKey":"invoices.items.[INDEX].sent_at","typeLabel":"string"},"due_at":{"type":"string","description":"When the invoice is due. Accepts an ISO 8601 date (`YYYY-MM-DD`) or a full ISO 8601 timestamp. A date-only value is stored as midnight Eastern Time on that day.","example":"2024-05-02","uniqueKey":"invoices.items.[INDEX].due_at","typeLabel":"string"},"voided_at":{"type":"string","format":"date-time","description":"When the invoice was voided. Voiding excludes the invoice entirely from accounting.","uniqueKey":"invoices.items.[INDEX].voided_at","typeLabel":"string\u003cdate-time>"},"customer_id":{"type":"string","format":"uuid","description":"ID of the customer to associate with the invoice. Either `customer_id` or `customer_external_id` must be provided.","uniqueKey":"invoices.items.[INDEX].customer_id","typeLabel":"string\u003cuuid>"},"customer_external_id":{"type":"string","description":"External ID of the customer to associate with the invoice. Either `customer_id` or `customer_external_id` must be provided. If the customer does not already exist, Layer will create it using this external ID.","uniqueKey":"invoices.items.[INDEX].customer_external_id","typeLabel":"string"},"line_items":{"type":"array","items":{"type":"object","properties":{"account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Account identifier for the line item. If specified, the line item is attributed to that specific account. If omitted, Layer maps the product name to an account using the business or industry accounting configuration.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Account identifier for the line item. If specified, the line item is attributed to that specific account. If omitted, Layer maps the product name to an account using the business or industry accounting configuration.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].account_identifier","typeLabel":"Account ID · object | Account Stable Name · object"},"prepayment_account_identifier":{"type":"object","properties":{"type":{"type":"string","description":"Resource type. Value will be `Single_Chart_Account`.","example":"Single_Chart_Account","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier.type","typeLabel":"string"},"id":{"oneOf":[{"type":"object","title":"Account ID","description":"ID of the account.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier.id.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier.id.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier.id.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Stable name associated with the account.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier.id.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier.id.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier.id.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier.id","typeLabel":"Account ID · object | Account Stable Name · object"},"name":{"type":"string","description":"Name of the account.","example":"Current Assets","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier.name","typeLabel":"string"},"account_number":{"oneOf":[{"type":"string","description":"Account number if configured.","example":"4000","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier.account_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Account number if configured.","example":"4000","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier.account_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier.account_number","typeLabel":"string | null"},"stable_name":{"type":"object","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier.stable_name.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier.stable_name.stable_name","typeLabel":"string"}},"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier.stable_name","typeLabel":"object"},"normality":{"type":"string","enum":["CREDIT","DEBIT"],"example":"DEBIT","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier.normality","typeLabel":"enum\u003cstring>"},"account_type":{"type":"object","properties":{"value":{"type":"string","enum":["ASSET","LIABILITY","EQUITY","REVENUE","EXPENSE"],"example":"ASSET","description":"Type of the account.","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier.account_type.value","typeLabel":"enum\u003cstring>"},"display_name":{"type":"string","description":"Display name of the account type.","example":"Asset","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier.account_type.display_name","typeLabel":"string"}},"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier.account_type","typeLabel":"object"},"account_subtype":{"type":"object","properties":{"value":{"type":"string","enum":["BANK_ACCOUNTS","ACCOUNTS_RECEIVABLE","INVENTORY","PAYMENT_PROCESSOR_CLEARING_ACCOUNT","FIXED_ASSET","ACCUMULATED_DEPRECIATION","CASH","UNDEPOSITED_FUNDS","CURRENT_ASSET","NON_CURRENT_ASSET","PREPAID_EXPENSES","DEVELOPMENT_COSTS","LOANS_RECEIVABLE","INTANGIBLE_ASSET","ACCOUNTS_PAYABLE","CREDIT_CARD","TAXES_PAYABLE","INCOME_TAXES_PAYABLE","SALES_TAXES_PAYABLE","OTHER_TAXES_PAYABLE","PAYROLL_TAXES_PAYABLE","UNEARNED_REVENUE","PAYROLL_LIABILITY","PAYROLL_CLEARING","LINE_OF_CREDIT","TIPS","REFUND_LIABILITIES","UNDEPOSITED_OUTFLOWS","OUTGOING_PAYMENT_CLEARING_ACCOUNT","OTHER_CURRENT_LIABILITY","LOANS_PAYABLE","NOTES_PAYABLE","SHAREHOLDER_LOAN","NON_CURRENT_LIABILITY","CONTRIBUTIONS","DISTRIBUTIONS","COMMON_STOCK","PREFERRED_STOCK","ADDITIONAL_PAID_IN_CAPITAL","RETAINED_EARNINGS","ACCUMULATED_ADJUSTMENTS","OPENING_BALANCE_EQUITY","OTHER_EQUITY","SALES","UNCATEGORIZED_REVENUE","RETURNS_ALLOWANCES","DIVIDEND_INCOME","INTEREST_INCOME","OTHER_INCOME","COGS","OPERATING_EXPENSES","PAYROLL","TAXES_LICENSES","UNCATEGORIZED_EXPENSE","CHARITABLE_CONTRIBUTIONS","LOAN_EXPENSES","FINANCE_COSTS","INTEREST_EXPENSES","DEPRECIATION","AMORTIZATION","BAD_DEBT","OTHER_EXPENSES"],"example":"BANK_ACCOUNTS","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier.account_subtype.value","typeLabel":"enum\u003cstring>"},"display_name":{"type":"string","description":"Display name of the account subtype.","example":"Current Assets","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier.account_subtype.display_name","typeLabel":"string"}},"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier.account_subtype","typeLabel":"object"}},"description":"Ledger account for the line item used for accrual reporting. Should only be specified when this line item is a pre-payment.","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier","typeLabel":"object"},"external_id":{"oneOf":[{"type":"string","description":"The external ID of the invoice line item in your system.","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The external ID of the invoice line item in your system.","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].external_id","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","description":"Description for the new invoice line item.","example":"Line item description","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Description for the new invoice line item.","example":"Line item description","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].description","typeLabel":"string | null"},"product":{"type":"string","description":"Name of the product the line item is for.","example":"Widgets","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].product","typeLabel":"string"},"unit_price":{"type":"integer","format":"int64","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].unit_price","typeLabel":"integer\u003cint64>"},"quantity":{"oneOf":[{"type":"number","format":"bigdecimal","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].quantity.oneOf.0","typeLabel":"number\u003cbigdecimal>"},{"type":"null","format":"bigdecimal","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].quantity.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].quantity","typeLabel":"number\u003cbigdecimal> | null"},"discount_amount":{"oneOf":[{"type":"integer","format":"int64","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].discount_amount.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].discount_amount.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].discount_amount","typeLabel":"integer\u003cint64> | null"},"sales_taxes":{"oneOf":[{"type":"array","items":{"type":"object","required":["amount"],"properties":{"amount":{"type":"integer","format":"int64","description":"Amount, in cents, of tax owed.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].amount","typeLabel":"integer\u003cint64>"},"tax_account":{"oneOf":[{"type":"object","title":"Tax Name","description":"Tax identifier for this line item. Use a `Tax_Name` object to have Layer create or reuse a tax account by name, or use an `AccountId` or `StableName` account identifier when you want to target a specific ledger account.","required":["name"],"properties":{"name":{"type":"string","description":"Name of the ledger account.","example":"CALIFORNIA_VAT","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_account.oneOf.0.name","typeLabel":"string"},"type":{"type":"string","description":"Resource type. Value will be 'Tax_Name'.","example":"Tax_Name","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_account.oneOf.0.type","typeLabel":"string"}},"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_account.oneOf.0","typeLabel":"Tax Name · object"},{"type":"object","title":"Ledger Account ID","description":"Tax identifier for this line item. Use a `Tax_Name` object to have Layer create or reuse a tax account by name, or use an `AccountId` or `StableName` account identifier when you want to target a specific ledger account.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_account.oneOf.1.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_account.oneOf.1.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_account.oneOf.1","typeLabel":"Ledger Account ID · object"},{"type":"object","title":"Ledger Account Stable Name","description":"Tax identifier for this line item. Use a `Tax_Name` object to have Layer create or reuse a tax account by name, or use an `AccountId` or `StableName` account identifier when you want to target a specific ledger account.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_account.oneOf.2.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_account.oneOf.2.stable_name","typeLabel":"string"}},"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_account.oneOf.2","typeLabel":"Ledger Account Stable Name · object"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_account","typeLabel":"Tax Name · object | Ledger Account ID · object | Ledger Account Stable Name · object"}},"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Sales tax obligations for this line item.","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","required":["amount"],"properties":{"tax_account":{"oneOf":[{"type":"object","title":"Tax Name","description":"Tax identifier for this line item. Use a `Tax_Name` object to have Layer create or reuse a tax account by name, or use an `AccountId` or `StableName` account identifier when you want to target a specific ledger account.","required":["name"],"properties":{"type":{"type":"string","description":"Resource type. Value will be 'Tax_Name'.","example":"Tax_Name"},"name":{"type":"string","description":"Name of the ledger account.","example":"CALIFORNIA_VAT"}}},{"type":"object","title":"Ledger Account ID","description":"Tax identifier for this line item. Use a `Tax_Name` object to have Layer create or reuse a tax account by name, or use an `AccountId` or `StableName` account identifier when you want to target a specific ledger account.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Ledger Account Stable Name","description":"Tax identifier for this line item. Use a `Tax_Name` object to have Layer create or reuse a tax account by name, or use an `AccountId` or `StableName` account identifier when you want to target a specific ledger account.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}}]},"amount":{"type":"integer","format":"int64","description":"Amount, in cents, of tax owed."}}},"description":"Sales tax obligations for this line item.","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes","typeLabel":"object[] | null"},"dedicated_refunds":{"type":"array","items":{"type":"object","properties":{"external_id":{"type":"string","description":"Unique ID of the refund in your system for linking purposes. **Idempotency key**.","example":"31415926535","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].external_id","typeLabel":"string"},"account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Optional account identifier to override what ledger account the dedicated refund comes out of.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Optional account identifier to override what ledger account the dedicated refund comes out of.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"line_items":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"amount":{"type":"integer","format":"int64","description":"The amount of this line item in cents.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].amount","typeLabel":"integer\u003cint64>"},"external_id":{"oneOf":[{"type":"string","description":"An external identifier for the line item.","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"An external identifier for the line item.","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].external_id","typeLabel":"string | null"},"account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Identifier of the ledger account for this line item.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Identifier of the ledger account for this line item.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"prepayment_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Identifier of the prepayment ledger account for this line item.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Identifier of the prepayment ledger account for this line item.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"tags":{"type":"array","items":{"type":"object","description":"A TagKeyValue holds key=value data related to a tag. This is used when creating or updating taggable entities (transactions, invoices, etc.).","properties":{"key":{"type":"string","description":"The tag dimension key (e.g., \"department\", \"project\", \"location\").","example":"department","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"The tag value (e.g., \"sales\", \"marketing\", \"engineering\").","example":"sales","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].value","typeLabel":"string"},"dimension_display_name":{"oneOf":[{"type":"string","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].value_display_name","typeLabel":"string | null"}},"required":["key","value"],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX]","typeLabel":"object"},"description":"Tags to associate with the line item.","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the line item.","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the line item.","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation line item.","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation line item.","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].reference_number","typeLabel":"string | null"}},"required":["amount"],"description":"Parameters for creating a refund allocation line item.","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Detailed line items for the refund allocation. Use this for itemized refunds where you need to specify the exact amounts and accounts.","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"external_id":{"oneOf":[{"type":"string","description":"An external identifier for the line item."},{"type":"null","description":"An external identifier for the line item."}]},"amount":{"type":"integer","format":"int64","description":"The amount of this line item in cents."},"account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Identifier of the ledger account for this line item.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Identifier of the ledger account for this line item.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},{"type":"null"}]},"prepayment_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Identifier of the prepayment ledger account for this line item.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Identifier of the prepayment ledger account for this line item.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},{"type":"null"}]},"tags":{"type":"array","items":{"type":"object","description":"A TagKeyValue holds key=value data related to a tag. This is used when creating or updating taggable entities (transactions, invoices, etc.).","properties":{"key":{"type":"string","description":"The tag dimension key (e.g., \"department\", \"project\", \"location\").","example":"department"},"dimension_display_name":{"oneOf":[{"type":"string","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department"},{"type":"null","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department"}]},"value":{"type":"string","description":"The tag value (e.g., \"sales\", \"marketing\", \"engineering\").","example":"sales"},"value_display_name":{"oneOf":[{"type":"string","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department"},{"type":"null","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department"}]}},"required":["key","value"]},"description":"Tags to associate with the line item."},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the line item."},{"type":"null","description":"Memo for any text you would like to associate with the line item."}]},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}}},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}}}]},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation line item."},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation line item."}]}},"required":["amount"],"description":"Parameters for creating a refund allocation line item."},"description":"Detailed line items for the refund allocation. Use this for itemized refunds where you need to specify the exact amounts and accounts.","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].line_items","typeLabel":"object[] | null"},"completed_at":{"type":"string","format":"date-time","description":"When the dedicated refund was given and paid.","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].completed_at","typeLabel":"string\u003cdate-time>"},"refund_processing_fee":{"type":"integer","format":"int64","description":"Fee charged to the business for processing the refund.","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].refund_processing_fee","typeLabel":"integer\u003cint64>"},"method":{"type":"string","enum":["CASH","CHECK","CREDIT_CARD","ACH","CREDIT_BALANCE","OTHER"],"example":"ACH","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].method","typeLabel":"enum\u003cstring>"},"processor":{"oneOf":[{"type":"string","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].processor.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].processor.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].processor","typeLabel":"string | null"},"refunded_payment_fees":{"type":"array","items":{"type":"object","properties":{"account":{"oneOf":[{"type":"object","title":"Account ID","description":"Account to which the fee should be allocated.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Account to which the fee should be allocated.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.1.stable_name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.1","typeLabel":"Account Stable Name · object"}],"isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].account","typeLabel":"Account ID · object | Account Stable Name · object"},"fee_amount":{"type":"integer","format":"int64","description":"Amount of the fee in cents.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].fee_amount","typeLabel":"integer\u003cint64>"},"description":{"oneOf":[{"type":"string","description":"Description of the fee.","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Description of the fee.","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].description","typeLabel":"string | null"}},"required":["account","fee_amount"],"description":"Input parameters for a refunded payment fee.","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX]","typeLabel":"object"},"description":"List of fees associated with the payment for this dedicated refund. These are refunded from the payment processor rather than the business.","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees","typeLabel":"object[]"},"tags":{"type":"array","items":{"type":"object","description":"A TagKeyValue holds key=value data related to a tag. This is used when creating or updating taggable entities (transactions, invoices, etc.).","properties":{"key":{"type":"string","description":"The tag dimension key (e.g., \"department\", \"project\", \"location\").","example":"department","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"The tag value (e.g., \"sales\", \"marketing\", \"engineering\").","example":"sales","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].value","typeLabel":"string"},"dimension_display_name":{"oneOf":[{"type":"string","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].value_display_name","typeLabel":"string | null"}},"required":["key","value"],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX]","typeLabel":"object"},"description":"List of tags associated with this dedicated refund.","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the refund (for example, to display to end users).","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the refund (for example, to display to end users).","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the refund. Can be used to filter when listing refunds.","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the refund. Can be used to filter when listing refunds.","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].reference_number","typeLabel":"string | null"},"payment_clearing_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Optional account identifier to specify the clearing account for inferred refund payments. Only used when the system automatically generates a payment for the dedicated refund.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Optional account identifier to specify the clearing account for inferred refund payments. Only used when the system automatically generates a payment for the dedicated refund.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"}},"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds.items.[INDEX]","typeLabel":"object"},"description":"Dedicated refunds to associate with this invoice line item.","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].dedicated_refunds","typeLabel":"object[]"},"tags":{"type":"array","items":{"type":"object","description":"A TagKeyValue holds key=value data related to a tag. This is used when creating or updating taggable entities (transactions, invoices, etc.).","properties":{"key":{"type":"string","description":"The tag dimension key (e.g., \"department\", \"project\", \"location\").","example":"department","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"The tag value (e.g., \"sales\", \"marketing\", \"engineering\").","example":"sales","isRequired":true,"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].tags.items.[INDEX].value","typeLabel":"string"},"dimension_display_name":{"oneOf":[{"type":"string","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].tags.items.[INDEX].value_display_name","typeLabel":"string | null"}},"required":["key","value"],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].tags.items.[INDEX]","typeLabel":"object"},"description":"List of tags to associate with the invoice line item.","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].tags","typeLabel":"object[]"},"time_entry_id":{"oneOf":[{"type":"string","format":"uuid","description":"UUID of a time entry to link to this invoice line item. The time entry is automatically unlinked when the line item is deleted or updated to remove it.","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].time_entry_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"UUID of a time entry to link to this invoice line item. The time entry is automatically unlinked when the line item is deleted or updated to remove it.","uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].time_entry_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX].time_entry_id","typeLabel":"string\u003cuuid> | null"}},"uniqueKey":"invoices.items.[INDEX].line_items.items.[INDEX]","typeLabel":"object"},"description":"Line items making up the invoice.","uniqueKey":"invoices.items.[INDEX].line_items","typeLabel":"object[]"},"additional_sales_taxes":{"type":"array","items":{"type":"object","required":["amount"],"properties":{"amount":{"type":"integer","format":"int64","description":"Amount, in cents, of tax owed.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].amount","typeLabel":"integer\u003cint64>"},"tax_account":{"oneOf":[{"type":"object","title":"Tax Name","description":"Tax identifier for this line item. Use a `Tax_Name` object to have Layer create or reuse a tax account by name, or use an `AccountId` or `StableName` account identifier when you want to target a specific ledger account.","required":["name"],"properties":{"name":{"type":"string","description":"Name of the ledger account.","example":"CALIFORNIA_VAT","isRequired":true,"uniqueKey":"invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_account.oneOf.0.name","typeLabel":"string"},"type":{"type":"string","description":"Resource type. Value will be 'Tax_Name'.","example":"Tax_Name","uniqueKey":"invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_account.oneOf.0.type","typeLabel":"string"}},"uniqueKey":"invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_account.oneOf.0","typeLabel":"Tax Name · object"},{"type":"object","title":"Ledger Account ID","description":"Tax identifier for this line item. Use a `Tax_Name` object to have Layer create or reuse a tax account by name, or use an `AccountId` or `StableName` account identifier when you want to target a specific ledger account.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_account.oneOf.1.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_account.oneOf.1.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_account.oneOf.1","typeLabel":"Ledger Account ID · object"},{"type":"object","title":"Ledger Account Stable Name","description":"Tax identifier for this line item. Use a `Tax_Name` object to have Layer create or reuse a tax account by name, or use an `AccountId` or `StableName` account identifier when you want to target a specific ledger account.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_account.oneOf.2.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_account.oneOf.2.stable_name","typeLabel":"string"}},"uniqueKey":"invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_account.oneOf.2","typeLabel":"Ledger Account Stable Name · object"}],"uniqueKey":"invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_account","typeLabel":"Tax Name · object | Ledger Account ID · object | Ledger Account Stable Name · object"}},"uniqueKey":"invoices.items.[INDEX].additional_sales_taxes.items.[INDEX]","typeLabel":"object"},"description":"List of additional sales tax obligations on the invoice outside individual line items.","uniqueKey":"invoices.items.[INDEX].additional_sales_taxes","typeLabel":"object[]"},"additional_discount":{"type":"integer","description":"Additional discount applied to the whole invoice in addition to individual line items.","uniqueKey":"invoices.items.[INDEX].additional_discount","typeLabel":"integer"},"tips":{"type":"integer","description":"Tips included by the buyer, in cents.","uniqueKey":"invoices.items.[INDEX].tips","typeLabel":"integer"},"tips_account":{"oneOf":[{"type":"object","title":"Account ID","description":"The Account Identifier for a tips account. If not specified, Layer uses the chart's default tips account, which is typically a liability account. Specify a different account if tips should be tracked as revenue.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"invoices.items.[INDEX].tips_account.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].tips_account.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"invoices.items.[INDEX].tips_account.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"The Account Identifier for a tips account. If not specified, Layer uses the chart's default tips account, which is typically a liability account. Specify a different account if tips should be tracked as revenue.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"invoices.items.[INDEX].tips_account.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].tips_account.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"invoices.items.[INDEX].tips_account.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"invoices.items.[INDEX].tips_account","typeLabel":"Account ID · object | Account Stable Name · object"},"payments":{"oneOf":[{"type":"array","items":{"type":"object","required":["method","amount"],"properties":{"method":{"type":"string","enum":["CASH","CHECK","CREDIT_CARD","ACH","CREDIT_BALANCE","OTHER"],"example":"ACH","description":"Method used to make the payment.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].method","typeLabel":"enum\u003cstring>"},"amount":{"type":"integer","format":"int64","description":"Value of the payment, in cents.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].amount","typeLabel":"integer\u003cint64>"},"external_id":{"oneOf":[{"type":"string","description":"External ID for the payment within your platform. **Idempotency key**.","example":"12345","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"External ID for the payment within your platform. **Idempotency key**.","example":"12345","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].external_id","typeLabel":"string | null"},"paid_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the payment was made. If omitted, Layer uses the `sent_at` of the invoice.","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].paid_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the payment was made. If omitted, Layer uses the `sent_at` of the invoice.","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].paid_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].paid_at","typeLabel":"string\u003cdate-time> | null"},"fee":{"oneOf":[{"type":"integer","format":"int64","description":"Fee associated with processing a payment, e.g. credit card processing fees, in cents.","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].fee.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"Fee associated with processing a payment, e.g. credit card processing fees, in cents.","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].fee.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].fee","typeLabel":"integer\u003cint64> | null"},"processor":{"oneOf":[{"type":"string","description":"Processor used to make the payment, if any. Any processor name can be provided and will be tracked.","example":"STRIPE","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].processor.oneOf.0","typeLabel":"string"},{"type":"null","description":"Processor used to make the payment, if any. Any processor name can be provided and will be tracked.","example":"STRIPE","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].processor.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].processor","typeLabel":"string | null"},"payment_clearing_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"The the ledger account to use for the payment (overrides the default determined by the payment method).","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].payment_clearing_account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].payment_clearing_account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].payment_clearing_account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"The the ledger account to use for the payment (overrides the default determined by the payment method).","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].payment_clearing_account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].payment_clearing_account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].payment_clearing_account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].payment_clearing_account_identifier","typeLabel":"Account ID · object | Account Stable Name · object"},"dedicated_refunds":{"type":"array","items":{"type":"object","properties":{"external_id":{"type":"string","description":"Unique ID of the refund in your system for linking purposes. **Idempotency key**.","example":"31415926535","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].external_id","typeLabel":"string"},"account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Optional account identifier to override what ledger account the dedicated refund comes out of.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Optional account identifier to override what ledger account the dedicated refund comes out of.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"line_items":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"amount":{"type":"integer","format":"int64","description":"The amount of this line item in cents.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].amount","typeLabel":"integer\u003cint64>"},"external_id":{"oneOf":[{"type":"string","description":"An external identifier for the line item.","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"An external identifier for the line item.","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].external_id","typeLabel":"string | null"},"account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Identifier of the ledger account for this line item.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Identifier of the ledger account for this line item.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"prepayment_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Identifier of the prepayment ledger account for this line item.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Identifier of the prepayment ledger account for this line item.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"tags":{"type":"array","items":{"type":"object","description":"A TagKeyValue holds key=value data related to a tag. This is used when creating or updating taggable entities (transactions, invoices, etc.).","properties":{"key":{"type":"string","description":"The tag dimension key (e.g., \"department\", \"project\", \"location\").","example":"department","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"The tag value (e.g., \"sales\", \"marketing\", \"engineering\").","example":"sales","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].value","typeLabel":"string"},"dimension_display_name":{"oneOf":[{"type":"string","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].value_display_name","typeLabel":"string | null"}},"required":["key","value"],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX]","typeLabel":"object"},"description":"Tags to associate with the line item.","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the line item.","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the line item.","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation line item.","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation line item.","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].reference_number","typeLabel":"string | null"}},"required":["amount"],"description":"Parameters for creating a refund allocation line item.","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Detailed line items for the refund allocation. Use this for itemized refunds where you need to specify the exact amounts and accounts.","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"external_id":{"oneOf":[{"type":"string","description":"An external identifier for the line item."},{"type":"null","description":"An external identifier for the line item."}]},"amount":{"type":"integer","format":"int64","description":"The amount of this line item in cents."},"account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Identifier of the ledger account for this line item.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Identifier of the ledger account for this line item.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},{"type":"null"}]},"prepayment_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Identifier of the prepayment ledger account for this line item.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Identifier of the prepayment ledger account for this line item.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},{"type":"null"}]},"tags":{"type":"array","items":{"type":"object","description":"A TagKeyValue holds key=value data related to a tag. This is used when creating or updating taggable entities (transactions, invoices, etc.).","properties":{"key":{"type":"string","description":"The tag dimension key (e.g., \"department\", \"project\", \"location\").","example":"department"},"dimension_display_name":{"oneOf":[{"type":"string","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department"},{"type":"null","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department"}]},"value":{"type":"string","description":"The tag value (e.g., \"sales\", \"marketing\", \"engineering\").","example":"sales"},"value_display_name":{"oneOf":[{"type":"string","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department"},{"type":"null","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department"}]}},"required":["key","value"]},"description":"Tags to associate with the line item."},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the line item."},{"type":"null","description":"Memo for any text you would like to associate with the line item."}]},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}}},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}}}]},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation line item."},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation line item."}]}},"required":["amount"],"description":"Parameters for creating a refund allocation line item."},"description":"Detailed line items for the refund allocation. Use this for itemized refunds where you need to specify the exact amounts and accounts.","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].line_items","typeLabel":"object[] | null"},"completed_at":{"type":"string","format":"date-time","description":"When the dedicated refund was given and paid.","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].completed_at","typeLabel":"string\u003cdate-time>"},"refund_processing_fee":{"type":"integer","format":"int64","description":"Fee charged to the business for processing the refund.","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].refund_processing_fee","typeLabel":"integer\u003cint64>"},"method":{"type":"string","enum":["CASH","CHECK","CREDIT_CARD","ACH","CREDIT_BALANCE","OTHER"],"example":"ACH","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].method","typeLabel":"enum\u003cstring>"},"processor":{"oneOf":[{"type":"string","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].processor.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].processor.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].processor","typeLabel":"string | null"},"refunded_payment_fees":{"type":"array","items":{"type":"object","properties":{"account":{"oneOf":[{"type":"object","title":"Account ID","description":"Account to which the fee should be allocated.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Account to which the fee should be allocated.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.1.stable_name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.1","typeLabel":"Account Stable Name · object"}],"isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].account","typeLabel":"Account ID · object | Account Stable Name · object"},"fee_amount":{"type":"integer","format":"int64","description":"Amount of the fee in cents.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].fee_amount","typeLabel":"integer\u003cint64>"},"description":{"oneOf":[{"type":"string","description":"Description of the fee.","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Description of the fee.","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].description","typeLabel":"string | null"}},"required":["account","fee_amount"],"description":"Input parameters for a refunded payment fee.","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX]","typeLabel":"object"},"description":"List of fees associated with the payment for this dedicated refund. These are refunded from the payment processor rather than the business.","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees","typeLabel":"object[]"},"tags":{"type":"array","items":{"type":"object","description":"A TagKeyValue holds key=value data related to a tag. This is used when creating or updating taggable entities (transactions, invoices, etc.).","properties":{"key":{"type":"string","description":"The tag dimension key (e.g., \"department\", \"project\", \"location\").","example":"department","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"The tag value (e.g., \"sales\", \"marketing\", \"engineering\").","example":"sales","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].value","typeLabel":"string"},"dimension_display_name":{"oneOf":[{"type":"string","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].value_display_name","typeLabel":"string | null"}},"required":["key","value"],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX]","typeLabel":"object"},"description":"List of tags associated with this dedicated refund.","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the refund (for example, to display to end users).","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the refund (for example, to display to end users).","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the refund. Can be used to filter when listing refunds.","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the refund. Can be used to filter when listing refunds.","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].reference_number","typeLabel":"string | null"},"payment_clearing_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Optional account identifier to specify the clearing account for inferred refund payments. Only used when the system automatically generates a payment for the dedicated refund.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Optional account identifier to specify the clearing account for inferred refund payments. Only used when the system automatically generates a payment for the dedicated refund.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"}},"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds.items.[INDEX]","typeLabel":"object"},"description":"Dedicated refunds to associate with this invoice payment.","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].dedicated_refunds","typeLabel":"object[]"},"tags":{"type":"array","items":{"type":"object","description":"A TagKeyValue holds key=value data related to a tag. This is used when creating or updating taggable entities (transactions, invoices, etc.).","properties":{"key":{"type":"string","description":"The tag dimension key (e.g., \"department\", \"project\", \"location\").","example":"department","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"The tag value (e.g., \"sales\", \"marketing\", \"engineering\").","example":"sales","isRequired":true,"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].tags.items.[INDEX].value","typeLabel":"string"},"dimension_display_name":{"oneOf":[{"type":"string","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].tags.items.[INDEX].value_display_name","typeLabel":"string | null"}},"required":["key","value"],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].tags.items.[INDEX]","typeLabel":"object"},"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the invoice payment (for example, to display to end users).","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the invoice payment (for example, to display to end users).","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the invoice payment. Can be used to filter when listing invoice payments.","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the invoice payment. Can be used to filter when listing invoice payments.","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX].reference_number","typeLabel":"string | null"}},"uniqueKey":"invoices.items.[INDEX].payments.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Payments that have been made towards the balance of the invoice. Include these to create an immediately paid or partially paid invoice in the same API call. When upserting an existing invoice: omitting this field (or passing `null`) preserves any existing dedicated payments; passing an empty array `[]` removes all dedicated payments. Non-dedicated payments (those independently recorded or included in a payout) are never removed by this field.","uniqueKey":"invoices.items.[INDEX].payments.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","required":["method","amount"],"properties":{"external_id":{"oneOf":[{"type":"string","description":"External ID for the payment within your platform. **Idempotency key**.","example":"12345"},{"type":"null","description":"External ID for the payment within your platform. **Idempotency key**.","example":"12345"}]},"paid_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the payment was made. If omitted, Layer uses the `sent_at` of the invoice."},{"type":"null","format":"date-time","description":"When the payment was made. If omitted, Layer uses the `sent_at` of the invoice."}]},"method":{"type":"string","enum":["CASH","CHECK","CREDIT_CARD","ACH","CREDIT_BALANCE","OTHER"],"example":"ACH","description":"Method used to make the payment."},"fee":{"oneOf":[{"type":"integer","format":"int64","description":"Fee associated with processing a payment, e.g. credit card processing fees, in cents."},{"type":"null","format":"int64","description":"Fee associated with processing a payment, e.g. credit card processing fees, in cents."}]},"amount":{"type":"integer","format":"int64","description":"Value of the payment, in cents."},"processor":{"oneOf":[{"type":"string","description":"Processor used to make the payment, if any. Any processor name can be provided and will be tracked.","example":"STRIPE"},{"type":"null","description":"Processor used to make the payment, if any. Any processor name can be provided and will be tracked.","example":"STRIPE"}]},"payment_clearing_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"The the ledger account to use for the payment (overrides the default determined by the payment method).","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"The the ledger account to use for the payment (overrides the default determined by the payment method).","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}}]},"dedicated_refunds":{"type":"array","items":{"type":"object","properties":{"external_id":{"type":"string","description":"Unique ID of the refund in your system for linking purposes. **Idempotency key**.","example":"31415926535"},"account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Optional account identifier to override what ledger account the dedicated refund comes out of.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Optional account identifier to override what ledger account the dedicated refund comes out of.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},{"type":"null"}]},"line_items":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"external_id":{"oneOf":[{"type":"string","description":"An external identifier for the line item."},{"type":"null","description":"An external identifier for the line item."}]},"amount":{"type":"integer","format":"int64","description":"The amount of this line item in cents."},"account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Identifier of the ledger account for this line item.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Identifier of the ledger account for this line item.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},{"type":"null"}]},"prepayment_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Identifier of the prepayment ledger account for this line item.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Identifier of the prepayment ledger account for this line item.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},{"type":"null"}]},"tags":{"type":"array","items":{"type":"object","description":"A TagKeyValue holds key=value data related to a tag. This is used when creating or updating taggable entities (transactions, invoices, etc.).","properties":{"key":{"type":"string","description":"The tag dimension key (e.g., \"department\", \"project\", \"location\").","example":"department"},"dimension_display_name":{"oneOf":[{"type":"string","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department"},{"type":"null","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department"}]},"value":{"type":"string","description":"The tag value (e.g., \"sales\", \"marketing\", \"engineering\").","example":"sales"},"value_display_name":{"oneOf":[{"type":"string","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department"},{"type":"null","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department"}]}},"required":["key","value"]},"description":"Tags to associate with the line item."},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the line item."},{"type":"null","description":"Memo for any text you would like to associate with the line item."}]},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}}},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}}}]},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation line item."},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation line item."}]}},"required":["amount"],"description":"Parameters for creating a refund allocation line item."},"description":"Detailed line items for the refund allocation. Use this for itemized refunds where you need to specify the exact amounts and accounts."},{"type":"null","items":{"type":"object","properties":{"external_id":{"oneOf":[{"type":"string","description":"An external identifier for the line item."},{"type":"null","description":"An external identifier for the line item."}]},"amount":{"type":"integer","format":"int64","description":"The amount of this line item in cents."},"account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Identifier of the ledger account for this line item.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Identifier of the ledger account for this line item.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},{"type":"null"}]},"prepayment_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Identifier of the prepayment ledger account for this line item.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Identifier of the prepayment ledger account for this line item.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},{"type":"null"}]},"tags":{"type":"array","items":{"type":"object","description":"A TagKeyValue holds key=value data related to a tag. This is used when creating or updating taggable entities (transactions, invoices, etc.).","properties":{"key":{"type":"string","description":"The tag dimension key (e.g., \"department\", \"project\", \"location\").","example":"department"},"dimension_display_name":{"oneOf":[{"type":"string","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department"},{"type":"null","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department"}]},"value":{"type":"string","description":"The tag value (e.g., \"sales\", \"marketing\", \"engineering\").","example":"sales"},"value_display_name":{"oneOf":[{"type":"string","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department"},{"type":"null","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department"}]}},"required":["key","value"]},"description":"Tags to associate with the line item."},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the line item."},{"type":"null","description":"Memo for any text you would like to associate with the line item."}]},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}}},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}}}]},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation line item."},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation line item."}]}},"required":["amount"],"description":"Parameters for creating a refund allocation line item."},"description":"Detailed line items for the refund allocation. Use this for itemized refunds where you need to specify the exact amounts and accounts."}]},"completed_at":{"type":"string","format":"date-time","description":"When the dedicated refund was given and paid."},"refund_processing_fee":{"type":"integer","format":"int64","description":"Fee charged to the business for processing the refund."},"method":{"type":"string","enum":["CASH","CHECK","CREDIT_CARD","ACH","CREDIT_BALANCE","OTHER"],"example":"ACH"},"processor":{"oneOf":[{"type":"string"},{"type":"null"}]},"refunded_payment_fees":{"type":"array","items":{"type":"object","properties":{"account":{"oneOf":[{"type":"object","title":"Account ID","description":"Account to which the fee should be allocated.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Account to which the fee should be allocated.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}}]},"description":{"oneOf":[{"type":"string","description":"Description of the fee."},{"type":"null","description":"Description of the fee."}]},"fee_amount":{"type":"integer","format":"int64","description":"Amount of the fee in cents."}},"required":["account","fee_amount"],"description":"Input parameters for a refunded payment fee."},"description":"List of fees associated with the payment for this dedicated refund. These are refunded from the payment processor rather than the business."},"tags":{"type":"array","items":{"type":"object","description":"A TagKeyValue holds key=value data related to a tag. This is used when creating or updating taggable entities (transactions, invoices, etc.).","properties":{"key":{"type":"string","description":"The tag dimension key (e.g., \"department\", \"project\", \"location\").","example":"department"},"dimension_display_name":{"oneOf":[{"type":"string","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department"},{"type":"null","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department"}]},"value":{"type":"string","description":"The tag value (e.g., \"sales\", \"marketing\", \"engineering\").","example":"sales"},"value_display_name":{"oneOf":[{"type":"string","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department"},{"type":"null","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department"}]}},"required":["key","value"]},"description":"List of tags associated with this dedicated refund."},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the refund (for example, to display to end users)."},{"type":"null","description":"Memo for any text you would like to associate with the refund (for example, to display to end users)."}]},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}}},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}}}]},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the refund. Can be used to filter when listing refunds."},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the refund. Can be used to filter when listing refunds."}]},"payment_clearing_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Optional account identifier to specify the clearing account for inferred refund payments. Only used when the system automatically generates a payment for the dedicated refund.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Optional account identifier to specify the clearing account for inferred refund payments. Only used when the system automatically generates a payment for the dedicated refund.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},{"type":"null"}]}}},"description":"Dedicated refunds to associate with this invoice payment."},"tags":{"type":"array","items":{"type":"object","description":"A TagKeyValue holds key=value data related to a tag. This is used when creating or updating taggable entities (transactions, invoices, etc.).","properties":{"key":{"type":"string","description":"The tag dimension key (e.g., \"department\", \"project\", \"location\").","example":"department"},"dimension_display_name":{"oneOf":[{"type":"string","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department"},{"type":"null","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department"}]},"value":{"type":"string","description":"The tag value (e.g., \"sales\", \"marketing\", \"engineering\").","example":"sales"},"value_display_name":{"oneOf":[{"type":"string","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department"},{"type":"null","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department"}]}},"required":["key","value"]}},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the invoice payment (for example, to display to end users)."},{"type":"null","description":"Memo for any text you would like to associate with the invoice payment (for example, to display to end users)."}]},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}}},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}}}]},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the invoice payment. Can be used to filter when listing invoice payments."},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the invoice payment. Can be used to filter when listing invoice payments."}]}}},"description":"Payments that have been made towards the balance of the invoice. Include these to create an immediately paid or partially paid invoice in the same API call. When upserting an existing invoice: omitting this field (or passing `null`) preserves any existing dedicated payments; passing an empty array `[]` removes all dedicated payments. Non-dedicated payments (those independently recorded or included in a payout) are never removed by this field.","uniqueKey":"invoices.items.[INDEX].payments.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].payments","typeLabel":"object[] | null"},"dedicated_refunds":{"type":"array","items":{"type":"object","properties":{"external_id":{"type":"string","description":"Unique ID of the refund in your system for linking purposes. **Idempotency key**.","example":"31415926535","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].external_id","typeLabel":"string"},"account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Optional account identifier to override what ledger account the dedicated refund comes out of.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Optional account identifier to override what ledger account the dedicated refund comes out of.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"line_items":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"amount":{"type":"integer","format":"int64","description":"The amount of this line item in cents.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].amount","typeLabel":"integer\u003cint64>"},"external_id":{"oneOf":[{"type":"string","description":"An external identifier for the line item.","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"An external identifier for the line item.","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].external_id","typeLabel":"string | null"},"account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Identifier of the ledger account for this line item.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Identifier of the ledger account for this line item.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"prepayment_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Identifier of the prepayment ledger account for this line item.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Identifier of the prepayment ledger account for this line item.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"tags":{"type":"array","items":{"type":"object","description":"A TagKeyValue holds key=value data related to a tag. This is used when creating or updating taggable entities (transactions, invoices, etc.).","properties":{"key":{"type":"string","description":"The tag dimension key (e.g., \"department\", \"project\", \"location\").","example":"department","isRequired":true,"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"The tag value (e.g., \"sales\", \"marketing\", \"engineering\").","example":"sales","isRequired":true,"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].value","typeLabel":"string"},"dimension_display_name":{"oneOf":[{"type":"string","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].value_display_name","typeLabel":"string | null"}},"required":["key","value"],"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX]","typeLabel":"object"},"description":"Tags to associate with the line item.","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the line item.","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the line item.","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation line item.","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation line item.","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].reference_number","typeLabel":"string | null"}},"required":["amount"],"description":"Parameters for creating a refund allocation line item.","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Detailed line items for the refund allocation. Use this for itemized refunds where you need to specify the exact amounts and accounts.","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"external_id":{"oneOf":[{"type":"string","description":"An external identifier for the line item."},{"type":"null","description":"An external identifier for the line item."}]},"amount":{"type":"integer","format":"int64","description":"The amount of this line item in cents."},"account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Identifier of the ledger account for this line item.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Identifier of the ledger account for this line item.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},{"type":"null"}]},"prepayment_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Identifier of the prepayment ledger account for this line item.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Identifier of the prepayment ledger account for this line item.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},{"type":"null"}]},"tags":{"type":"array","items":{"type":"object","description":"A TagKeyValue holds key=value data related to a tag. This is used when creating or updating taggable entities (transactions, invoices, etc.).","properties":{"key":{"type":"string","description":"The tag dimension key (e.g., \"department\", \"project\", \"location\").","example":"department"},"dimension_display_name":{"oneOf":[{"type":"string","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department"},{"type":"null","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department"}]},"value":{"type":"string","description":"The tag value (e.g., \"sales\", \"marketing\", \"engineering\").","example":"sales"},"value_display_name":{"oneOf":[{"type":"string","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department"},{"type":"null","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department"}]}},"required":["key","value"]},"description":"Tags to associate with the line item."},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the line item."},{"type":"null","description":"Memo for any text you would like to associate with the line item."}]},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}}},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}}}]},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation line item."},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation line item."}]}},"required":["amount"],"description":"Parameters for creating a refund allocation line item."},"description":"Detailed line items for the refund allocation. Use this for itemized refunds where you need to specify the exact amounts and accounts.","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].line_items","typeLabel":"object[] | null"},"completed_at":{"type":"string","format":"date-time","description":"When the dedicated refund was given and paid.","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].completed_at","typeLabel":"string\u003cdate-time>"},"refund_processing_fee":{"type":"integer","format":"int64","description":"Fee charged to the business for processing the refund.","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].refund_processing_fee","typeLabel":"integer\u003cint64>"},"method":{"type":"string","enum":["CASH","CHECK","CREDIT_CARD","ACH","CREDIT_BALANCE","OTHER"],"example":"ACH","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].method","typeLabel":"enum\u003cstring>"},"processor":{"oneOf":[{"type":"string","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].processor.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].processor.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].processor","typeLabel":"string | null"},"refunded_payment_fees":{"type":"array","items":{"type":"object","properties":{"account":{"oneOf":[{"type":"object","title":"Account ID","description":"Account to which the fee should be allocated.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"isRequired":true,"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Account to which the fee should be allocated.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.1.stable_name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.1","typeLabel":"Account Stable Name · object"}],"isRequired":true,"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].account","typeLabel":"Account ID · object | Account Stable Name · object"},"fee_amount":{"type":"integer","format":"int64","description":"Amount of the fee in cents.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].fee_amount","typeLabel":"integer\u003cint64>"},"description":{"oneOf":[{"type":"string","description":"Description of the fee.","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Description of the fee.","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].description","typeLabel":"string | null"}},"required":["account","fee_amount"],"description":"Input parameters for a refunded payment fee.","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX]","typeLabel":"object"},"description":"List of fees associated with the payment for this dedicated refund. These are refunded from the payment processor rather than the business.","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees","typeLabel":"object[]"},"tags":{"type":"array","items":{"type":"object","description":"A TagKeyValue holds key=value data related to a tag. This is used when creating or updating taggable entities (transactions, invoices, etc.).","properties":{"key":{"type":"string","description":"The tag dimension key (e.g., \"department\", \"project\", \"location\").","example":"department","isRequired":true,"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"The tag value (e.g., \"sales\", \"marketing\", \"engineering\").","example":"sales","isRequired":true,"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].value","typeLabel":"string"},"dimension_display_name":{"oneOf":[{"type":"string","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].value_display_name","typeLabel":"string | null"}},"required":["key","value"],"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX]","typeLabel":"object"},"description":"List of tags associated with this dedicated refund.","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the refund (for example, to display to end users).","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the refund (for example, to display to end users).","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the refund. Can be used to filter when listing refunds.","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the refund. Can be used to filter when listing refunds.","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].reference_number","typeLabel":"string | null"},"payment_clearing_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Optional account identifier to specify the clearing account for inferred refund payments. Only used when the system automatically generates a payment for the dedicated refund.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Optional account identifier to specify the clearing account for inferred refund payments. Only used when the system automatically generates a payment for the dedicated refund.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"}},"uniqueKey":"invoices.items.[INDEX].dedicated_refunds.items.[INDEX]","typeLabel":"object"},"description":"Dedicated refunds to associate with this invoice.","uniqueKey":"invoices.items.[INDEX].dedicated_refunds","typeLabel":"object[]"},"tags":{"type":"array","items":{"type":"object","description":"A TagKeyValue holds key=value data related to a tag. This is used when creating or updating taggable entities (transactions, invoices, etc.).","properties":{"key":{"type":"string","description":"The tag dimension key (e.g., \"department\", \"project\", \"location\").","example":"department","isRequired":true,"uniqueKey":"invoices.items.[INDEX].tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"The tag value (e.g., \"sales\", \"marketing\", \"engineering\").","example":"sales","isRequired":true,"uniqueKey":"invoices.items.[INDEX].tags.items.[INDEX].value","typeLabel":"string"},"dimension_display_name":{"oneOf":[{"type":"string","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"invoices.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"invoices.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"invoices.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"invoices.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].tags.items.[INDEX].value_display_name","typeLabel":"string | null"}},"required":["key","value"],"uniqueKey":"invoices.items.[INDEX].tags.items.[INDEX]","typeLabel":"object"},"uniqueKey":"invoices.items.[INDEX].tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the invoice (for example, to display to end users).","uniqueKey":"invoices.items.[INDEX].memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the invoice (for example, to display to end users).","uniqueKey":"invoices.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"invoices.items.[INDEX].metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"invoices.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the invoice. Can be used to filter when listing invoices.","uniqueKey":"invoices.items.[INDEX].reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the invoice. Can be used to filter when listing invoices.","uniqueKey":"invoices.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoices.items.[INDEX].reference_number","typeLabel":"string | null"}},"uniqueKey":"invoices.items.[INDEX]","typeLabel":"object"},"description":"Invoices to create or update, matched by `external_id`. Each uses the same parameters as the create invoice endpoint, except that `payments` must be omitted. Send payments in the top-level `payments` list.","uniqueKey":"invoices","typeLabel":"object[]"},"payments":{"type":"array","items":{"type":"object","required":["paid_at","method","amount","invoice_payments"],"properties":{"paid_at":{"type":"string","format":"date-time","description":"The timestamp when the payment was made.","isRequired":true,"uniqueKey":"payments.items.[INDEX].paid_at","typeLabel":"string\u003cdate-time>"},"method":{"type":"string","enum":["CASH","CHECK","CREDIT_CARD","ACH","CREDIT_BALANCE","OTHER"],"example":"ACH","description":"Payment method.","isRequired":true,"uniqueKey":"payments.items.[INDEX].method","typeLabel":"enum\u003cstring>"},"amount":{"type":"integer","format":"int64","description":"Payment amount in cents.","isRequired":true,"uniqueKey":"payments.items.[INDEX].amount","typeLabel":"integer\u003cint64>"},"invoice_payments":{"type":"array","items":{"oneOf":[{"type":"object","title":"Invoice Payment Allocation","description":"Allocates a portion of the payment to a specific invoice.","properties":{"invoice_id":{"type":"string","format":"uuid","description":"Layer ID of the invoice to apply payment. Either the invoice_id or invoice_external_id must be provided.","uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.0.invoice_id","typeLabel":"string\u003cuuid>"},"invoice_external_id":{"type":"string","format":"uuid","description":"External ID of the invoice payment. Either the invoice_id or invoice_external_id must be provided.","uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.0.invoice_external_id","typeLabel":"string\u003cuuid>"},"amount":{"type":"integer","format":"int64","description":"Amount paid towards this invoice in cents.","uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.0.amount","typeLabel":"integer\u003cint64>"},"tags":{"type":"array","items":{"type":"object","description":"A TagKeyValue holds key=value data related to a tag. This is used when creating or updating taggable entities (transactions, invoices, etc.).","properties":{"key":{"type":"string","description":"The tag dimension key (e.g., \"department\", \"project\", \"location\").","example":"department","isRequired":true,"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.0.tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"The tag value (e.g., \"sales\", \"marketing\", \"engineering\").","example":"sales","isRequired":true,"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.0.tags.items.[INDEX].value","typeLabel":"string"},"dimension_display_name":{"oneOf":[{"type":"string","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.0.tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.0.tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.0.tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.0.tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.0.tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.0.tags.items.[INDEX].value_display_name","typeLabel":"string | null"}},"required":["key","value"],"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.0.tags.items.[INDEX]","typeLabel":"object"},"description":"Tags to apply to the allocation.","uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.0.tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the invoice payment allocation (for example, to display to end users).","uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.0.memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the invoice payment allocation (for example, to display to end users).","uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.0.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.0.memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.0.metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.0.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.0.metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the invoice payment allocation.","uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.0.reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the invoice payment allocation.","uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.0.reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.0.reference_number","typeLabel":"string | null"}},"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.0","typeLabel":"Invoice Payment Allocation · object"},{"type":"object","title":"Ledger Account Allocation","description":"Allocates a portion of the payment directly to a ledger account, rather than to an invoice.","required":["account","amount"],"properties":{"account":{"oneOf":[{"type":"object","title":"Account ID","description":"The [Account Identifier](/api-reference/ledger/account-identifier) of the ledger account to allocate to. The presence of this field distinguishes a ledger account allocation from an invoice allocation.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.1.account.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.1.account.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"isRequired":true,"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.1.account.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"The [Account Identifier](/api-reference/ledger/account-identifier) of the ledger account to allocate to. The presence of this field distinguishes a ledger account allocation from an invoice allocation.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.1.account.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.1.account.oneOf.1.stable_name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.1.account.oneOf.1","typeLabel":"Account Stable Name · object"}],"isRequired":true,"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.1.account","typeLabel":"Account ID · object | Account Stable Name · object"},"amount":{"type":"integer","format":"int64","description":"Amount to allocate to this ledger account, in cents.","isRequired":true,"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.1.amount","typeLabel":"integer\u003cint64>"},"tags":{"type":"array","items":{"type":"object","description":"A TagKeyValue holds key=value data related to a tag. This is used when creating or updating taggable entities (transactions, invoices, etc.).","properties":{"key":{"type":"string","description":"The tag dimension key (e.g., \"department\", \"project\", \"location\").","example":"department","isRequired":true,"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.1.tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"The tag value (e.g., \"sales\", \"marketing\", \"engineering\").","example":"sales","isRequired":true,"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.1.tags.items.[INDEX].value","typeLabel":"string"},"dimension_display_name":{"oneOf":[{"type":"string","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.1.tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.1.tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.1.tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.1.tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.1.tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.1.tags.items.[INDEX].value_display_name","typeLabel":"string | null"}},"required":["key","value"],"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.1.tags.items.[INDEX]","typeLabel":"object"},"description":"Tags to apply to the allocation.","uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.1.tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Optional memo for the allocation.","uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.1.memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Optional memo for the allocation.","uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.1.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.1.memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.1.metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.1.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.1.metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"User-visible identifier for the allocation.","uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.1.reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"User-visible identifier for the allocation.","uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.1.reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.1.reference_number","typeLabel":"string | null"}},"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX].oneOf.1","typeLabel":"Ledger Account Allocation · object"}],"uniqueKey":"payments.items.[INDEX].invoice_payments.items.[INDEX]","typeLabel":"Invoice Payment Allocation · object | Ledger Account Allocation · object"},"description":"Each element in this array is either an `InvoicePaymentAllocation` (allocating to an invoice) or an `InvoicePaymentAllocationToLedgerAccount` (allocating directly to a ledger account). The type is determined by the fields present: if `account` is provided, it is treated as a ledger account allocation; otherwise, it is treated as an invoice allocation.","isRequired":true,"uniqueKey":"payments.items.[INDEX].invoice_payments","typeLabel":"(Invoice Payment Allocation · object | Ledger Account Allocation · object)[]"},"external_id":{"oneOf":[{"type":"string","description":"External identifier for the payment, used for idempotency.","uniqueKey":"payments.items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"External identifier for the payment, used for idempotency.","uniqueKey":"payments.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].external_id","typeLabel":"string | null"},"customer_id":{"oneOf":[{"type":"string","format":"uuid","description":"Layer ID of the customer to associate with the payment. Lets you tag a payment with a customer even before it is allocated to any invoice (for example, a standalone deposit). When the payment has invoice allocations, the customer must match the customer on every allocated invoice, otherwise the request is rejected with a 400.","uniqueKey":"payments.items.[INDEX].customer_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"Layer ID of the customer to associate with the payment. Lets you tag a payment with a customer even before it is allocated to any invoice (for example, a standalone deposit). When the payment has invoice allocations, the customer must match the customer on every allocated invoice, otherwise the request is rejected with a 400.","uniqueKey":"payments.items.[INDEX].customer_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].customer_id","typeLabel":"string\u003cuuid> | null"},"customer_external_id":{"oneOf":[{"type":"string","description":"External ID of the customer to associate with the payment. Can be specified in place of `customer_id`.","uniqueKey":"payments.items.[INDEX].customer_external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"External ID of the customer to associate with the payment. Can be specified in place of `customer_id`.","uniqueKey":"payments.items.[INDEX].customer_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].customer_external_id","typeLabel":"string | null"},"fee":{"oneOf":[{"type":"integer","format":"int64","description":"Fee amount in cents.","uniqueKey":"payments.items.[INDEX].fee.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"Fee amount in cents.","uniqueKey":"payments.items.[INDEX].fee.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].fee","typeLabel":"integer\u003cint64> | null"},"additional_fees":{"type":"array","items":{"oneOf":[{"type":"object","title":"Standard fee","description":"Parameters for creating an additional fee on an invoice payment. The fee `type` is optional and defaults to `STANDARD`; use `LOAN_REPAYMENT` to record a loan repayment as part of the payment.","required":["account","fee_amount"],"properties":{"account":{"oneOf":[{"type":"object","title":"Account ID","description":"The [Account Identifier](/api-reference/ledger/account-identifier) for the fee to be debited.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.0.account.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.0.account.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"isRequired":true,"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.0.account.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"The [Account Identifier](/api-reference/ledger/account-identifier) for the fee to be debited.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.0.account.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.0.account.oneOf.1.stable_name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.0.account.oneOf.1","typeLabel":"Account Stable Name · object"}],"isRequired":true,"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.0.account","typeLabel":"Account ID · object | Account Stable Name · object"},"fee_amount":{"type":"integer","format":"int64","description":"Amount of the fee in cents.","isRequired":true,"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.0.fee_amount","typeLabel":"integer\u003cint64>"},"type":{"type":"string","enum":["STANDARD"],"default":"STANDARD","description":"Discriminator for the fee type. Optional; defaults to `STANDARD`.","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"Optional description of the fee.","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.0.description","typeLabel":"string"},"is_passed_to_customer":{"type":"boolean","description":"Whether or not the fee is passed to the customer. It is paid by the business otherwise. When calculating the outstanding balance on the invoice, only the portion of each payment allocation that is applied to the invoice (excluding pass-through fees) is considered. This allows customers to pay the invoice amount plus any pass-through fees without the invoice being considered overpaid.","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.0.is_passed_to_customer","typeLabel":"boolean"}},"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.0","typeLabel":"Standard fee · object"},{"type":"object","title":"Loan repayment fee","description":"Parameters for creating an additional fee on an invoice payment. The fee `type` is optional and defaults to `STANDARD`; use `LOAN_REPAYMENT` to record a loan repayment as part of the payment.","required":["type","loan_payment"],"properties":{"type":{"type":"string","enum":["LOAN_REPAYMENT"],"description":"Discriminator for the fee type. Must be `LOAN_REPAYMENT`.","isRequired":true,"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"loan_payment":{"type":"object","description":"The loan payment to create and link to this invoice payment.","required":["amount","date"],"properties":{"amount":{"type":"integer","format":"int64","description":"Total payment amount, in cents. Must equal the sum of the splits. Use a negative amount to record a reversal of an earlier payment, for example when a lender returns a repayment it withheld. Record the reversal as its own payment; do not edit the payment it offsets.","isRequired":true,"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.amount","typeLabel":"integer\u003cint64>"},"date":{"type":"string","format":"date","description":"Date of the payment.","isRequired":true,"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.date","typeLabel":"string\u003cdate>"},"loan_id":{"oneOf":[{"type":"string","format":"uuid","description":"ID of the loan being paid. Provide this or `loan_external_id`.","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.loan_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID of the loan being paid. Provide this or `loan_external_id`.","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.loan_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.loan_id","typeLabel":"string\u003cuuid> | null"},"loan_external_id":{"oneOf":[{"type":"string","description":"External ID of the loan being paid. Provide this or `loan_id`.","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.loan_external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"External ID of the loan being paid. Provide this or `loan_id`.","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.loan_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.loan_external_id","typeLabel":"string | null"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the payment in your system for linking purposes.","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the payment in your system for linking purposes.","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.external_id","typeLabel":"string | null"},"splits":{"oneOf":[{"type":"array","items":{"type":"object","description":"How a portion of a loan payment is allocated. All splits on a payment must sum to the payment `amount` and share its sign.","required":["split_type","amount"],"properties":{"split_type":{"type":"string","description":"The portion of a loan payment a split applies to.","enum":["PRINCIPAL","INTEREST","FEE"],"example":"PRINCIPAL","isRequired":true,"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.splits.oneOf.0.items.[INDEX].split_type","typeLabel":"enum\u003cstring>"},"amount":{"type":"integer","format":"int64","description":"Split amount, in cents. Must share the sign of the payment `amount`, so splits on a reversal are negative.","isRequired":true,"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.splits.oneOf.0.items.[INDEX].amount","typeLabel":"integer\u003cint64>"},"account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"For `INTEREST` and `FEE` splits, the expense account to post to (defaults to `INTEREST_EXPENSE` and `OTHER_FEES` respectively). Ignored for `PRINCIPAL` splits.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.splits.oneOf.0.items.[INDEX].account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.splits.oneOf.0.items.[INDEX].account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.splits.oneOf.0.items.[INDEX].account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"For `INTEREST` and `FEE` splits, the expense account to post to (defaults to `INTEREST_EXPENSE` and `OTHER_FEES` respectively). Ignored for `PRINCIPAL` splits.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.splits.oneOf.0.items.[INDEX].account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.splits.oneOf.0.items.[INDEX].account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.splits.oneOf.0.items.[INDEX].account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.splits.oneOf.0.items.[INDEX].account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.splits.oneOf.0.items.[INDEX].account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the split in your system for linking purposes.","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.splits.oneOf.0.items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the split in your system for linking purposes.","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.splits.oneOf.0.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.splits.oneOf.0.items.[INDEX].external_id","typeLabel":"string | null"}},"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.splits.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Breakdown of the payment into principal, interest, and fee portions. Optional for MCA and flex loans: when omitted, Layer derives a `PRINCIPAL`/`FEE` split from the loan's `fee_percentage` (`principal = amount / (1 + fee_percentage / 100)`, fee = remainder). Required for all other loan types. Provide explicit splits to override the derived ones.","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.splits.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","description":"How a portion of a loan payment is allocated. All splits on a payment must sum to the payment `amount` and share its sign.","required":["split_type","amount"],"properties":{"split_type":{"type":"string","description":"The portion of a loan payment a split applies to.","enum":["PRINCIPAL","INTEREST","FEE"],"example":"PRINCIPAL"},"amount":{"type":"integer","format":"int64","description":"Split amount, in cents. Must share the sign of the payment `amount`, so splits on a reversal are negative."},"account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"For `INTEREST` and `FEE` splits, the expense account to post to (defaults to `INTEREST_EXPENSE` and `OTHER_FEES` respectively). Ignored for `PRINCIPAL` splits.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"For `INTEREST` and `FEE` splits, the expense account to post to (defaults to `INTEREST_EXPENSE` and `OTHER_FEES` respectively). Ignored for `PRINCIPAL` splits.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},{"type":"null"}]},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the split in your system for linking purposes."},{"type":"null","description":"Unique ID of the split in your system for linking purposes."}]}}},"description":"Breakdown of the payment into principal, interest, and fee portions. Optional for MCA and flex loans: when omitted, Layer derives a `PRINCIPAL`/`FEE` split from the loan's `fee_percentage` (`principal = amount / (1 + fee_percentage / 100)`, fee = remainder). Required for all other loan types. Provide explicit splits to override the derived ones.","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.splits.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.splits","typeLabel":"object[] | null"},"defer_posting":{"type":"boolean","default":false,"description":"If true, the payment is recorded but not posted to the ledger until it is paid out or its due date is reached.","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.defer_posting","typeLabel":"boolean"},"method":{"type":"string","description":"Payment method. Defaults to `OTHER`.","default":"OTHER","enum":["CASH","CHECK","CREDIT_CARD","ACH","CREDIT_BALANCE","OTHER"],"example":"ACH","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.method","typeLabel":"enum\u003cstring>"},"processor":{"oneOf":[{"type":"string","description":"Payment processor, if any (e.g. `stripe`).","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.processor.oneOf.0","typeLabel":"string"},{"type":"null","description":"Payment processor, if any (e.g. `stripe`).","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.processor.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.processor","typeLabel":"string | null"},"payment_clearing_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Override the clearing account used for the payment. Defaults based on `method`.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.payment_clearing_account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.payment_clearing_account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.payment_clearing_account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Override the clearing account used for the payment. Defaults based on `method`.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.payment_clearing_account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.payment_clearing_account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.payment_clearing_account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.payment_clearing_account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.payment_clearing_account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"memo":{"oneOf":[{"type":"string","description":"Internal note about the payment.","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Internal note about the payment.","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Reference number for the payment.","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Reference number for the payment.","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment.reference_number","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.loan_payment","typeLabel":"object"},"description":{"type":"string","description":"Optional description of the fee.","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1.description","typeLabel":"string"}},"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].oneOf.1","typeLabel":"Loan repayment fee · object"}],"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX]","typeLabel":"Standard fee · object | Loan repayment fee · object"},"description":"Additional fees associated with the payment.","uniqueKey":"payments.items.[INDEX].additional_fees","typeLabel":"(Standard fee · object | Loan repayment fee · object)[]"},"processor":{"oneOf":[{"type":"string","description":"Payment processor name.","uniqueKey":"payments.items.[INDEX].processor.oneOf.0","typeLabel":"string"},{"type":"null","description":"Payment processor name.","uniqueKey":"payments.items.[INDEX].processor.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].processor","typeLabel":"string | null"},"payment_clearing_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"The ledger account to use for the payment (overrides the default determined by the payment method).","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"payments.items.[INDEX].payment_clearing_account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"payments.items.[INDEX].payment_clearing_account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"payments.items.[INDEX].payment_clearing_account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"The ledger account to use for the payment (overrides the default determined by the payment method).","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"payments.items.[INDEX].payment_clearing_account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"payments.items.[INDEX].payment_clearing_account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"payments.items.[INDEX].payment_clearing_account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"payments.items.[INDEX].payment_clearing_account_identifier","typeLabel":"Account ID · object | Account Stable Name · object"},"redemption_account":{"oneOf":[{"type":"object","title":"Account ID","description":"Account to use for credit balance redemptions. Only applicable when method is CREDIT_BALANCE.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"payments.items.[INDEX].redemption_account.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"payments.items.[INDEX].redemption_account.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"payments.items.[INDEX].redemption_account.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Account to use for credit balance redemptions. Only applicable when method is CREDIT_BALANCE.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"payments.items.[INDEX].redemption_account.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"payments.items.[INDEX].redemption_account.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"payments.items.[INDEX].redemption_account.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"payments.items.[INDEX].redemption_account","typeLabel":"Account ID · object | Account Stable Name · object"},"dedicated_refunds":{"type":"array","items":{"type":"object","properties":{"external_id":{"type":"string","description":"Unique ID of the refund in your system for linking purposes. **Idempotency key**.","example":"31415926535","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].external_id","typeLabel":"string"},"account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Optional account identifier to override what ledger account the dedicated refund comes out of.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Optional account identifier to override what ledger account the dedicated refund comes out of.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"line_items":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"amount":{"type":"integer","format":"int64","description":"The amount of this line item in cents.","isRequired":true,"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].amount","typeLabel":"integer\u003cint64>"},"external_id":{"oneOf":[{"type":"string","description":"An external identifier for the line item.","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"An external identifier for the line item.","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].external_id","typeLabel":"string | null"},"account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Identifier of the ledger account for this line item.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Identifier of the ledger account for this line item.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"prepayment_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Identifier of the prepayment ledger account for this line item.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Identifier of the prepayment ledger account for this line item.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].prepayment_account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"tags":{"type":"array","items":{"type":"object","description":"A TagKeyValue holds key=value data related to a tag. This is used when creating or updating taggable entities (transactions, invoices, etc.).","properties":{"key":{"type":"string","description":"The tag dimension key (e.g., \"department\", \"project\", \"location\").","example":"department","isRequired":true,"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"The tag value (e.g., \"sales\", \"marketing\", \"engineering\").","example":"sales","isRequired":true,"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].value","typeLabel":"string"},"dimension_display_name":{"oneOf":[{"type":"string","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX].value_display_name","typeLabel":"string | null"}},"required":["key","value"],"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags.items.[INDEX]","typeLabel":"object"},"description":"Tags to associate with the line item.","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the line item.","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the line item.","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation line item.","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation line item.","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX].reference_number","typeLabel":"string | null"}},"required":["amount"],"description":"Parameters for creating a refund allocation line item.","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Detailed line items for the refund allocation. Use this for itemized refunds where you need to specify the exact amounts and accounts.","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"external_id":{"oneOf":[{"type":"string","description":"An external identifier for the line item."},{"type":"null","description":"An external identifier for the line item."}]},"amount":{"type":"integer","format":"int64","description":"The amount of this line item in cents."},"account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Identifier of the ledger account for this line item.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Identifier of the ledger account for this line item.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},{"type":"null"}]},"prepayment_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Identifier of the prepayment ledger account for this line item.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Identifier of the prepayment ledger account for this line item.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},{"type":"null"}]},"tags":{"type":"array","items":{"type":"object","description":"A TagKeyValue holds key=value data related to a tag. This is used when creating or updating taggable entities (transactions, invoices, etc.).","properties":{"key":{"type":"string","description":"The tag dimension key (e.g., \"department\", \"project\", \"location\").","example":"department"},"dimension_display_name":{"oneOf":[{"type":"string","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department"},{"type":"null","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department"}]},"value":{"type":"string","description":"The tag value (e.g., \"sales\", \"marketing\", \"engineering\").","example":"sales"},"value_display_name":{"oneOf":[{"type":"string","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department"},{"type":"null","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department"}]}},"required":["key","value"]},"description":"Tags to associate with the line item."},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the line item."},{"type":"null","description":"Memo for any text you would like to associate with the line item."}]},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}}},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}}}]},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation line item."},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation line item."}]}},"required":["amount"],"description":"Parameters for creating a refund allocation line item."},"description":"Detailed line items for the refund allocation. Use this for itemized refunds where you need to specify the exact amounts and accounts.","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].line_items","typeLabel":"object[] | null"},"completed_at":{"type":"string","format":"date-time","description":"When the dedicated refund was given and paid.","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].completed_at","typeLabel":"string\u003cdate-time>"},"refund_processing_fee":{"type":"integer","format":"int64","description":"Fee charged to the business for processing the refund.","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].refund_processing_fee","typeLabel":"integer\u003cint64>"},"method":{"type":"string","enum":["CASH","CHECK","CREDIT_CARD","ACH","CREDIT_BALANCE","OTHER"],"example":"ACH","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].method","typeLabel":"enum\u003cstring>"},"processor":{"oneOf":[{"type":"string","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].processor.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].processor.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].processor","typeLabel":"string | null"},"refunded_payment_fees":{"type":"array","items":{"type":"object","properties":{"account":{"oneOf":[{"type":"object","title":"Account ID","description":"Account to which the fee should be allocated.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"isRequired":true,"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Account to which the fee should be allocated.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.1.stable_name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.1","typeLabel":"Account Stable Name · object"}],"isRequired":true,"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].account","typeLabel":"Account ID · object | Account Stable Name · object"},"fee_amount":{"type":"integer","format":"int64","description":"Amount of the fee in cents.","isRequired":true,"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].fee_amount","typeLabel":"integer\u003cint64>"},"description":{"oneOf":[{"type":"string","description":"Description of the fee.","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Description of the fee.","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX].description","typeLabel":"string | null"}},"required":["account","fee_amount"],"description":"Input parameters for a refunded payment fee.","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees.items.[INDEX]","typeLabel":"object"},"description":"List of fees associated with the payment for this dedicated refund. These are refunded from the payment processor rather than the business.","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].refunded_payment_fees","typeLabel":"object[]"},"tags":{"type":"array","items":{"type":"object","description":"A TagKeyValue holds key=value data related to a tag. This is used when creating or updating taggable entities (transactions, invoices, etc.).","properties":{"key":{"type":"string","description":"The tag dimension key (e.g., \"department\", \"project\", \"location\").","example":"department","isRequired":true,"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"The tag value (e.g., \"sales\", \"marketing\", \"engineering\").","example":"sales","isRequired":true,"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].value","typeLabel":"string"},"dimension_display_name":{"oneOf":[{"type":"string","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX].value_display_name","typeLabel":"string | null"}},"required":["key","value"],"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].tags.items.[INDEX]","typeLabel":"object"},"description":"List of tags associated with this dedicated refund.","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the refund (for example, to display to end users).","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the refund (for example, to display to end users).","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the refund. Can be used to filter when listing refunds.","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the refund. Can be used to filter when listing refunds.","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].reference_number","typeLabel":"string | null"},"payment_clearing_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Optional account identifier to specify the clearing account for inferred refund payments. Only used when the system automatically generates a payment for the dedicated refund.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Optional account identifier to specify the clearing account for inferred refund payments. Only used when the system automatically generates a payment for the dedicated refund.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX].payment_clearing_account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"}},"uniqueKey":"payments.items.[INDEX].dedicated_refunds.items.[INDEX]","typeLabel":"object"},"description":"Dedicated refunds to associate with this invoice payment.","uniqueKey":"payments.items.[INDEX].dedicated_refunds","typeLabel":"object[]"},"tags":{"type":"array","items":{"type":"object","description":"A TagKeyValue holds key=value data related to a tag. This is used when creating or updating taggable entities (transactions, invoices, etc.).","properties":{"key":{"type":"string","description":"The tag dimension key (e.g., \"department\", \"project\", \"location\").","example":"department","isRequired":true,"uniqueKey":"payments.items.[INDEX].tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"The tag value (e.g., \"sales\", \"marketing\", \"engineering\").","example":"sales","isRequired":true,"uniqueKey":"payments.items.[INDEX].tags.items.[INDEX].value","typeLabel":"string"},"dimension_display_name":{"oneOf":[{"type":"string","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"payments.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"payments.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"payments.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"payments.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].tags.items.[INDEX].value_display_name","typeLabel":"string | null"}},"required":["key","value"],"uniqueKey":"payments.items.[INDEX].tags.items.[INDEX]","typeLabel":"object"},"description":"Tags to apply to the payment.","uniqueKey":"payments.items.[INDEX].tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the payment.","uniqueKey":"payments.items.[INDEX].memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the payment.","uniqueKey":"payments.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format.","uniqueKey":"payments.items.[INDEX].metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format.","uniqueKey":"payments.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the payment.","uniqueKey":"payments.items.[INDEX].reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the payment.","uniqueKey":"payments.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].reference_number","typeLabel":"string | null"}},"uniqueKey":"payments.items.[INDEX]","typeLabel":"object"},"description":"Payments to create or update, matched by `external_id`. Each uses the same parameters as the bulk create invoice payments endpoint, including `dedicated_refunds`. A payment may allocate to several invoices.","uniqueKey":"payments","typeLabel":"object[]"},"refunds":{"type":"array","items":{"oneOf":[{"type":"object","title":"Simple Refund","description":"Simple refund creation parameters. The system will automatically calculate the refund amount based on the specified target (invoice, line item, or payment). At least one target identifier must be provided.","required":["completed_at","method"],"properties":{"completed_at":{"type":"string","format":"date-time","description":"The time the refund was completed.","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.0.completed_at","typeLabel":"string\u003cdate-time>"},"method":{"type":"string","enum":["CASH","CHECK","CREDIT_CARD","ACH","CREDIT_BALANCE","OTHER"],"example":"ACH","description":"The payment method used for the refund.","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.0.method","typeLabel":"enum\u003cstring>"},"external_id":{"oneOf":[{"type":"string","description":"An external identifier for the refund transaction.","uniqueKey":"refunds.items.[INDEX].oneOf.0.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"An external identifier for the refund transaction.","uniqueKey":"refunds.items.[INDEX].oneOf.0.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.0.external_id","typeLabel":"string | null"},"invoice_id":{"oneOf":[{"type":"string","format":"uuid","description":"The ID of the invoice to refund.","uniqueKey":"refunds.items.[INDEX].oneOf.0.invoice_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"The ID of the invoice to refund.","uniqueKey":"refunds.items.[INDEX].oneOf.0.invoice_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.0.invoice_id","typeLabel":"string\u003cuuid> | null"},"invoice_external_id":{"oneOf":[{"type":"string","description":"The external ID of the invoice to refund.","uniqueKey":"refunds.items.[INDEX].oneOf.0.invoice_external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The external ID of the invoice to refund.","uniqueKey":"refunds.items.[INDEX].oneOf.0.invoice_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.0.invoice_external_id","typeLabel":"string | null"},"invoice_line_item_id":{"oneOf":[{"type":"string","format":"uuid","description":"The ID of the invoice line item to refund.","uniqueKey":"refunds.items.[INDEX].oneOf.0.invoice_line_item_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"The ID of the invoice line item to refund.","uniqueKey":"refunds.items.[INDEX].oneOf.0.invoice_line_item_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.0.invoice_line_item_id","typeLabel":"string\u003cuuid> | null"},"invoice_line_item_external_id":{"oneOf":[{"type":"string","description":"The external ID of the invoice line item to refund.","uniqueKey":"refunds.items.[INDEX].oneOf.0.invoice_line_item_external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The external ID of the invoice line item to refund.","uniqueKey":"refunds.items.[INDEX].oneOf.0.invoice_line_item_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.0.invoice_line_item_external_id","typeLabel":"string | null"},"invoice_payment_id":{"oneOf":[{"type":"string","format":"uuid","description":"The ID of the invoice payment to refund.","uniqueKey":"refunds.items.[INDEX].oneOf.0.invoice_payment_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"The ID of the invoice payment to refund.","uniqueKey":"refunds.items.[INDEX].oneOf.0.invoice_payment_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.0.invoice_payment_id","typeLabel":"string\u003cuuid> | null"},"invoice_payment_external_id":{"oneOf":[{"type":"string","description":"The external ID of the invoice payment to refund.","uniqueKey":"refunds.items.[INDEX].oneOf.0.invoice_payment_external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The external ID of the invoice payment to refund.","uniqueKey":"refunds.items.[INDEX].oneOf.0.invoice_payment_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.0.invoice_payment_external_id","typeLabel":"string | null"},"refund_processing_fee":{"type":"integer","format":"int64","default":0,"description":"The fee charged to the business for processing the refund in cents.","uniqueKey":"refunds.items.[INDEX].oneOf.0.refund_processing_fee","typeLabel":"integer\u003cint64>"},"processor":{"oneOf":[{"type":"string","description":"The payment processor used to process the refund.","example":"STRIPE","uniqueKey":"refunds.items.[INDEX].oneOf.0.processor.oneOf.0","typeLabel":"string"},{"type":"null","description":"The payment processor used to process the refund.","example":"STRIPE","uniqueKey":"refunds.items.[INDEX].oneOf.0.processor.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.0.processor","typeLabel":"string | null"},"tags":{"type":"array","items":{"type":"object","description":"A TagKeyValue holds key=value data related to a tag. This is used when creating or updating taggable entities (transactions, invoices, etc.).","properties":{"key":{"type":"string","description":"The tag dimension key (e.g., \"department\", \"project\", \"location\").","example":"department","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.0.tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"The tag value (e.g., \"sales\", \"marketing\", \"engineering\").","example":"sales","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.0.tags.items.[INDEX].value","typeLabel":"string"},"dimension_display_name":{"oneOf":[{"type":"string","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"refunds.items.[INDEX].oneOf.0.tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"refunds.items.[INDEX].oneOf.0.tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.0.tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"refunds.items.[INDEX].oneOf.0.tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"refunds.items.[INDEX].oneOf.0.tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.0.tags.items.[INDEX].value_display_name","typeLabel":"string | null"}},"required":["key","value"],"uniqueKey":"refunds.items.[INDEX].oneOf.0.tags.items.[INDEX]","typeLabel":"object"},"description":"Tags to associate with the refund.","uniqueKey":"refunds.items.[INDEX].oneOf.0.tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the refund (for example, to display to end users).","uniqueKey":"refunds.items.[INDEX].oneOf.0.memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the refund (for example, to display to end users).","uniqueKey":"refunds.items.[INDEX].oneOf.0.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.0.memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"refunds.items.[INDEX].oneOf.0.metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"refunds.items.[INDEX].oneOf.0.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.0.metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the refund. Can be used to filter when listing refunds.","uniqueKey":"refunds.items.[INDEX].oneOf.0.reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the refund. Can be used to filter when listing refunds.","uniqueKey":"refunds.items.[INDEX].oneOf.0.reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.0.reference_number","typeLabel":"string | null"},"payment_clearing_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Optional account identifier to specify the clearing account for inferred refund payments. Only used when creating simple refunds where the system automatically generates the payment.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.0.payment_clearing_account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.0.payment_clearing_account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"refunds.items.[INDEX].oneOf.0.payment_clearing_account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Optional account identifier to specify the clearing account for inferred refund payments. Only used when creating simple refunds where the system automatically generates the payment.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.0.payment_clearing_account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.0.payment_clearing_account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"refunds.items.[INDEX].oneOf.0.payment_clearing_account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"refunds.items.[INDEX].oneOf.0.payment_clearing_account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.0.payment_clearing_account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"}},"uniqueKey":"refunds.items.[INDEX].oneOf.0","typeLabel":"Simple Refund · object"},{"type":"object","title":"Itemized Refund","description":"Itemized refund creation parameters. Provides full control over refund allocations and payments. The sum of allocation amounts must equal the refunded_amount.","required":["refunded_amount","completed_at","allocations","payments"],"properties":{"refunded_amount":{"type":"integer","format":"int64","description":"The total amount of the refund in cents. This value must be positive and equal to the sum of all allocation amounts.","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.refunded_amount","typeLabel":"integer\u003cint64>"},"completed_at":{"type":"string","format":"date-time","description":"The time the refund was completed.","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.completed_at","typeLabel":"string\u003cdate-time>"},"allocations":{"type":"array","items":{"type":"object","properties":{"total_amount":{"type":"integer","format":"int64","description":"The total amount of this allocation in cents. Must equal the sum of all line item amounts.","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].total_amount","typeLabel":"integer\u003cint64>"},"line_items":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"integer","format":"int64","description":"The amount of this line item in cents.","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].amount","typeLabel":"integer\u003cint64>"},"external_id":{"oneOf":[{"type":"string","description":"An external identifier for the line item.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"An external identifier for the line item.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].external_id","typeLabel":"string | null"},"account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Identifier of the ledger account for this line item.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Identifier of the ledger account for this line item.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"prepayment_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Identifier of the prepayment ledger account for this line item.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Identifier of the prepayment ledger account for this line item.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].prepayment_account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"tags":{"type":"array","items":{"type":"object","description":"A TagKeyValue holds key=value data related to a tag. This is used when creating or updating taggable entities (transactions, invoices, etc.).","properties":{"key":{"type":"string","description":"The tag dimension key (e.g., \"department\", \"project\", \"location\").","example":"department","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"The tag value (e.g., \"sales\", \"marketing\", \"engineering\").","example":"sales","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].tags.items.[INDEX].value","typeLabel":"string"},"dimension_display_name":{"oneOf":[{"type":"string","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].tags.items.[INDEX].value_display_name","typeLabel":"string | null"}},"required":["key","value"],"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].tags.items.[INDEX]","typeLabel":"object"},"description":"Tags to associate with the line item.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the line item.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the line item.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation line item.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation line item.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX].reference_number","typeLabel":"string | null"}},"required":["amount"],"description":"Parameters for creating a refund allocation line item.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items.items.[INDEX]","typeLabel":"object"},"description":"The line items that make up this allocation.","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].line_items","typeLabel":"object[]"},"external_id":{"oneOf":[{"type":"string","description":"An external identifier for the refund allocation.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"An external identifier for the refund allocation.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].external_id","typeLabel":"string | null"},"invoice_id":{"oneOf":[{"type":"string","format":"uuid","description":"The ID of the invoice to refund.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].invoice_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"The ID of the invoice to refund.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].invoice_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].invoice_id","typeLabel":"string\u003cuuid> | null"},"invoice_external_id":{"oneOf":[{"type":"string","description":"The external ID of the invoice to refund.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].invoice_external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The external ID of the invoice to refund.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].invoice_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].invoice_external_id","typeLabel":"string | null"},"invoice_line_item_id":{"oneOf":[{"type":"string","format":"uuid","description":"The ID of the invoice line item to refund.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].invoice_line_item_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"The ID of the invoice line item to refund.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].invoice_line_item_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].invoice_line_item_id","typeLabel":"string\u003cuuid> | null"},"invoice_line_item_external_id":{"oneOf":[{"type":"string","description":"The external ID of the invoice line item to refund.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].invoice_line_item_external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The external ID of the invoice line item to refund.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].invoice_line_item_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].invoice_line_item_external_id","typeLabel":"string | null"},"invoice_payment_id":{"oneOf":[{"type":"string","format":"uuid","description":"The ID of the invoice payment to refund.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].invoice_payment_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"The ID of the invoice payment to refund.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].invoice_payment_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].invoice_payment_id","typeLabel":"string\u003cuuid> | null"},"invoice_payment_external_id":{"oneOf":[{"type":"string","description":"The external ID of the invoice payment to refund.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].invoice_payment_external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The external ID of the invoice payment to refund.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].invoice_payment_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].invoice_payment_external_id","typeLabel":"string | null"},"customer_id":{"oneOf":[{"type":"string","format":"uuid","description":"The ID of the customer to refund.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].customer_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"The ID of the customer to refund.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].customer_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].customer_id","typeLabel":"string\u003cuuid> | null"},"customer_external_id":{"oneOf":[{"type":"string","description":"The external ID of the customer to refund.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].customer_external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The external ID of the customer to refund.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].customer_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].customer_external_id","typeLabel":"string | null"},"tags":{"type":"array","items":{"type":"object","description":"A TagKeyValue holds key=value data related to a tag. This is used when creating or updating taggable entities (transactions, invoices, etc.).","properties":{"key":{"type":"string","description":"The tag dimension key (e.g., \"department\", \"project\", \"location\").","example":"department","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"The tag value (e.g., \"sales\", \"marketing\", \"engineering\").","example":"sales","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].tags.items.[INDEX].value","typeLabel":"string"},"dimension_display_name":{"oneOf":[{"type":"string","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].tags.items.[INDEX].value_display_name","typeLabel":"string | null"}},"required":["key","value"],"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].tags.items.[INDEX]","typeLabel":"object"},"description":"Tags to associate with the allocation.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the refund allocation.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the refund allocation.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX].reference_number","typeLabel":"string | null"}},"required":["total_amount","line_items"],"description":"Parameters for creating a refund allocation. At least one target identifier (invoice, line item, payment, or customer) must be provided.","uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations.items.[INDEX]","typeLabel":"object"},"description":"The targets of the refund. Each allocation specifies how much of the refund should be applied to a specific invoice, line item, payment, or customer.","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.allocations","typeLabel":"object[]"},"payments":{"type":"array","items":{"type":"object","properties":{"refunded_amount":{"type":"integer","format":"int64","description":"Amount refunded to the customer in cents.","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].refunded_amount","typeLabel":"integer\u003cint64>"},"completed_at":{"type":"string","format":"date-time","description":"Time when the payment was completed.","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].completed_at","typeLabel":"string\u003cdate-time>"},"method":{"type":"string","enum":["CASH","CHECK","CREDIT_CARD","ACH","CREDIT_BALANCE","OTHER"],"example":"ACH","description":"Payment method used for the refund.","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].method","typeLabel":"enum\u003cstring>"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the payment in your system for linking purposes. **Idempotency key**.","example":"31415926535","uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the payment in your system for linking purposes. **Idempotency key**.","example":"31415926535","uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].external_id","typeLabel":"string | null"},"refund_processing_fee":{"oneOf":[{"type":"integer","format":"int64","description":"Fee charged to the business for processing the refund in cents.","uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].refund_processing_fee.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"Fee charged to the business for processing the refund in cents.","uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].refund_processing_fee.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].refund_processing_fee","typeLabel":"integer\u003cint64> | null"},"processor":{"oneOf":[{"type":"string","description":"Processor used to make the payment, if any. Any processor name can be provided and will be tracked. Supported processors (e.g. `STRIPE`) will have additional asset balance tracking.","example":"STRIPE","uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].processor.oneOf.0","typeLabel":"string"},{"type":"null","description":"Processor used to make the payment, if any. Any processor name can be provided and will be tracked. Supported processors (e.g. `STRIPE`) will have additional asset balance tracking.","example":"STRIPE","uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].processor.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].processor","typeLabel":"string | null"},"payment_clearing_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"The the ledger account to use for the payment (overrides the default determined by the payment method).","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].payment_clearing_account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].payment_clearing_account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].payment_clearing_account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"The the ledger account to use for the payment (overrides the default determined by the payment method).","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].payment_clearing_account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].payment_clearing_account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].payment_clearing_account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].payment_clearing_account_identifier","typeLabel":"Account ID · object | Account Stable Name · object"},"refunded_payment_fees":{"type":"array","items":{"type":"object","properties":{"account":{"oneOf":[{"type":"object","title":"Account ID","description":"Account to which the fee should be allocated.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Account to which the fee should be allocated.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.1.stable_name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.1","typeLabel":"Account Stable Name · object"}],"isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].refunded_payment_fees.items.[INDEX].account","typeLabel":"Account ID · object | Account Stable Name · object"},"fee_amount":{"type":"integer","format":"int64","description":"Amount of the fee in cents.","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].refunded_payment_fees.items.[INDEX].fee_amount","typeLabel":"integer\u003cint64>"},"description":{"oneOf":[{"type":"string","description":"Description of the fee.","uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].refunded_payment_fees.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Description of the fee.","uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].refunded_payment_fees.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].refunded_payment_fees.items.[INDEX].description","typeLabel":"string | null"}},"required":["account","fee_amount"],"description":"Input parameters for a refunded payment fee.","uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].refunded_payment_fees.items.[INDEX]","typeLabel":"object"},"description":"List of fees associated with this payment. These are refunded from the payment processor rather than the business.","uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].refunded_payment_fees","typeLabel":"object[]"},"tags":{"type":"array","items":{"type":"object","description":"A TagKeyValue holds key=value data related to a tag. This is used when creating or updating taggable entities (transactions, invoices, etc.).","properties":{"key":{"type":"string","description":"The tag dimension key (e.g., \"department\", \"project\", \"location\").","example":"department","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"The tag value (e.g., \"sales\", \"marketing\", \"engineering\").","example":"sales","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].tags.items.[INDEX].value","typeLabel":"string"},"dimension_display_name":{"oneOf":[{"type":"string","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].tags.items.[INDEX].value_display_name","typeLabel":"string | null"}},"required":["key","value"],"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].tags.items.[INDEX]","typeLabel":"object"},"description":"Tags to associate with the payment.","uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the refund payment.","uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the refund payment.","uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the refund payment. Can be used to filter when listing refund payments.","uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the refund payment. Can be used to filter when listing refund payments.","uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX].reference_number","typeLabel":"string | null"}},"required":["refunded_amount","completed_at","method"],"description":"Parameters for creating a refund payment.","uniqueKey":"refunds.items.[INDEX].oneOf.1.payments.items.[INDEX]","typeLabel":"object"},"description":"The payment methods and amounts used to process the refund.","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.payments","typeLabel":"object[]"},"external_id":{"oneOf":[{"type":"string","description":"An external identifier for the refund transaction.","uniqueKey":"refunds.items.[INDEX].oneOf.1.external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"An external identifier for the refund transaction.","uniqueKey":"refunds.items.[INDEX].oneOf.1.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.external_id","typeLabel":"string | null"},"tags":{"type":"array","items":{"type":"object","description":"A TagKeyValue holds key=value data related to a tag. This is used when creating or updating taggable entities (transactions, invoices, etc.).","properties":{"key":{"type":"string","description":"The tag dimension key (e.g., \"department\", \"project\", \"location\").","example":"department","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"The tag value (e.g., \"sales\", \"marketing\", \"engineering\").","example":"sales","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.tags.items.[INDEX].value","typeLabel":"string"},"dimension_display_name":{"oneOf":[{"type":"string","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"refunds.items.[INDEX].oneOf.1.tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagDimension doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagDimension.","example":"Department","uniqueKey":"refunds.items.[INDEX].oneOf.1.tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"refunds.items.[INDEX].oneOf.1.tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the TagValueDefinition doesn't exist, providing this value specifies the display name upon database insertion. Otherwise, it is left as null on the TagValueDefinition.","example":"Sales Department","uniqueKey":"refunds.items.[INDEX].oneOf.1.tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.tags.items.[INDEX].value_display_name","typeLabel":"string | null"}},"required":["key","value"],"uniqueKey":"refunds.items.[INDEX].oneOf.1.tags.items.[INDEX]","typeLabel":"object"},"description":"Tags to associate with the refund.","uniqueKey":"refunds.items.[INDEX].oneOf.1.tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the refund (for example, to display to end users).","uniqueKey":"refunds.items.[INDEX].oneOf.1.memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the refund (for example, to display to end users).","uniqueKey":"refunds.items.[INDEX].oneOf.1.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"refunds.items.[INDEX].oneOf.1.metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"refunds.items.[INDEX].oneOf.1.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the refund. Can be used to filter when listing refunds.","uniqueKey":"refunds.items.[INDEX].oneOf.1.reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the refund. Can be used to filter when listing refunds.","uniqueKey":"refunds.items.[INDEX].oneOf.1.reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.reference_number","typeLabel":"string | null"},"payment_clearing_account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Optional account identifier to specify the clearing account for inferred refund payments. Only used when the `payments` field is not provided and the system automatically generates a payment based on the `method` field.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.payment_clearing_account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.payment_clearing_account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"refunds.items.[INDEX].oneOf.1.payment_clearing_account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Optional account identifier to specify the clearing account for inferred refund payments. Only used when the `payments` field is not provided and the system automatically generates a payment based on the `method` field.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.payment_clearing_account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.payment_clearing_account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"refunds.items.[INDEX].oneOf.1.payment_clearing_account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"refunds.items.[INDEX].oneOf.1.payment_clearing_account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].oneOf.1.payment_clearing_account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"}},"uniqueKey":"refunds.items.[INDEX].oneOf.1","typeLabel":"Itemized Refund · object"}],"uniqueKey":"refunds.items.[INDEX]","typeLabel":"Simple Refund · object | Itemized Refund · object"},"description":"Standalone refunds to create or update, matched by `external_id`. Each uses the same parameters as the bulk create refunds endpoint. A refund with `allocations` is itemized, and any other refund is simple. Layer applies refunds after payments, so a refund can target a payment from the same request. To lower an invoice's net payments, target the payment with `invoice_payment_id` or `invoice_payment_external_id`.","uniqueKey":"refunds","typeLabel":"(Simple Refund · object | Itemized Refund · object)[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"invoices":[{"external_id":"019234","sent_at":"2024-04-02","due_at":"2024-05-02","voided_at":"2023-11-07T05:31:56Z","customer_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","customer_external_id":"\u003cstring>","line_items":[{"account_identifier":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"prepayment_account_identifier":{"type":"Single_Chart_Account","id":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"name":"Current Assets","account_number":"4000","normality":"DEBIT","account_type":{"value":"ASSET","display_name":"Asset"},"account_subtype":{"value":"BANK_ACCOUNTS","display_name":"Current Assets"}},"external_id":"\u003cstring>","description":"Line item description","product":"Widgets","unit_price":123,"quantity":123,"discount_amount":123,"sales_taxes":[{"amount":123,"tax_account":{"name":"CALIFORNIA_VAT","type":"Tax_Name"}}],"dedicated_refunds":[{"external_id":"31415926535","account_identifier":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"line_items":[{"amount":123,"external_id":"\u003cstring>","account_identifier":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"prepayment_account_identifier":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"tags":[{"key":"department","value":"sales","dimension_display_name":"Department","value_display_name":"Sales Department"}],"memo":"\u003cstring>","metadata":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"reference_number":"\u003cstring>"}],"completed_at":"2023-11-07T05:31:56Z","refund_processing_fee":123,"method":"ACH","processor":"\u003cstring>","refunded_payment_fees":[{"account":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"fee_amount":123,"description":"\u003cstring>"}],"tags":[{"key":"department","value":"sales","dimension_display_name":"Department","value_display_name":"Sales Department"}],"memo":"\u003cstring>","metadata":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"reference_number":"\u003cstring>","payment_clearing_account_identifier":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"}}],"tags":[{"key":"department","value":"sales","dimension_display_name":"Department","value_display_name":"Sales Department"}],"time_entry_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"}],"additional_sales_taxes":[{"amount":123,"tax_account":{"name":"CALIFORNIA_VAT","type":"Tax_Name"}}],"additional_discount":123,"tips":123,"tips_account":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"payments":[{"method":"ACH","amount":123,"external_id":"12345","paid_at":"2023-11-07T05:31:56Z","fee":123,"processor":"STRIPE","payment_clearing_account_identifier":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"dedicated_refunds":[{"external_id":"31415926535","account_identifier":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"line_items":[{"amount":123,"external_id":"\u003cstring>","account_identifier":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"prepayment_account_identifier":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"tags":[{"key":"department","value":"sales","dimension_display_name":"Department","value_display_name":"Sales Department"}],"memo":"\u003cstring>","metadata":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"reference_number":"\u003cstring>"}],"completed_at":"2023-11-07T05:31:56Z","refund_processing_fee":123,"method":"ACH","processor":"\u003cstring>","refunded_payment_fees":[{"account":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"fee_amount":123,"description":"\u003cstring>"}],"tags":[{"key":"department","value":"sales","dimension_display_name":"Department","value_display_name":"Sales Department"}],"memo":"\u003cstring>","metadata":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"reference_number":"\u003cstring>","payment_clearing_account_identifier":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"}}],"tags":[{"key":"department","value":"sales","dimension_display_name":"Department","value_display_name":"Sales Department"}],"memo":"\u003cstring>","metadata":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"reference_number":"\u003cstring>"}],"dedicated_refunds":[{"external_id":"31415926535","account_identifier":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"line_items":[{"amount":123,"external_id":"\u003cstring>","account_identifier":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"prepayment_account_identifier":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"tags":[{"key":"department","value":"sales","dimension_display_name":"Department","value_display_name":"Sales Department"}],"memo":"\u003cstring>","metadata":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"reference_number":"\u003cstring>"}],"completed_at":"2023-11-07T05:31:56Z","refund_processing_fee":123,"method":"ACH","processor":"\u003cstring>","refunded_payment_fees":[{"account":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"fee_amount":123,"description":"\u003cstring>"}],"tags":[{"key":"department","value":"sales","dimension_display_name":"Department","value_display_name":"Sales Department"}],"memo":"\u003cstring>","metadata":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"reference_number":"\u003cstring>","payment_clearing_account_identifier":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"}}],"tags":[{"key":"department","value":"sales","dimension_display_name":"Department","value_display_name":"Sales Department"}],"memo":"\u003cstring>","metadata":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"reference_number":"\u003cstring>"}],"payments":[{"paid_at":"2023-11-07T05:31:56Z","method":"ACH","amount":123,"invoice_payments":[{"invoice_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","invoice_external_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","amount":123,"tags":[{"key":"department","value":"sales","dimension_display_name":"Department","value_display_name":"Sales Department"}],"memo":"\u003cstring>","metadata":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"reference_number":"\u003cstring>"}],"external_id":"\u003cstring>","customer_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","customer_external_id":"\u003cstring>","fee":123,"additional_fees":[{"account":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"fee_amount":123,"type":"STANDARD","description":"\u003cstring>","is_passed_to_customer":true}],"processor":"\u003cstring>","payment_clearing_account_identifier":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"redemption_account":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"dedicated_refunds":[{"external_id":"31415926535","account_identifier":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"line_items":[{"amount":123,"external_id":"\u003cstring>","account_identifier":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"prepayment_account_identifier":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"tags":[{"key":"department","value":"sales","dimension_display_name":"Department","value_display_name":"Sales Department"}],"memo":"\u003cstring>","metadata":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"reference_number":"\u003cstring>"}],"completed_at":"2023-11-07T05:31:56Z","refund_processing_fee":123,"method":"ACH","processor":"\u003cstring>","refunded_payment_fees":[{"account":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"fee_amount":123,"description":"\u003cstring>"}],"tags":[{"key":"department","value":"sales","dimension_display_name":"Department","value_display_name":"Sales Department"}],"memo":"\u003cstring>","metadata":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"reference_number":"\u003cstring>","payment_clearing_account_identifier":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"}}],"tags":[{"key":"department","value":"sales","dimension_display_name":"Department","value_display_name":"Sales Department"}],"memo":"\u003cstring>","metadata":{},"reference_number":"\u003cstring>"}],"refunds":[{"completed_at":"2023-11-07T05:31:56Z","method":"ACH","external_id":"\u003cstring>","invoice_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","invoice_external_id":"\u003cstring>","invoice_line_item_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","invoice_line_item_external_id":"\u003cstring>","invoice_payment_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","invoice_payment_external_id":"\u003cstring>","refund_processing_fee":0,"processor":"STRIPE","tags":[{"key":"department","value":"sales","dimension_display_name":"Department","value_display_name":"Sales Department"}],"memo":"\u003cstring>","metadata":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"reference_number":"\u003cstring>","payment_clearing_account_identifier":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"}}]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"76889411-e26f-49bf-a350-1a06ce38ab58":{"description":"Every invoice, payment, and refund was applied. Returns each one in its final state.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","description":"Final state of the invoices, payments, and refunds in a sync request.","properties":{"type":{"type":"string","description":"Resource type. Value will be `SyncInvoicesResponse`.","example":"SyncInvoicesResponse","uniqueKey":"data.type","typeLabel":"string"},"invoices":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the invoice.","uniqueKey":"data.invoices.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"type":{"type":"string","description":"Resource type. Value will be 'Invoice'.","example":"Invoice","uniqueKey":"data.invoices.items.[INDEX].type","typeLabel":"string"},"business_id":{"type":"string","format":"uuid","description":"ID of the Business that generated the invoice.","uniqueKey":"data.invoices.items.[INDEX].business_id","typeLabel":"string\u003cuuid>"},"external_id":{"type":"string","description":"Unique ID of the invoice in your system for linking purposes.","example":"1","uniqueKey":"data.invoices.items.[INDEX].external_id","typeLabel":"string"},"status":{"type":"string","enum":["SENT","PARTIALLY_PAID","PAID","VOIDED","PARTIALLY_WRITTEN_OFF","WRITTEN_OFF","REFUNDED"],"example":"SENT","description":"Status of the invoice.","uniqueKey":"data.invoices.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"sent_at":{"type":"string","format":"date-time","description":"When the invoice was sent by the business to the recipient.","uniqueKey":"data.invoices.items.[INDEX].sent_at","typeLabel":"string\u003cdate-time>"},"due_at":{"type":"string","format":"date-time","description":"When the invoice is due.","uniqueKey":"data.invoices.items.[INDEX].due_at","typeLabel":"string\u003cdate-time>"},"paid_at":{"type":"string","format":"date-time","description":"When the invoice was paid.","uniqueKey":"data.invoices.items.[INDEX].paid_at","typeLabel":"string\u003cdate-time>"},"voided_at":{"type":"string","format":"date-time","description":"When the invoice was voided. Voiding excludes the invoice from accounting.","uniqueKey":"data.invoices.items.[INDEX].voided_at","typeLabel":"string\u003cdate-time>"},"line_items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the invoice line item.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"external_id":{"oneOf":[{"type":"string","description":"The external ID of the invoice line item in your system.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The external ID of the invoice line item in your system.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].external_id","typeLabel":"string | null"},"invoice_id":{"type":"string","format":"uuid","description":"ID of the parent invoice.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].invoice_id","typeLabel":"string\u003cuuid>"},"account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Identifier for the account.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Identifier for the account.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].account_identifier","typeLabel":"Account ID · object | Account Stable Name · object"},"ledger_account":{"type":"object","properties":{"type":{"type":"string","description":"Resource type. Value will be `Single_Chart_Account`.","example":"Single_Chart_Account","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].ledger_account.type","typeLabel":"string"},"id":{"oneOf":[{"type":"object","title":"Account ID","description":"ID of the account.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].ledger_account.id.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].ledger_account.id.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].ledger_account.id.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Stable name associated with the account.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].ledger_account.id.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].ledger_account.id.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].ledger_account.id.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].ledger_account.id","typeLabel":"Account ID · object | Account Stable Name · object"},"name":{"type":"string","description":"Name of the account.","example":"Current Assets","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].ledger_account.name","typeLabel":"string"},"account_number":{"oneOf":[{"type":"string","description":"Account number if configured.","example":"4000","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].ledger_account.account_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Account number if configured.","example":"4000","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].ledger_account.account_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].ledger_account.account_number","typeLabel":"string | null"},"stable_name":{"type":"object","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].ledger_account.stable_name.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].ledger_account.stable_name.stable_name","typeLabel":"string"}},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].ledger_account.stable_name","typeLabel":"object"},"normality":{"type":"string","enum":["CREDIT","DEBIT"],"example":"DEBIT","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].ledger_account.normality","typeLabel":"enum\u003cstring>"},"account_type":{"type":"object","properties":{"value":{"type":"string","enum":["ASSET","LIABILITY","EQUITY","REVENUE","EXPENSE"],"example":"ASSET","description":"Type of the account.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].ledger_account.account_type.value","typeLabel":"enum\u003cstring>"},"display_name":{"type":"string","description":"Display name of the account type.","example":"Asset","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].ledger_account.account_type.display_name","typeLabel":"string"}},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].ledger_account.account_type","typeLabel":"object"},"account_subtype":{"type":"object","properties":{"value":{"type":"string","enum":["BANK_ACCOUNTS","ACCOUNTS_RECEIVABLE","INVENTORY","PAYMENT_PROCESSOR_CLEARING_ACCOUNT","FIXED_ASSET","ACCUMULATED_DEPRECIATION","CASH","UNDEPOSITED_FUNDS","CURRENT_ASSET","NON_CURRENT_ASSET","PREPAID_EXPENSES","DEVELOPMENT_COSTS","LOANS_RECEIVABLE","INTANGIBLE_ASSET","ACCOUNTS_PAYABLE","CREDIT_CARD","TAXES_PAYABLE","INCOME_TAXES_PAYABLE","SALES_TAXES_PAYABLE","OTHER_TAXES_PAYABLE","PAYROLL_TAXES_PAYABLE","UNEARNED_REVENUE","PAYROLL_LIABILITY","PAYROLL_CLEARING","LINE_OF_CREDIT","TIPS","REFUND_LIABILITIES","UNDEPOSITED_OUTFLOWS","OUTGOING_PAYMENT_CLEARING_ACCOUNT","OTHER_CURRENT_LIABILITY","LOANS_PAYABLE","NOTES_PAYABLE","SHAREHOLDER_LOAN","NON_CURRENT_LIABILITY","CONTRIBUTIONS","DISTRIBUTIONS","COMMON_STOCK","PREFERRED_STOCK","ADDITIONAL_PAID_IN_CAPITAL","RETAINED_EARNINGS","ACCUMULATED_ADJUSTMENTS","OPENING_BALANCE_EQUITY","OTHER_EQUITY","SALES","UNCATEGORIZED_REVENUE","RETURNS_ALLOWANCES","DIVIDEND_INCOME","INTEREST_INCOME","OTHER_INCOME","COGS","OPERATING_EXPENSES","PAYROLL","TAXES_LICENSES","UNCATEGORIZED_EXPENSE","CHARITABLE_CONTRIBUTIONS","LOAN_EXPENSES","FINANCE_COSTS","INTEREST_EXPENSES","DEPRECIATION","AMORTIZATION","BAD_DEBT","OTHER_EXPENSES"],"example":"BANK_ACCOUNTS","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].ledger_account.account_subtype.value","typeLabel":"enum\u003cstring>"},"display_name":{"type":"string","description":"Display name of the account subtype.","example":"Current Assets","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].ledger_account.account_subtype.display_name","typeLabel":"string"}},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].ledger_account.account_subtype","typeLabel":"object"}},"description":"Ledger account for the line item.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].ledger_account","typeLabel":"object"},"prepayment_account":{"type":"object","properties":{"type":{"type":"string","description":"Resource type. Value will be `Single_Chart_Account`.","example":"Single_Chart_Account","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account.type","typeLabel":"string"},"id":{"oneOf":[{"type":"object","title":"Account ID","description":"ID of the account.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account.id.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account.id.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account.id.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Stable name associated with the account.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account.id.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account.id.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account.id.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account.id","typeLabel":"Account ID · object | Account Stable Name · object"},"name":{"type":"string","description":"Name of the account.","example":"Current Assets","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account.name","typeLabel":"string"},"account_number":{"oneOf":[{"type":"string","description":"Account number if configured.","example":"4000","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account.account_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Account number if configured.","example":"4000","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account.account_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account.account_number","typeLabel":"string | null"},"stable_name":{"type":"object","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account.stable_name.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account.stable_name.stable_name","typeLabel":"string"}},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account.stable_name","typeLabel":"object"},"normality":{"type":"string","enum":["CREDIT","DEBIT"],"example":"DEBIT","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account.normality","typeLabel":"enum\u003cstring>"},"account_type":{"type":"object","properties":{"value":{"type":"string","enum":["ASSET","LIABILITY","EQUITY","REVENUE","EXPENSE"],"example":"ASSET","description":"Type of the account.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account.account_type.value","typeLabel":"enum\u003cstring>"},"display_name":{"type":"string","description":"Display name of the account type.","example":"Asset","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account.account_type.display_name","typeLabel":"string"}},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account.account_type","typeLabel":"object"},"account_subtype":{"type":"object","properties":{"value":{"type":"string","enum":["BANK_ACCOUNTS","ACCOUNTS_RECEIVABLE","INVENTORY","PAYMENT_PROCESSOR_CLEARING_ACCOUNT","FIXED_ASSET","ACCUMULATED_DEPRECIATION","CASH","UNDEPOSITED_FUNDS","CURRENT_ASSET","NON_CURRENT_ASSET","PREPAID_EXPENSES","DEVELOPMENT_COSTS","LOANS_RECEIVABLE","INTANGIBLE_ASSET","ACCOUNTS_PAYABLE","CREDIT_CARD","TAXES_PAYABLE","INCOME_TAXES_PAYABLE","SALES_TAXES_PAYABLE","OTHER_TAXES_PAYABLE","PAYROLL_TAXES_PAYABLE","UNEARNED_REVENUE","PAYROLL_LIABILITY","PAYROLL_CLEARING","LINE_OF_CREDIT","TIPS","REFUND_LIABILITIES","UNDEPOSITED_OUTFLOWS","OUTGOING_PAYMENT_CLEARING_ACCOUNT","OTHER_CURRENT_LIABILITY","LOANS_PAYABLE","NOTES_PAYABLE","SHAREHOLDER_LOAN","NON_CURRENT_LIABILITY","CONTRIBUTIONS","DISTRIBUTIONS","COMMON_STOCK","PREFERRED_STOCK","ADDITIONAL_PAID_IN_CAPITAL","RETAINED_EARNINGS","ACCUMULATED_ADJUSTMENTS","OPENING_BALANCE_EQUITY","OTHER_EQUITY","SALES","UNCATEGORIZED_REVENUE","RETURNS_ALLOWANCES","DIVIDEND_INCOME","INTEREST_INCOME","OTHER_INCOME","COGS","OPERATING_EXPENSES","PAYROLL","TAXES_LICENSES","UNCATEGORIZED_EXPENSE","CHARITABLE_CONTRIBUTIONS","LOAN_EXPENSES","FINANCE_COSTS","INTEREST_EXPENSES","DEPRECIATION","AMORTIZATION","BAD_DEBT","OTHER_EXPENSES"],"example":"BANK_ACCOUNTS","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account.account_subtype.value","typeLabel":"enum\u003cstring>"},"display_name":{"type":"string","description":"Display name of the account subtype.","example":"Current Assets","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account.account_subtype.display_name","typeLabel":"string"}},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account.account_subtype","typeLabel":"object"}},"description":"Ledger account for the line item used for accrual reporting. Should only be specified when this line item is a pre-payment.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].prepayment_account","typeLabel":"object"},"description":{"oneOf":[{"type":"string","description":"Description for the invoice line item.","example":"Widget sale","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Description for the invoice line item.","example":"Widget sale","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].description","typeLabel":"string | null"},"product":{"type":"string","description":"Name of the product the invoice line item is for.","example":"Widget","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].product","typeLabel":"string"},"unit_price":{"type":"integer","format":"int64","description":"The amount in cents of each unit.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].unit_price","typeLabel":"integer\u003cint64>"},"quantity":{"type":"number","format":"bigdecimal","description":"Number of units sold.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].quantity","typeLabel":"number\u003cbigdecimal>"},"subtotal":{"type":"integer","format":"int64","description":"Subtotal for the invoice line item in cents.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].subtotal","typeLabel":"integer\u003cint64>"},"discount_amount":{"type":"integer","format":"int64","description":"Total discount given to this line item, in cents.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].discount_amount","typeLabel":"integer\u003cint64>"},"sales_taxes_total":{"type":"integer","format":"int64","description":"Sum of amounts for all sales taxes for the line item.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes_total","typeLabel":"integer\u003cint64>"},"sales_taxes":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"tax_account":{"oneOf":[{"type":"object","title":"Tax Name","description":"Tax account name or identifier. If not set, account defaults to top level sales tax payable liability account.","required":["name"],"properties":{"name":{"type":"string","description":"Name of the ledger account.","example":"CALIFORNIA_VAT","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_account.oneOf.0.name","typeLabel":"string"},"type":{"type":"string","description":"Resource type. Value will be 'Tax_Name'.","example":"Tax_Name","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_account.oneOf.0.type","typeLabel":"string"}},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_account.oneOf.0","typeLabel":"Tax Name · object"},{"type":"object","title":"Ledger Account ID","description":"Tax account name or identifier. If not set, account defaults to top level sales tax payable liability account.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_account.oneOf.1.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_account.oneOf.1.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_account.oneOf.1","typeLabel":"Ledger Account ID · object"},{"type":"object","title":"Ledger Account Stable Name","description":"Tax account name or identifier. If not set, account defaults to top level sales tax payable liability account.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_account.oneOf.2.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_account.oneOf.2.stable_name","typeLabel":"string"}},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_account.oneOf.2","typeLabel":"Ledger Account Stable Name · object"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_account","typeLabel":"Tax Name · object | Ledger Account ID · object | Ledger Account Stable Name · object"},"tax_ledger_account":{"type":"object","properties":{"type":{"type":"string","description":"Resource type. Value will be `Single_Chart_Account`.","example":"Single_Chart_Account","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_ledger_account.type","typeLabel":"string"},"id":{"oneOf":[{"type":"object","title":"Account ID","description":"ID of the account.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_ledger_account.id.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_ledger_account.id.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_ledger_account.id.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Stable name associated with the account.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_ledger_account.id.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_ledger_account.id.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_ledger_account.id.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_ledger_account.id","typeLabel":"Account ID · object | Account Stable Name · object"},"name":{"type":"string","description":"Name of the account.","example":"Current Assets","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_ledger_account.name","typeLabel":"string"},"account_number":{"oneOf":[{"type":"string","description":"Account number if configured.","example":"4000","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_ledger_account.account_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Account number if configured.","example":"4000","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_ledger_account.account_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_ledger_account.account_number","typeLabel":"string | null"},"stable_name":{"type":"object","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_ledger_account.stable_name.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_ledger_account.stable_name.stable_name","typeLabel":"string"}},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_ledger_account.stable_name","typeLabel":"object"},"normality":{"type":"string","enum":["CREDIT","DEBIT"],"example":"DEBIT","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_ledger_account.normality","typeLabel":"enum\u003cstring>"},"account_type":{"type":"object","properties":{"value":{"type":"string","enum":["ASSET","LIABILITY","EQUITY","REVENUE","EXPENSE"],"example":"ASSET","description":"Type of the account.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_ledger_account.account_type.value","typeLabel":"enum\u003cstring>"},"display_name":{"type":"string","description":"Display name of the account type.","example":"Asset","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_ledger_account.account_type.display_name","typeLabel":"string"}},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_ledger_account.account_type","typeLabel":"object"},"account_subtype":{"type":"object","properties":{"value":{"type":"string","enum":["BANK_ACCOUNTS","ACCOUNTS_RECEIVABLE","INVENTORY","PAYMENT_PROCESSOR_CLEARING_ACCOUNT","FIXED_ASSET","ACCUMULATED_DEPRECIATION","CASH","UNDEPOSITED_FUNDS","CURRENT_ASSET","NON_CURRENT_ASSET","PREPAID_EXPENSES","DEVELOPMENT_COSTS","LOANS_RECEIVABLE","INTANGIBLE_ASSET","ACCOUNTS_PAYABLE","CREDIT_CARD","TAXES_PAYABLE","INCOME_TAXES_PAYABLE","SALES_TAXES_PAYABLE","OTHER_TAXES_PAYABLE","PAYROLL_TAXES_PAYABLE","UNEARNED_REVENUE","PAYROLL_LIABILITY","PAYROLL_CLEARING","LINE_OF_CREDIT","TIPS","REFUND_LIABILITIES","UNDEPOSITED_OUTFLOWS","OUTGOING_PAYMENT_CLEARING_ACCOUNT","OTHER_CURRENT_LIABILITY","LOANS_PAYABLE","NOTES_PAYABLE","SHAREHOLDER_LOAN","NON_CURRENT_LIABILITY","CONTRIBUTIONS","DISTRIBUTIONS","COMMON_STOCK","PREFERRED_STOCK","ADDITIONAL_PAID_IN_CAPITAL","RETAINED_EARNINGS","ACCUMULATED_ADJUSTMENTS","OPENING_BALANCE_EQUITY","OTHER_EQUITY","SALES","UNCATEGORIZED_REVENUE","RETURNS_ALLOWANCES","DIVIDEND_INCOME","INTEREST_INCOME","OTHER_INCOME","COGS","OPERATING_EXPENSES","PAYROLL","TAXES_LICENSES","UNCATEGORIZED_EXPENSE","CHARITABLE_CONTRIBUTIONS","LOAN_EXPENSES","FINANCE_COSTS","INTEREST_EXPENSES","DEPRECIATION","AMORTIZATION","BAD_DEBT","OTHER_EXPENSES"],"example":"BANK_ACCOUNTS","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_ledger_account.account_subtype.value","typeLabel":"enum\u003cstring>"},"display_name":{"type":"string","description":"Display name of the account subtype.","example":"Current Assets","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_ledger_account.account_subtype.display_name","typeLabel":"string"}},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_ledger_account.account_subtype","typeLabel":"object"}},"description":"Ledger account for the tax line item.","example":{"id":"c4007474-f604-4d57-9690-b7f40f7a1cee","name":"Sales tax: CALIFORNIA","stable_name":"SALES_TAXES_PAYABLE:CALIFORNIA","normality":"CREDIT","account_type":{"value":"LIABILITY","display_name":"Liabilities"},"account_subtype":{"value":"SALES_TAXES_PAYABLE","display_name":"Sales Taxes Payable"}},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].tax_ledger_account","typeLabel":"object"},"amount":{"type":"integer","format":"int64","description":"Amount, in cents, of tax owed.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX].amount","typeLabel":"integer\u003cint64>"}},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"List of sales taxes line items.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"tax_account":{"oneOf":[{"type":"object","title":"Tax Name","description":"Tax account name or identifier. If not set, account defaults to top level sales tax payable liability account.","required":["name"],"properties":{"type":{"type":"string","description":"Resource type. Value will be 'Tax_Name'.","example":"Tax_Name"},"name":{"type":"string","description":"Name of the ledger account.","example":"CALIFORNIA_VAT"}}},{"type":"object","title":"Ledger Account ID","description":"Tax account name or identifier. If not set, account defaults to top level sales tax payable liability account.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Ledger Account Stable Name","description":"Tax account name or identifier. If not set, account defaults to top level sales tax payable liability account.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}}]},"tax_ledger_account":{"type":"object","properties":{"type":{"type":"string","description":"Resource type. Value will be `Single_Chart_Account`.","example":"Single_Chart_Account"},"id":{"oneOf":[{"type":"object","title":"Account ID","description":"ID of the account.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Stable name associated with the account.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}}]},"name":{"type":"string","description":"Name of the account.","example":"Current Assets"},"account_number":{"oneOf":[{"type":"string","description":"Account number if configured.","example":"4000"},{"type":"null","description":"Account number if configured.","example":"4000"}]},"stable_name":{"type":"object","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},"normality":{"type":"string","enum":["CREDIT","DEBIT"],"example":"DEBIT"},"account_type":{"type":"object","properties":{"value":{"type":"string","enum":["ASSET","LIABILITY","EQUITY","REVENUE","EXPENSE"],"example":"ASSET","description":"Type of the account."},"display_name":{"type":"string","description":"Display name of the account type.","example":"Asset"}}},"account_subtype":{"type":"object","properties":{"value":{"type":"string","enum":["BANK_ACCOUNTS","ACCOUNTS_RECEIVABLE","INVENTORY","PAYMENT_PROCESSOR_CLEARING_ACCOUNT","FIXED_ASSET","ACCUMULATED_DEPRECIATION","CASH","UNDEPOSITED_FUNDS","CURRENT_ASSET","NON_CURRENT_ASSET","PREPAID_EXPENSES","DEVELOPMENT_COSTS","LOANS_RECEIVABLE","INTANGIBLE_ASSET","ACCOUNTS_PAYABLE","CREDIT_CARD","TAXES_PAYABLE","INCOME_TAXES_PAYABLE","SALES_TAXES_PAYABLE","OTHER_TAXES_PAYABLE","PAYROLL_TAXES_PAYABLE","UNEARNED_REVENUE","PAYROLL_LIABILITY","PAYROLL_CLEARING","LINE_OF_CREDIT","TIPS","REFUND_LIABILITIES","UNDEPOSITED_OUTFLOWS","OUTGOING_PAYMENT_CLEARING_ACCOUNT","OTHER_CURRENT_LIABILITY","LOANS_PAYABLE","NOTES_PAYABLE","SHAREHOLDER_LOAN","NON_CURRENT_LIABILITY","CONTRIBUTIONS","DISTRIBUTIONS","COMMON_STOCK","PREFERRED_STOCK","ADDITIONAL_PAID_IN_CAPITAL","RETAINED_EARNINGS","ACCUMULATED_ADJUSTMENTS","OPENING_BALANCE_EQUITY","OTHER_EQUITY","SALES","UNCATEGORIZED_REVENUE","RETURNS_ALLOWANCES","DIVIDEND_INCOME","INTEREST_INCOME","OTHER_INCOME","COGS","OPERATING_EXPENSES","PAYROLL","TAXES_LICENSES","UNCATEGORIZED_EXPENSE","CHARITABLE_CONTRIBUTIONS","LOAN_EXPENSES","FINANCE_COSTS","INTEREST_EXPENSES","DEPRECIATION","AMORTIZATION","BAD_DEBT","OTHER_EXPENSES"],"example":"BANK_ACCOUNTS"},"display_name":{"type":"string","description":"Display name of the account subtype.","example":"Current Assets"}}}},"description":"Ledger account for the tax line item.","example":{"id":"c4007474-f604-4d57-9690-b7f40f7a1cee","name":"Sales tax: CALIFORNIA","stable_name":"SALES_TAXES_PAYABLE:CALIFORNIA","normality":"CREDIT","account_type":{"value":"LIABILITY","display_name":"Liabilities"},"account_subtype":{"value":"SALES_TAXES_PAYABLE","display_name":"Sales Taxes Payable"}}},"amount":{"type":"integer","format":"int64","description":"Amount, in cents, of tax owed."}}},"description":"List of sales taxes line items.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].sales_taxes","typeLabel":"object[] | null"},"total_amount":{"type":"integer","format":"int64","description":"Total amount on the line item.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].total_amount","typeLabel":"integer\u003cint64>"},"refund_allocations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the refund allocation.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"refund_id":{"type":"string","format":"uuid","description":"ID of the refund this allocation belongs to.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].refund_id","typeLabel":"string\u003cuuid>"},"refund_external_id":{"oneOf":[{"type":"string","description":"External ID of the refund this allocation belongs to.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].refund_external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"External ID of the refund this allocation belongs to.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].refund_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].refund_external_id","typeLabel":"string | null"},"invoice_id":{"oneOf":[{"type":"string","format":"uuid","description":"ID of the invoice this allocation is associated with.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].invoice_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID of the invoice this allocation is associated with.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].invoice_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].invoice_id","typeLabel":"string\u003cuuid> | null"},"amount":{"type":"integer","format":"int64","description":"Amount of the allocation in cents.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].amount","typeLabel":"integer\u003cint64>"},"account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Identifier of the ledger account for the refund allocation to apply to.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Identifier of the ledger account for the refund allocation to apply to.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"invoice_external_id":{"oneOf":[{"type":"string","description":"External ID of the invoice this allocation is associated with.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].invoice_external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"External ID of the invoice this allocation is associated with.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].invoice_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].invoice_external_id","typeLabel":"string | null"},"invoice_line_item_id":{"oneOf":[{"type":"string","format":"uuid","description":"ID of the invoice line item this allocation is associated with. If specified, must not refer to a different invoice `invoice_external` or `invoice_id`.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].invoice_line_item_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID of the invoice line item this allocation is associated with. If specified, must not refer to a different invoice `invoice_external` or `invoice_id`.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].invoice_line_item_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].invoice_line_item_id","typeLabel":"string\u003cuuid> | null"},"invoice_line_item_external_id":{"oneOf":[{"type":"string","description":"The external ID of the invoice line item to refund. If specified alongside `invoice_line_item_id`, they must refer to the same invoice line item.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].invoice_line_item_external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The external ID of the invoice line item to refund. If specified alongside `invoice_line_item_id`, they must refer to the same invoice line item.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].invoice_line_item_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].invoice_line_item_external_id","typeLabel":"string | null"},"invoice_payment_id":{"oneOf":[{"type":"string","format":"uuid","description":"ID of the invoice payment this allocation is associated with.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].invoice_payment_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID of the invoice payment this allocation is associated with.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].invoice_payment_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].invoice_payment_id","typeLabel":"string\u003cuuid> | null"},"invoice_payment_external_id":{"oneOf":[{"type":"string","description":"External ID of the invoice payment this allocation is associated with.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].invoice_payment_external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"External ID of the invoice payment this allocation is associated with.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].invoice_payment_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].invoice_payment_external_id","typeLabel":"string | null"},"customer":{"type":"object","properties":{"type":{"type":"string","description":"Resource type. Value will be `CustomerData`.","example":"CustomerData","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.type","typeLabel":"string"},"id":{"type":"string","format":"uuid","description":"Unique identifier for the customer.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.id","typeLabel":"string\u003cuuid>"},"external_id":{"type":"string","description":"Unique ID of the customer in your system for linking purposes. **Idempotency key**.","example":"31415926535","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.external_id","typeLabel":"string"},"individual_name":{"oneOf":[{"type":"string","description":"Full name of the individual customer or contact at a corporate customer.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.individual_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Full name of the individual customer or contact at a corporate customer.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.individual_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.individual_name","typeLabel":"string | null"},"company_name":{"oneOf":[{"type":"string","description":"Name of the company customer.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.company_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Name of the company customer.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.company_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.company_name","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","description":"Email address of the customer.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.email.oneOf.0","typeLabel":"string"},{"type":"null","description":"Email address of the customer.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.email.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.email","typeLabel":"string | null"},"mobile_phone":{"oneOf":[{"type":"string","description":"Mobile phone number of the customer.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.mobile_phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Mobile phone number of the customer.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.mobile_phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.mobile_phone","typeLabel":"string | null"},"office_phone":{"oneOf":[{"type":"string","description":"Office phone number of the customer.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.office_phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Office phone number of the customer.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.office_phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.office_phone","typeLabel":"string | null"},"address_string":{"oneOf":[{"type":"string","description":"Address of the customer.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.address_string.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address of the customer.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.address_string.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.address_string","typeLabel":"string | null"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the customer (for example, to display to end users).","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the customer (for example, to display to end users).","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.memo","typeLabel":"string | null"},"status":{"type":"string","description":"Status of the customer. Possible values: `ACTIVE`, `ARCHIVED`.","example":"ACTIVE","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.status","typeLabel":"string"},"transaction_tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID for the tag.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"key":{"type":"string","description":"Key for the tag.","example":"ExampleTagKey","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Value for the tag.","example":"ExampleTagValue","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].value","typeLabel":"string"},"dimension_id":{"type":"string","format":"uuid","description":"ID of the tag dimension this tag belongs to.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].dimension_id","typeLabel":"string\u003cuuid>"},"definition_id":{"type":"string","format":"uuid","description":"ID of the tag value definition.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].definition_id","typeLabel":"string\u003cuuid>"},"dimension_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag dimension.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag dimension.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag value definition.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag value definition.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].value_display_name","typeLabel":"string | null"},"archived_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].archived_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].archived_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","key","value","dimension_id","definition_id"],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags","typeLabel":"object[]"}},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].customer","typeLabel":"object"},"transaction_tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID for the tag.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"key":{"type":"string","description":"Key for the tag.","example":"ExampleTagKey","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Value for the tag.","example":"ExampleTagValue","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].value","typeLabel":"string"},"dimension_id":{"type":"string","format":"uuid","description":"ID of the tag dimension this tag belongs to.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].dimension_id","typeLabel":"string\u003cuuid>"},"definition_id":{"type":"string","format":"uuid","description":"ID of the tag value definition.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].definition_id","typeLabel":"string\u003cuuid>"},"dimension_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag dimension.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag dimension.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag value definition.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag value definition.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].value_display_name","typeLabel":"string | null"},"archived_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].archived_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","key","value","dimension_id","definition_id"],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the refund allocation (for example, to display to end users).","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the refund allocation (for example, to display to end users).","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX].reference_number","typeLabel":"string | null"}},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations.items.[INDEX]","typeLabel":"object"},"description":"Refund allocations associated with this invoice line item.","example":[],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].refund_allocations","typeLabel":"object[]"},"transaction_tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID for the tag.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].transaction_tags.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"key":{"type":"string","description":"Key for the tag.","example":"ExampleTagKey","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].transaction_tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Value for the tag.","example":"ExampleTagValue","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].transaction_tags.items.[INDEX].value","typeLabel":"string"},"dimension_id":{"type":"string","format":"uuid","description":"ID of the tag dimension this tag belongs to.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].transaction_tags.items.[INDEX].dimension_id","typeLabel":"string\u003cuuid>"},"definition_id":{"type":"string","format":"uuid","description":"ID of the tag value definition.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].transaction_tags.items.[INDEX].definition_id","typeLabel":"string\u003cuuid>"},"dimension_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag dimension.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag dimension.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag value definition.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag value definition.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].transaction_tags.items.[INDEX].value_display_name","typeLabel":"string | null"},"archived_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].transaction_tags.items.[INDEX].archived_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","key","value","dimension_id","definition_id"],"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].transaction_tags.items.[INDEX]","typeLabel":"object"},"description":"List of tags on the transaction associated with the invoice line item.","uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX].transaction_tags","typeLabel":"object[]"}},"uniqueKey":"data.invoices.items.[INDEX].line_items.items.[INDEX]","typeLabel":"object"},"description":"Line items making up the invoice.","uniqueKey":"data.invoices.items.[INDEX].line_items","typeLabel":"object[]"},"subtotal":{"type":"integer","description":"Subtotal of all invoice line items in cents.","uniqueKey":"data.invoices.items.[INDEX].subtotal","typeLabel":"integer"},"additional_discount":{"type":"integer","description":"Additional discount applied to the whole invoice in addition to individual line items.","uniqueKey":"data.invoices.items.[INDEX].additional_discount","typeLabel":"integer"},"additional_sales_taxes_total":{"type":"integer","description":"Sum of all taxes across the invoice line items and any additional taxes in cents.","uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes_total","typeLabel":"integer"},"additional_sales_taxes":{"type":"array","items":{"type":"object","properties":{"tax_account":{"oneOf":[{"type":"object","title":"Tax Name","description":"Tax account name or identifier. If not set, account defaults to top level sales tax payable liability account.","required":["name"],"properties":{"name":{"type":"string","description":"Name of the ledger account.","example":"CALIFORNIA_VAT","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_account.oneOf.0.name","typeLabel":"string"},"type":{"type":"string","description":"Resource type. Value will be 'Tax_Name'.","example":"Tax_Name","uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_account.oneOf.0.type","typeLabel":"string"}},"uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_account.oneOf.0","typeLabel":"Tax Name · object"},{"type":"object","title":"Ledger Account ID","description":"Tax account name or identifier. If not set, account defaults to top level sales tax payable liability account.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_account.oneOf.1.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_account.oneOf.1.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_account.oneOf.1","typeLabel":"Ledger Account ID · object"},{"type":"object","title":"Ledger Account Stable Name","description":"Tax account name or identifier. If not set, account defaults to top level sales tax payable liability account.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_account.oneOf.2.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_account.oneOf.2.stable_name","typeLabel":"string"}},"uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_account.oneOf.2","typeLabel":"Ledger Account Stable Name · object"}],"uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_account","typeLabel":"Tax Name · object | Ledger Account ID · object | Ledger Account Stable Name · object"},"tax_ledger_account":{"type":"object","properties":{"type":{"type":"string","description":"Resource type. Value will be `Single_Chart_Account`.","example":"Single_Chart_Account","uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_ledger_account.type","typeLabel":"string"},"id":{"oneOf":[{"type":"object","title":"Account ID","description":"ID of the account.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_ledger_account.id.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_ledger_account.id.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_ledger_account.id.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Stable name associated with the account.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_ledger_account.id.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_ledger_account.id.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_ledger_account.id.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_ledger_account.id","typeLabel":"Account ID · object | Account Stable Name · object"},"name":{"type":"string","description":"Name of the account.","example":"Current Assets","uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_ledger_account.name","typeLabel":"string"},"account_number":{"oneOf":[{"type":"string","description":"Account number if configured.","example":"4000","uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_ledger_account.account_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Account number if configured.","example":"4000","uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_ledger_account.account_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_ledger_account.account_number","typeLabel":"string | null"},"stable_name":{"type":"object","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_ledger_account.stable_name.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_ledger_account.stable_name.stable_name","typeLabel":"string"}},"uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_ledger_account.stable_name","typeLabel":"object"},"normality":{"type":"string","enum":["CREDIT","DEBIT"],"example":"DEBIT","uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_ledger_account.normality","typeLabel":"enum\u003cstring>"},"account_type":{"type":"object","properties":{"value":{"type":"string","enum":["ASSET","LIABILITY","EQUITY","REVENUE","EXPENSE"],"example":"ASSET","description":"Type of the account.","uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_ledger_account.account_type.value","typeLabel":"enum\u003cstring>"},"display_name":{"type":"string","description":"Display name of the account type.","example":"Asset","uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_ledger_account.account_type.display_name","typeLabel":"string"}},"uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_ledger_account.account_type","typeLabel":"object"},"account_subtype":{"type":"object","properties":{"value":{"type":"string","enum":["BANK_ACCOUNTS","ACCOUNTS_RECEIVABLE","INVENTORY","PAYMENT_PROCESSOR_CLEARING_ACCOUNT","FIXED_ASSET","ACCUMULATED_DEPRECIATION","CASH","UNDEPOSITED_FUNDS","CURRENT_ASSET","NON_CURRENT_ASSET","PREPAID_EXPENSES","DEVELOPMENT_COSTS","LOANS_RECEIVABLE","INTANGIBLE_ASSET","ACCOUNTS_PAYABLE","CREDIT_CARD","TAXES_PAYABLE","INCOME_TAXES_PAYABLE","SALES_TAXES_PAYABLE","OTHER_TAXES_PAYABLE","PAYROLL_TAXES_PAYABLE","UNEARNED_REVENUE","PAYROLL_LIABILITY","PAYROLL_CLEARING","LINE_OF_CREDIT","TIPS","REFUND_LIABILITIES","UNDEPOSITED_OUTFLOWS","OUTGOING_PAYMENT_CLEARING_ACCOUNT","OTHER_CURRENT_LIABILITY","LOANS_PAYABLE","NOTES_PAYABLE","SHAREHOLDER_LOAN","NON_CURRENT_LIABILITY","CONTRIBUTIONS","DISTRIBUTIONS","COMMON_STOCK","PREFERRED_STOCK","ADDITIONAL_PAID_IN_CAPITAL","RETAINED_EARNINGS","ACCUMULATED_ADJUSTMENTS","OPENING_BALANCE_EQUITY","OTHER_EQUITY","SALES","UNCATEGORIZED_REVENUE","RETURNS_ALLOWANCES","DIVIDEND_INCOME","INTEREST_INCOME","OTHER_INCOME","COGS","OPERATING_EXPENSES","PAYROLL","TAXES_LICENSES","UNCATEGORIZED_EXPENSE","CHARITABLE_CONTRIBUTIONS","LOAN_EXPENSES","FINANCE_COSTS","INTEREST_EXPENSES","DEPRECIATION","AMORTIZATION","BAD_DEBT","OTHER_EXPENSES"],"example":"BANK_ACCOUNTS","uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_ledger_account.account_subtype.value","typeLabel":"enum\u003cstring>"},"display_name":{"type":"string","description":"Display name of the account subtype.","example":"Current Assets","uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_ledger_account.account_subtype.display_name","typeLabel":"string"}},"uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_ledger_account.account_subtype","typeLabel":"object"}},"description":"Ledger account for the tax line item.","example":{"id":"c4007474-f604-4d57-9690-b7f40f7a1cee","name":"Sales tax: CALIFORNIA","stable_name":"SALES_TAXES_PAYABLE:CALIFORNIA","normality":"CREDIT","account_type":{"value":"LIABILITY","display_name":"Liabilities"},"account_subtype":{"value":"SALES_TAXES_PAYABLE","display_name":"Sales Taxes Payable"}},"uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].tax_ledger_account","typeLabel":"object"},"amount":{"type":"integer","format":"int64","description":"Amount, in cents, of tax owed.","uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX].amount","typeLabel":"integer\u003cint64>"}},"uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes.items.[INDEX]","typeLabel":"object"},"description":"List of additional sales tax line items.","uniqueKey":"data.invoices.items.[INDEX].additional_sales_taxes","typeLabel":"object[]"},"tips":{"type":"integer","description":"Tips included by the buyer, in cents.","uniqueKey":"data.invoices.items.[INDEX].tips","typeLabel":"integer"},"total_amount":{"type":"integer","description":"Total amount of the invoice in cents.","uniqueKey":"data.invoices.items.[INDEX].total_amount","typeLabel":"integer"},"outstanding_balance":{"type":"integer","description":"The remaining balance on the invoice after factoring in all previous invoice payments and write-offs.","uniqueKey":"data.invoices.items.[INDEX].outstanding_balance","typeLabel":"integer"},"memo":{"type":"string","description":"Memo for any text you would like to associate with the Invoice (for example, to display to end users).","uniqueKey":"data.invoices.items.[INDEX].memo","typeLabel":"string"},"payment_allocations":{"type":"array","items":{"type":"object","properties":{"invoice_id":{"type":"string","format":"uuid","description":"ID of the invoice.","uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX].invoice_id","typeLabel":"string\u003cuuid>"},"payment_id":{"type":"string","format":"uuid","description":"ID of the payment.","uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX].payment_id","typeLabel":"string\u003cuuid>"},"amount":{"type":"integer","format":"int64","description":"Amount of the payment allocated towards this invoice. If this amount is the full payment amount, this payment was fully allocated towards this invoice. The amount cannot exceed the invoice total.","uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX].amount","typeLabel":"integer\u003cint64>"},"amount_net_of_refunds":{"type":"integer","format":"int64","description":"Amount allocated after applying any refunds, in cents.","uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX].amount_net_of_refunds","typeLabel":"integer\u003cint64>"},"transaction_tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID for the tag.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX].transaction_tags.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"key":{"type":"string","description":"Key for the tag.","example":"ExampleTagKey","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX].transaction_tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Value for the tag.","example":"ExampleTagValue","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX].transaction_tags.items.[INDEX].value","typeLabel":"string"},"dimension_id":{"type":"string","format":"uuid","description":"ID of the tag dimension this tag belongs to.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX].transaction_tags.items.[INDEX].dimension_id","typeLabel":"string\u003cuuid>"},"definition_id":{"type":"string","format":"uuid","description":"ID of the tag value definition.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX].transaction_tags.items.[INDEX].definition_id","typeLabel":"string\u003cuuid>"},"dimension_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag dimension.","uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag dimension.","uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag value definition.","uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag value definition.","uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX].transaction_tags.items.[INDEX].value_display_name","typeLabel":"string | null"},"archived_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX].transaction_tags.items.[INDEX].archived_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","key","value","dimension_id","definition_id"],"uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX].transaction_tags.items.[INDEX]","typeLabel":"object"},"description":"List of tags on the transaction associated with the payment allocation.","uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX].transaction_tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the invoice payment allocation (for example, to display to end users).","uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX].memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the invoice payment allocation (for example, to display to end users).","uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX].memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX].metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX].metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the invoice payment allocation.","uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX].reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the invoice payment allocation.","uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX].reference_number","typeLabel":"string | null"}},"uniqueKey":"data.invoices.items.[INDEX].payment_allocations.items.[INDEX]","typeLabel":"object"},"description":"Payments made by a customer are allocated toward one or many invoices. This list shows which payments have been been allocated towards this invoice. The most common case is that there is a 1:1 relationship between a payment and an invoice, in which case the allocation’s `amount` will match the payment’s `amount`.","example":[],"uniqueKey":"data.invoices.items.[INDEX].payment_allocations","typeLabel":"object[]"},"refund_allocations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the refund allocation.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"refund_id":{"type":"string","format":"uuid","description":"ID of the refund this allocation belongs to.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].refund_id","typeLabel":"string\u003cuuid>"},"refund_external_id":{"oneOf":[{"type":"string","description":"External ID of the refund this allocation belongs to.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].refund_external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"External ID of the refund this allocation belongs to.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].refund_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].refund_external_id","typeLabel":"string | null"},"invoice_id":{"oneOf":[{"type":"string","format":"uuid","description":"ID of the invoice this allocation is associated with.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].invoice_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID of the invoice this allocation is associated with.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].invoice_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].invoice_id","typeLabel":"string\u003cuuid> | null"},"amount":{"type":"integer","format":"int64","description":"Amount of the allocation in cents.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].amount","typeLabel":"integer\u003cint64>"},"account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Identifier of the ledger account for the refund allocation to apply to.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Identifier of the ledger account for the refund allocation to apply to.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"invoice_external_id":{"oneOf":[{"type":"string","description":"External ID of the invoice this allocation is associated with.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].invoice_external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"External ID of the invoice this allocation is associated with.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].invoice_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].invoice_external_id","typeLabel":"string | null"},"invoice_line_item_id":{"oneOf":[{"type":"string","format":"uuid","description":"ID of the invoice line item this allocation is associated with. If specified, must not refer to a different invoice `invoice_external` or `invoice_id`.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].invoice_line_item_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID of the invoice line item this allocation is associated with. If specified, must not refer to a different invoice `invoice_external` or `invoice_id`.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].invoice_line_item_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].invoice_line_item_id","typeLabel":"string\u003cuuid> | null"},"invoice_line_item_external_id":{"oneOf":[{"type":"string","description":"The external ID of the invoice line item to refund. If specified alongside `invoice_line_item_id`, they must refer to the same invoice line item.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].invoice_line_item_external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The external ID of the invoice line item to refund. If specified alongside `invoice_line_item_id`, they must refer to the same invoice line item.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].invoice_line_item_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].invoice_line_item_external_id","typeLabel":"string | null"},"invoice_payment_id":{"oneOf":[{"type":"string","format":"uuid","description":"ID of the invoice payment this allocation is associated with.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].invoice_payment_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID of the invoice payment this allocation is associated with.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].invoice_payment_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].invoice_payment_id","typeLabel":"string\u003cuuid> | null"},"invoice_payment_external_id":{"oneOf":[{"type":"string","description":"External ID of the invoice payment this allocation is associated with.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].invoice_payment_external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"External ID of the invoice payment this allocation is associated with.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].invoice_payment_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].invoice_payment_external_id","typeLabel":"string | null"},"customer":{"type":"object","properties":{"type":{"type":"string","description":"Resource type. Value will be `CustomerData`.","example":"CustomerData","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.type","typeLabel":"string"},"id":{"type":"string","format":"uuid","description":"Unique identifier for the customer.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.id","typeLabel":"string\u003cuuid>"},"external_id":{"type":"string","description":"Unique ID of the customer in your system for linking purposes. **Idempotency key**.","example":"31415926535","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.external_id","typeLabel":"string"},"individual_name":{"oneOf":[{"type":"string","description":"Full name of the individual customer or contact at a corporate customer.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.individual_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Full name of the individual customer or contact at a corporate customer.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.individual_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.individual_name","typeLabel":"string | null"},"company_name":{"oneOf":[{"type":"string","description":"Name of the company customer.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.company_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Name of the company customer.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.company_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.company_name","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","description":"Email address of the customer.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.email.oneOf.0","typeLabel":"string"},{"type":"null","description":"Email address of the customer.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.email.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.email","typeLabel":"string | null"},"mobile_phone":{"oneOf":[{"type":"string","description":"Mobile phone number of the customer.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.mobile_phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Mobile phone number of the customer.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.mobile_phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.mobile_phone","typeLabel":"string | null"},"office_phone":{"oneOf":[{"type":"string","description":"Office phone number of the customer.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.office_phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Office phone number of the customer.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.office_phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.office_phone","typeLabel":"string | null"},"address_string":{"oneOf":[{"type":"string","description":"Address of the customer.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.address_string.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address of the customer.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.address_string.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.address_string","typeLabel":"string | null"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the customer (for example, to display to end users).","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the customer (for example, to display to end users).","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.memo","typeLabel":"string | null"},"status":{"type":"string","description":"Status of the customer. Possible values: `ACTIVE`, `ARCHIVED`.","example":"ACTIVE","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.status","typeLabel":"string"},"transaction_tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID for the tag.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"key":{"type":"string","description":"Key for the tag.","example":"ExampleTagKey","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Value for the tag.","example":"ExampleTagValue","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].value","typeLabel":"string"},"dimension_id":{"type":"string","format":"uuid","description":"ID of the tag dimension this tag belongs to.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].dimension_id","typeLabel":"string\u003cuuid>"},"definition_id":{"type":"string","format":"uuid","description":"ID of the tag value definition.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].definition_id","typeLabel":"string\u003cuuid>"},"dimension_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag dimension.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag dimension.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag value definition.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag value definition.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].value_display_name","typeLabel":"string | null"},"archived_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].archived_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].archived_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","key","value","dimension_id","definition_id"],"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags","typeLabel":"object[]"}},"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].customer","typeLabel":"object"},"transaction_tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID for the tag.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"key":{"type":"string","description":"Key for the tag.","example":"ExampleTagKey","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Value for the tag.","example":"ExampleTagValue","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].value","typeLabel":"string"},"dimension_id":{"type":"string","format":"uuid","description":"ID of the tag dimension this tag belongs to.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].dimension_id","typeLabel":"string\u003cuuid>"},"definition_id":{"type":"string","format":"uuid","description":"ID of the tag value definition.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].definition_id","typeLabel":"string\u003cuuid>"},"dimension_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag dimension.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag dimension.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag value definition.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag value definition.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].value_display_name","typeLabel":"string | null"},"archived_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].archived_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","key","value","dimension_id","definition_id"],"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the refund allocation (for example, to display to end users).","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the refund allocation (for example, to display to end users).","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation.","uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX].reference_number","typeLabel":"string | null"}},"uniqueKey":"data.invoices.items.[INDEX].refund_allocations.items.[INDEX]","typeLabel":"object"},"description":"Refunds made by a customer are allocated toward one or many invoices. This list shows which refunds have been been allocated towards this invoice.","example":[],"uniqueKey":"data.invoices.items.[INDEX].refund_allocations","typeLabel":"object[]"},"imported_at":{"type":"string","format":"date-time","description":"Time when the invoice was first imported into Layer. **Eligible sort key**.","uniqueKey":"data.invoices.items.[INDEX].imported_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","description":"Time when the invoice was first updated in Layer. **Eligible sort key**.","uniqueKey":"data.invoices.items.[INDEX].updated_at","typeLabel":"string\u003cdate-time>"},"transaction_tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID for the tag.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].transaction_tags.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"key":{"type":"string","description":"Key for the tag.","example":"ExampleTagKey","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].transaction_tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Value for the tag.","example":"ExampleTagValue","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].transaction_tags.items.[INDEX].value","typeLabel":"string"},"dimension_id":{"type":"string","format":"uuid","description":"ID of the tag dimension this tag belongs to.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].transaction_tags.items.[INDEX].dimension_id","typeLabel":"string\u003cuuid>"},"definition_id":{"type":"string","format":"uuid","description":"ID of the tag value definition.","isRequired":true,"uniqueKey":"data.invoices.items.[INDEX].transaction_tags.items.[INDEX].definition_id","typeLabel":"string\u003cuuid>"},"dimension_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag dimension.","uniqueKey":"data.invoices.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag dimension.","uniqueKey":"data.invoices.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag value definition.","uniqueKey":"data.invoices.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag value definition.","uniqueKey":"data.invoices.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].transaction_tags.items.[INDEX].value_display_name","typeLabel":"string | null"},"archived_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.invoices.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.invoices.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].transaction_tags.items.[INDEX].archived_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","key","value","dimension_id","definition_id"],"uniqueKey":"data.invoices.items.[INDEX].transaction_tags.items.[INDEX]","typeLabel":"object"},"description":"Tags on the transactions associated with the invoice.","uniqueKey":"data.invoices.items.[INDEX].transaction_tags","typeLabel":"object[]"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.invoices.items.[INDEX].metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.invoices.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the invoice. Can be used to filter when listing invoices.","uniqueKey":"data.invoices.items.[INDEX].reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the invoice. Can be used to filter when listing invoices.","uniqueKey":"data.invoices.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.invoices.items.[INDEX].reference_number","typeLabel":"string | null"}},"uniqueKey":"data.invoices.items.[INDEX]","typeLabel":"object"},"description":"The invoices from the request, in request order.","uniqueKey":"data.invoices","typeLabel":"object[]"},"payments":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Resource type. Value will be `Invoice_Payment`.","example":"Invoice_Payment","uniqueKey":"data.payments.items.[INDEX].type","typeLabel":"string"},"id":{"type":"string","format":"uuid","description":"Unique identifier for the payment.","uniqueKey":"data.payments.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the invoice payment in an external system for linking and idempotency.","example":"payment-1","uniqueKey":"data.payments.items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the invoice payment in an external system for linking and idempotency.","example":"payment-1","uniqueKey":"data.payments.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].external_id","typeLabel":"string | null"},"customer":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","description":"Resource type. Value will be `CustomerData`.","example":"CustomerData","uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.type","typeLabel":"string"},"id":{"type":"string","format":"uuid","description":"Unique identifier for the customer.","uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.id","typeLabel":"string\u003cuuid>"},"external_id":{"type":"string","description":"Unique ID of the customer in your system for linking purposes. **Idempotency key**.","example":"31415926535","uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.external_id","typeLabel":"string"},"individual_name":{"oneOf":[{"type":"string","description":"Full name of the individual customer or contact at a corporate customer.","uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.individual_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Full name of the individual customer or contact at a corporate customer.","uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.individual_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.individual_name","typeLabel":"string | null"},"company_name":{"oneOf":[{"type":"string","description":"Name of the company customer.","uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.company_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Name of the company customer.","uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.company_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.company_name","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","description":"Email address of the customer.","uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.email.oneOf.0","typeLabel":"string"},{"type":"null","description":"Email address of the customer.","uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.email.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.email","typeLabel":"string | null"},"mobile_phone":{"oneOf":[{"type":"string","description":"Mobile phone number of the customer.","uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.mobile_phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Mobile phone number of the customer.","uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.mobile_phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.mobile_phone","typeLabel":"string | null"},"office_phone":{"oneOf":[{"type":"string","description":"Office phone number of the customer.","uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.office_phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Office phone number of the customer.","uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.office_phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.office_phone","typeLabel":"string | null"},"address_string":{"oneOf":[{"type":"string","description":"Address of the customer.","uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.address_string.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address of the customer.","uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.address_string.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.address_string","typeLabel":"string | null"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the customer (for example, to display to end users).","uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the customer (for example, to display to end users).","uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.memo","typeLabel":"string | null"},"status":{"type":"string","description":"Status of the customer. Possible values: `ACTIVE`, `ARCHIVED`.","example":"ACTIVE","uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.status","typeLabel":"string"},"transaction_tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID for the tag.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.transaction_tags.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"key":{"type":"string","description":"Key for the tag.","example":"ExampleTagKey","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.transaction_tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Value for the tag.","example":"ExampleTagValue","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.transaction_tags.items.[INDEX].value","typeLabel":"string"},"dimension_id":{"type":"string","format":"uuid","description":"ID of the tag dimension this tag belongs to.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.transaction_tags.items.[INDEX].dimension_id","typeLabel":"string\u003cuuid>"},"definition_id":{"type":"string","format":"uuid","description":"ID of the tag value definition.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.transaction_tags.items.[INDEX].definition_id","typeLabel":"string\u003cuuid>"},"dimension_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag dimension.","uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.transaction_tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag dimension.","uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.transaction_tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag value definition.","uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.transaction_tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag value definition.","uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.transaction_tags.items.[INDEX].value_display_name","typeLabel":"string | null"},"archived_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.transaction_tags.items.[INDEX].archived_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.transaction_tags.items.[INDEX].archived_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","key","value","dimension_id","definition_id"],"uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.transaction_tags.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0.transaction_tags","typeLabel":"object[]"}},"description":"The customer associated with this payment, if one has been set. May be present even when the payment is not allocated to any invoice.","uniqueKey":"data.payments.items.[INDEX].customer.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"type":{"type":"string","description":"Resource type. Value will be `CustomerData`.","example":"CustomerData"},"id":{"type":"string","format":"uuid","description":"Unique identifier for the customer."},"external_id":{"type":"string","description":"Unique ID of the customer in your system for linking purposes. **Idempotency key**.","example":"31415926535"},"individual_name":{"oneOf":[{"type":"string","description":"Full name of the individual customer or contact at a corporate customer."},{"type":"null","description":"Full name of the individual customer or contact at a corporate customer."}]},"company_name":{"oneOf":[{"type":"string","description":"Name of the company customer."},{"type":"null","description":"Name of the company customer."}]},"email":{"oneOf":[{"type":"string","description":"Email address of the customer."},{"type":"null","description":"Email address of the customer."}]},"mobile_phone":{"oneOf":[{"type":"string","description":"Mobile phone number of the customer."},{"type":"null","description":"Mobile phone number of the customer."}]},"office_phone":{"oneOf":[{"type":"string","description":"Office phone number of the customer."},{"type":"null","description":"Office phone number of the customer."}]},"address_string":{"oneOf":[{"type":"string","description":"Address of the customer."},{"type":"null","description":"Address of the customer."}]},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the customer (for example, to display to end users)."},{"type":"null","description":"Memo for any text you would like to associate with the customer (for example, to display to end users)."}]},"status":{"type":"string","description":"Status of the customer. Possible values: `ACTIVE`, `ARCHIVED`.","example":"ACTIVE"},"transaction_tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID for the tag."},"key":{"type":"string","description":"Key for the tag.","example":"ExampleTagKey"},"dimension_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag dimension."},{"type":"null","description":"Display name for the tag dimension."}]},"value":{"type":"string","description":"Value for the tag.","example":"ExampleTagValue"},"value_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag value definition."},{"type":"null","description":"Display name for the tag value definition."}]},"dimension_id":{"type":"string","format":"uuid","description":"ID of the tag dimension this tag belongs to."},"definition_id":{"type":"string","format":"uuid","description":"ID of the tag value definition."},"archived_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the tag was archived."},{"type":"null","format":"date-time","description":"When the tag was archived."}]}},"required":["id","key","value","dimension_id","definition_id"]}}},"description":"The customer associated with this payment, if one has been set. May be present even when the payment is not allocated to any invoice.","uniqueKey":"data.payments.items.[INDEX].customer.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].customer","typeLabel":"object | null"},"at":{"type":"string","format":"date-time","description":"Timestamp when the payment was completed.","uniqueKey":"data.payments.items.[INDEX].at","typeLabel":"string\u003cdate-time>"},"method":{"type":"string","enum":["CASH","CHECK","CREDIT_CARD","ACH","CREDIT_BALANCE","OTHER"],"example":"ACH","description":"Payment method.","uniqueKey":"data.payments.items.[INDEX].method","typeLabel":"enum\u003cstring>"},"fee":{"type":"integer","format":"int64","description":"Fee paid by business for processing of payment in positive cents.","uniqueKey":"data.payments.items.[INDEX].fee","typeLabel":"integer\u003cint64>"},"prepayment_account":{"oneOf":[{"type":"object","title":"Account ID","description":"Identifier for the ledger account to use if this is a prepayment.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].prepayment_account.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].prepayment_account.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"data.payments.items.[INDEX].prepayment_account.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Identifier for the ledger account to use if this is a prepayment.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].prepayment_account.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].prepayment_account.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"data.payments.items.[INDEX].prepayment_account.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"data.payments.items.[INDEX].prepayment_account","typeLabel":"Account ID · object | Account Stable Name · object"},"payment_clearing_account":{"type":"object","properties":{"type":{"type":"string","description":"Resource type. Value will be `Single_Chart_Account`.","example":"Single_Chart_Account","uniqueKey":"data.payments.items.[INDEX].payment_clearing_account.type","typeLabel":"string"},"id":{"oneOf":[{"type":"object","title":"Account ID","description":"ID of the account.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].payment_clearing_account.id.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].payment_clearing_account.id.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"data.payments.items.[INDEX].payment_clearing_account.id.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Stable name associated with the account.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].payment_clearing_account.id.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].payment_clearing_account.id.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"data.payments.items.[INDEX].payment_clearing_account.id.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"data.payments.items.[INDEX].payment_clearing_account.id","typeLabel":"Account ID · object | Account Stable Name · object"},"name":{"type":"string","description":"Name of the account.","example":"Current Assets","uniqueKey":"data.payments.items.[INDEX].payment_clearing_account.name","typeLabel":"string"},"account_number":{"oneOf":[{"type":"string","description":"Account number if configured.","example":"4000","uniqueKey":"data.payments.items.[INDEX].payment_clearing_account.account_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Account number if configured.","example":"4000","uniqueKey":"data.payments.items.[INDEX].payment_clearing_account.account_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].payment_clearing_account.account_number","typeLabel":"string | null"},"stable_name":{"type":"object","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].payment_clearing_account.stable_name.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].payment_clearing_account.stable_name.stable_name","typeLabel":"string"}},"uniqueKey":"data.payments.items.[INDEX].payment_clearing_account.stable_name","typeLabel":"object"},"normality":{"type":"string","enum":["CREDIT","DEBIT"],"example":"DEBIT","uniqueKey":"data.payments.items.[INDEX].payment_clearing_account.normality","typeLabel":"enum\u003cstring>"},"account_type":{"type":"object","properties":{"value":{"type":"string","enum":["ASSET","LIABILITY","EQUITY","REVENUE","EXPENSE"],"example":"ASSET","description":"Type of the account.","uniqueKey":"data.payments.items.[INDEX].payment_clearing_account.account_type.value","typeLabel":"enum\u003cstring>"},"display_name":{"type":"string","description":"Display name of the account type.","example":"Asset","uniqueKey":"data.payments.items.[INDEX].payment_clearing_account.account_type.display_name","typeLabel":"string"}},"uniqueKey":"data.payments.items.[INDEX].payment_clearing_account.account_type","typeLabel":"object"},"account_subtype":{"type":"object","properties":{"value":{"type":"string","enum":["BANK_ACCOUNTS","ACCOUNTS_RECEIVABLE","INVENTORY","PAYMENT_PROCESSOR_CLEARING_ACCOUNT","FIXED_ASSET","ACCUMULATED_DEPRECIATION","CASH","UNDEPOSITED_FUNDS","CURRENT_ASSET","NON_CURRENT_ASSET","PREPAID_EXPENSES","DEVELOPMENT_COSTS","LOANS_RECEIVABLE","INTANGIBLE_ASSET","ACCOUNTS_PAYABLE","CREDIT_CARD","TAXES_PAYABLE","INCOME_TAXES_PAYABLE","SALES_TAXES_PAYABLE","OTHER_TAXES_PAYABLE","PAYROLL_TAXES_PAYABLE","UNEARNED_REVENUE","PAYROLL_LIABILITY","PAYROLL_CLEARING","LINE_OF_CREDIT","TIPS","REFUND_LIABILITIES","UNDEPOSITED_OUTFLOWS","OUTGOING_PAYMENT_CLEARING_ACCOUNT","OTHER_CURRENT_LIABILITY","LOANS_PAYABLE","NOTES_PAYABLE","SHAREHOLDER_LOAN","NON_CURRENT_LIABILITY","CONTRIBUTIONS","DISTRIBUTIONS","COMMON_STOCK","PREFERRED_STOCK","ADDITIONAL_PAID_IN_CAPITAL","RETAINED_EARNINGS","ACCUMULATED_ADJUSTMENTS","OPENING_BALANCE_EQUITY","OTHER_EQUITY","SALES","UNCATEGORIZED_REVENUE","RETURNS_ALLOWANCES","DIVIDEND_INCOME","INTEREST_INCOME","OTHER_INCOME","COGS","OPERATING_EXPENSES","PAYROLL","TAXES_LICENSES","UNCATEGORIZED_EXPENSE","CHARITABLE_CONTRIBUTIONS","LOAN_EXPENSES","FINANCE_COSTS","INTEREST_EXPENSES","DEPRECIATION","AMORTIZATION","BAD_DEBT","OTHER_EXPENSES"],"example":"BANK_ACCOUNTS","uniqueKey":"data.payments.items.[INDEX].payment_clearing_account.account_subtype.value","typeLabel":"enum\u003cstring>"},"display_name":{"type":"string","description":"Display name of the account subtype.","example":"Current Assets","uniqueKey":"data.payments.items.[INDEX].payment_clearing_account.account_subtype.display_name","typeLabel":"string"}},"uniqueKey":"data.payments.items.[INDEX].payment_clearing_account.account_subtype","typeLabel":"object"}},"description":"The the ledger account to use for the payment (overrides the default determined by the payment method), if specified.","uniqueKey":"data.payments.items.[INDEX].payment_clearing_account","typeLabel":"object"},"additional_fees":{"type":"array","items":{"type":"object","properties":{"fee_amount":{"type":"integer","format":"int64","description":"Amount of the fee in cents.","uniqueKey":"data.payments.items.[INDEX].additional_fees.items.[INDEX].fee_amount","typeLabel":"integer\u003cint64>"},"description":{"type":"string","description":"Description of the fee.","uniqueKey":"data.payments.items.[INDEX].additional_fees.items.[INDEX].description","typeLabel":"string"},"account":{"oneOf":[{"type":"object","title":"Account ID","description":"Account to which the fee should be allocated.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].additional_fees.items.[INDEX].account.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].additional_fees.items.[INDEX].account.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"data.payments.items.[INDEX].additional_fees.items.[INDEX].account.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Account to which the fee should be allocated.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].additional_fees.items.[INDEX].account.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].additional_fees.items.[INDEX].account.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"data.payments.items.[INDEX].additional_fees.items.[INDEX].account.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"data.payments.items.[INDEX].additional_fees.items.[INDEX].account","typeLabel":"Account ID · object | Account Stable Name · object"},"is_passed_to_customer":{"type":"boolean","description":"Whether or not the fee is passed to the customer. It is paid by the business otherwise.","uniqueKey":"data.payments.items.[INDEX].additional_fees.items.[INDEX].is_passed_to_customer","typeLabel":"boolean"}},"uniqueKey":"data.payments.items.[INDEX].additional_fees.items.[INDEX]","typeLabel":"object"},"description":"List of additional fees associated with this payment.","uniqueKey":"data.payments.items.[INDEX].additional_fees","typeLabel":"object[]"},"amount":{"type":"integer","format":"int64","description":"Customer payment amount, in cents.","uniqueKey":"data.payments.items.[INDEX].amount","typeLabel":"integer\u003cint64>"},"processor":{"oneOf":[{"type":"string","description":"Processor used to make the payment, if any. Any processor name can be provided and will be tracked. Allowed only when `method` is `CREDIT_CARD`, `ACH`, `CREDIT_BALANCE`, or `OTHER`.","example":"STRIPE","uniqueKey":"data.payments.items.[INDEX].processor.oneOf.0","typeLabel":"string"},{"type":"null","description":"Processor used to make the payment, if any. Any processor name can be provided and will be tracked. Allowed only when `method` is `CREDIT_CARD`, `ACH`, `CREDIT_BALANCE`, or `OTHER`.","example":"STRIPE","uniqueKey":"data.payments.items.[INDEX].processor.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].processor","typeLabel":"string | null"},"imported_at":{"type":"string","format":"date-time","description":"Timestamp when the payment was imported into Layer.","uniqueKey":"data.payments.items.[INDEX].imported_at","typeLabel":"string\u003cdate-time>"},"allocations":{"type":"array","items":{"oneOf":[{"type":"object","title":"Invoice Payment Allocation","description":"Allocates a portion of the payment to a specific invoice.","properties":{"invoice_id":{"type":"string","format":"uuid","description":"ID of the invoice.","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0.invoice_id","typeLabel":"string\u003cuuid>"},"payment_id":{"type":"string","format":"uuid","description":"ID of the payment.","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0.payment_id","typeLabel":"string\u003cuuid>"},"amount":{"type":"integer","format":"int64","description":"Amount of the payment allocated towards this invoice. If this amount is the full payment amount, this payment was fully allocated towards this invoice. The amount cannot exceed the invoice total.","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0.amount","typeLabel":"integer\u003cint64>"},"amount_net_of_refunds":{"type":"integer","format":"int64","description":"Amount allocated after applying any refunds, in cents.","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0.amount_net_of_refunds","typeLabel":"integer\u003cint64>"},"transaction_tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID for the tag.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0.transaction_tags.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"key":{"type":"string","description":"Key for the tag.","example":"ExampleTagKey","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0.transaction_tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Value for the tag.","example":"ExampleTagValue","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0.transaction_tags.items.[INDEX].value","typeLabel":"string"},"dimension_id":{"type":"string","format":"uuid","description":"ID of the tag dimension this tag belongs to.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0.transaction_tags.items.[INDEX].dimension_id","typeLabel":"string\u003cuuid>"},"definition_id":{"type":"string","format":"uuid","description":"ID of the tag value definition.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0.transaction_tags.items.[INDEX].definition_id","typeLabel":"string\u003cuuid>"},"dimension_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag dimension.","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0.transaction_tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag dimension.","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0.transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0.transaction_tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag value definition.","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0.transaction_tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag value definition.","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0.transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0.transaction_tags.items.[INDEX].value_display_name","typeLabel":"string | null"},"archived_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0.transaction_tags.items.[INDEX].archived_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0.transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0.transaction_tags.items.[INDEX].archived_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","key","value","dimension_id","definition_id"],"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0.transaction_tags.items.[INDEX]","typeLabel":"object"},"description":"List of tags on the transaction associated with the payment allocation.","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0.transaction_tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the invoice payment allocation (for example, to display to end users).","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0.memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the invoice payment allocation (for example, to display to end users).","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0.memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0.metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0.metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the invoice payment allocation.","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0.reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the invoice payment allocation.","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0.reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0.reference_number","typeLabel":"string | null"}},"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.0","typeLabel":"Invoice Payment Allocation · object"},{"type":"object","title":"Ledger Account Allocation","description":"Allocates a portion of the payment directly to a ledger account, rather than to an invoice.","properties":{"account_id":{"type":"string","format":"uuid","description":"ID of the ledger account to which this payment is allocated.","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1.account_id","typeLabel":"string\u003cuuid>"},"payment_id":{"type":"string","format":"uuid","description":"ID of the payment this allocation applies from.","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1.payment_id","typeLabel":"string\u003cuuid>"},"amount":{"type":"integer","format":"int64","description":"Customer payment amount, in cents.","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1.amount","typeLabel":"integer\u003cint64>"},"amount_net_of_refunds":{"type":"integer","format":"int64","description":"Amount allocated after applying any refunds, in cents.","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1.amount_net_of_refunds","typeLabel":"integer\u003cint64>"},"memo":{"oneOf":[{"type":"string","description":"Optional memo for the allocation.","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1.memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Optional memo for the allocation.","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1.memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1.metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1.metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"User-visible identifier for the allocation.","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1.reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"User-visible identifier for the allocation.","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1.reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1.reference_number","typeLabel":"string | null"},"transaction_tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID for the tag.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1.transaction_tags.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"key":{"type":"string","description":"Key for the tag.","example":"ExampleTagKey","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1.transaction_tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Value for the tag.","example":"ExampleTagValue","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1.transaction_tags.items.[INDEX].value","typeLabel":"string"},"dimension_id":{"type":"string","format":"uuid","description":"ID of the tag dimension this tag belongs to.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1.transaction_tags.items.[INDEX].dimension_id","typeLabel":"string\u003cuuid>"},"definition_id":{"type":"string","format":"uuid","description":"ID of the tag value definition.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1.transaction_tags.items.[INDEX].definition_id","typeLabel":"string\u003cuuid>"},"dimension_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag dimension.","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1.transaction_tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag dimension.","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1.transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1.transaction_tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag value definition.","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1.transaction_tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag value definition.","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1.transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1.transaction_tags.items.[INDEX].value_display_name","typeLabel":"string | null"},"archived_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1.transaction_tags.items.[INDEX].archived_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1.transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1.transaction_tags.items.[INDEX].archived_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","key","value","dimension_id","definition_id"],"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1.transaction_tags.items.[INDEX]","typeLabel":"object"},"description":"List of tags on the transaction associated with the payment allocation.","uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1.transaction_tags","typeLabel":"object[]"}},"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX].oneOf.1","typeLabel":"Ledger Account Allocation · object"}],"uniqueKey":"data.payments.items.[INDEX].allocations.items.[INDEX]","typeLabel":"Invoice Payment Allocation · object | Ledger Account Allocation · object"},"description":"Allocations specify how a payment is distributed. A payment can include two types of allocations: `InvoicePaymentAllocation` (allocates to an invoice) and `InvoicePaymentAllocationToLedgerAccount` (allocates directly to a ledger account for overpayments or deposits). The sum of all allocation amounts must be less than or equal to the payment amount.","uniqueKey":"data.payments.items.[INDEX].allocations","typeLabel":"(Invoice Payment Allocation · object | Ledger Account Allocation · object)[]"},"refund_allocations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the refund allocation.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"refund_id":{"type":"string","format":"uuid","description":"ID of the refund this allocation belongs to.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].refund_id","typeLabel":"string\u003cuuid>"},"refund_external_id":{"oneOf":[{"type":"string","description":"External ID of the refund this allocation belongs to.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].refund_external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"External ID of the refund this allocation belongs to.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].refund_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].refund_external_id","typeLabel":"string | null"},"invoice_id":{"oneOf":[{"type":"string","format":"uuid","description":"ID of the invoice this allocation is associated with.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID of the invoice this allocation is associated with.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_id","typeLabel":"string\u003cuuid> | null"},"amount":{"type":"integer","format":"int64","description":"Amount of the allocation in cents.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].amount","typeLabel":"integer\u003cint64>"},"account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Identifier of the ledger account for the refund allocation to apply to.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Identifier of the ledger account for the refund allocation to apply to.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"invoice_external_id":{"oneOf":[{"type":"string","description":"External ID of the invoice this allocation is associated with.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"External ID of the invoice this allocation is associated with.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_external_id","typeLabel":"string | null"},"invoice_line_item_id":{"oneOf":[{"type":"string","format":"uuid","description":"ID of the invoice line item this allocation is associated with. If specified, must not refer to a different invoice `invoice_external` or `invoice_id`.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_line_item_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID of the invoice line item this allocation is associated with. If specified, must not refer to a different invoice `invoice_external` or `invoice_id`.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_line_item_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_line_item_id","typeLabel":"string\u003cuuid> | null"},"invoice_line_item_external_id":{"oneOf":[{"type":"string","description":"The external ID of the invoice line item to refund. If specified alongside `invoice_line_item_id`, they must refer to the same invoice line item.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_line_item_external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The external ID of the invoice line item to refund. If specified alongside `invoice_line_item_id`, they must refer to the same invoice line item.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_line_item_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_line_item_external_id","typeLabel":"string | null"},"invoice_payment_id":{"oneOf":[{"type":"string","format":"uuid","description":"ID of the invoice payment this allocation is associated with.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_payment_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID of the invoice payment this allocation is associated with.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_payment_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_payment_id","typeLabel":"string\u003cuuid> | null"},"invoice_payment_external_id":{"oneOf":[{"type":"string","description":"External ID of the invoice payment this allocation is associated with.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_payment_external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"External ID of the invoice payment this allocation is associated with.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_payment_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_payment_external_id","typeLabel":"string | null"},"customer":{"type":"object","properties":{"type":{"type":"string","description":"Resource type. Value will be `CustomerData`.","example":"CustomerData","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.type","typeLabel":"string"},"id":{"type":"string","format":"uuid","description":"Unique identifier for the customer.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.id","typeLabel":"string\u003cuuid>"},"external_id":{"type":"string","description":"Unique ID of the customer in your system for linking purposes. **Idempotency key**.","example":"31415926535","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.external_id","typeLabel":"string"},"individual_name":{"oneOf":[{"type":"string","description":"Full name of the individual customer or contact at a corporate customer.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.individual_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Full name of the individual customer or contact at a corporate customer.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.individual_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.individual_name","typeLabel":"string | null"},"company_name":{"oneOf":[{"type":"string","description":"Name of the company customer.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.company_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Name of the company customer.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.company_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.company_name","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","description":"Email address of the customer.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.email.oneOf.0","typeLabel":"string"},{"type":"null","description":"Email address of the customer.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.email.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.email","typeLabel":"string | null"},"mobile_phone":{"oneOf":[{"type":"string","description":"Mobile phone number of the customer.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.mobile_phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Mobile phone number of the customer.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.mobile_phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.mobile_phone","typeLabel":"string | null"},"office_phone":{"oneOf":[{"type":"string","description":"Office phone number of the customer.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.office_phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Office phone number of the customer.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.office_phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.office_phone","typeLabel":"string | null"},"address_string":{"oneOf":[{"type":"string","description":"Address of the customer.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.address_string.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address of the customer.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.address_string.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.address_string","typeLabel":"string | null"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the customer (for example, to display to end users).","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the customer (for example, to display to end users).","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.memo","typeLabel":"string | null"},"status":{"type":"string","description":"Status of the customer. Possible values: `ACTIVE`, `ARCHIVED`.","example":"ACTIVE","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.status","typeLabel":"string"},"transaction_tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID for the tag.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"key":{"type":"string","description":"Key for the tag.","example":"ExampleTagKey","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Value for the tag.","example":"ExampleTagValue","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].value","typeLabel":"string"},"dimension_id":{"type":"string","format":"uuid","description":"ID of the tag dimension this tag belongs to.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].dimension_id","typeLabel":"string\u003cuuid>"},"definition_id":{"type":"string","format":"uuid","description":"ID of the tag value definition.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].definition_id","typeLabel":"string\u003cuuid>"},"dimension_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag dimension.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag dimension.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag value definition.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag value definition.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].value_display_name","typeLabel":"string | null"},"archived_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].archived_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].archived_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","key","value","dimension_id","definition_id"],"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags","typeLabel":"object[]"}},"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].customer","typeLabel":"object"},"transaction_tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID for the tag.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"key":{"type":"string","description":"Key for the tag.","example":"ExampleTagKey","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Value for the tag.","example":"ExampleTagValue","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].value","typeLabel":"string"},"dimension_id":{"type":"string","format":"uuid","description":"ID of the tag dimension this tag belongs to.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].dimension_id","typeLabel":"string\u003cuuid>"},"definition_id":{"type":"string","format":"uuid","description":"ID of the tag value definition.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].definition_id","typeLabel":"string\u003cuuid>"},"dimension_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag dimension.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag dimension.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag value definition.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag value definition.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].value_display_name","typeLabel":"string | null"},"archived_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].archived_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","key","value","dimension_id","definition_id"],"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the refund allocation (for example, to display to end users).","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the refund allocation (for example, to display to end users).","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation.","uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX].reference_number","typeLabel":"string | null"}},"uniqueKey":"data.payments.items.[INDEX].refund_allocations.items.[INDEX]","typeLabel":"object"},"description":"Refund allocations associated with this invoice payment.","example":[],"uniqueKey":"data.payments.items.[INDEX].refund_allocations","typeLabel":"object[]"},"payouts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique ID for the Payout. **Idempotency key.**.","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the payout in your system for linking purposes.","example":"payout-1234","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the payout in your system for linking purposes.","example":"payout-1234","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].external_id","typeLabel":"string | null"},"business_id":{"type":"string","format":"uuid","description":"ID of the Business that generated the payout.","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].business_id","typeLabel":"string\u003cuuid>"},"paid_out_amount":{"type":"integer","format":"int64","description":"The amount of the payout, in cents.","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].paid_out_amount","typeLabel":"integer\u003cint64>"},"fee":{"type":"integer","format":"int64","description":"The platform fee associated with the payout.","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].fee","typeLabel":"integer\u003cint64>"},"processor":{"type":"string","enum":["STRIPE","PAYPAL","SHOPIFY","ADYEN","RAINFOREST"],"example":"STRIPE","description":"Processor used to make the payment, if any. Any processor name can be provided and will be tracked.","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].processor","typeLabel":"enum\u003cstring>"},"payment_clearing_account":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","description":"Resource type. Value will be `Single_Chart_Account`.","example":"Single_Chart_Account","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.type","typeLabel":"string"},"id":{"oneOf":[{"type":"object","title":"Account ID","description":"ID of the account.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.id.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.id.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.id.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Stable name associated with the account.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.id.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.id.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.id.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.id","typeLabel":"Account ID · object | Account Stable Name · object"},"name":{"type":"string","description":"Name of the account.","example":"Current Assets","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.name","typeLabel":"string"},"account_number":{"oneOf":[{"type":"string","description":"Account number if configured.","example":"4000","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.account_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Account number if configured.","example":"4000","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.account_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.account_number","typeLabel":"string | null"},"stable_name":{"type":"object","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.stable_name.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.stable_name.stable_name","typeLabel":"string"}},"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.stable_name","typeLabel":"object"},"normality":{"type":"string","enum":["CREDIT","DEBIT"],"example":"DEBIT","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.normality","typeLabel":"enum\u003cstring>"},"account_type":{"type":"object","properties":{"value":{"type":"string","enum":["ASSET","LIABILITY","EQUITY","REVENUE","EXPENSE"],"example":"ASSET","description":"Type of the account.","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.account_type.value","typeLabel":"enum\u003cstring>"},"display_name":{"type":"string","description":"Display name of the account type.","example":"Asset","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.account_type.display_name","typeLabel":"string"}},"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.account_type","typeLabel":"object"},"account_subtype":{"type":"object","properties":{"value":{"type":"string","enum":["BANK_ACCOUNTS","ACCOUNTS_RECEIVABLE","INVENTORY","PAYMENT_PROCESSOR_CLEARING_ACCOUNT","FIXED_ASSET","ACCUMULATED_DEPRECIATION","CASH","UNDEPOSITED_FUNDS","CURRENT_ASSET","NON_CURRENT_ASSET","PREPAID_EXPENSES","DEVELOPMENT_COSTS","LOANS_RECEIVABLE","INTANGIBLE_ASSET","ACCOUNTS_PAYABLE","CREDIT_CARD","TAXES_PAYABLE","INCOME_TAXES_PAYABLE","SALES_TAXES_PAYABLE","OTHER_TAXES_PAYABLE","PAYROLL_TAXES_PAYABLE","UNEARNED_REVENUE","PAYROLL_LIABILITY","PAYROLL_CLEARING","LINE_OF_CREDIT","TIPS","REFUND_LIABILITIES","UNDEPOSITED_OUTFLOWS","OUTGOING_PAYMENT_CLEARING_ACCOUNT","OTHER_CURRENT_LIABILITY","LOANS_PAYABLE","NOTES_PAYABLE","SHAREHOLDER_LOAN","NON_CURRENT_LIABILITY","CONTRIBUTIONS","DISTRIBUTIONS","COMMON_STOCK","PREFERRED_STOCK","ADDITIONAL_PAID_IN_CAPITAL","RETAINED_EARNINGS","ACCUMULATED_ADJUSTMENTS","OPENING_BALANCE_EQUITY","OTHER_EQUITY","SALES","UNCATEGORIZED_REVENUE","RETURNS_ALLOWANCES","DIVIDEND_INCOME","INTEREST_INCOME","OTHER_INCOME","COGS","OPERATING_EXPENSES","PAYROLL","TAXES_LICENSES","UNCATEGORIZED_EXPENSE","CHARITABLE_CONTRIBUTIONS","LOAN_EXPENSES","FINANCE_COSTS","INTEREST_EXPENSES","DEPRECIATION","AMORTIZATION","BAD_DEBT","OTHER_EXPENSES"],"example":"BANK_ACCOUNTS","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.account_subtype.value","typeLabel":"enum\u003cstring>"},"display_name":{"type":"string","description":"Display name of the account subtype.","example":"Current Assets","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.account_subtype.display_name","typeLabel":"string"}},"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.account_subtype","typeLabel":"object"}},"description":"The ledger account where the payout deposits. If not specified during creation, this is `null` and the payout deposits to Undeposited Funds.","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"type":{"type":"string","description":"Resource type. Value will be `Single_Chart_Account`.","example":"Single_Chart_Account"},"id":{"oneOf":[{"type":"object","title":"Account ID","description":"ID of the account.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Stable name associated with the account.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}}]},"name":{"type":"string","description":"Name of the account.","example":"Current Assets"},"account_number":{"oneOf":[{"type":"string","description":"Account number if configured.","example":"4000"},{"type":"null","description":"Account number if configured.","example":"4000"}]},"stable_name":{"type":"object","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},"normality":{"type":"string","enum":["CREDIT","DEBIT"],"example":"DEBIT"},"account_type":{"type":"object","properties":{"value":{"type":"string","enum":["ASSET","LIABILITY","EQUITY","REVENUE","EXPENSE"],"example":"ASSET","description":"Type of the account."},"display_name":{"type":"string","description":"Display name of the account type.","example":"Asset"}}},"account_subtype":{"type":"object","properties":{"value":{"type":"string","enum":["BANK_ACCOUNTS","ACCOUNTS_RECEIVABLE","INVENTORY","PAYMENT_PROCESSOR_CLEARING_ACCOUNT","FIXED_ASSET","ACCUMULATED_DEPRECIATION","CASH","UNDEPOSITED_FUNDS","CURRENT_ASSET","NON_CURRENT_ASSET","PREPAID_EXPENSES","DEVELOPMENT_COSTS","LOANS_RECEIVABLE","INTANGIBLE_ASSET","ACCOUNTS_PAYABLE","CREDIT_CARD","TAXES_PAYABLE","INCOME_TAXES_PAYABLE","SALES_TAXES_PAYABLE","OTHER_TAXES_PAYABLE","PAYROLL_TAXES_PAYABLE","UNEARNED_REVENUE","PAYROLL_LIABILITY","PAYROLL_CLEARING","LINE_OF_CREDIT","TIPS","REFUND_LIABILITIES","UNDEPOSITED_OUTFLOWS","OUTGOING_PAYMENT_CLEARING_ACCOUNT","OTHER_CURRENT_LIABILITY","LOANS_PAYABLE","NOTES_PAYABLE","SHAREHOLDER_LOAN","NON_CURRENT_LIABILITY","CONTRIBUTIONS","DISTRIBUTIONS","COMMON_STOCK","PREFERRED_STOCK","ADDITIONAL_PAID_IN_CAPITAL","RETAINED_EARNINGS","ACCUMULATED_ADJUSTMENTS","OPENING_BALANCE_EQUITY","OTHER_EQUITY","SALES","UNCATEGORIZED_REVENUE","RETURNS_ALLOWANCES","DIVIDEND_INCOME","INTEREST_INCOME","OTHER_INCOME","COGS","OPERATING_EXPENSES","PAYROLL","TAXES_LICENSES","UNCATEGORIZED_EXPENSE","CHARITABLE_CONTRIBUTIONS","LOAN_EXPENSES","FINANCE_COSTS","INTEREST_EXPENSES","DEPRECIATION","AMORTIZATION","BAD_DEBT","OTHER_EXPENSES"],"example":"BANK_ACCOUNTS"},"display_name":{"type":"string","description":"Display name of the account subtype.","example":"Current Assets"}}}},"description":"The ledger account where the payout deposits. If not specified during creation, this is `null` and the payout deposits to Undeposited Funds.","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].payment_clearing_account","typeLabel":"object | null"},"imported_at":{"type":"string","format":"date-time","description":"Timestamp of when the payout was imported.","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].imported_at","typeLabel":"string\u003cdate-time>"},"completed_at":{"type":"string","format":"date-time","description":"Timestamp of when the payout was completed.","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].completed_at","typeLabel":"string\u003cdate-time>"},"match":{"type":"object","properties":{"type":{"type":"string","description":"Resource type. Value will be `Match`.","example":"Match","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.type","typeLabel":"string"},"id":{"type":"string","format":"uuid","description":"Layer's UUID for the match.","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.id","typeLabel":"string\u003cuuid>"},"match_type":{"type":"string","enum":["TRANSFER","INVOICE_PAYMENT","PAYOUT"],"example":"TRANSFER","description":"Type of the object to match.","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.match_type","typeLabel":"enum\u003cstring>"},"bank_transaction":{"type":"object","required":["id","amount","date"],"properties":{"id":{"type":"string","format":"uuid","description":"Layer's UUID for the bank transaction.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.id","typeLabel":"string\u003cuuid>"},"date":{"type":"string","format":"date-time","description":"Timestamp when the transaction was created.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.date","typeLabel":"string\u003cdate-time>"},"amount":{"type":"integer","format":"int64","description":"Amount of the transaction, in cents.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.amount","typeLabel":"integer\u003cint64>"},"business_id":{"type":"string","format":"uuid","description":"UUID of the business the transaction is for.","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.business_id","typeLabel":"string\u003cuuid>"},"source":{"type":"string","enum":["UNIT","PLAID","API","STRIPE","CUSTOM"],"example":"PLAID","description":"Source of the bank transaction.","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.source","typeLabel":"enum\u003cstring>"},"source_transaction_id":{"type":"string","description":"External transaction ID from the source platform (e.g, Plaid transaction ID).","example":"g4DlKyjXqGH3Kp5XlaWMtwLRrE4Z9AiE8B4Ko","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.source_transaction_id","typeLabel":"string"},"source_account_id":{"type":"string","description":"External account ID from the source platform (e.g, Plaid account ID).","example":"Aaoy8G7VXZHVeqNoL1GvcmkPdqpLRWi9NArdG","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.source_account_id","typeLabel":"string"},"external_account_id":{"type":"string","format":"uuid","description":"Layer's internal UUID for the linked external account. This is distinct from source_account_id, which is the provider's identifier (e.g., Plaid or Stripe account ID).","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.external_account_id","typeLabel":"string\u003cuuid>"},"imported_at":{"type":"string","format":"date-time","description":"Timestamp when the transaction was imported.","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.imported_at","typeLabel":"string\u003cdate-time>"},"direction":{"type":"string","enum":["CREDIT","DEBIT"],"example":"DEBIT","description":"Direction of the transaction.","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.direction","typeLabel":"enum\u003cstring>"},"counterparty_name":{"oneOf":[{"type":"string","description":"Name of the transaction counterparty.","example":"WeWork","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.counterparty_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Name of the transaction counterparty.","example":"WeWork","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.counterparty_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.counterparty_name","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","description":"Description of the transaction.","example":"WeWork monthly rent payment","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Description of the transaction.","example":"WeWork monthly rent payment","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.description","typeLabel":"string | null"},"account_name":{"oneOf":[{"type":"string","description":"Name of the bank account.","example":"Plaid Checking","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.account_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Name of the bank account.","example":"Plaid Checking","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.account_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.account_name","typeLabel":"string | null"},"categorizationStatus":{"type":"string","enum":["PENDING","READY_FOR_INPUT","CATEGORIZED","SPLIT","LAYER_REVIEW","JOURNALING","MATCHED"],"example":"CATEGORIZED","description":"The status of the transaction’s categorization in Layer’s systems.","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.categorizationStatus","typeLabel":"enum\u003cstring>"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the bank transaction (for example, to display to end users).","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the bank transaction (for example, to display to end users).","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the bank transaction. Can be used to filter when listing bank transactions.","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the bank transaction. Can be used to filter when listing bank transactions.","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.reference_number","typeLabel":"string | null"}},"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction","typeLabel":"object"},"details":{"type":"object","required":["id","amount","date"],"properties":{"id":{"type":"string","format":"uuid","description":"Layer's ID for the match.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.details.id","typeLabel":"string\u003cuuid>"},"amount":{"type":"integer","format":"int64","description":"Monetary amount of the matched transaction, in cents.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.details.amount","typeLabel":"integer\u003cint64>"},"date":{"type":"string","format":"date-time","description":"Date that the matched transaction occurred.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.details.date","typeLabel":"string\u003cdate-time>"},"description":{"oneOf":[{"type":"string","description":"Description of the match.","example":"Transfer from SavingsAccount to CheckingAccount","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.details.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Description of the match.","example":"Transfer from SavingsAccount to CheckingAccount","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.details.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.details.description","typeLabel":"string | null"}},"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match.details","typeLabel":"object"}},"description":"The transaction match associated with the payout.","example":{"id":"6b0a3734-f4ef-4fb0-9fc1-3f59b0c1cf99","match_type":"PAYOUT","bank_transaction":{"type":"Bank_Transaction_Data","id":"a703c8d6-cfe8-453d-a275-b92eacc6fc6e","business_id":"738ec216-e8e5-48f2-b7f2-cdc89c96b3d4","source":"STRIPE","source_transaction_id":"trxn_1sdOeLQiFAKE2LQBkcvrJw95f","source_account_id":"738ec216-e154-48f2-1111-cdc89c96b3d4","imported_at":"2024-03-19T22:09:53.290591Z","date":"2024-03-06T06:06:40Z","direction":"CREDIT","amount":87459,"counterparty_name":null,"description":"Payout (po_1OqnTHISISFAKEiTVBkCiyAERwm).","account_name":"Layer Banking","categorization_status":"MATCHED"},"details":{"type":"Payout_Match","id":"d224508b-b05e-41da-89de-0fbd8a573507","amount":87459,"date":"2024-03-06T00:00:00Z","description":"Payout from STRIPE.","adjustment":null}},"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].match","typeLabel":"object"},"transaction_tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID for the tag.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"key":{"type":"string","description":"Key for the tag.","example":"ExampleTagKey","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Value for the tag.","example":"ExampleTagValue","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].value","typeLabel":"string"},"dimension_id":{"type":"string","format":"uuid","description":"ID of the tag dimension this tag belongs to.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].dimension_id","typeLabel":"string\u003cuuid>"},"definition_id":{"type":"string","format":"uuid","description":"ID of the tag value definition.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].definition_id","typeLabel":"string\u003cuuid>"},"dimension_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag dimension.","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag dimension.","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag value definition.","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag value definition.","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].value_display_name","typeLabel":"string | null"},"archived_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].archived_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","key","value","dimension_id","definition_id"],"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX]","typeLabel":"object"},"description":"A list of tags associated with the payout.","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].transaction_tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the payout (for example, to display to end users).","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the payout (for example, to display to end users).","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the payout. Can be used to filter when listing payouts.","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the payout. Can be used to filter when listing payouts.","uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX].reference_number","typeLabel":"string | null"}},"uniqueKey":"data.payments.items.[INDEX].payouts.items.[INDEX]","typeLabel":"object"},"description":"Payouts associated with this payment.","uniqueKey":"data.payments.items.[INDEX].payouts","typeLabel":"object[]"},"transaction_tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID for the tag.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].transaction_tags.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"key":{"type":"string","description":"Key for the tag.","example":"ExampleTagKey","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].transaction_tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Value for the tag.","example":"ExampleTagValue","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].transaction_tags.items.[INDEX].value","typeLabel":"string"},"dimension_id":{"type":"string","format":"uuid","description":"ID of the tag dimension this tag belongs to.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].transaction_tags.items.[INDEX].dimension_id","typeLabel":"string\u003cuuid>"},"definition_id":{"type":"string","format":"uuid","description":"ID of the tag value definition.","isRequired":true,"uniqueKey":"data.payments.items.[INDEX].transaction_tags.items.[INDEX].definition_id","typeLabel":"string\u003cuuid>"},"dimension_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag dimension.","uniqueKey":"data.payments.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag dimension.","uniqueKey":"data.payments.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag value definition.","uniqueKey":"data.payments.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag value definition.","uniqueKey":"data.payments.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].transaction_tags.items.[INDEX].value_display_name","typeLabel":"string | null"},"archived_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.payments.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.payments.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].transaction_tags.items.[INDEX].archived_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","key","value","dimension_id","definition_id"],"uniqueKey":"data.payments.items.[INDEX].transaction_tags.items.[INDEX]","typeLabel":"object"},"description":"List of tags associated with this transaction.","example":[],"uniqueKey":"data.payments.items.[INDEX].transaction_tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the invoice payment (for example, to display to end users).","uniqueKey":"data.payments.items.[INDEX].memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the invoice payment (for example, to display to end users).","uniqueKey":"data.payments.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.payments.items.[INDEX].metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.payments.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the invoice payment. Can be used to filter when listing invoice payments.","uniqueKey":"data.payments.items.[INDEX].reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the invoice payment. Can be used to filter when listing invoice payments.","uniqueKey":"data.payments.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.payments.items.[INDEX].reference_number","typeLabel":"string | null"}},"uniqueKey":"data.payments.items.[INDEX]","typeLabel":"object"},"description":"The payments from the request, in request order, including their refund allocations.","uniqueKey":"data.payments","typeLabel":"object[]"},"refunds":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Resource type. Value will be `Customer_Refund`.","example":"Customer_Refund","uniqueKey":"data.refunds.items.[INDEX].type","typeLabel":"string"},"id":{"type":"string","format":"uuid","description":"Unique identifier for the refund.","uniqueKey":"data.refunds.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"external_id":{"type":"string","description":"Unique ID of the refund in your system for linking purposes. **Idempotency key**.","example":"31415926535","uniqueKey":"data.refunds.items.[INDEX].external_id","typeLabel":"string"},"refunded_amount":{"type":"integer","format":"int64","description":"Amount refunded to the customer in cents.","uniqueKey":"data.refunds.items.[INDEX].refunded_amount","typeLabel":"integer\u003cint64>"},"status":{"type":"string","description":"Status of the refund.","example":"PAID","uniqueKey":"data.refunds.items.[INDEX].status","typeLabel":"string"},"completed_at":{"type":"string","format":"date-time","description":"Time when the refund was completed.","uniqueKey":"data.refunds.items.[INDEX].completed_at","typeLabel":"string\u003cdate-time>"},"is_dedicated":{"type":"boolean","description":"Whether this refund is dedicated or not. Dedicated refunds can only have one allocation and one payment.","example":true,"uniqueKey":"data.refunds.items.[INDEX].is_dedicated","typeLabel":"boolean"},"allocations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the refund allocation.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"refund_id":{"type":"string","format":"uuid","description":"ID of the refund this allocation belongs to.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].refund_id","typeLabel":"string\u003cuuid>"},"refund_external_id":{"oneOf":[{"type":"string","description":"External ID of the refund this allocation belongs to.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].refund_external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"External ID of the refund this allocation belongs to.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].refund_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].refund_external_id","typeLabel":"string | null"},"invoice_id":{"oneOf":[{"type":"string","format":"uuid","description":"ID of the invoice this allocation is associated with.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].invoice_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID of the invoice this allocation is associated with.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].invoice_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].invoice_id","typeLabel":"string\u003cuuid> | null"},"amount":{"type":"integer","format":"int64","description":"Amount of the allocation in cents.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].amount","typeLabel":"integer\u003cint64>"},"account_identifier":{"oneOf":[{"type":"object","title":"Account ID","description":"Identifier of the ledger account for the refund allocation to apply to.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].account_identifier.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].account_identifier.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Identifier of the ledger account for the refund allocation to apply to.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].account_identifier.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].account_identifier","typeLabel":"Account ID · object | Account Stable Name · object | null"},"invoice_external_id":{"oneOf":[{"type":"string","description":"External ID of the invoice this allocation is associated with.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].invoice_external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"External ID of the invoice this allocation is associated with.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].invoice_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].invoice_external_id","typeLabel":"string | null"},"invoice_line_item_id":{"oneOf":[{"type":"string","format":"uuid","description":"ID of the invoice line item this allocation is associated with. If specified, must not refer to a different invoice `invoice_external` or `invoice_id`.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].invoice_line_item_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID of the invoice line item this allocation is associated with. If specified, must not refer to a different invoice `invoice_external` or `invoice_id`.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].invoice_line_item_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].invoice_line_item_id","typeLabel":"string\u003cuuid> | null"},"invoice_line_item_external_id":{"oneOf":[{"type":"string","description":"The external ID of the invoice line item to refund. If specified alongside `invoice_line_item_id`, they must refer to the same invoice line item.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].invoice_line_item_external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The external ID of the invoice line item to refund. If specified alongside `invoice_line_item_id`, they must refer to the same invoice line item.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].invoice_line_item_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].invoice_line_item_external_id","typeLabel":"string | null"},"invoice_payment_id":{"oneOf":[{"type":"string","format":"uuid","description":"ID of the invoice payment this allocation is associated with.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].invoice_payment_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID of the invoice payment this allocation is associated with.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].invoice_payment_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].invoice_payment_id","typeLabel":"string\u003cuuid> | null"},"invoice_payment_external_id":{"oneOf":[{"type":"string","description":"External ID of the invoice payment this allocation is associated with.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].invoice_payment_external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"External ID of the invoice payment this allocation is associated with.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].invoice_payment_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].invoice_payment_external_id","typeLabel":"string | null"},"customer":{"type":"object","properties":{"type":{"type":"string","description":"Resource type. Value will be `CustomerData`.","example":"CustomerData","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.type","typeLabel":"string"},"id":{"type":"string","format":"uuid","description":"Unique identifier for the customer.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.id","typeLabel":"string\u003cuuid>"},"external_id":{"type":"string","description":"Unique ID of the customer in your system for linking purposes. **Idempotency key**.","example":"31415926535","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.external_id","typeLabel":"string"},"individual_name":{"oneOf":[{"type":"string","description":"Full name of the individual customer or contact at a corporate customer.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.individual_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Full name of the individual customer or contact at a corporate customer.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.individual_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.individual_name","typeLabel":"string | null"},"company_name":{"oneOf":[{"type":"string","description":"Name of the company customer.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.company_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Name of the company customer.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.company_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.company_name","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","description":"Email address of the customer.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.email.oneOf.0","typeLabel":"string"},{"type":"null","description":"Email address of the customer.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.email.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.email","typeLabel":"string | null"},"mobile_phone":{"oneOf":[{"type":"string","description":"Mobile phone number of the customer.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.mobile_phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Mobile phone number of the customer.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.mobile_phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.mobile_phone","typeLabel":"string | null"},"office_phone":{"oneOf":[{"type":"string","description":"Office phone number of the customer.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.office_phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Office phone number of the customer.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.office_phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.office_phone","typeLabel":"string | null"},"address_string":{"oneOf":[{"type":"string","description":"Address of the customer.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.address_string.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address of the customer.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.address_string.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.address_string","typeLabel":"string | null"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the customer (for example, to display to end users).","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the customer (for example, to display to end users).","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.memo","typeLabel":"string | null"},"status":{"type":"string","description":"Status of the customer. Possible values: `ACTIVE`, `ARCHIVED`.","example":"ACTIVE","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.status","typeLabel":"string"},"transaction_tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID for the tag.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"key":{"type":"string","description":"Key for the tag.","example":"ExampleTagKey","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Value for the tag.","example":"ExampleTagValue","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].value","typeLabel":"string"},"dimension_id":{"type":"string","format":"uuid","description":"ID of the tag dimension this tag belongs to.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].dimension_id","typeLabel":"string\u003cuuid>"},"definition_id":{"type":"string","format":"uuid","description":"ID of the tag value definition.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].definition_id","typeLabel":"string\u003cuuid>"},"dimension_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag dimension.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag dimension.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag value definition.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag value definition.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].value_display_name","typeLabel":"string | null"},"archived_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].archived_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].archived_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","key","value","dimension_id","definition_id"],"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.transaction_tags.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer.transaction_tags","typeLabel":"object[]"}},"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].customer","typeLabel":"object"},"transaction_tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID for the tag.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"key":{"type":"string","description":"Key for the tag.","example":"ExampleTagKey","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Value for the tag.","example":"ExampleTagValue","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX].value","typeLabel":"string"},"dimension_id":{"type":"string","format":"uuid","description":"ID of the tag dimension this tag belongs to.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX].dimension_id","typeLabel":"string\u003cuuid>"},"definition_id":{"type":"string","format":"uuid","description":"ID of the tag value definition.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX].definition_id","typeLabel":"string\u003cuuid>"},"dimension_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag dimension.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag dimension.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag value definition.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag value definition.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX].value_display_name","typeLabel":"string | null"},"archived_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX].archived_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","key","value","dimension_id","definition_id"],"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].transaction_tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the refund allocation (for example, to display to end users).","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the refund allocation (for example, to display to end users).","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the refund allocation.","uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX].reference_number","typeLabel":"string | null"}},"uniqueKey":"data.refunds.items.[INDEX].allocations.items.[INDEX]","typeLabel":"object"},"description":"Allocations associated with this refund.","uniqueKey":"data.refunds.items.[INDEX].allocations","typeLabel":"object[]"},"payments":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Resource type. Value will be `Customer_Refund_Payment`.","example":"Customer_Refund_Payment","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].type","typeLabel":"string"},"id":{"type":"string","format":"uuid","description":"Unique identifier for the payment.","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"external_id":{"type":"string","description":"Unique ID of the payment in your system for linking purposes. **Idempotency key**.","example":"31415926535","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].external_id","typeLabel":"string"},"refunded_amount":{"type":"integer","format":"int64","description":"Amount refunded to the customer in cents.","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].refunded_amount","typeLabel":"integer\u003cint64>"},"fee":{"oneOf":[{"type":"integer","format":"int64","description":"Fee charged for the refund in cents.","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].fee.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"Fee charged for the refund in cents.","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].fee.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].fee","typeLabel":"integer\u003cint64> | null"},"completed_at":{"type":"string","format":"date-time","description":"Time when the payment was completed.","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].completed_at","typeLabel":"string\u003cdate-time>"},"method":{"type":"string","description":"Method of the payment.","example":"CREDIT_CARD","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].method","typeLabel":"string"},"processor":{"oneOf":[{"type":"string","description":"Processor used for the payment.","example":"STRIPE","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].processor.oneOf.0","typeLabel":"string"},{"type":"null","description":"Processor used for the payment.","example":"STRIPE","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].processor.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].processor","typeLabel":"string | null"},"payment_clearing_account":{"type":"object","properties":{"type":{"type":"string","description":"Resource type. Value will be `Single_Chart_Account`.","example":"Single_Chart_Account","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.type","typeLabel":"string"},"id":{"oneOf":[{"type":"object","title":"Account ID","description":"ID of the account.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.id.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.id.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.id.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Stable name associated with the account.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.id.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.id.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.id.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.id","typeLabel":"Account ID · object | Account Stable Name · object"},"name":{"type":"string","description":"Name of the account.","example":"Current Assets","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.name","typeLabel":"string"},"account_number":{"oneOf":[{"type":"string","description":"Account number if configured.","example":"4000","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.account_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Account number if configured.","example":"4000","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.account_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.account_number","typeLabel":"string | null"},"stable_name":{"type":"object","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.stable_name.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.stable_name.stable_name","typeLabel":"string"}},"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.stable_name","typeLabel":"object"},"normality":{"type":"string","enum":["CREDIT","DEBIT"],"example":"DEBIT","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.normality","typeLabel":"enum\u003cstring>"},"account_type":{"type":"object","properties":{"value":{"type":"string","enum":["ASSET","LIABILITY","EQUITY","REVENUE","EXPENSE"],"example":"ASSET","description":"Type of the account.","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.account_type.value","typeLabel":"enum\u003cstring>"},"display_name":{"type":"string","description":"Display name of the account type.","example":"Asset","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.account_type.display_name","typeLabel":"string"}},"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.account_type","typeLabel":"object"},"account_subtype":{"type":"object","properties":{"value":{"type":"string","enum":["BANK_ACCOUNTS","ACCOUNTS_RECEIVABLE","INVENTORY","PAYMENT_PROCESSOR_CLEARING_ACCOUNT","FIXED_ASSET","ACCUMULATED_DEPRECIATION","CASH","UNDEPOSITED_FUNDS","CURRENT_ASSET","NON_CURRENT_ASSET","PREPAID_EXPENSES","DEVELOPMENT_COSTS","LOANS_RECEIVABLE","INTANGIBLE_ASSET","ACCOUNTS_PAYABLE","CREDIT_CARD","TAXES_PAYABLE","INCOME_TAXES_PAYABLE","SALES_TAXES_PAYABLE","OTHER_TAXES_PAYABLE","PAYROLL_TAXES_PAYABLE","UNEARNED_REVENUE","PAYROLL_LIABILITY","PAYROLL_CLEARING","LINE_OF_CREDIT","TIPS","REFUND_LIABILITIES","UNDEPOSITED_OUTFLOWS","OUTGOING_PAYMENT_CLEARING_ACCOUNT","OTHER_CURRENT_LIABILITY","LOANS_PAYABLE","NOTES_PAYABLE","SHAREHOLDER_LOAN","NON_CURRENT_LIABILITY","CONTRIBUTIONS","DISTRIBUTIONS","COMMON_STOCK","PREFERRED_STOCK","ADDITIONAL_PAID_IN_CAPITAL","RETAINED_EARNINGS","ACCUMULATED_ADJUSTMENTS","OPENING_BALANCE_EQUITY","OTHER_EQUITY","SALES","UNCATEGORIZED_REVENUE","RETURNS_ALLOWANCES","DIVIDEND_INCOME","INTEREST_INCOME","OTHER_INCOME","COGS","OPERATING_EXPENSES","PAYROLL","TAXES_LICENSES","UNCATEGORIZED_EXPENSE","CHARITABLE_CONTRIBUTIONS","LOAN_EXPENSES","FINANCE_COSTS","INTEREST_EXPENSES","DEPRECIATION","AMORTIZATION","BAD_DEBT","OTHER_EXPENSES"],"example":"BANK_ACCOUNTS","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.account_subtype.value","typeLabel":"enum\u003cstring>"},"display_name":{"type":"string","description":"Display name of the account subtype.","example":"Current Assets","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.account_subtype.display_name","typeLabel":"string"}},"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.account_subtype","typeLabel":"object"}},"description":"The the ledger account to use for the payment (overrides the default determined by the payment method), if specified.","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account","typeLabel":"object"},"refunded_payment_fees":{"type":"array","description":"Refunded payment fees associated with the refund payment.","items":{"type":"object","properties":{"account":{"oneOf":[{"type":"object","title":"Account ID","description":"Identifier of the ledger account for the refunded payment fee.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Identifier of the ledger account for the refunded payment fee.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].refunded_payment_fees.items.[INDEX].account","typeLabel":"Account ID · object | Account Stable Name · object"},"description":{"oneOf":[{"type":"string","description":"Description of the fee that the refunded payment fee refunds.","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].refunded_payment_fees.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Description of the fee that the refunded payment fee refunds.","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].refunded_payment_fees.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].refunded_payment_fees.items.[INDEX].description","typeLabel":"string | null"},"fee_amount":{"type":"integer","format":"int64","description":"Amount of the fee refund in cents.","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].refunded_payment_fees.items.[INDEX].fee_amount","typeLabel":"integer\u003cint64>"}},"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].refunded_payment_fees.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].refunded_payment_fees","typeLabel":"object[]"},"transaction_tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID for the tag.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].transaction_tags.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"key":{"type":"string","description":"Key for the tag.","example":"ExampleTagKey","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].transaction_tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Value for the tag.","example":"ExampleTagValue","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].transaction_tags.items.[INDEX].value","typeLabel":"string"},"dimension_id":{"type":"string","format":"uuid","description":"ID of the tag dimension this tag belongs to.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].transaction_tags.items.[INDEX].dimension_id","typeLabel":"string\u003cuuid>"},"definition_id":{"type":"string","format":"uuid","description":"ID of the tag value definition.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].transaction_tags.items.[INDEX].definition_id","typeLabel":"string\u003cuuid>"},"dimension_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag dimension.","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag dimension.","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag value definition.","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag value definition.","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].transaction_tags.items.[INDEX].value_display_name","typeLabel":"string | null"},"archived_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].transaction_tags.items.[INDEX].archived_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","key","value","dimension_id","definition_id"],"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].transaction_tags.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].transaction_tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the refund payment (for example, to display to end users).","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the refund payment (for example, to display to end users).","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the refund payment. Can be used to filter when listing refund payments.","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the refund payment. Can be used to filter when listing refund payments.","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX].reference_number","typeLabel":"string | null"}},"description":"A payment represents a transaction that moves value from a customer to a business. A specific payment can be refunded or a general refund can be applied to an invoice.","uniqueKey":"data.refunds.items.[INDEX].payments.items.[INDEX]","typeLabel":"object"},"description":"Payments associated with this refund.","uniqueKey":"data.refunds.items.[INDEX].payments","typeLabel":"object[]"},"payouts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique ID for the Payout. **Idempotency key.**.","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"external_id":{"oneOf":[{"type":"string","description":"Unique ID of the payout in your system for linking purposes.","example":"payout-1234","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the payout in your system for linking purposes.","example":"payout-1234","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].external_id","typeLabel":"string | null"},"business_id":{"type":"string","format":"uuid","description":"ID of the Business that generated the payout.","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].business_id","typeLabel":"string\u003cuuid>"},"paid_out_amount":{"type":"integer","format":"int64","description":"The amount of the payout, in cents.","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].paid_out_amount","typeLabel":"integer\u003cint64>"},"fee":{"type":"integer","format":"int64","description":"The platform fee associated with the payout.","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].fee","typeLabel":"integer\u003cint64>"},"processor":{"type":"string","enum":["STRIPE","PAYPAL","SHOPIFY","ADYEN","RAINFOREST"],"example":"STRIPE","description":"Processor used to make the payment, if any. Any processor name can be provided and will be tracked.","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].processor","typeLabel":"enum\u003cstring>"},"payment_clearing_account":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","description":"Resource type. Value will be `Single_Chart_Account`.","example":"Single_Chart_Account","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.type","typeLabel":"string"},"id":{"oneOf":[{"type":"object","title":"Account ID","description":"ID of the account.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.id.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"ID of the account.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.id.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.id.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Stable name associated with the account.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.id.oneOf.1.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.id.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.id.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.id","typeLabel":"Account ID · object | Account Stable Name · object"},"name":{"type":"string","description":"Name of the account.","example":"Current Assets","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.name","typeLabel":"string"},"account_number":{"oneOf":[{"type":"string","description":"Account number if configured.","example":"4000","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.account_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Account number if configured.","example":"4000","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.account_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.account_number","typeLabel":"string | null"},"stable_name":{"type":"object","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.stable_name.type","typeLabel":"enum\u003cstring>"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.stable_name.stable_name","typeLabel":"string"}},"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.stable_name","typeLabel":"object"},"normality":{"type":"string","enum":["CREDIT","DEBIT"],"example":"DEBIT","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.normality","typeLabel":"enum\u003cstring>"},"account_type":{"type":"object","properties":{"value":{"type":"string","enum":["ASSET","LIABILITY","EQUITY","REVENUE","EXPENSE"],"example":"ASSET","description":"Type of the account.","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.account_type.value","typeLabel":"enum\u003cstring>"},"display_name":{"type":"string","description":"Display name of the account type.","example":"Asset","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.account_type.display_name","typeLabel":"string"}},"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.account_type","typeLabel":"object"},"account_subtype":{"type":"object","properties":{"value":{"type":"string","enum":["BANK_ACCOUNTS","ACCOUNTS_RECEIVABLE","INVENTORY","PAYMENT_PROCESSOR_CLEARING_ACCOUNT","FIXED_ASSET","ACCUMULATED_DEPRECIATION","CASH","UNDEPOSITED_FUNDS","CURRENT_ASSET","NON_CURRENT_ASSET","PREPAID_EXPENSES","DEVELOPMENT_COSTS","LOANS_RECEIVABLE","INTANGIBLE_ASSET","ACCOUNTS_PAYABLE","CREDIT_CARD","TAXES_PAYABLE","INCOME_TAXES_PAYABLE","SALES_TAXES_PAYABLE","OTHER_TAXES_PAYABLE","PAYROLL_TAXES_PAYABLE","UNEARNED_REVENUE","PAYROLL_LIABILITY","PAYROLL_CLEARING","LINE_OF_CREDIT","TIPS","REFUND_LIABILITIES","UNDEPOSITED_OUTFLOWS","OUTGOING_PAYMENT_CLEARING_ACCOUNT","OTHER_CURRENT_LIABILITY","LOANS_PAYABLE","NOTES_PAYABLE","SHAREHOLDER_LOAN","NON_CURRENT_LIABILITY","CONTRIBUTIONS","DISTRIBUTIONS","COMMON_STOCK","PREFERRED_STOCK","ADDITIONAL_PAID_IN_CAPITAL","RETAINED_EARNINGS","ACCUMULATED_ADJUSTMENTS","OPENING_BALANCE_EQUITY","OTHER_EQUITY","SALES","UNCATEGORIZED_REVENUE","RETURNS_ALLOWANCES","DIVIDEND_INCOME","INTEREST_INCOME","OTHER_INCOME","COGS","OPERATING_EXPENSES","PAYROLL","TAXES_LICENSES","UNCATEGORIZED_EXPENSE","CHARITABLE_CONTRIBUTIONS","LOAN_EXPENSES","FINANCE_COSTS","INTEREST_EXPENSES","DEPRECIATION","AMORTIZATION","BAD_DEBT","OTHER_EXPENSES"],"example":"BANK_ACCOUNTS","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.account_subtype.value","typeLabel":"enum\u003cstring>"},"display_name":{"type":"string","description":"Display name of the account subtype.","example":"Current Assets","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.account_subtype.display_name","typeLabel":"string"}},"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0.account_subtype","typeLabel":"object"}},"description":"The ledger account where the payout deposits. If not specified during creation, this is `null` and the payout deposits to Undeposited Funds.","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"type":{"type":"string","description":"Resource type. Value will be `Single_Chart_Account`.","example":"Single_Chart_Account"},"id":{"oneOf":[{"type":"object","title":"Account ID","description":"ID of the account.","required":["type","id"],"properties":{"type":{"type":"string","enum":["AccountId"],"description":"Resource type. Value will be `AccountId`.","example":"AccountId"},"id":{"type":"string","format":"uuid","description":"ID of the account."}}},{"type":"object","title":"Account Stable Name","description":"Stable name associated with the account.","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}}]},"name":{"type":"string","description":"Name of the account.","example":"Current Assets"},"account_number":{"oneOf":[{"type":"string","description":"Account number if configured.","example":"4000"},{"type":"null","description":"Account number if configured.","example":"4000"}]},"stable_name":{"type":"object","required":["type","stable_name"],"properties":{"type":{"type":"string","enum":["StableName"],"description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account."}}},"normality":{"type":"string","enum":["CREDIT","DEBIT"],"example":"DEBIT"},"account_type":{"type":"object","properties":{"value":{"type":"string","enum":["ASSET","LIABILITY","EQUITY","REVENUE","EXPENSE"],"example":"ASSET","description":"Type of the account."},"display_name":{"type":"string","description":"Display name of the account type.","example":"Asset"}}},"account_subtype":{"type":"object","properties":{"value":{"type":"string","enum":["BANK_ACCOUNTS","ACCOUNTS_RECEIVABLE","INVENTORY","PAYMENT_PROCESSOR_CLEARING_ACCOUNT","FIXED_ASSET","ACCUMULATED_DEPRECIATION","CASH","UNDEPOSITED_FUNDS","CURRENT_ASSET","NON_CURRENT_ASSET","PREPAID_EXPENSES","DEVELOPMENT_COSTS","LOANS_RECEIVABLE","INTANGIBLE_ASSET","ACCOUNTS_PAYABLE","CREDIT_CARD","TAXES_PAYABLE","INCOME_TAXES_PAYABLE","SALES_TAXES_PAYABLE","OTHER_TAXES_PAYABLE","PAYROLL_TAXES_PAYABLE","UNEARNED_REVENUE","PAYROLL_LIABILITY","PAYROLL_CLEARING","LINE_OF_CREDIT","TIPS","REFUND_LIABILITIES","UNDEPOSITED_OUTFLOWS","OUTGOING_PAYMENT_CLEARING_ACCOUNT","OTHER_CURRENT_LIABILITY","LOANS_PAYABLE","NOTES_PAYABLE","SHAREHOLDER_LOAN","NON_CURRENT_LIABILITY","CONTRIBUTIONS","DISTRIBUTIONS","COMMON_STOCK","PREFERRED_STOCK","ADDITIONAL_PAID_IN_CAPITAL","RETAINED_EARNINGS","ACCUMULATED_ADJUSTMENTS","OPENING_BALANCE_EQUITY","OTHER_EQUITY","SALES","UNCATEGORIZED_REVENUE","RETURNS_ALLOWANCES","DIVIDEND_INCOME","INTEREST_INCOME","OTHER_INCOME","COGS","OPERATING_EXPENSES","PAYROLL","TAXES_LICENSES","UNCATEGORIZED_EXPENSE","CHARITABLE_CONTRIBUTIONS","LOAN_EXPENSES","FINANCE_COSTS","INTEREST_EXPENSES","DEPRECIATION","AMORTIZATION","BAD_DEBT","OTHER_EXPENSES"],"example":"BANK_ACCOUNTS"},"display_name":{"type":"string","description":"Display name of the account subtype.","example":"Current Assets"}}}},"description":"The ledger account where the payout deposits. If not specified during creation, this is `null` and the payout deposits to Undeposited Funds.","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].payment_clearing_account.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].payment_clearing_account","typeLabel":"object | null"},"imported_at":{"type":"string","format":"date-time","description":"Timestamp of when the payout was imported.","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].imported_at","typeLabel":"string\u003cdate-time>"},"completed_at":{"type":"string","format":"date-time","description":"Timestamp of when the payout was completed.","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].completed_at","typeLabel":"string\u003cdate-time>"},"match":{"type":"object","properties":{"type":{"type":"string","description":"Resource type. Value will be `Match`.","example":"Match","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.type","typeLabel":"string"},"id":{"type":"string","format":"uuid","description":"Layer's UUID for the match.","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.id","typeLabel":"string\u003cuuid>"},"match_type":{"type":"string","enum":["TRANSFER","INVOICE_PAYMENT","PAYOUT"],"example":"TRANSFER","description":"Type of the object to match.","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.match_type","typeLabel":"enum\u003cstring>"},"bank_transaction":{"type":"object","required":["id","amount","date"],"properties":{"id":{"type":"string","format":"uuid","description":"Layer's UUID for the bank transaction.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.id","typeLabel":"string\u003cuuid>"},"date":{"type":"string","format":"date-time","description":"Timestamp when the transaction was created.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.date","typeLabel":"string\u003cdate-time>"},"amount":{"type":"integer","format":"int64","description":"Amount of the transaction, in cents.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.amount","typeLabel":"integer\u003cint64>"},"business_id":{"type":"string","format":"uuid","description":"UUID of the business the transaction is for.","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.business_id","typeLabel":"string\u003cuuid>"},"source":{"type":"string","enum":["UNIT","PLAID","API","STRIPE","CUSTOM"],"example":"PLAID","description":"Source of the bank transaction.","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.source","typeLabel":"enum\u003cstring>"},"source_transaction_id":{"type":"string","description":"External transaction ID from the source platform (e.g, Plaid transaction ID).","example":"g4DlKyjXqGH3Kp5XlaWMtwLRrE4Z9AiE8B4Ko","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.source_transaction_id","typeLabel":"string"},"source_account_id":{"type":"string","description":"External account ID from the source platform (e.g, Plaid account ID).","example":"Aaoy8G7VXZHVeqNoL1GvcmkPdqpLRWi9NArdG","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.source_account_id","typeLabel":"string"},"external_account_id":{"type":"string","format":"uuid","description":"Layer's internal UUID for the linked external account. This is distinct from source_account_id, which is the provider's identifier (e.g., Plaid or Stripe account ID).","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.external_account_id","typeLabel":"string\u003cuuid>"},"imported_at":{"type":"string","format":"date-time","description":"Timestamp when the transaction was imported.","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.imported_at","typeLabel":"string\u003cdate-time>"},"direction":{"type":"string","enum":["CREDIT","DEBIT"],"example":"DEBIT","description":"Direction of the transaction.","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.direction","typeLabel":"enum\u003cstring>"},"counterparty_name":{"oneOf":[{"type":"string","description":"Name of the transaction counterparty.","example":"WeWork","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.counterparty_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Name of the transaction counterparty.","example":"WeWork","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.counterparty_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.counterparty_name","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","description":"Description of the transaction.","example":"WeWork monthly rent payment","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Description of the transaction.","example":"WeWork monthly rent payment","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.description","typeLabel":"string | null"},"account_name":{"oneOf":[{"type":"string","description":"Name of the bank account.","example":"Plaid Checking","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.account_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Name of the bank account.","example":"Plaid Checking","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.account_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.account_name","typeLabel":"string | null"},"categorizationStatus":{"type":"string","enum":["PENDING","READY_FOR_INPUT","CATEGORIZED","SPLIT","LAYER_REVIEW","JOURNALING","MATCHED"],"example":"CATEGORIZED","description":"The status of the transaction’s categorization in Layer’s systems.","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.categorizationStatus","typeLabel":"enum\u003cstring>"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the bank transaction (for example, to display to end users).","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the bank transaction (for example, to display to end users).","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the bank transaction. Can be used to filter when listing bank transactions.","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the bank transaction. Can be used to filter when listing bank transactions.","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.reference_number","typeLabel":"string | null"}},"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction","typeLabel":"object"},"details":{"type":"object","required":["id","amount","date"],"properties":{"id":{"type":"string","format":"uuid","description":"Layer's ID for the match.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.details.id","typeLabel":"string\u003cuuid>"},"amount":{"type":"integer","format":"int64","description":"Monetary amount of the matched transaction, in cents.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.details.amount","typeLabel":"integer\u003cint64>"},"date":{"type":"string","format":"date-time","description":"Date that the matched transaction occurred.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.details.date","typeLabel":"string\u003cdate-time>"},"description":{"oneOf":[{"type":"string","description":"Description of the match.","example":"Transfer from SavingsAccount to CheckingAccount","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.details.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Description of the match.","example":"Transfer from SavingsAccount to CheckingAccount","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.details.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.details.description","typeLabel":"string | null"}},"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match.details","typeLabel":"object"}},"description":"The transaction match associated with the payout.","example":{"id":"6b0a3734-f4ef-4fb0-9fc1-3f59b0c1cf99","match_type":"PAYOUT","bank_transaction":{"type":"Bank_Transaction_Data","id":"a703c8d6-cfe8-453d-a275-b92eacc6fc6e","business_id":"738ec216-e8e5-48f2-b7f2-cdc89c96b3d4","source":"STRIPE","source_transaction_id":"trxn_1sdOeLQiFAKE2LQBkcvrJw95f","source_account_id":"738ec216-e154-48f2-1111-cdc89c96b3d4","imported_at":"2024-03-19T22:09:53.290591Z","date":"2024-03-06T06:06:40Z","direction":"CREDIT","amount":87459,"counterparty_name":null,"description":"Payout (po_1OqnTHISISFAKEiTVBkCiyAERwm).","account_name":"Layer Banking","categorization_status":"MATCHED"},"details":{"type":"Payout_Match","id":"d224508b-b05e-41da-89de-0fbd8a573507","amount":87459,"date":"2024-03-06T00:00:00Z","description":"Payout from STRIPE.","adjustment":null}},"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].match","typeLabel":"object"},"transaction_tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID for the tag.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"key":{"type":"string","description":"Key for the tag.","example":"ExampleTagKey","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Value for the tag.","example":"ExampleTagValue","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].value","typeLabel":"string"},"dimension_id":{"type":"string","format":"uuid","description":"ID of the tag dimension this tag belongs to.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].dimension_id","typeLabel":"string\u003cuuid>"},"definition_id":{"type":"string","format":"uuid","description":"ID of the tag value definition.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].definition_id","typeLabel":"string\u003cuuid>"},"dimension_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag dimension.","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag dimension.","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag value definition.","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag value definition.","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].value_display_name","typeLabel":"string | null"},"archived_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].archived_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","key","value","dimension_id","definition_id"],"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX]","typeLabel":"object"},"description":"A list of tags associated with the payout.","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].transaction_tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the payout (for example, to display to end users).","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the payout (for example, to display to end users).","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the payout. Can be used to filter when listing payouts.","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the payout. Can be used to filter when listing payouts.","uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX].reference_number","typeLabel":"string | null"}},"uniqueKey":"data.refunds.items.[INDEX].payouts.items.[INDEX]","typeLabel":"object"},"description":"Payouts associated with this refund.","uniqueKey":"data.refunds.items.[INDEX].payouts","typeLabel":"object[]"},"transaction_tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID for the tag.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].transaction_tags.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"key":{"type":"string","description":"Key for the tag.","example":"ExampleTagKey","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].transaction_tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Value for the tag.","example":"ExampleTagValue","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].transaction_tags.items.[INDEX].value","typeLabel":"string"},"dimension_id":{"type":"string","format":"uuid","description":"ID of the tag dimension this tag belongs to.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].transaction_tags.items.[INDEX].dimension_id","typeLabel":"string\u003cuuid>"},"definition_id":{"type":"string","format":"uuid","description":"ID of the tag value definition.","isRequired":true,"uniqueKey":"data.refunds.items.[INDEX].transaction_tags.items.[INDEX].definition_id","typeLabel":"string\u003cuuid>"},"dimension_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag dimension.","uniqueKey":"data.refunds.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag dimension.","uniqueKey":"data.refunds.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name","typeLabel":"string | null"},"value_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag value definition.","uniqueKey":"data.refunds.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag value definition.","uniqueKey":"data.refunds.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].transaction_tags.items.[INDEX].value_display_name","typeLabel":"string | null"},"archived_at":{"oneOf":[{"type":"string","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.refunds.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the tag was archived.","uniqueKey":"data.refunds.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].transaction_tags.items.[INDEX].archived_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","key","value","dimension_id","definition_id"],"uniqueKey":"data.refunds.items.[INDEX].transaction_tags.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.refunds.items.[INDEX].transaction_tags","typeLabel":"object[]"},"memo":{"oneOf":[{"type":"string","description":"Memo for any text you would like to associate with the refund (for example, to display to end users).","uniqueKey":"data.refunds.items.[INDEX].memo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Memo for any text you would like to associate with the refund (for example, to display to end users).","uniqueKey":"data.refunds.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].memo","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.refunds.items.[INDEX].metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Arbitrary custom metadata in JSON format with a size limit of 1KB.","additionalProperties":true,"example":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"uniqueKey":"data.refunds.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].metadata","typeLabel":"object | null"},"reference_number":{"oneOf":[{"type":"string","description":"Any (typically user-visible) identifier you would like to associate with the refund. Can be used to filter when listing refunds.","uniqueKey":"data.refunds.items.[INDEX].reference_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Any (typically user-visible) identifier you would like to associate with the refund. Can be used to filter when listing refunds.","uniqueKey":"data.refunds.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.refunds.items.[INDEX].reference_number","typeLabel":"string | null"}},"description":"A refund represents a transaction that returns value to from a business to a customer. A specific payment can be refunded or a general refund can be applied to an invoice.","uniqueKey":"data.refunds.items.[INDEX]","typeLabel":"object"},"description":"The refunds from the request, in request order.","uniqueKey":"data.refunds","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"required":["data"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"type":"SyncInvoicesResponse","invoices":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","type":"Invoice","business_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","external_id":"1","status":"SENT","sent_at":"2023-11-07T05:31:56Z","due_at":"2023-11-07T05:31:56Z","paid_at":"2023-11-07T05:31:56Z","voided_at":"2023-11-07T05:31:56Z","line_items":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","external_id":"\u003cstring>","invoice_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","account_identifier":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"ledger_account":{"type":"Single_Chart_Account","id":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"name":"Current Assets","account_number":"4000","stable_name":{"type":"StableName","stable_name":"CURRENT_ASSETS"},"normality":"DEBIT","account_type":{"value":"ASSET","display_name":"Asset"},"account_subtype":{"value":"BANK_ACCOUNTS","display_name":"Current Assets"}},"prepayment_account":{"type":"Single_Chart_Account","id":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"name":"Current Assets","account_number":"4000","stable_name":{"type":"StableName","stable_name":"CURRENT_ASSETS"},"normality":"DEBIT","account_type":{"value":"ASSET","display_name":"Asset"},"account_subtype":{"value":"BANK_ACCOUNTS","display_name":"Current Assets"}},"description":"Widget sale","product":"Widget","unit_price":123,"quantity":123,"subtotal":123,"discount_amount":123,"sales_taxes_total":123,"sales_taxes":[{"tax_account":{"name":"CALIFORNIA_VAT","type":"Tax_Name"},"tax_ledger_account":{"id":"c4007474-f604-4d57-9690-b7f40f7a1cee","name":"Sales tax: CALIFORNIA","stable_name":"SALES_TAXES_PAYABLE:CALIFORNIA","normality":"CREDIT","account_type":{"value":"LIABILITY","display_name":"Liabilities"},"account_subtype":{"value":"SALES_TAXES_PAYABLE","display_name":"Sales Taxes Payable"}},"amount":123}],"total_amount":123,"refund_allocations":[],"transaction_tags":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","key":"ExampleTagKey","value":"ExampleTagValue","dimension_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","definition_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","dimension_display_name":"\u003cstring>","value_display_name":"\u003cstring>","archived_at":"2023-11-07T05:31:56Z"}]}],"subtotal":123,"additional_discount":123,"additional_sales_taxes_total":123,"additional_sales_taxes":[{"tax_account":{"name":"CALIFORNIA_VAT","type":"Tax_Name"},"tax_ledger_account":{"id":"c4007474-f604-4d57-9690-b7f40f7a1cee","name":"Sales tax: CALIFORNIA","stable_name":"SALES_TAXES_PAYABLE:CALIFORNIA","normality":"CREDIT","account_type":{"value":"LIABILITY","display_name":"Liabilities"},"account_subtype":{"value":"SALES_TAXES_PAYABLE","display_name":"Sales Taxes Payable"}},"amount":123}],"tips":123,"total_amount":123,"outstanding_balance":123,"memo":"\u003cstring>","payment_allocations":[],"refund_allocations":[],"imported_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z","transaction_tags":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","key":"ExampleTagKey","value":"ExampleTagValue","dimension_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","definition_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","dimension_display_name":"\u003cstring>","value_display_name":"\u003cstring>","archived_at":"2023-11-07T05:31:56Z"}],"metadata":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"reference_number":"\u003cstring>"}],"payments":[{"type":"Invoice_Payment","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","external_id":"payment-1","customer":{"type":"CustomerData","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","external_id":"31415926535","individual_name":"\u003cstring>","company_name":"\u003cstring>","email":"\u003cstring>","mobile_phone":"\u003cstring>","office_phone":"\u003cstring>","address_string":"\u003cstring>","memo":"\u003cstring>","status":"ACTIVE","transaction_tags":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","key":"ExampleTagKey","value":"ExampleTagValue","dimension_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","definition_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","dimension_display_name":"\u003cstring>","value_display_name":"\u003cstring>","archived_at":"2023-11-07T05:31:56Z"}]},"at":"2023-11-07T05:31:56Z","method":"ACH","fee":123,"prepayment_account":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"payment_clearing_account":{"type":"Single_Chart_Account","id":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"name":"Current Assets","account_number":"4000","stable_name":{"type":"StableName","stable_name":"CURRENT_ASSETS"},"normality":"DEBIT","account_type":{"value":"ASSET","display_name":"Asset"},"account_subtype":{"value":"BANK_ACCOUNTS","display_name":"Current Assets"}},"additional_fees":[{"fee_amount":123,"description":"\u003cstring>","account":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"is_passed_to_customer":true}],"amount":123,"processor":"STRIPE","imported_at":"2023-11-07T05:31:56Z","allocations":[{"invoice_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","payment_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","amount":123,"amount_net_of_refunds":123,"transaction_tags":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","key":"ExampleTagKey","value":"ExampleTagValue","dimension_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","definition_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","dimension_display_name":"\u003cstring>","value_display_name":"\u003cstring>","archived_at":"2023-11-07T05:31:56Z"}],"memo":"\u003cstring>","metadata":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"reference_number":"\u003cstring>"}],"refund_allocations":[],"payouts":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","external_id":"payout-1234","business_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","paid_out_amount":123,"fee":123,"processor":"STRIPE","payment_clearing_account":{"type":"Single_Chart_Account","id":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"name":"Current Assets","account_number":"4000","stable_name":{"type":"StableName","stable_name":"CURRENT_ASSETS"},"normality":"DEBIT","account_type":{"value":"ASSET","display_name":"Asset"},"account_subtype":{"value":"BANK_ACCOUNTS","display_name":"Current Assets"}},"imported_at":"2023-11-07T05:31:56Z","completed_at":"2023-11-07T05:31:56Z","match":{"id":"6b0a3734-f4ef-4fb0-9fc1-3f59b0c1cf99","match_type":"PAYOUT","bank_transaction":{"type":"Bank_Transaction_Data","id":"a703c8d6-cfe8-453d-a275-b92eacc6fc6e","business_id":"738ec216-e8e5-48f2-b7f2-cdc89c96b3d4","source":"STRIPE","source_transaction_id":"trxn_1sdOeLQiFAKE2LQBkcvrJw95f","source_account_id":"738ec216-e154-48f2-1111-cdc89c96b3d4","imported_at":"2024-03-19T22:09:53.290591Z","date":"2024-03-06T06:06:40Z","direction":"CREDIT","amount":87459,"counterparty_name":null,"description":"Payout (po_1OqnTHISISFAKEiTVBkCiyAERwm).","account_name":"Layer Banking","categorization_status":"MATCHED"},"details":{"type":"Payout_Match","id":"d224508b-b05e-41da-89de-0fbd8a573507","amount":87459,"date":"2024-03-06T00:00:00Z","description":"Payout from STRIPE.","adjustment":null}},"transaction_tags":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","key":"ExampleTagKey","value":"ExampleTagValue","dimension_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","definition_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","dimension_display_name":"\u003cstring>","value_display_name":"\u003cstring>","archived_at":"2023-11-07T05:31:56Z"}],"memo":"\u003cstring>","metadata":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"reference_number":"\u003cstring>"}],"transaction_tags":[],"memo":"\u003cstring>","metadata":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"reference_number":"\u003cstring>"}],"refunds":[{"type":"Customer_Refund","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","external_id":"31415926535","refunded_amount":123,"status":"PAID","completed_at":"2023-11-07T05:31:56Z","is_dedicated":true,"allocations":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","refund_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","refund_external_id":"\u003cstring>","invoice_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","amount":123,"account_identifier":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"invoice_external_id":"\u003cstring>","invoice_line_item_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","invoice_line_item_external_id":"\u003cstring>","invoice_payment_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","invoice_payment_external_id":"\u003cstring>","customer":{"type":"CustomerData","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","external_id":"31415926535","individual_name":"\u003cstring>","company_name":"\u003cstring>","email":"\u003cstring>","mobile_phone":"\u003cstring>","office_phone":"\u003cstring>","address_string":"\u003cstring>","memo":"\u003cstring>","status":"ACTIVE","transaction_tags":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","key":"ExampleTagKey","value":"ExampleTagValue","dimension_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","definition_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","dimension_display_name":"\u003cstring>","value_display_name":"\u003cstring>","archived_at":"2023-11-07T05:31:56Z"}]},"transaction_tags":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","key":"ExampleTagKey","value":"ExampleTagValue","dimension_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","definition_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","dimension_display_name":"\u003cstring>","value_display_name":"\u003cstring>","archived_at":"2023-11-07T05:31:56Z"}],"memo":"\u003cstring>","metadata":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"reference_number":"\u003cstring>"}],"payments":[{"type":"Customer_Refund_Payment","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","external_id":"31415926535","refunded_amount":123,"fee":123,"completed_at":"2023-11-07T05:31:56Z","method":"CREDIT_CARD","processor":"STRIPE","payment_clearing_account":{"type":"Single_Chart_Account","id":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"name":"Current Assets","account_number":"4000","stable_name":{"type":"StableName","stable_name":"CURRENT_ASSETS"},"normality":"DEBIT","account_type":{"value":"ASSET","display_name":"Asset"},"account_subtype":{"value":"BANK_ACCOUNTS","display_name":"Current Assets"}},"refunded_payment_fees":[{"account":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"description":"\u003cstring>","fee_amount":123}],"transaction_tags":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","key":"ExampleTagKey","value":"ExampleTagValue","dimension_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","definition_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","dimension_display_name":"\u003cstring>","value_display_name":"\u003cstring>","archived_at":"2023-11-07T05:31:56Z"}],"memo":"\u003cstring>","metadata":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"reference_number":"\u003cstring>"}],"payouts":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","external_id":"payout-1234","business_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","paid_out_amount":123,"fee":123,"processor":"STRIPE","payment_clearing_account":{"type":"Single_Chart_Account","id":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"name":"Current Assets","account_number":"4000","stable_name":{"type":"StableName","stable_name":"CURRENT_ASSETS"},"normality":"DEBIT","account_type":{"value":"ASSET","display_name":"Asset"},"account_subtype":{"value":"BANK_ACCOUNTS","display_name":"Current Assets"}},"imported_at":"2023-11-07T05:31:56Z","completed_at":"2023-11-07T05:31:56Z","match":{"id":"6b0a3734-f4ef-4fb0-9fc1-3f59b0c1cf99","match_type":"PAYOUT","bank_transaction":{"type":"Bank_Transaction_Data","id":"a703c8d6-cfe8-453d-a275-b92eacc6fc6e","business_id":"738ec216-e8e5-48f2-b7f2-cdc89c96b3d4","source":"STRIPE","source_transaction_id":"trxn_1sdOeLQiFAKE2LQBkcvrJw95f","source_account_id":"738ec216-e154-48f2-1111-cdc89c96b3d4","imported_at":"2024-03-19T22:09:53.290591Z","date":"2024-03-06T06:06:40Z","direction":"CREDIT","amount":87459,"counterparty_name":null,"description":"Payout (po_1OqnTHISISFAKEiTVBkCiyAERwm).","account_name":"Layer Banking","categorization_status":"MATCHED"},"details":{"type":"Payout_Match","id":"d224508b-b05e-41da-89de-0fbd8a573507","amount":87459,"date":"2024-03-06T00:00:00Z","description":"Payout from STRIPE.","adjustment":null}},"transaction_tags":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","key":"ExampleTagKey","value":"ExampleTagValue","dimension_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","definition_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","dimension_display_name":"\u003cstring>","value_display_name":"\u003cstring>","archived_at":"2023-11-07T05:31:56Z"}],"memo":"\u003cstring>","metadata":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"reference_number":"\u003cstring>"}],"transaction_tags":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","key":"ExampleTagKey","value":"ExampleTagValue","dimension_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","definition_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","dimension_display_name":"\u003cstring>","value_display_name":"\u003cstring>","archived_at":"2023-11-07T05:31:56Z"}],"memo":"\u003cstring>","metadata":{"custom_field":"value","any valid json":"below 1kb","nested":{"meaning of life":42,"array":[]}},"reference_number":"\u003cstring>"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"9adba068-78ac-42d1-a64c-4570620a7d53":{"description":"Invalid request, or the final state is invalid. Nothing is persisted. This can occur if:\n- An invoice includes `payments`\n- Duplicate `external_id` values are present within `invoices`, `payments`, or `refunds`\n- An invoice would end overpaid or have a negative outstanding balance\n- Any other validation error on an invoice, payment, or refund","content":{"application/json":{"schema":{"type":"object","description":"An error object returned in API error responses.","properties":{"type":{"type":"string","enum":["ResourceArchived","AuthFailure","Plaid","Stripe","InvalidState","ResourceNotFound","InvalidParameters","JsonSerialization","Unknown","BadRequest","PaginationCursor","Conflict","LedgerOperationFailed"],"example":"InvalidParameters","description":"A fixed category for the error, helpful for categorizing and processing errors.","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"A human-readable error description.","isRequired":true,"uniqueKey":"description","typeLabel":"string"},"error_enum":{"oneOf":[{"type":"string","description":"A stable, machine-readable identifier for programmatically handling specific error conditions. Only present for 4xx client errors—not included for 5xx server errors. Use this instead of parsing the description field, as enum values remain stable across API versions.","enum":["AccessCodeInvalid","BalanceSheetDoesNotBalance","BalanceSheetMissingAccount","BankStatementAccountDetectionError","BankStatementParsingError","BankStatementParserError","BankStatementValidationError","BillStateError","BulkCategorizeFailure","BulkMatchFailure","BusinessTaskAlreadyCompleted","BusinessTaskDeleted","CalendlyOAuthError","CallBookingError","CantUpdateTransactionInCustomerPayout","CantUpdateTransactionInVendorPayout","CheckPayrollConfigNotFound","CheckPayrollServiceNotFound","ClerkUserAlreadyExists","ConflictingQueryParams","CustomAccountAlreadyExists","CustomTransactionCsvParsingError","CustomTransactionUploadFailure","CustomerPayoutInputFormatError","DoesNotMatchExistingEntity","EmptyBatchRequest","ExpenseParserError","ExternalAccountBalanceReconciliationError","ExternalIdConflict","InvalidCategory","InvalidEffectiveDate","InvalidLedgerOperation","InvalidMonthlyAverageRange","InvalidMultiPartRequest","InvalidPaginationCursor","InvalidPayload","InvoiceDeleted","InvoiceNotFound","InvoiceReferenceMismatch","InvoiceStateError","ManualRateLimit","MultipleTagKeyFiltersUnsupported","NoCognitoUserFound","NoOpeningBalanceFound","NotYetReconciled","OnePasswordApiError","OnePasswordItemNotFound","OnePasswordVaultNotFound","OpenAICategorizationError","PaymentLinkInvalid","PayrollStateError","PeriodIsClosed","PeriodNotClosed","PhoneNumberAlreadyRegistered","PlaidApiError","PlaidConnectionBroken","PlaidCreateLinkTokenError","PlaidCredentialsNotConfigured","PlaidExchangePublicTokenError","PlaidGetInstitutionByIdError","PlaidGetItemError","PlaidInvalidEnvironment","PlaidItemAlreadyExists","PlaidItemNotFound","PlaidProcessorApiError","PlaidStatementsAccessNotEnabled","PlaidStatementsNotEnabled","PlaidStatementsNotSupported","PlaidUnlinkItemError","QueryParamFormat","QueryParamMissing","QuickbooksBrokenConnection","QuickbooksConnectionAlreadyExists","QuickbooksConnectionAlreadySyncing","QuickbooksConnectionMissing","QuickbooksConnectionNotActivated","QuickbooksInvalidRequest","QuickbooksInvalidState","QuickbooksNoMatchingAccount","QuickbooksNonPostingAccountType","QuickbooksNotConfigured","QuickbooksOAuthCallbackInvalid","QuickbooksOAuthError","QuickbooksTokenExpired","ReadOnlyBusiness","ResourceArchived","ScheduleCNotConfigured","SmsNotEnabled","SpecifiedBadRequest","SpecifiedIdNotFound","SplitTransactionError","StepEvaluationBadRequest","StripeConnectAccountIdNotFound","StripeCredentialsNotConfigured","StripeGetBalanceForConnectAccountFailure","StripeRedirectOrRefreshUrlNotConfigured","TagFilterNotFound","UnexpectedQueryParam","UnitAccountsInUse","WrongAnswerType"],"example":"InvalidPayload","uniqueKey":"error_enum.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"A stable, machine-readable identifier for programmatically handling specific error conditions. Only present for 4xx client errors—not included for 5xx server errors. Use this instead of parsing the description field, as enum values remain stable across API versions.","enum":["AccessCodeInvalid","BalanceSheetDoesNotBalance","BalanceSheetMissingAccount","BankStatementAccountDetectionError","BankStatementParsingError","BankStatementParserError","BankStatementValidationError","BillStateError","BulkCategorizeFailure","BulkMatchFailure","BusinessTaskAlreadyCompleted","BusinessTaskDeleted","CalendlyOAuthError","CallBookingError","CantUpdateTransactionInCustomerPayout","CantUpdateTransactionInVendorPayout","CheckPayrollConfigNotFound","CheckPayrollServiceNotFound","ClerkUserAlreadyExists","ConflictingQueryParams","CustomAccountAlreadyExists","CustomTransactionCsvParsingError","CustomTransactionUploadFailure","CustomerPayoutInputFormatError","DoesNotMatchExistingEntity","EmptyBatchRequest","ExpenseParserError","ExternalAccountBalanceReconciliationError","ExternalIdConflict","InvalidCategory","InvalidEffectiveDate","InvalidLedgerOperation","InvalidMonthlyAverageRange","InvalidMultiPartRequest","InvalidPaginationCursor","InvalidPayload","InvoiceDeleted","InvoiceNotFound","InvoiceReferenceMismatch","InvoiceStateError","ManualRateLimit","MultipleTagKeyFiltersUnsupported","NoCognitoUserFound","NoOpeningBalanceFound","NotYetReconciled","OnePasswordApiError","OnePasswordItemNotFound","OnePasswordVaultNotFound","OpenAICategorizationError","PaymentLinkInvalid","PayrollStateError","PeriodIsClosed","PeriodNotClosed","PhoneNumberAlreadyRegistered","PlaidApiError","PlaidConnectionBroken","PlaidCreateLinkTokenError","PlaidCredentialsNotConfigured","PlaidExchangePublicTokenError","PlaidGetInstitutionByIdError","PlaidGetItemError","PlaidInvalidEnvironment","PlaidItemAlreadyExists","PlaidItemNotFound","PlaidProcessorApiError","PlaidStatementsAccessNotEnabled","PlaidStatementsNotEnabled","PlaidStatementsNotSupported","PlaidUnlinkItemError","QueryParamFormat","QueryParamMissing","QuickbooksBrokenConnection","QuickbooksConnectionAlreadyExists","QuickbooksConnectionAlreadySyncing","QuickbooksConnectionMissing","QuickbooksConnectionNotActivated","QuickbooksInvalidRequest","QuickbooksInvalidState","QuickbooksNoMatchingAccount","QuickbooksNonPostingAccountType","QuickbooksNotConfigured","QuickbooksOAuthCallbackInvalid","QuickbooksOAuthError","QuickbooksTokenExpired","ReadOnlyBusiness","ResourceArchived","ScheduleCNotConfigured","SmsNotEnabled","SpecifiedBadRequest","SpecifiedIdNotFound","SplitTransactionError","StepEvaluationBadRequest","StripeConnectAccountIdNotFound","StripeCredentialsNotConfigured","StripeGetBalanceForConnectAccountFailure","StripeRedirectOrRefreshUrlNotConfigured","TagFilterNotFound","UnexpectedQueryParam","UnitAccountsInUse","WrongAnswerType"],"example":"InvalidPayload","uniqueKey":"error_enum.oneOf.1","typeLabel":"null"}],"uniqueKey":"error_enum","typeLabel":"enum\u003cstring> | null"},"meta":{"oneOf":[{"type":"object","description":"Optional additional information about the error.","uniqueKey":"meta.oneOf.0","typeLabel":"object"},{"type":"null","description":"Optional additional information about the error.","uniqueKey":"meta.oneOf.1","typeLabel":"null"}],"uniqueKey":"meta","typeLabel":"object | null"}},"required":["type","description"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"InvalidParameters","description":"\u003cstring>","error_enum":"InvalidPayload","meta":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"2baedef8-957f-4b3f-a35c-6cad0fc7716d":{"description":"Business not found, or a referenced invoice or ledger account does not exist. Nothing is persisted.","content":{"application/json":{"schema":{"type":"object","description":"An error object returned in API error responses.","properties":{"type":{"type":"string","enum":["ResourceArchived","AuthFailure","Plaid","Stripe","InvalidState","ResourceNotFound","InvalidParameters","JsonSerialization","Unknown","BadRequest","PaginationCursor","Conflict","LedgerOperationFailed"],"example":"InvalidParameters","description":"A fixed category for the error, helpful for categorizing and processing errors.","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"A human-readable error description.","isRequired":true,"uniqueKey":"description","typeLabel":"string"},"error_enum":{"oneOf":[{"type":"string","description":"A stable, machine-readable identifier for programmatically handling specific error conditions. Only present for 4xx client errors—not included for 5xx server errors. Use this instead of parsing the description field, as enum values remain stable across API versions.","enum":["AccessCodeInvalid","BalanceSheetDoesNotBalance","BalanceSheetMissingAccount","BankStatementAccountDetectionError","BankStatementParsingError","BankStatementParserError","BankStatementValidationError","BillStateError","BulkCategorizeFailure","BulkMatchFailure","BusinessTaskAlreadyCompleted","BusinessTaskDeleted","CalendlyOAuthError","CallBookingError","CantUpdateTransactionInCustomerPayout","CantUpdateTransactionInVendorPayout","CheckPayrollConfigNotFound","CheckPayrollServiceNotFound","ClerkUserAlreadyExists","ConflictingQueryParams","CustomAccountAlreadyExists","CustomTransactionCsvParsingError","CustomTransactionUploadFailure","CustomerPayoutInputFormatError","DoesNotMatchExistingEntity","EmptyBatchRequest","ExpenseParserError","ExternalAccountBalanceReconciliationError","ExternalIdConflict","InvalidCategory","InvalidEffectiveDate","InvalidLedgerOperation","InvalidMonthlyAverageRange","InvalidMultiPartRequest","InvalidPaginationCursor","InvalidPayload","InvoiceDeleted","InvoiceNotFound","InvoiceReferenceMismatch","InvoiceStateError","ManualRateLimit","MultipleTagKeyFiltersUnsupported","NoCognitoUserFound","NoOpeningBalanceFound","NotYetReconciled","OnePasswordApiError","OnePasswordItemNotFound","OnePasswordVaultNotFound","OpenAICategorizationError","PaymentLinkInvalid","PayrollStateError","PeriodIsClosed","PeriodNotClosed","PhoneNumberAlreadyRegistered","PlaidApiError","PlaidConnectionBroken","PlaidCreateLinkTokenError","PlaidCredentialsNotConfigured","PlaidExchangePublicTokenError","PlaidGetInstitutionByIdError","PlaidGetItemError","PlaidInvalidEnvironment","PlaidItemAlreadyExists","PlaidItemNotFound","PlaidProcessorApiError","PlaidStatementsAccessNotEnabled","PlaidStatementsNotEnabled","PlaidStatementsNotSupported","PlaidUnlinkItemError","QueryParamFormat","QueryParamMissing","QuickbooksBrokenConnection","QuickbooksConnectionAlreadyExists","QuickbooksConnectionAlreadySyncing","QuickbooksConnectionMissing","QuickbooksConnectionNotActivated","QuickbooksInvalidRequest","QuickbooksInvalidState","QuickbooksNoMatchingAccount","QuickbooksNonPostingAccountType","QuickbooksNotConfigured","QuickbooksOAuthCallbackInvalid","QuickbooksOAuthError","QuickbooksTokenExpired","ReadOnlyBusiness","ResourceArchived","ScheduleCNotConfigured","SmsNotEnabled","SpecifiedBadRequest","SpecifiedIdNotFound","SplitTransactionError","StepEvaluationBadRequest","StripeConnectAccountIdNotFound","StripeCredentialsNotConfigured","StripeGetBalanceForConnectAccountFailure","StripeRedirectOrRefreshUrlNotConfigured","TagFilterNotFound","UnexpectedQueryParam","UnitAccountsInUse","WrongAnswerType"],"example":"InvalidPayload","uniqueKey":"error_enum.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"A stable, machine-readable identifier for programmatically handling specific error conditions. Only present for 4xx client errors—not included for 5xx server errors. Use this instead of parsing the description field, as enum values remain stable across API versions.","enum":["AccessCodeInvalid","BalanceSheetDoesNotBalance","BalanceSheetMissingAccount","BankStatementAccountDetectionError","BankStatementParsingError","BankStatementParserError","BankStatementValidationError","BillStateError","BulkCategorizeFailure","BulkMatchFailure","BusinessTaskAlreadyCompleted","BusinessTaskDeleted","CalendlyOAuthError","CallBookingError","CantUpdateTransactionInCustomerPayout","CantUpdateTransactionInVendorPayout","CheckPayrollConfigNotFound","CheckPayrollServiceNotFound","ClerkUserAlreadyExists","ConflictingQueryParams","CustomAccountAlreadyExists","CustomTransactionCsvParsingError","CustomTransactionUploadFailure","CustomerPayoutInputFormatError","DoesNotMatchExistingEntity","EmptyBatchRequest","ExpenseParserError","ExternalAccountBalanceReconciliationError","ExternalIdConflict","InvalidCategory","InvalidEffectiveDate","InvalidLedgerOperation","InvalidMonthlyAverageRange","InvalidMultiPartRequest","InvalidPaginationCursor","InvalidPayload","InvoiceDeleted","InvoiceNotFound","InvoiceReferenceMismatch","InvoiceStateError","ManualRateLimit","MultipleTagKeyFiltersUnsupported","NoCognitoUserFound","NoOpeningBalanceFound","NotYetReconciled","OnePasswordApiError","OnePasswordItemNotFound","OnePasswordVaultNotFound","OpenAICategorizationError","PaymentLinkInvalid","PayrollStateError","PeriodIsClosed","PeriodNotClosed","PhoneNumberAlreadyRegistered","PlaidApiError","PlaidConnectionBroken","PlaidCreateLinkTokenError","PlaidCredentialsNotConfigured","PlaidExchangePublicTokenError","PlaidGetInstitutionByIdError","PlaidGetItemError","PlaidInvalidEnvironment","PlaidItemAlreadyExists","PlaidItemNotFound","PlaidProcessorApiError","PlaidStatementsAccessNotEnabled","PlaidStatementsNotEnabled","PlaidStatementsNotSupported","PlaidUnlinkItemError","QueryParamFormat","QueryParamMissing","QuickbooksBrokenConnection","QuickbooksConnectionAlreadyExists","QuickbooksConnectionAlreadySyncing","QuickbooksConnectionMissing","QuickbooksConnectionNotActivated","QuickbooksInvalidRequest","QuickbooksInvalidState","QuickbooksNoMatchingAccount","QuickbooksNonPostingAccountType","QuickbooksNotConfigured","QuickbooksOAuthCallbackInvalid","QuickbooksOAuthError","QuickbooksTokenExpired","ReadOnlyBusiness","ResourceArchived","ScheduleCNotConfigured","SmsNotEnabled","SpecifiedBadRequest","SpecifiedIdNotFound","SplitTransactionError","StepEvaluationBadRequest","StripeConnectAccountIdNotFound","StripeCredentialsNotConfigured","StripeGetBalanceForConnectAccountFailure","StripeRedirectOrRefreshUrlNotConfigured","TagFilterNotFound","UnexpectedQueryParam","UnitAccountsInUse","WrongAnswerType"],"example":"InvalidPayload","uniqueKey":"error_enum.oneOf.1","typeLabel":"null"}],"uniqueKey":"error_enum","typeLabel":"enum\u003cstring> | null"},"meta":{"oneOf":[{"type":"object","description":"Optional additional information about the error.","uniqueKey":"meta.oneOf.0","typeLabel":"object"},{"type":"null","description":"Optional additional information about the error.","uniqueKey":"meta.oneOf.1","typeLabel":"null"}],"uniqueKey":"meta","typeLabel":"object | null"}},"required":["type","description"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"InvalidParameters","description":"\u003cstring>","error_enum":"InvalidPayload","meta":{}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"cf482010-f292-4576-bdab-9629fe093486":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[],"schemeName":"BearerAuth"}}},"servers":{},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"openApiSpec.json"},"subdomain":"layerfinancialtechnologiesinc","siteName":"Layer","title":"Sync invoices and payments - Layer","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-24T17:51:03.394Z","originalFileLocation":"api-reference/v1/sync-invoices.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create or update invoices, their payments, and refunds in one atomic request. Invoice balances are validated once, after all changes are applied.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Layer\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Sync invoices and payments - Layer\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create or update invoices, their payments, and refunds in one atomic request. Invoice balances are validated once, after all changes are applied.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Layer\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.layerfi.com/api-reference/v1/sync-invoices\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://layerfinancialtechnologiesinc.mintlify.site/_mintlify/api/og/v2?division=Invoices\u0026amp;title=Sync+invoices+and+payments\u0026amp;description=Create+or+update+invoices%2C+their+payments%2C+and+refunds+in+one+atomic+request.+Invoice+balances+are+validated+once%2C+after+all+changes+are+applied.\u0026amp;theme=105dd9e593effe53a54eaf85\u0026amp;signature=e4af21cf7327de526cc2500e2afe3bc31447f3ad223cce3bd65aec70f44a303f\">\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=\"Sync invoices and payments - Layer\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create or update invoices, their payments, and refunds in one atomic request. Invoice balances are validated once, after all changes are applied.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://layerfinancialtechnologiesinc.mintlify.site/_mintlify/api/og/v2?division=Invoices\u0026amp;title=Sync+invoices+and+payments\u0026amp;description=Create+or+update+invoices%2C+their+payments%2C+and+refunds+in+one+atomic+request.+Invoice+balances+are+validated+once%2C+after+all+changes+are+applied.\u0026amp;theme=105dd9e593effe53a54eaf85\u0026amp;signature=e4af21cf7327de526cc2500e2afe3bc31447f3ad223cce3bd65aec70f44a303f\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Layer\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5ba183\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.layerfi.com/api-reference/v1/sync-invoices\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/v1/sync-invoices.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.layerfi.com/#organization\",\"name\":\"Layer\",\"url\":\"https://docs.layerfi.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/layerfinancialtechnologiesinc/vN7_-byPIlUr9WYu/logo/layer_logo.svg?fit=max\u0026auto=format\u0026n=vN7_-byPIlUr9WYu\u0026q=85\u0026s=731d805a8bf32985beb197f69ae937e6\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.layerfi.com#website\",\"name\":\"Layer\",\"url\":\"https://docs.layerfi.com\",\"publisher\":{\"@id\":\"https://docs.layerfi.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.layerfi.com/api-reference/v1/sync-invoices#webpage\",\"url\":\"https://docs.layerfi.com/api-reference/v1/sync-invoices\",\"name\":\"Sync invoices and payments\",\"description\":\"Create or update invoices, their payments, and refunds in one atomic request. Invoice balances are validated once, after all changes are applied.\",\"dateModified\":\"2026-11-24T17:51:03.394Z\",\"isPartOf\":{\"@id\":\"https://docs.layerfi.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.layerfi.com/api-reference/v1/sync-invoices#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.layerfi.com/api-reference/v1/sync-invoices#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Financial Activity\",\"item\":\"https://docs.layerfi.com/api-reference/customer/customer\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Accounts Receivable\",\"item\":\"https://docs.layerfi.com/api-reference/customer/customer\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Invoices\",\"item\":\"https://docs.layerfi.com/api-reference/invoice/invoice\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Sync invoices and payments\",\"item\":\"https://docs.layerfi.com/api-reference/v1/sync-invoices\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.layerfi.com/api-reference/v1/sync-invoices#apireference\",\"headline\":\"Sync invoices and payments\",\"name\":\"Sync invoices and payments\",\"description\":\"Create or update invoices, their payments, and refunds in one atomic request. Invoice balances are validated once, after all changes are applied.\",\"url\":\"https://docs.layerfi.com/api-reference/v1/sync-invoices\",\"mainEntityOfPage\":{\"@id\":\"https://docs.layerfi.com/api-reference/v1/sync-invoices#webpage\"},\"dateModified\":\"2026-11-24T17:51:03.394Z\",\"publisher\":{\"@id\":\"https://docs.layerfi.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.layerfi.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Layer\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Layer\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/v1/sync-invoices.md","siteName":"Layer","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/overview"}]},{"tab":"API Reference","groups":[{"group":"Businesses","pages":[{"group":"Business","pages":[{"openapi":"get /v1/businesses","title":"List businesses","href":"/api-reference/v1/list-businesses"},{"openapi":"post /v1/businesses","title":"Create business","href":"/api-reference/v1/create-business"},{"openapi":"get /v1/businesses/{businessId}","title":"Fetch business","href":"/api-reference/v1/fetch-business"},{"openapi":"put /v1/businesses/{businessId}","title":"Update business","href":"/api-reference/v1/update-business"},{"openapi":"put /v1/businesses/{businessId}/readonly-status","title":"Set business read-only status","href":"/api-reference/v1/set-business-readonly-status"},{"openapi":"put /v1/businesses/{businessId}/archive","title":"Archive business","href":"/api-reference/v1/archive-business"},{"openapi":"post /v1/businesses/{businessId}/unarchive","title":"Unarchive business","href":"/api-reference/v1/unarchive-business"},{"openapi":"post /v1/businesses/{businessId}/request-data-deletion","title":"Request business data deletion","href":"/api-reference/v1/request-business-data-deletion"},{"openapi":"get /v1/businesses/demo","title":"List demo businesses","href":"/api-reference/v1/list-demo-businesses"},{"openapi":"post /v1/businesses/demo","title":"Create demo business","href":"/api-reference/v1/create-demo-business"},{"openapi":"post /v1/sales-demos","title":"Create sales demo business","href":"/api-reference/v1/create-sales-demo-business"}]},{"group":"Financial Accounts","pages":[{"group":"Bank Accounts","pages":[{"openapi":"get /v1/businesses/{businessId}/bank-accounts","title":"List bank accounts","href":"/api-reference/v1/list-bank-accounts"},{"openapi":"get /v1/businesses/{businessId}/bank-accounts/{bankAccountId}","title":"Get bank account","href":"/api-reference/v1/get-bank-account"},{"openapi":"post /v1/businesses/{businessId}/bank-accounts","title":"Create bank account","href":"/api-reference/v1/create-bank-account"},{"openapi":"patch /v1/businesses/{businessId}/bank-accounts/{bankAccountId}","title":"Update bank account","href":"/api-reference/v1/update-bank-account"},{"openapi":"post /v1/businesses/{businessId}/bank-accounts/{bankAccountId}/archive","title":"Archive bank account","href":"/api-reference/v1/archive-bank-account"}]},{"group":"All external account connections","pages":[{"openapi":"get /v1/businesses/{businessId}/external-accounts","title":"List external accounts","href":"/api-reference/v1/list-external-accounts"},{"openapi":"get /v1/businesses/{businessId}/external-accounts/{externalAccountId}","title":"Fetch external account","href":"/api-reference/v1/fetch-external-account"},{"openapi":"post /v1/businesses/{businessId}/external-accounts/{externalAccountId}/archive","title":"Archive external account","href":"/api-reference/v1/archive-external-account"},{"openapi":"post /v1/businesses/{businessId}/external-accounts/{externalAccountId}/uncategorize-and-archive","title":"Uncategorize and archive external account","href":"/api-reference/v1/uncategorize-and-archive-external-account"},{"openapi":"put /v1/businesses/{businessId}/external-accounts/{externalAccountId}/transaction-date-range","title":"Update transaction date range","href":"/api-reference/external-account/update-transaction-date-range"},{"openapi":"get /v1/businesses/{businessId}/external-accounts/{externalAccountId}/opening-balance","title":"Fetch opening balance","href":"/api-reference/v1/fetch-opening-balance"},{"openapi":"post /v1/businesses/{businessId}/custom-accounts/{customAccountId}/balance","title":"Set opening balance","href":"/api-reference/v1/set-opening-balance"},{"openapi":"delete /v1/businesses/{businessId}/external-accounts/{externalAccountId}/opening-balance","title":"Delete opening balance","href":"/api-reference/v1/delete-opening-balance"}]},{"group":"Custom Accounts","pages":[{"openapi":"get /v1/businesses/{businessId}/custom-accounts/{customAccountId}","title":"Fetch custom account","href":"/api-reference/v1/fetch-custom-account"},{"openapi":"post /v1/businesses/{businessId}/custom-accounts/","title":"Create custom account","href":"/api-reference/v1/create-custom-account"},{"openapi":"put /v1/businesses/{businessId}/custom-accounts/{customAccountId}","title":"Update custom account","href":"/api-reference/v1/update-custom-account"},{"openapi":"patch /v1/businesses/{businessId}/custom-accounts/{customAccountId}","title":"Patch custom account","href":"/api-reference/v1/patch-custom-account"},{"openapi":"post /v1/businesses/{businessId}/custom-accounts/{customAccountId}/bank-statement-import","title":"Import bank statement","href":"/api-reference/v1/import-bank-statement"},{"openapi":"post /v1/businesses/{businessId}/transaction-uploads/{uploadId}/archive","title":"Archive bank statement upload","href":"/api-reference/v1/archive-transaction-upload"},{"openapi":"post /v1/businesses/{businessId}/custom-accounts/{customAccountId}/archive","title":"Archive custom account","href":"/api-reference/v1/archive-custom-account"},{"openapi":"post /v1/businesses/{businessId}/custom-accounts/{customAccountId}/reactivate","title":"Reactivate custom account","href":"/api-reference/v1/reactivate-custom-account"}]},{"group":"Plaid Accounts","pages":[{"title":"Plaid Account object","href":"/api-reference/plaid-account/plaid-account"},{"title":"List Plaid Accounts","api":"GET https://sandbox.layerfi.com/v1/businesses/{business_id}/plaid/accounts","href":"/api-reference/plaid-account/list-plaid-accounts"},{"openapi":"get /v1/businesses/{businessId}/plaid/connection-events","title":"List Plaid connection events","href":"/api-reference/v1/list-plaid-connection-events"},{"openapi":"get /v1/businesses/{businessId}/plaid/items/{plaidItemId}/statements","title":"List Plaid statements","href":"/api-reference/v1/list-plaid-statements"},{"openapi":"post /v1/businesses/{businessId}/plaid/items/{plaidItemId}/statements/{statementId}","title":"Download bank statement","href":"/api-reference/v1/save-plaid-statement"}]}]},{"group":"Documents","pages":[{"openapi":"get /v1/businesses/{businessId}/documents","title":"List documents","href":"/api-reference/v1/list-documents"},{"openapi":"get /v1/businesses/{businessId}/s3_doc/{documentId}","title":"Fetch document","href":"/api-reference/v1/fetch-document"},{"openapi":"post /v1/businesses/{businessId}/bank-transactions/{transactionId}/documents/{documentId}/archive","title":"Archive document","href":"/api-reference/v1/archive-document"},{"openapi":"post /v1/businesses/{businessId}/receipts/import","title":"Import receipt","href":"/api-reference/v1/import-receipt"},{"group":"Multipart Upload","pages":[{"title":"Multipart Upload Guide","sidebarTitle":"Overview","href":"/api-reference/v1/multipart-upload-guide"},{"openapi":"post /v1/businesses/{businessId}/documents","title":"Create document upload","href":"/api-reference/v1/create-document-upload"},{"openapi":"post /v1/businesses/{businessId}/documents/{documentId}/complete","title":"Complete document upload","href":"/api-reference/v1/complete-document-upload"},{"openapi":"post /v1/businesses/{businessId}/documents/{documentId}/abort","title":"Abort document upload","href":"/api-reference/v1/abort-document-upload"}]},{"openapi":"post /v1/businesses/{businessId}/documents/trial-balances-import","title":"Import trial balances","href":"/api-reference/v1/import-trial-balances"},{"openapi":"delete /v1/businesses/{businessId}/documents/trial-balances-import","title":"Archive trial balances import","href":"/api-reference/v1/archive-trial-balances-import"}]},{"group":"Business Emails","pages":[{"openapi":"get /v1/businesses/{businessId}/support-emails","title":"List business emails","href":"/api-reference/v1/list-business-emails"},{"openapi":"get /v1/businesses/{businessId}/support-emails/{messageId}","title":"Fetch business email","href":"/api-reference/v1/fetch-business-email"}]},{"group":"Calls","pages":[{"openapi":"get /v1/businesses/{businessId}/call-bookings","title":"List call bookings","href":"/api-reference/v1/list-call-bookings"},{"openapi":"get /v1/businesses/{businessId}/calls","title":"List business calls","href":"/api-reference/v1/list-business-calls"}]},{"group":"Scoped Authentication","pages":[{"openapi":"post /v1/businesses/{businessId}/auth-token","title":"Create business auth token","href":"/api-reference/v1/create-business-auth-token"}]},{"group":"Configuration","pages":[{"openapi":"get /v1/businesses/{businessId}/accounting-config","title":"Fetch accounting configuration","href":"/api-reference/v1/fetch-accounting-configuration"},{"openapi":"patch /v1/businesses/{businessId}/accounting-config","title":"Patch accounting configuration","href":"/api-reference/v1/patch-accounting-configuration"},{"openapi":"get /v1/businesses/{businessId}/bookkeeping/status","title":"Fetch bookkeeping status","href":"/api-reference/v1/fetch-bookkeeping-status"},{"openapi":"post /v1/businesses/{businessId}/bookkeeping/activate","title":"Activate bookkeeping","href":"/api-reference/v1/activate-bookkeeping"},{"openapi":"post /v1/businesses/{businessId}/bookkeeping/deactivate","title":"Deactivate bookkeeping","href":"/api-reference/v1/deactivate-bookkeeping"},{"openapi":"post /v1/businesses/{businessId}/bookkeeping/start-date","title":"Set bookkeeping start date","href":"/api-reference/v1/set-bookkeeping-start-date"},{"openapi":"get /v1/businesses/{businessId}/sms","title":"Fetch SMS configuration","href":"/api-reference/v1/fetch-sms-configuration"},{"openapi":"put /v1/businesses/{businessId}/sms","title":"Update SMS configuration","href":"/api-reference/v1/update-sms-configuration"},{"openapi":"get /v1/businesses/{businessId}/sms/messages","title":"Fetch SMS message history","href":"/api-reference/v1/fetch-sms-message-history"}]},{"group":"Tasks \u0026 Notifications","pages":[{"openapi":"get /v1/businesses/{businessId}/tasks","title":"List tasks","href":"/api-reference/v1/list-tasks"},{"openapi":"get /v1/businesses/{businessId}/tasks/{taskId}","title":"Fetch task","href":"/api-reference/v1/fetch-task"},{"openapi":"post /v1/businesses/{businessId}/tasks/{taskId}/user-response","title":"Submit task response","href":"/api-reference/v1/submit-task-response"},{"openapi":"post /v1/businesses/{businessId}/tasks/{taskId}/mark-user-completed","title":"Mark task completed","href":"/api-reference/v1/mark-task-completed"},{"title":"Retrieve Notifications","api":"GET https://sandbox.layerfi.com/v1/businesses/{business_id}/notifications","href":"/api-reference/business/notifications"},{"openapi":"get /v1/businesses/{businessId}/notifications/uncategorized-monthly","title":"Fetch uncategorized transaction counts","href":"/api-reference/v1/fetch-uncategorized-transaction-counts"}]}]},{"group":"Financial Activity","pages":[{"group":"Accounts Receivable","pages":[{"group":"Customers","pages":[{"title":"Customer object","href":"/api-reference/customer/customer"},{"title":"List customers","api":"GET https://sandbox.layerfi.com/v1/businesses/{business_id}/customers","href":"/api-reference/customer/list-customers"},{"title":"Get a customer","api":"GET https://sandbox.layerfi.com/v1/businesses/{business_id}/customers/{customer_id}","href":"/api-reference/customer/get-customer"},{"title":"Create a customer","api":"POST https://sandbox.layerfi.com/v1/businesses/{business_id}/customers","href":"/api-reference/customer/create-customer"},{"openapi":"post /v1/businesses/{businessId}/customers/bulk","title":"Bulk create customers","href":"/api-reference/v1/bulk-create-customers"},{"title":"Update a customer","api":"PUT https://sandbox.layerfi.com/v1/businesses/{business_id}/customers/{customer_id}","href":"/api-reference/customer/update-customer"},{"openapi":"patch /v1/businesses/{businessId}/customers/{customerId}","title":"Patch update customer","href":"/api-reference/v1/patch-update-customer"},{"title":"Archive a customer","api":"POST https://sandbox.layerfi.com/v1/businesses/{business_id}/customers/{customer_id}/archive","href":"/api-reference/customer/archive-customer"},{"title":"Unarchive a customer","api":"POST https://sandbox.layerfi.com/v1/businesses/{business_id}/customers/{customer_id}/unarchive","href":"/api-reference/customer/unarchive-customer"}]},{"group":"Invoices","pages":[{"title":"Invoice object","href":"/api-reference/invoice/invoice"},{"title":"Create an Invoice","api":"POST https://sandbox.layerfi.com/v1/businesses/{business_id}/invoices","href":"/api-reference/invoice/create"},{"openapi":"post /v1/businesses/{businessId}/invoices/bulk","title":"Bulk create invoices","href":"/api-reference/v1/bulk-create-invoices"},{"openapi":"post /v1/businesses/{businessId}/invoices/batch","title":"Batch create invoices","description":"Create multiple invoices in a single request. Supports an optional `allow_partial_success` mode that commits each invoice independently, returning `207 Multi-Status` when results are mixed.","href":"/api-reference/v1/batch-create-invoices"},{"openapi":"post /v1/businesses/{businessId}/invoices/sync","title":"Sync invoices and payments","href":"/api-reference/v1/sync-invoices"},{"openapi":"get /v1/businesses/{businessId}/invoices","title":"List invoices","description":"Returns a list of invoices for the specified business. Invoices can be filtered by status and date range. Results will be paginated, see [Pagination](/api-details/pagination) for details.","href":"/api-reference/v1/list-invoices"},{"openapi":"get /v1/businesses/{businessId}/invoices/{invoiceId}","title":"Fetch invoice","href":"/api-reference/v1/fetch-invoice"},{"openapi":"put /v1/businesses/{businessId}/invoices/{invoiceId}","title":"Update invoice","href":"/api-reference/v1/update-invoice"},{"openapi":"patch /v1/businesses/{businessId}/invoices/{invoiceId}","title":"Patch invoice","href":"/api-reference/v1/patch-invoice"},{"title":"Void an Invoice","api":"POST https://sandbox.layerfi.com/v1/businesses/{business_id}/invoices/{invoice_id}/void","href":"/api-reference/invoice/void"},{"title":"Delete an Invoice","api":"POST https://sandbox.layerfi.com/v1/businesses/{business_id}/invoices/{invoice_id}/delete","href":"/api-reference/invoice/delete"},{"openapi":"post /v1/businesses/{businessId}/invoices/{invoiceId}/delete","title":"Delete invoice","href":"/api-reference/v1/delete-invoice"},{"openapi":"post /v1/businesses/{businessId}/invoices/bulk-delete","title":"Bulk delete invoices","href":"/api-reference/v1/bulk-delete-invoices"},{"openapi":"post /v1/businesses/{businessId}/invoices/{invoiceId}/refund","title":"Create dedicated refund on invoice","href":"/api-reference/v1/create-dedicated-invoice-refund"},{"openapi":"get /v1/businesses/{businessId}/invoices/{invoiceId}/pdf","title":"Generate invoice PDF","href":"/api-reference/v1/generate-invoice-pdf"}]},{"group":"Invoice Payments","pages":[{"title":"Invoice Payment object","href":"/api-reference/invoice/payments"},{"openapi":"post /v1/businesses/{businessId}/invoices/payments","title":"Record a payment","href":"/api-reference/v1/record-a-payment"},{"openapi":"post /v1/businesses/{businessId}/invoices/payments/bulk","title":"Bulk create invoice payments","href":"/api-reference/v1/bulk-create-invoice-payments"},{"openapi":"patch /v1/businesses/{businessId}/invoices/payments/{paymentId}","title":"Update payment","href":"/api-reference/v1/update-payment"},{"openapi":"get /v1/businesses/{businessId}/invoices/payments","title":"List payments","href":"/api-reference/v1/list-payments"},{"title":"Delete a Payment","api":"POST https://sandbox.layerfi.com/v1/businesses/{business_id}/invoices/payments/{payment_id}/delete","href":"/api-reference/invoice/delete-payment"},{"openapi":"post /v1/businesses/{businessId}/invoices/payments/{paymentId}/delete","title":"Delete invoice payment","href":"/api-reference/v1/delete-invoice-payment"},{"openapi":"post /v1/businesses/{businessId}/invoices/payments/bulk-delete","title":"Bulk delete invoice payments","href":"/api-reference/v1/bulk-delete-invoice-payments"},{"openapi":"post /v1/businesses/{businessId}/invoices/{invoiceId}/payment","title":"Create dedicated invoice payment","href":"/api-reference/v1/create-dedicated-invoice-payment"},{"openapi":"get /v1/businesses/{businessId}/invoices/{invoiceId}/payment/{paymentId}","title":"Get dedicated invoice payment","href":"/api-reference/v1/get-dedicated-invoice-payment"},{"openapi":"put /v1/businesses/{businessId}/invoices/{invoiceId}/payment/{paymentId}","title":"Update dedicated invoice payment","href":"/api-reference/v1/update-dedicated-invoice-payment"},{"openapi":"delete /v1/businesses/{businessId}/invoices/{invoiceId}/payment/{paymentId}","title":"Delete dedicated invoice payment","href":"/api-reference/v1/delete-dedicated-invoice-payment"}]},{"group":"Payouts","pages":[{"title":"Payout object","href":"/api-reference/customer-payouts/payout"},{"openapi":"get /v1/businesses/{businessId}/payouts","title":"List payouts","href":"/api-reference/v1/list-payouts"},{"openapi":"get /v1/businesses/{businessId}/payouts/{payoutId}","title":"Fetch payout","href":"/api-reference/v1/fetch-payout"},{"openapi":"post /v1/businesses/{businessId}/payouts","title":"Create payout","href":"/api-reference/v1/create-payout"},{"openapi":"post /v1/businesses/{businessId}/payouts/bulk","title":"Bulk create payouts","href":"/api-reference/v1/bulk-create-payouts"},{"openapi":"post /v1/businesses/{businessId}/payouts/{payoutId}/update","title":"Update payout","href":"/api-reference/v1/update-payout"},{"openapi":"delete /v1/businesses/{businessId}/payouts/{payoutId}","title":"Delete payout","href":"/api-reference/v1/delete-payout"}]},{"group":"Refunds","pages":[{"title":"Refund object","href":"/api-reference/refunds/refund"},{"openapi":"get /v1/businesses/{businessId}/invoices/refunds","title":"List refunds","href":"/api-reference/v1/list-refunds"},{"openapi":"post /v1/businesses/{businessId}/invoices/refunds","title":"Create refund","href":"/api-reference/v1/create-refund"},{"openapi":"post /v1/businesses/{businessId}/invoices/refunds/bulk","title":"Bulk create refunds","href":"/api-reference/v1/bulk-create-refunds"},{"openapi":"get /v1/businesses/{businessId}/invoices/refunds/{refundId}","title":"Fetch refund","href":"/api-reference/v1/fetch-refund"},{"openapi":"delete /v1/businesses/{businessId}/invoices/refunds/{refundId}","title":"Delete refund","href":"/api-reference/v1/delete-refund"},{"openapi":"put /v1/businesses/{businessId}/invoices/refunds/{refundId}","title":"Update refund","href":"/api-reference/v1/update-refund"},{"openapi":"patch /v1/businesses/{businessId}/invoices/refunds/{refundId}","title":"Patch refund","href":"/api-reference/v1/patch-refund"},{"openapi":"get /v1/businesses/{businessId}/invoices/refunds/payments","title":"List refund payments","href":"/api-reference/v1/list-refund-payments"},{"openapi":"post /v1/businesses/{businessId}/invoices/refunds/{refundId}/payments","title":"Create refund payment","href":"/api-reference/v1/create-refund-payment"},{"openapi":"get /v1/businesses/{businessId}/invoices/refunds/payments/{paymentId}","title":"Fetch refund payment","href":"/api-reference/v1/fetch-refund-payment"},{"openapi":"delete /v1/businesses/{businessId}/invoices/refunds/payments/{paymentId}","title":"Delete refund payment","href":"/api-reference/v1/delete-refund-payment"}]},{"group":"Write Offs","pages":[{"title":"Write-off object","href":"/api-reference/write-offs/write-off"},{"openapi":"post /v1/businesses/{businessId}/invoices/{invoiceId}/write-off","title":"Record write-off","href":"/api-reference/v1/record-write-off"},{"openapi":"get /v1/businesses/{businessId}/invoices/{invoiceId}/write-offs/{writeOffId}","title":"Fetch write-off","href":"/api-reference/v1/fetch-write-off"},{"openapi":"delete /v1/businesses/{businessId}/invoices/{invoiceId}/write-offs/{writeOffId}","title":"Delete write-off","href":"/api-reference/v1/delete-write-off"}]},{"group":"Customer Credits","pages":[{"title":"Customer credit object","href":"/api-reference/customer-credits/customer-credit"},{"openapi":"get /v1/businesses/{businessId}/invoices/customer-credits","title":"List customer credits","href":"/api-reference/v1/list-customer-credits"},{"openapi":"post /v1/businesses/{businessId}/invoices/customer-credits","title":"Create customer credit","href":"/api-reference/v1/create-customer-credit"},{"openapi":"get /v1/businesses/{businessId}/invoices/customer-credits/{customerCreditId}","title":"Fetch customer credit","href":"/api-reference/v1/fetch-customer-credit"},{"openapi":"patch /v1/businesses/{businessId}/invoices/customer-credits/{customerCreditId}","title":"Update customer credit","href":"/api-reference/v1/update-customer-credit"},{"openapi":"delete /v1/businesses/{businessId}/invoices/customer-credits/{customerCreditId}","title":"Delete customer credit","href":"/api-reference/v1/delete-customer-credit"}]},{"group":"A/R Reports","pages":[{"openapi":"get /v1/businesses/{businessId}/invoices/ar-aging","title":"Fetch AR aging report","href":"/api-reference/v1/fetch-ar-aging-report"},{"openapi":"get /v1/businesses/{businessId}/invoices/ar-aging/customer/{customerId}","title":"Fetch AR aging detail for a customer","href":"/api-reference/v1/fetch-ar-aging-detail-for-a-customer"}]}]},{"group":"Accounts Payable","pages":[{"group":"Vendors","pages":[{"title":"Vendor object","href":"/api-reference/vendor/vendor"},{"openapi":"get /v1/businesses/{businessId}/vendors","title":"List vendors","href":"/api-reference/v1/list-vendors"},{"openapi":"get /v1/businesses/{businessId}/vendors/{vendorId}","title":"Fetch vendor","href":"/api-reference/v1/fetch-vendor"},{"openapi":"post /v1/businesses/{businessId}/vendors","title":"Create vendor","href":"/api-reference/v1/create-vendor"},{"openapi":"put /v1/businesses/{businessId}/vendors/{vendorId}","title":"Update vendor","href":"/api-reference/v1/update-vendor"},{"openapi":"patch /v1/businesses/{businessId}/vendors/{vendorId}","title":"Patch update vendor","href":"/api-reference/v1/patch-update-vendor"},{"openapi":"post /v1/businesses/{businessId}/vendors/{vendorId}/archive","title":"Archive vendor","href":"/api-reference/v1/archive-vendor"},{"openapi":"post /v1/businesses/{businessId}/vendors/{vendorId}/unarchive","title":"Unarchive vendor","href":"/api-reference/v1/unarchive-vendor"}]},{"group":"Bills","pages":[{"openapi":"get /v1/businesses/{businessId}/bills/{billId}","title":"Fetch bill","href":"/api-reference/bill/bill"},{"openapi":"get /v1/businesses/{businessId}/bills","title":"List bills","href":"/api-reference/v1/list-bills"},{"openapi":"post /v1/businesses/{businessId}/bills","title":"Create bill","href":"/api-reference/v1/create-bill"},{"openapi":"post /v1/businesses/{businessId}/bills/{billId}/update","title":"Update bill","href":"/api-reference/v1/update-bill"},{"openapi":"post /v1/businesses/{businessId}/bills/{billId}/void","title":"Void bill","href":"/api-reference/v1/void-bill"},{"openapi":"post /v1/businesses/{businessId}/bills/{billId}/delete","title":"Delete bill","href":"/api-reference/v1/delete-bill"}]},{"group":"Expenses","pages":[{"title":"Expense object","href":"/api-reference/bill/expense"},{"openapi":"post /v1/businesses/{businessId}/expenses","title":"Create expense","href":"/api-reference/v1/create-expense"},{"title":"List expenses","sidebarTitle":"List expenses","openapi":"get /v1/businesses/{businessId}/bills","href":"/api-reference/v1/list-expenses"},{"title":"Fetch expense","sidebarTitle":"Fetch expense","openapi":"get /v1/businesses/{businessId}/bills/{billId}","href":"/api-reference/v1/fetch-expense"}]},{"group":"Bill Payments","pages":[{"title":"Bill payment object","href":"/api-reference/bill/payments"},{"openapi":"get /v1/businesses/{businessId}/bills/bill-payments","title":"List bill payments","href":"/api-reference/v1/list-bill-payments"},{"openapi":"post /v1/businesses/{businessId}/bills/bill-payments","title":"Create bill payment","href":"/api-reference/v1/create-bill-payment"},{"openapi":"post /v1/businesses/{businessId}/bills/bill-payments/{paymentId}/update","title":"Update bill payment","href":"/api-reference/v1/update-bill-payment"},{"openapi":"post /v1/businesses/{businessId}/bills/bill-payments/{paymentId}/delete","title":"Delete bill payment","href":"/api-reference/v1/delete-bill-payment"}]},{"group":"Vendor Credits","pages":[{"title":"Vendor credit object","href":"/api-reference/vendor-credits/vendor-credit"},{"openapi":"get /v1/businesses/{businessId}/bills/vendor-credits","title":"List vendor credits","href":"/api-reference/v1/list-vendor-credits"},{"openapi":"post /v1/businesses/{businessId}/bills/vendor-credits","title":"Create vendor credit","href":"/api-reference/v1/create-vendor-credit"},{"openapi":"get /v1/businesses/{businessId}/bills/vendor-credits/{vendorCreditId}","title":"Fetch vendor credit","href":"/api-reference/v1/fetch-vendor-credit"},{"openapi":"patch /v1/businesses/{businessId}/bills/vendor-credits/{vendorCreditId}","title":"Update vendor credit","href":"/api-reference/v1/update-vendor-credit"},{"openapi":"delete /v1/businesses/{businessId}/bills/vendor-credits/{vendorCreditId}","title":"Delete vendor credit","href":"/api-reference/v1/delete-vendor-credit"}]},{"group":"Vendor Refunds","pages":[{"title":"Vendor Refund object","href":"/api-reference/vendor-refunds/vendor-refund"},{"openapi":"get /v1/businesses/{businessId}/bills/refunds","title":"List vendor refunds","href":"/api-reference/v1/vendor-refunds/list-vendor-refunds"},{"openapi":"post /v1/businesses/{businessId}/bills/refunds","title":"Create vendor refund","href":"/api-reference/v1/vendor-refunds/create-vendor-refund"},{"openapi":"get /v1/businesses/{businessId}/bills/refunds/{refundId}","title":"Fetch vendor refund","href":"/api-reference/v1/vendor-refunds/fetch-vendor-refund"},{"openapi":"put /v1/businesses/{businessId}/bills/refunds/{refundId}","title":"Update vendor refund","href":"/api-reference/v1/vendor-refunds/update-vendor-refund"},{"openapi":"patch /v1/businesses/{businessId}/bills/refunds/{refundId}","title":"Patch vendor refund","href":"/api-reference/v1/vendor-refunds/patch-vendor-refund"},{"openapi":"delete /v1/businesses/{businessId}/bills/refunds/{refundId}","title":"Delete vendor refund","href":"/api-reference/v1/vendor-refunds/delete-vendor-refund"},{"openapi":"get /v1/businesses/{businessId}/bills/refunds/payments","title":"List vendor refund payments","href":"/api-reference/v1/vendor-refunds/list-vendor-refund-payments"},{"openapi":"get /v1/businesses/{businessId}/bills/refunds/{refundId}/payments","title":"List payments for vendor refund","href":"/api-reference/v1/vendor-refunds/list-vendor-refund-payments-for-refund"},{"openapi":"post /v1/businesses/{businessId}/bills/refunds/{refundId}/payments","title":"Create vendor refund payment","href":"/api-reference/v1/vendor-refunds/create-vendor-refund-payment"},{"openapi":"get /v1/businesses/{businessId}/bills/refunds/{refundId}/payments/{paymentId}","title":"Fetch vendor refund payment","href":"/api-reference/v1/vendor-refunds/fetch-vendor-refund-payment"},{"openapi":"delete /v1/businesses/{businessId}/bills/refunds/{refundId}/payments/{paymentId}","title":"Delete vendor refund payment","href":"/api-reference/v1/vendor-refunds/delete-vendor-refund-payment"}]},{"group":"Vendor Payouts","pages":[{"title":"Vendor Payout object","href":"/api-reference/vendor-payouts/vendor-payout"},{"openapi":"get /v1/businesses/{businessId}/vendor-payouts","title":"List vendor payouts","href":"/api-reference/v1/list-vendor-payouts"},{"openapi":"post /v1/businesses/{businessId}/vendor-payouts","title":"Create vendor payout","href":"/api-reference/v1/create-vendor-payout"},{"openapi":"get /v1/businesses/{businessId}/vendor-payouts/{payoutId}","title":"Fetch vendor payout","href":"/api-reference/v1/fetch-vendor-payout"},{"openapi":"put /v1/businesses/{businessId}/vendor-payouts/{payoutId}","title":"Update vendor payout","href":"/api-reference/v1/update-vendor-payout"},{"openapi":"delete /v1/businesses/{businessId}/vendor-payouts/{payoutId}","title":"Delete vendor payout","href":"/api-reference/v1/delete-vendor-payout"}]},{"group":"A/P Reports","pages":[{"openapi":"get /v1/businesses/{businessId}/reports/unified/ap-aging","title":"Fetch AP aging report","href":"/api-reference/v1/fetch-ap-aging-report"},{"openapi":"get /v1/businesses/{businessId}/reports/unified/ap-aging/exports/excel","title":"Export AP aging report as Excel","href":"/api-reference/v1/export-ap-aging-report-as-excel"}]}]},{"group":"Bank Transactions","pages":[{"title":"Bank Transaction object","href":"/api-reference/bank-transaction/bank-transaction"},{"openapi":"post /v1/businesses/{businessId}/custom-accounts/{customAccountId}/transactions","title":"Import transactions","href":"/api-reference/v1/import-transactions"},{"openapi":"post /v1/businesses/{businessId}/custom-accounts/{customAccountId}/transactions/record","title":"Record custom account transaction","href":"/api-reference/openapi-generated-schemas/record-custom-account-transaction"},{"openapi":"patch /v1/businesses/{businessId}/custom-accounts/{customAccountId}/transactions/{transactionId}/record","title":"Update recorded transaction","href":"/api-reference/openapi-generated-schemas/update-recorded-transaction"},{"openapi":"patch /v1/businesses/{businessId}/custom-accounts/{customAccountId}/transactions/{transactionId}","title":"Update custom account transaction","href":"/api-reference/openapi-generated-schemas/update-custom-account-transaction"},{"openapi":"get /v1/businesses/{businessId}/bank-transactions/{bankTransactionId}","title":"Fetch bank transaction","href":"/api-reference/v1/fetch-bank-transaction"},{"openapi":"get /v1/businesses/{businessId}/bank-transactions","title":"List bank transactions","href":"/api-reference/v1/list-bank-transactions"},{"openapi":"put /v1/businesses/{businessId}/bank-transactions/{transactionId}/categorize","title":"Categorize bank transaction","href":"/api-reference/v1/categorize-bank-transaction"},{"openapi":"put /v1/businesses/{businessId}/bank-transactions/{transactionId}/uncategorize","title":"Uncategorize bank transaction","href":"/api-reference/v1/uncategorize-bank-transaction"},{"openapi":"put /v1/businesses/{businessId}/bank-transactions/{transactionId}/match","title":"Match bank transaction","href":"/api-reference/v1/match-bank-transaction"},{"openapi":"post /v1/businesses/{businessId}/bank-transactions/bulk-match","title":"Bulk match","href":"/api-reference/v1/bulk-match"},{"openapi":"post /v1/businesses/{businessId}/bank-transactions/bulk-match-or-categorize","title":"Bulk match or categorize","href":"/api-reference/v1/bulk-match-or-categorize"},{"openapi":"post /v1/businesses/{businessId}/bank-transactions/bulk-categorize","title":"Bulk categorize transactions","href":"/api-reference/v1/bulk-categorize-bank-transactions"},{"openapi":"post /v1/businesses/{businessId}/bank-transactions/bulk-uncategorize","title":"Bulk uncategorize transactions","href":"/api-reference/v1/bulk-uncategorize-bank-transactions"},{"openapi":"get /v1/businesses/{businessId}/categories","title":"Fetch transaction categories","href":"/api-reference/v1/fetch-transaction-categories"},{"openapi":"put /v1/businesses/{businessId}/bank-transactions/{transactionId}/metadata","title":"Update transaction metadata","href":"/api-reference/v1/update-transaction-metadata"},{"openapi":"patch /v1/businesses/{businessId}/bank-transactions/{transactionId}/metadata","title":"Patch transaction metadata","href":"/api-reference/v1/patch-transaction-metadata"},{"group":"Exports","pages":[{"title":"Download Transactions CSV","api":"GET https://sandbox.layerfi.com/v1/businesses/{business_id}/reports/transactions/exports/csv","href":"/api-reference/bank-transaction/download-csv"},{"openapi":"get /v1/businesses/{businessId}/reports/transactions/exports/csv","title":"Export transactions as CSV","href":"/api-reference/v1/export-transactions-as-csv"},{"openapi":"get /v1/businesses/{businessId}/reports/transactions/exports/excel","title":"Export transactions as Excel","href":"/api-reference/v1/export-transactions-as-excel"}]},{"group":"Receipts","pages":[{"openapi":"post /v1/businesses/{businessId}/bank-transactions/{transactionId}/documents","title":"Upload transaction document","href":"/api-reference/v1/upload-transaction-document"},{"openapi":"get /v1/businesses/{businessId}/bank-transactions/{transactionId}/documents/{documentId}","title":"Fetch transaction document","href":"/api-reference/v1/fetch-transaction-document"},{"openapi":"get /v1/businesses/{businessId}/bank-transactions/{transactionId}/documents","title":"List transaction documents","href":"/api-reference/v1/list-transaction-documents"},{"openapi":"post /v1/businesses/{businessId}/bank-transactions/{transactionId}/documents/{documentId}/archive","title":"Archive document","href":"/api-reference/v1/archive-document"},{"openapi":"put /v1/businesses/{businessId}/bank-transactions/{transactionId}/metadata","title":"Update transaction metadata","href":"/api-reference/v1/update-transaction-metadata"},{"openapi":"patch /v1/businesses/{businessId}/bank-transactions/{transactionId}/metadata","title":"Patch transaction metadata","href":"/api-reference/v1/patch-transaction-metadata"}]},{"group":"Categorization Rules","pages":[{"openapi":"get /v1/businesses/{businessId}/categorization-rules","title":"List categorization rules","href":"/api-reference/v1/categorization-rules/list-categorization-rules"},{"openapi":"post /v1/businesses/{businessId}/categorization-rules","title":"Create categorization rule","href":"/api-reference/v1/categorization-rules/create-categorization-rule"},{"openapi":"get /v1/businesses/{businessId}/categorization-rules/{categorizationRuleId}","title":"Get categorization rule","href":"/api-reference/v1/categorization-rules/get-categorization-rule"},{"openapi":"put /v1/businesses/{businessId}/categorization-rules/{categorizationRuleId}","title":"Update categorization rule","href":"/api-reference/v1/categorization-rules/update-categorization-rule"},{"openapi":"post /v1/businesses/{businessId}/categorization-rules/{categorizationRuleId}/archive","title":"Archive categorization rule","href":"/api-reference/v1/categorization-rules/archive-categorization-rule"},{"openapi":"get /v1/businesses/{businessId}/categorization-rules/suggestions","title":"List suggested categorization rules","href":"/api-reference/v1/categorization-rules/list-suggested-categorization-rules"},{"openapi":"get /v1/businesses/{businessId}/categorization-rules/suggestions/{suggestionId}","title":"Get suggested categorization rule","href":"/api-reference/v1/categorization-rules/get-suggested-categorization-rule"},{"openapi":"patch /v1/businesses/{businessId}/categorization-rules/suggestions/{suggestionId}","title":"Update suggested categorization rule","href":"/api-reference/v1/categorization-rules/update-suggested-categorization-rule"},{"openapi":"delete /v1/businesses/{businessId}/categorization-rules/suggestions/{suggestionId}","title":"Reject suggested categorization rule","href":"/api-reference/v1/categorization-rules/reject-suggested-categorization-rule"}]}]},{"group":"General Ledger","pages":[{"title":"Account Identifier","href":"/api-reference/ledger/account-identifier"},{"title":"Required vs. Optional Template Accounts","href":"/api-reference/ledger/required-vs-optional-template-accounts"},{"title":"Chart of Accounts object","href":"/api-reference/ledger/chart"},{"openapi":"get /v1/businesses/{businessId}/ledger/chart","title":"Get chart of accounts","href":"/api-reference/v1/get-chart-of-accounts"},{"openapi":"get /v1/businesses/{businessId}/ledger/balances","title":"Get ledger balances","href":"/api-reference/v1/get-ledger-balances"},{"openapi":"get /v1/businesses/{businessId}/ledger/balances/exports/csv","title":"Export ledger balances to CSV","href":"/api-reference/v1/export-ledger-balances-csv"},{"group":"Accounts","pages":[{"openapi":"post /v1/businesses/{businessId}/ledger/accounts","title":"Create ledger account","href":"/api-reference/v1/create-ledger-account"},{"openapi":"put /v1/businesses/{businessId}/ledger/accounts/{accountId}","title":"Update ledger account","href":"/api-reference/v1/update-ledger-account"},{"openapi":"patch /v1/businesses/{businessId}/ledger/accounts/{accountId}","title":"Patch update ledger account","href":"/api-reference/v1/patch-update-ledger-account"},{"openapi":"get /v1/businesses/{businessId}/ledger/accounts/{accountId}","title":"Get ledger account","href":"/api-reference/v1/get-ledger-account"},{"openapi":"get /v1/businesses/{businessId}/ledger/accounts/{accountId}/lines","title":"Get account line items","href":"/api-reference/v1/get-account-line-items"},{"openapi":"get /v1/businesses/{businessId}/ledger/accounts","title":"List ledger accounts","href":"/api-reference/v1/list-ledger-accounts"},{"openapi":"delete /v1/businesses/{businessId}/ledger/accounts/{accountId}","title":"Delete ledger account","href":"/api-reference/v1/delete-ledger-account"},{"openapi":"post /v1/businesses/{businessId}/ledger/accounts/{accountId}/create-child-account","title":"Create child ledger account","href":"/api-reference/v1/create-child-ledger-account"},{"group":"Exports","pages":[{"openapi":"get /v1/businesses/{businessId}/ledger/accounts/{accountId}/exports/excel","title":"Export account transactions as Excel","href":"/api-reference/v1/export-account-transactions-as-excel"}]}]},{"group":"Journal Entries","pages":[{"group":"Custom Journal Entries","pages":[{"title":"Custom journal entry object","href":"/api-reference/custom-journal-entries/custom-journal-entry"},{"openapi":"get /v1/businesses/{businessId}/custom-journal-entries/","title":"List custom journal entries","href":"/api-reference/v1/custom-journal-entries/list-custom-journal-entries"},{"openapi":"post /v1/businesses/{businessId}/custom-journal-entries/","title":"Create custom journal entry","href":"/api-reference/v1/custom-journal-entries/create-custom-journal-entry"},{"openapi":"post /v1/businesses/{businessId}/custom-journal-entries/bulk","title":"Create multiple custom journal entries","href":"/api-reference/v1/custom-journal-entries/create-multiple-custom-journal-entries"},{"openapi":"get /v1/businesses/{businessId}/custom-journal-entries/{customJournalEntryId}","title":"Fetch custom journal entry","href":"/api-reference/v1/custom-journal-entries/fetch-custom-journal-entry"},{"openapi":"put /v1/businesses/{businessId}/custom-journal-entries/{customJournalEntryId}","title":"Update custom journal entry","href":"/api-reference/v1/custom-journal-entries/update-custom-journal-entry"},{"openapi":"delete /v1/businesses/{businessId}/custom-journal-entries/{customJournalEntryId}","title":"Reverse custom journal entry","href":"/api-reference/v1/custom-journal-entries/reverse-custom-journal-entry"}]},{"title":"Fetch Journal Entry","api":"GET https://sandbox.layerfi.com/v1/businesses/{business_id}/ledger/entries/{entry_id}","href":"/api-reference/ledger/entries/get-journal-entry"},{"openapi":"get /v1/businesses/{businessId}/ledger/entries","title":"List ledger entries","href":"/api-reference/v1/list-ledger-entries"},{"openapi":"get /v1/businesses/{businessId}/ledger/entries/exports/csv","title":"Export ledger entries to CSV","href":"/api-reference/v1/export-ledger-entries-csv"},{"title":"Reverse Journal Entry","api":"POST https://sandbox.layerfi.com/v1/businesses/{business_id}/ledger/entries/{entry_id}/reverse","href":"/api-reference/ledger/entries/create-reversal-entry"}]},{"group":"Adjustments","pages":[{"group":"Retained earnings","pages":[{"openapi":"post /v1/businesses/{businessId}/closing/retained-earnings","title":"Retained earnings","href":"/api-reference/v1/create-retained-earnings-closing-action"},{"openapi":"post /v1/businesses/{businessId}/closing/retained-earnings/preview","title":"Preview retained earnings","href":"/api-reference/v1/preview-retained-earnings-closing-action"}]}]}]},{"group":"Tags","pages":[{"openapi":"post /v1/businesses/{businessId}/tags","title":"Tag entities","href":"/api-reference/v1/tag-entities"},{"openapi":"post /v1/businesses/{businessId}/tags/delete","title":"Delete tags from entity","href":"/api-reference/v1/delete-tags-from-entity"},{"group":"Tag Dimensions","pages":[{"openapi":"get /v1/businesses/{businessId}/tags/dimensions","title":"List tag dimensions","href":"/api-reference/v1/list-tag-dimensions"},{"openapi":"post /v1/businesses/{businessId}/tags/dimensions","title":"Create tag dimension","href":"/api-reference/v1/create-tag-dimension"},{"openapi":"get /v1/businesses/{businessId}/tags/dimensions/{dimensionId}","title":"Get tag dimension","href":"/api-reference/v1/get-tag-dimension"},{"openapi":"get /v1/businesses/{businessId}/tags/dimensions/key/{dimensionKey}","title":"Get tag dimension by key","href":"/api-reference/v1/get-tag-dimension-by-key"},{"openapi":"patch /v1/businesses/{businessId}/tags/dimensions/{dimensionId}","title":"Update tag dimension","href":"/api-reference/v1/update-tag-dimension"},{"openapi":"patch /v1/businesses/{businessId}/tags/dimensions/key/{dimensionKey}","title":"Update tag dimension by key","href":"/api-reference/v1/update-tag-dimension-by-key"}]},{"group":"Tag Values","pages":[{"openapi":"get /v1/businesses/{businessId}/tags/values","title":"List tag values","href":"/api-reference/v1/list-tag-value"},{"openapi":"post /v1/businesses/{businessId}/tags/dimensions/{dimensionId}/values","title":"Create tag value","href":"/api-reference/v1/create-tag-value"},{"openapi":"patch /v1/businesses/{businessId}/tags/dimensions/{dimensionId}/values/{valueId}","title":"Update tag value","href":"/api-reference/v1/update-tag-value"}]}]},{"group":"Mileage Tracking","pages":[{"group":"Vehicles","pages":[{"openapi":"get /v1/businesses/{businessId}/mileage/vehicles","title":"List vehicles","href":"/api-reference/v1/list-vehicles"},{"openapi":"post /v1/businesses/{businessId}/mileage/vehicles","title":"Create vehicle","href":"/api-reference/v1/create-vehicle"},{"openapi":"post /v1/businesses/{businessId}/mileage/vehicles/bulk","title":"Bulk create vehicles","href":"/api-reference/v1/bulk-create-vehicles"},{"openapi":"get /v1/businesses/{businessId}/mileage/vehicles/{vehicleId}","title":"Get vehicle","href":"/api-reference/v1/get-vehicle"},{"openapi":"patch /v1/businesses/{businessId}/mileage/vehicles/{vehicleId}","title":"Update vehicle","href":"/api-reference/v1/update-vehicle"},{"openapi":"post /v1/businesses/{businessId}/mileage/vehicles/{vehicleId}/archive","title":"Archive vehicle","href":"/api-reference/v1/archive-vehicle"},{"openapi":"post /v1/businesses/{businessId}/mileage/vehicles/{vehicleId}/reactivate","title":"Reactivate vehicle","href":"/api-reference/v1/reactivate-vehicle"},{"openapi":"delete /v1/businesses/{businessId}/mileage/vehicles/{vehicleId}","title":"Delete vehicle","href":"/api-reference/v1/delete-vehicle"}]},{"group":"Trips","pages":[{"openapi":"get /v1/businesses/{businessId}/mileage/trips","title":"List trips","href":"/api-reference/v1/list-trips"},{"openapi":"post /v1/businesses/{businessId}/mileage/trips","title":"Create trip","href":"/api-reference/v1/create-trip"},{"openapi":"post /v1/businesses/{businessId}/mileage/trips/bulk","title":"Bulk create trips","href":"/api-reference/v1/bulk-create-trips"},{"openapi":"get /v1/businesses/{businessId}/mileage/trips/{tripId}","title":"Get trip","href":"/api-reference/v1/get-trip"},{"openapi":"patch /v1/businesses/{businessId}/mileage/trips/{tripId}","title":"Update trip","href":"/api-reference/v1/update-trip"},{"openapi":"delete /v1/businesses/{businessId}/mileage/trips/{tripId}","title":"Delete trip","href":"/api-reference/v1/delete-trip"}]},{"group":"Addresses","pages":[{"openapi":"get /v1/businesses/{businessId}/mileage/address-suggestions","title":"Get address suggestions","href":"/api-reference/v1/get-address-suggestions"},{"openapi":"get /v1/businesses/{businessId}/mileage/address-details","title":"Get address details","href":"/api-reference/v1/get-address-details"}]},{"group":"Reports","pages":[{"openapi":"get /v1/businesses/{businessId}/mileage/summary","title":"Get mileage summary","href":"/api-reference/v1/get-mileage-summary"}]}]},{"group":"Services Catalog","pages":[{"openapi":"get /v1/businesses/{businessId}/catalog/services","title":"List services","href":"/api-reference/v1/catalog/list-services"},{"openapi":"post /v1/businesses/{businessId}/catalog/services","title":"Create service","href":"/api-reference/v1/catalog/create-service"},{"openapi":"get /v1/businesses/{businessId}/catalog/services/{serviceId}","title":"Get service","href":"/api-reference/v1/catalog/get-service"},{"openapi":"patch /v1/businesses/{businessId}/catalog/services/{serviceId}","title":"Update service","href":"/api-reference/v1/catalog/update-service"},{"openapi":"delete /v1/businesses/{businessId}/catalog/services/{serviceId}","title":"Delete service","href":"/api-reference/v1/catalog/delete-service"}]},{"group":"Time Tracking","pages":[{"group":"Time Entries","pages":[{"openapi":"get /v1/businesses/{businessId}/time-tracking/time-entries","title":"List time entries","href":"/api-reference/v1/time-tracking/list-time-entries"},{"openapi":"post /v1/businesses/{businessId}/time-tracking/time-entries","title":"Create time entry","href":"/api-reference/v1/time-tracking/create-time-entry"},{"openapi":"post /v1/businesses/{businessId}/time-tracking/time-entries/bulk","title":"Bulk create time entries","href":"/api-reference/v1/time-tracking/bulk-create-time-entries"},{"openapi":"get /v1/businesses/{businessId}/time-tracking/time-entries/{timeEntryId}","title":"Get time entry","href":"/api-reference/v1/time-tracking/get-time-entry"},{"openapi":"patch /v1/businesses/{businessId}/time-tracking/time-entries/{timeEntryId}","title":"Update time entry","href":"/api-reference/v1/time-tracking/update-time-entry"}]},{"group":"Reports","pages":[{"openapi":"get /v1/businesses/{businessId}/time-tracking/time-entries/summary","title":"Get time entry summary","href":"/api-reference/v1/time-tracking/get-time-entry-summary"},{"openapi":"get /v1/businesses/{businessId}/time-tracking/invoice-preview","title":"Preview invoice from time entries","href":"/api-reference/v1/time-tracking/get-invoice-preview"}]}]},{"group":"Loans","pages":[{"title":"Loan object","href":"/api-reference/loan/loan"},{"openapi":"get /v1/businesses/{businessId}/loans","title":"List loans","href":"/api-reference/v1/loans/list-loans"},{"openapi":"post /v1/businesses/{businessId}/loans","title":"Create a loan","href":"/api-reference/v1/loans/create-loan"},{"openapi":"get /v1/businesses/{businessId}/loans/{loanId}","title":"Fetch a loan","href":"/api-reference/v1/loans/fetch-loan"},{"openapi":"patch /v1/businesses/{businessId}/loans/{loanId}","title":"Update a loan","href":"/api-reference/v1/loans/update-loan"},{"openapi":"delete /v1/businesses/{businessId}/loans/{loanId}","title":"Archive a loan","href":"/api-reference/v1/loans/archive-loan"},{"group":"Loan Proceeds","pages":[{"openapi":"get /v1/businesses/{businessId}/loans/{loanId}/proceeds","title":"List loan proceeds","href":"/api-reference/v1/loans/list-loan-proceeds"},{"openapi":"post /v1/businesses/{businessId}/loans/{loanId}/proceeds","title":"Create a loan proceed","href":"/api-reference/v1/loans/create-loan-proceed"},{"openapi":"get /v1/businesses/{businessId}/loans/{loanId}/proceeds/{proceedId}","title":"Fetch a loan proceed","href":"/api-reference/v1/loans/fetch-loan-proceed"},{"openapi":"patch /v1/businesses/{businessId}/loans/{loanId}/proceeds/{proceedId}","title":"Update a loan proceed","href":"/api-reference/v1/loans/update-loan-proceed"},{"openapi":"delete /v1/businesses/{businessId}/loans/{loanId}/proceeds/{proceedId}","title":"Archive a loan proceed","href":"/api-reference/v1/loans/archive-loan-proceed"}]},{"group":"Loan Payments","pages":[{"openapi":"get /v1/businesses/{businessId}/loans/payments","title":"List loan payments","href":"/api-reference/v1/loans/list-loan-payments"},{"openapi":"post /v1/businesses/{businessId}/loans/payments","title":"Create a loan payment","href":"/api-reference/v1/loans/create-loan-payment"},{"openapi":"post /v1/businesses/{businessId}/loans/{loanId}/payments/bulk","title":"Bulk create loan payments","href":"/api-reference/v1/loans/bulk-create-loan-payments"},{"openapi":"get /v1/businesses/{businessId}/loans/payments/{paymentId}","title":"Fetch a loan payment","href":"/api-reference/v1/loans/fetch-loan-payment"},{"openapi":"patch /v1/businesses/{businessId}/loans/payments/{paymentId}","title":"Update a loan payment","href":"/api-reference/v1/loans/update-loan-payment"},{"openapi":"delete /v1/businesses/{businessId}/loans/payments/{paymentId}","title":"Archive a loan payment","href":"/api-reference/v1/loans/archive-loan-payment"},{"openapi":"get /v1/businesses/{businessId}/loans/{loanId}/payments","title":"List payments for a loan","href":"/api-reference/v1/loans/list-payments-for-loan"}]}]},{"group":"Assets","pages":[{"title":"Asset object","href":"/api-reference/asset/asset"},{"openapi":"get /v1/businesses/{businessId}/assets","title":"List assets","href":"/api-reference/v1/assets/list-assets"},{"openapi":"post /v1/businesses/{businessId}/assets","title":"Create an asset","href":"/api-reference/v1/assets/create-asset"},{"openapi":"get /v1/businesses/{businessId}/assets/{assetId}","title":"Fetch an asset","href":"/api-reference/v1/assets/fetch-asset"},{"openapi":"patch /v1/businesses/{businessId}/assets/{assetId}","title":"Update an asset","href":"/api-reference/v1/assets/update-asset"},{"openapi":"delete /v1/businesses/{businessId}/assets/{assetId}","title":"Archive an asset","href":"/api-reference/v1/assets/archive-asset"},{"group":"Value Updates","pages":[{"openapi":"get /v1/businesses/{businessId}/assets/value-updates","title":"List asset value updates","href":"/api-reference/v1/assets/list-asset-value-updates"},{"openapi":"post /v1/businesses/{businessId}/assets/value-updates","title":"Create an asset value update","href":"/api-reference/v1/assets/create-asset-value-update"},{"openapi":"get /v1/businesses/{businessId}/assets/value-updates/{valueUpdateId}","title":"Fetch an asset value update","href":"/api-reference/v1/assets/fetch-asset-value-update"},{"openapi":"patch /v1/businesses/{businessId}/assets/value-updates/{valueUpdateId}","title":"Update an asset value update","href":"/api-reference/v1/assets/update-asset-value-update"},{"openapi":"delete /v1/businesses/{businessId}/assets/value-updates/{valueUpdateId}","title":"Archive an asset value update","href":"/api-reference/v1/assets/archive-asset-value-update"},{"openapi":"get /v1/businesses/{businessId}/assets/{assetId}/value-updates","title":"List value updates for an asset","href":"/api-reference/v1/assets/list-value-updates-for-asset"}]}]}]},{"group":"Accounting Reports","pages":[{"group":"Profit and Loss","pages":[{"title":"Profit and Loss object","href":"/api-reference/reports/pnl/pnl"},{"title":"Profit and Loss Details object","href":"/api-reference/reports/pnl/pnl-details"},{"title":"Retrieve a Profit and Loss","api":"GET https://sandbox.layerfi.com/v1/businesses/{business_id}/reports/profit-and-loss","href":"/api-reference/reports/pnl/get"},{"title":"Retrieve Profit and Loss Details","api":"GET https://sandbox.layerfi.com/v1/businesses/{business_id}/reports/profit-and-loss-details","href":"/api-reference/reports/pnl/get-pnl-details"},{"openapi":"get /v1/businesses/{businessId}/reports/profit-and-loss-summaries","title":"Fetch P\u0026L summaries","href":"/api-reference/v1/fetch-p\u0026l-summaries"},{"openapi":"get /v1/businesses/{businessId}/reports/profit-and-loss-summary","title":"Fetch P\u0026L summary","href":"/api-reference/v1/fetch-p\u0026l-summary"},{"openapi":"get /v1/businesses/{businessId}/reports/profit-and-loss","title":"Fetch P\u0026L report","href":"/api-reference/v1/fetch-p\u0026l-report"},{"openapi":"get /v1/businesses/{businessId}/reports/profit-and-loss/lines","title":"Fetch P\u0026L line items","href":"/api-reference/v1/fetch-p\u0026l-line-items"},{"openapi":"post /v1/businesses/{businessId}/reports/profit-and-loss-comparison","title":"Create P\u0026L comparisons","href":"/api-reference/v1/create-p\u0026l-comparisons"},{"group":"Exports","pages":[{"openapi":"get /v1/businesses/{businessId}/reports/profit-and-loss/exports/csv","title":"Export P\u0026L as CSV","href":"/api-reference/v1/export-p\u0026l-as-csv"},{"openapi":"get /v1/businesses/{businessId}/reports/profit-and-loss/exports/excel","title":"Export P\u0026L as Excel","href":"/api-reference/v1/export-p\u0026l-as-excel"},{"openapi":"get /v1/businesses/{businessId}/reports/profit-and-loss/lines/exports/excel","title":"Export P\u0026L line items as Excel","href":"/api-reference/v1/export-p\u0026l-line-items-as-excel"},{"openapi":"get /v1/businesses/{businessId}/reports/profit-and-loss/exports/month-over-month","title":"Export month-over-month P\u0026L","href":"/api-reference/v1/export-month-over-month-p\u0026l"},{"openapi":"post /v1/businesses/{businessId}/reports/profit-and-loss/exports/comparison-csv","title":"Export P\u0026L comparison as CSV","href":"/api-reference/v1/export-p\u0026l-comparison-as-csv"}]}]},{"group":"Balance Sheet","pages":[{"title":"Balance Sheet object","href":"/api-reference/reports/balance-sheet/balance-sheet"},{"title":"Retrieve a Balance Sheet","api":"GET https://sandbox.layerfi.com/v1/businesses/{business_id}/reports/balance-sheet","href":"/api-reference/reports/balance-sheet/get-balance-sheet"},{"openapi":"get /v1/businesses/{businessId}/reports/balance-sheet","title":"Fetch balance sheet","href":"/api-reference/v1/fetch-balance-sheet"},{"group":"Exports","pages":[{"openapi":"get /v1/businesses/{businessId}/reports/balance-sheet/exports/csv","title":"Export balance sheet as CSV","href":"/api-reference/v1/export-balance-sheet-as-csv"},{"openapi":"get /v1/businesses/{businessId}/reports/balance-sheet/exports/excel","title":"Export balance sheet as Excel","href":"/api-reference/v1/export-balance-sheet-as-excel"}]}]},{"group":"Cash Flow Statement","pages":[{"title":"Cash Flow Statement object","href":"/api-reference/reports/cash-flow-statement/cash-flow-statement"},{"title":"Retrieve a Cash Flow Statement","api":"GET https://sandbox.layerfi.com/v1/businesses/{business_id}/reports/cash-flow-statement","href":"/api-reference/reports/cash-flow-statement/get-cash-flow-statement"},{"openapi":"get /v1/businesses/{businessId}/reports/cashflow-statement","title":"Fetch cashflow statement","href":"/api-reference/v1/fetch-cashflow-statement"},{"group":"Exports","pages":[{"openapi":"get /v1/businesses/{businessId}/reports/cashflow-statement/exports/csv","title":"Export cashflow statement as CSV","href":"/api-reference/v1/export-cashflow-statement-as-csv"}]}]},{"group":"AR Aging","pages":[{"openapi":"get /v1/businesses/{businessId}/invoices/ar-aging","title":"Fetch AR aging report","href":"/api-reference/v1/fetch-ar-aging-report"},{"openapi":"get /v1/businesses/{businessId}/invoices/ar-aging/customer/{customerId}","title":"Fetch AR aging detail for a customer","href":"/api-reference/v1/fetch-ar-aging-detail-for-a-customer"}]},{"group":"AP Aging","pages":[{"openapi":"get /v1/businesses/{businessId}/reports/unified/ap-aging","title":"Fetch AP aging report","href":"/api-reference/v1/fetch-ap-aging-report"},{"openapi":"get /v1/businesses/{businessId}/reports/unified/ap-aging/exports/excel","title":"Export AP aging report as Excel","href":"/api-reference/v1/export-ap-aging-report-as-excel"}]},{"group":"Tax","pages":[{"openapi":"get /v1/businesses/{businessId}/reports/tax/schedule-c","title":"Fetch Schedule C report","href":"/api-reference/v1/fetch-schedule-c-report"},{"group":"Tax Packets","pages":[{"openapi":"post /v1/businesses/{businessId}/reports/tax-packets","title":"Create tax packet","href":"/api-reference/v1/create-tax-packet"},{"openapi":"get /v1/businesses/{businessId}/reports/tax-packets","title":"List tax packets","href":"/api-reference/v1/list-tax-packets"}]}]},{"group":"Tax Estimates","pages":[{"title":"Overview","href":"/api-reference/v1/tax-estimates/overview"},{"openapi":"get /v1/businesses/{businessId}/tax-estimates/summary","title":"Get tax summary","href":"/api-reference/v1/tax-estimates/get-tax-summary"},{"openapi":"get /v1/businesses/{businessId}/tax-estimates/overview","title":"Get tax overview","href":"/api-reference/v1/tax-estimates/get-tax-overview"},{"openapi":"get /v1/businesses/{businessId}/tax-estimates/details","title":"Get tax details","href":"/api-reference/v1/tax-estimates/get-tax-details"},{"openapi":"get /v1/businesses/{businessId}/tax-estimates/checklist","title":"Get tax checklist","href":"/api-reference/v1/tax-estimates/get-tax-checklist"},{"openapi":"get /v1/businesses/{businessId}/tax-estimates/payments","title":"Get tax payments","href":"/api-reference/v1/tax-estimates/get-tax-payments"},{"openapi":"get /v1/businesses/{businessId}/tax-estimates/profile","title":"Get tax profile","href":"/api-reference/v1/tax-estimates/get-tax-profile"},{"openapi":"post /v1/businesses/{businessId}/tax-estimates/profile","title":"Create tax profile","href":"/api-reference/v1/tax-estimates/create-tax-profile"},{"openapi":"patch /v1/businesses/{businessId}/tax-estimates/profile","title":"Update tax profile","href":"/api-reference/v1/tax-estimates/update-tax-profile"},{"openapi":"post /v1/businesses/{businessId}/tax-estimates/export","title":"Export tax documents","href":"/api-reference/v1/tax-estimates/export-tax-documents"}]},{"group":"Data Sync Validation","pages":[{"openapi":"get /v1/businesses/{businessId}/reports/data-sync-validation","title":"Fetch data sync validation totals","href":"/api-reference/v1/fetch-data-sync-validation-totals"}]}]},{"group":"Platform Configuration","pages":[{"group":"Accounting","pages":[{"openapi":"get /v1/configure/{clientId}/accounting","title":"Fetch client accounting configuration","href":"/api-reference/v1/fetch-client-accounting-configuration"},{"openapi":"patch /v1/configure/{clientId}/accounting","title":"Update client accounting configuration","href":"/api-reference/v1/update-client-accounting-configuration"}]},{"group":"SMS","pages":[{"openapi":"get /v1/businesses/{businessId}/sms","title":"Fetch SMS configuration","href":"/api-reference/sms/sms"},{"title":"Set SMS Configuration","api":"PUT https://sandbox.layerfi.com/v1/configure/sms","href":"/api-reference/sms/set"},{"title":"Retrieve SMS Configuration","api":"GET https://sandbox.layerfi.com/v1/configure/sms","href":"/api-reference/sms/get"}]}]},{"group":"Platform reporting","pages":[{"group":"Platform wide activity","pages":[{"openapi":"get /v2/activity","title":"Fetch platform activity summary","href":"/api-reference/v1/fetch-platform-activity-summary"}]},{"group":"Business Activity","pages":[{"openapi":"get /v2/activity/businesses/{businessId}/activities","title":"Fetch business activities","href":"/api-reference/v1/fetch-business-activities"},{"openapi":"get /v2/activity/businesses/{businessId}","title":"Fetch business activity metrics","href":"/api-reference/v1/fetch-business-activity-summary"}]},{"group":"Bookkeeping Status","pages":[{"openapi":"get /v1/reports/bookkeeping","title":"List bookkeeping businesses","href":"/api-reference/v1/list-bookkeeping-businesses"},{"openapi":"get /v1/businesses/{businessId}/reports/bookkeeping/status","title":"Fetch bookkeeping reporting status","href":"/api-reference/v1/fetch-bookkeeping-reporting-status"},{"openapi":"get /v1/businesses/{businessId}/reports/bookkeeping/periods","title":"Fetch bookkeeping reporting periods","href":"/api-reference/v1/fetch-bookkeeping-reporting-periods"},{"openapi":"get /v1/businesses/{businessId}/bookkeeping/periods","title":"List bookkeeping periods for a business","href":"/api-reference/v1/bookkeeping/list-bookkeeping-periods-for-a-business"}]},{"group":"Async Exports","pages":[{"openapi":"post /v1/billing/reports","title":"Create billing report export","href":"/api-reference/v1/create-billing-report-export"},{"openapi":"post /v1/reports/bookkeeping/exports","title":"Create bookkeeping status report export","href":"/api-reference/v1/create-bookkeeping-status-report-export"},{"openapi":"get /v1/exports","title":"List exports","href":"/api-reference/v1/list-exports"},{"openapi":"get /v1/exports/{exportId}","title":"Fetch export","href":"/api-reference/v1/fetch-export"}]}]},{"group":"Integrations","pages":[{"group":"Plaid","pages":[{"title":"Plaid Configuration object","href":"/api-reference/plaid/plaid"},{"title":"Set Plaid Credentials","api":"PUT https://sandbox.layerfi.com/v1/configure/plaid","href":"/api-reference/plaid/set"},{"title":"Retrieve Plaid Configuration","api":"GET https://sandbox.layerfi.com/v1/configure/plaid","href":"/api-reference/plaid/get"}]},{"group":"Stripe","pages":[{"openapi":"get /v1/configure/stripe","title":"Fetch Stripe configuration","href":"/api-reference/v1/fetch-stripe-configuration"},{"openapi":"put /v1/configure/stripe","title":"Update Stripe configuration","href":"/api-reference/v1/update-stripe-configuration"}]},{"group":"Check Embedded Payroll","pages":[{"openapi":"get /v1/businesses/{businessId}/payroll/check/configs","title":"List Check payroll configs","href":"/api-reference/v1/list-check-payroll-configs"},{"openapi":"put /v1/businesses/{businessId}/payroll/check/configs","title":"Create Check payroll config","href":"/api-reference/v1/create-check-payroll-config"},{"openapi":"delete /v1/businesses/{businessId}/payroll/check/configs/{checkPayrollConfigId}","title":"Delete Check payroll config","href":"/api-reference/v1/delete-check-payroll-config"}]},{"group":"Quickbooks","pages":[{"group":"Configure Quickbooks","pages":[{"openapi":"get /v1/configure/quickbooks","title":"Fetch Quickbooks configuration","href":"/api-reference/v1/fetch-quickbooks-configuration"},{"openapi":"put /v1/configure/quickbooks","title":"Update Quickbooks configuration","href":"/api-reference/v1/update-quickbooks-configuration"}]},{"group":"Sync Quickbooks","pages":[{"openapi":"get /v1/businesses/{businessId}/quickbooks/connection-status","title":"Get connection status","href":"/api-reference/v1/get-connection-status"},{"openapi":"post /v1/businesses/{businessId}/quickbooks/sync-from","title":"Sync from Quickbooks","href":"/api-reference/v1/sync-from-quickbooks"},{"openapi":"post /v1/businesses/{businessId}/quickbooks/authorize","title":"Authorize Quickbooks OAuth flow","href":"/api-reference/v1/authorize-quickbooks-oauth-flow"}]},{"group":"Quickbooks Ledger","pages":[{"openapi":"get /v1/businesses/{businessId}/quickbooks/ledger/accounts","title":"List Quickbooks accounts","href":"/api-reference/v1/list-quickbooks-accounts"},{"openapi":"get /v1/businesses/{businessId}/quickbooks/ledger/accounts/{accountId}","title":"Fetch Quickbooks account","href":"/api-reference/v1/fetch-quickbooks-account"},{"openapi":"post /v1/businesses/{businessId}/quickbooks/ledger/accounts/{accountId}/update-mapping","title":"Update Quickbooks account mapping","href":"/api-reference/v1/update-quickbooks-account-mapping"}]}]}]}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/banking/plaid"}]},{"tab":"Embedded Components","pages":[{"title":"Embedded Components","href":"/embedded-components/layerprovider-context"}]},{"tab":"MCP","pages":[{"title":"MCP","href":"/insights/mcp-server"}]},{"tab":"Status","href":"https://status.layerfi.com/"}]},"basePath":"","title":"Sync invoices and payments - Layer","deploymentId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","buildId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CyAr6xD1.js","snippetPresets-BSqedH3o.js","utils-DXfQSZU_.js","style-to-object-BY3JEAdk.js","utils-DiMyLQC-.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-DvPCxzT8.js","conditional-requirements-CFM0id0Q.js","cloneDeep-dx7iM-7h.js","_Uint8Array-DpQIK2Aw.js","isObject-FP1Yky1u.js","ApiExamples-B2sy5qvP.js","usePlaygroundInputsStore-BDc5FJKB.js","shallow-DxZq5uhD.js","isEqual-Bl_IuwU4.js","CodeSnippets-D1UoeS-I.js","CodeSnippet-C87it1Zg.js","use-playground-group-access-DyECiQ2v.js","Page-wigwbDGe.js","api-description-markdown-DHZIfeWZ.js","DynamicMarkdown-D8KwOkxZ.js","SectionHeading-uish4Ed2.js","MethodPill-DR7O5MCP.js","getPastedJson-D2WQib0m.js","Check2Icon-CUuzblYS.js","axios-CsQoIw0U.js","Markdown-K6_WYP3x.js","AssistantPageLink-BrppVW5v.js","dist-OmDnwAnM.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}