Creates a new payout for a business or updates existing payout. This endpoint is idempotent using the external_id field as the idempotency key, so subsequent requests with the same external_id will update or no-op.
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
required
The UUID of the business to create a payout for
Body
application/json
external_id
string
required
Unique ID of the payout in your system for linking purposes.
Example:
"payout-1234"
paid_out_amount
integer<int64>
required
The amount of the payout, in cents. This amount can be negative if refunds and fees exceed payments.
fee
integer<int64>
required
The platform fee associated with the payout. Should be expressed as a positive value.
completed_at
string<date-time>
required
Timestamp of when the payout was completed
payments
(Reference existing payment · object | Create new payment and invoice · object)[]
required
List of invoice payments to associate with the payout. Can refer to existing payments by ID or external ID. Alternatively, you can create new payments by specifying the payment amount and payment external ID.
Reference existing payment
Create new payment and invoice
Show child attributes
additional_refunds_amount
integer<int64>
default:0
The amount of additional refunds associated with the payout, in cents. This should only be used when refunds cannot be individually itemized in the refunds array. Should be expressed as a positive value.
processor
enum<string> | null
Processor used to make the payment. If not null, every payment or refund associated with the payout must have the same processor
Available options:
STRIPE,
PAYPAL,
SHOPIFY,
ADYEN,
RAINFOREST
Example:
"STRIPE"
refunds
(Reference existing refund payment · object | Create new refund with payment · object)[]
List of refund payments to associate with the payout. Can refer to existing payments by ID or external ID, or by their refund's ID or external ID (so long as said refund has exactly one payment). Alternatively, you can create new refund payments by specifying the refund amount and refund external ID.
Reference existing refund payment
Create new refund with payment
Show child attributes
other_transactions
object[]
A list of other transactions associated with the payout
Show child attributes
tags
object[]
Show child attributes
memo
string | null
Memo for any text you would like to associate with the payout (for example, to display to end users).
metadata
object | null
Arbitrary custom metadata in JSON format with a size limit of 1KB
Any (typically user-visible) identifier you would like to associate with the payout. Can be used to filter when listing payouts.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Layer","colors":{"primary":"#5ba183","light":"#7e9be5","dark":"#0c48e5"},"favicon":"/favicon.png","logo":{"light":"https://mintcdn.com/layerfi-beta/oeZ7JcW3yIMmNpWf/logo/layer_logo.svg?fit=max\u0026auto=format\u0026n=oeZ7JcW3yIMmNpWf\u0026q=85\u0026s=1e991c064d8f58795064442ecaa2f3b2","dark":"https://mintcdn.com/layerfi-beta/oeZ7JcW3yIMmNpWf/logo/layer_logo.svg?fit=max\u0026auto=format\u0026n=oeZ7JcW3yIMmNpWf\u0026q=85\u0026s=1e991c064d8f58795064442ecaa2f3b2","href":"http://layerfi.com"},"api":{"openapi":["openApiSpec.json"],"playground":{"display":"simple"},"mdx":{"server":"https://sandbox.layerfi.com","auth":{"method":"bearer","name":null}}},"appearance":{"default":"light","strict":true},"background":{"decoration":null,"color":{"light":null,"dark":"#090014"}},"navbar":{"links":[],"primary":null},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"layerfi-beta","hasAudioNarration":false,"actualSubdomain":"layerfi-beta","customDomains":["docs-beta.layerfi.com"],"gitSource":{"type":"github","owner":"layer-fi","repo":"api-documentation","deployBranch":"beta","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae94631e103a00adaf79265:success","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"API Reference","count":271},{"language":"default","tag":"Financial Activity","count":178},{"language":"default","tag":"Accounts Receivable","count":62},{"language":"default","tag":"Accounts Payable","count":48},{"language":"default","tag":"Businesses","count":38},{"language":"default","tag":"Accounting Reports","count":36},{"language":"default","tag":"General Ledger","count":25},{"language":"default","tag":"Embedded Components","count":23},{"language":"default","tag":"Bank Transactions","count":19},{"language":"default","tag":"Documentation","count":17}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"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":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"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/create-payout","slug":"/api-reference/v1/create-payout","pageMetadata":{"openapi":"post /v1/businesses/{businessId}/payouts","title":"Create payout","description":"Creates a new payout for a business or updates existing payout. This endpoint is idempotent using the `external_id` field as the idempotency key, so subsequent requests with the same `external_id` will update or no-op.","href":"/api-reference/v1/create-payout"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Creates a new payout for a business or updates existing payout. This endpoint is idempotent using the \", _jsx(_components.code, {\n children: \"external_id\"\n }), \" field as the idempotency key, so subsequent requests with the same \", _jsx(_components.code, {\n children: \"external_id\"\n }), \" will update or no-op.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"post /v1/businesses/{businessId}/payouts","title":"Create payout","description":"Creates a new payout for a business or updates existing payout. This endpoint is idempotent using the `external_id` field as the idempotency key, so subsequent requests with the same `external_id` will update or no-op.","href":"/api-reference/v1/create-payout"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/layerfi-beta/8742a05bb8f14e85/scripts/validate-mint-links.js"],"openApiReferenceData":{"operation":{"tags":[],"summary":"Create payout","description":"Creates a new payout for a business or updates existing payout. This endpoint is idempotent using the `external_id` field as the idempotency key, so subsequent requests with the same `external_id` will update or no-op.","operationId":"business.payouts.post","parameters":["bd35457c-6fb4-41cb-b751-a8667b808785","668c9d62-8cff-40ca-bfc2-41a5bb4dea60"],"requestBody":"5ae910e4-b9bb-455a-8c7a-9d18ceaf6db3","responses":{"200":"141ba365-8df3-4eb4-b532-8f388da2d5a5","201":"833e5fbd-62f5-455f-8a1a-d08e29d82d21","400":"137bad99-68cd-439c-930a-89547c19d10c","404":"2877e9c7-2462-4406-a4d7-467ccaad4bb2"},"deprecated":false,"method":"post","type":"path","servers":[],"security":["1ef5f91a-895c-4286-bab6-0b6e4319caa0"],"path":"/v1/businesses/{businessId}/payouts","baseUrlOptions":["https://sandbox.layerfi.com"],"title":"Create payout","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"bd35457c-6fb4-41cb-b751-a8667b808785":{"name":"businessId","in":"path","description":"The UUID of the business to create a payout for","required":true,"schema":{"type":"string","isRequired":true,"description":"The UUID of the business to create a payout for","uniqueKey":"","typeLabel":"string"}},"668c9d62-8cff-40ca-bfc2-41a5bb4dea60":{"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":{"content":{"application/json":{"schema":{"type":"object","required":["external_id","paid_out_amount","fee","completed_at","payments"],"properties":{"external_id":{"type":"string","description":"Unique ID of the payout in your system for linking purposes.","example":"payout-1234","isRequired":true,"uniqueKey":"external_id","typeLabel":"string"},"paid_out_amount":{"type":"integer","format":"int64","description":"The amount of the payout, in cents. This amount can be negative if refunds and fees exceed payments.","isRequired":true,"uniqueKey":"paid_out_amount","typeLabel":"integer\u003cint64>"},"fee":{"type":"integer","format":"int64","description":"The platform fee associated with the payout. Should be expressed as a positive value.","isRequired":true,"uniqueKey":"fee","typeLabel":"integer\u003cint64>"},"completed_at":{"type":"string","format":"date-time","description":"Timestamp of when the payout was completed","isRequired":true,"uniqueKey":"completed_at","typeLabel":"string\u003cdate-time>"},"payments":{"type":"array","items":{"oneOf":[{"type":"object","title":"Reference existing payment","properties":{"invoice_payment_id":{"type":"string","description":"ID of the invoice payment to reference for the payout details. Either this or `invoice_payment_external_id` must be specified.","example":"efc07679-58fb-4509-9b69-05559f29b669","uniqueKey":"payments.items.[INDEX].oneOf.0.invoice_payment_id","typeLabel":"string"},"invoice_payment_external_id":{"type":"string","description":"External ID of the invoice payment to reference for the payout details. Either this or `invoice_payment_id` must be specified.","example":"payment-31415","uniqueKey":"payments.items.[INDEX].oneOf.0.invoice_payment_external_id","typeLabel":"string"}},"uniqueKey":"payments.items.[INDEX].oneOf.0","typeLabel":"Reference existing payment · object"},{"type":"object","title":"Create new payment and invoice","properties":{"invoice_payment_external_id":{"type":"string","description":"External ID of the invoice payment to associate with the payout","example":"payment-31415","uniqueKey":"payments.items.[INDEX].oneOf.1.invoice_payment_external_id","typeLabel":"string"},"amount":{"type":"integer","format":"int64","description":"Amount of the payout payment, in cents. This amount must be a positive value and greater than the `total_fees`. Use refunds if money is moving back to the customer instead of from the customer.","uniqueKey":"payments.items.[INDEX].oneOf.1.amount","typeLabel":"integer\u003cint64>"},"fees":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"fee_amount":{"type":"integer","format":"int64","description":"Amount of the fee in cents.","uniqueKey":"payments.items.[INDEX].oneOf.1.fees.oneOf.0.items.[INDEX].fee_amount","typeLabel":"integer\u003cint64>"},"description":{"type":"string","description":"Description of the fee.","uniqueKey":"payments.items.[INDEX].oneOf.1.fees.oneOf.0.items.[INDEX].description","typeLabel":"string"},"account":{"oneOf":[{"type":"object","title":"Account ID","description":"[Account identifier](/api-reference/ledger/account-identifier) to which the fee should be allocated.","properties":{"type":{"type":"string","description":"Resource type. Value will be `AccountId`.","example":"AccountId","uniqueKey":"payments.items.[INDEX].oneOf.1.fees.oneOf.0.items.[INDEX].account.oneOf.0.type","typeLabel":"string"},"id":{"type":"string","format":"uuid","description":"ID of the account","uniqueKey":"payments.items.[INDEX].oneOf.1.fees.oneOf.0.items.[INDEX].account.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"payments.items.[INDEX].oneOf.1.fees.oneOf.0.items.[INDEX].account.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"[Account identifier](/api-reference/ledger/account-identifier) to which the fee should be allocated.","properties":{"type":{"type":"string","description":"Resource type. Value will be `StableName`.","example":"StableName","uniqueKey":"payments.items.[INDEX].oneOf.1.fees.oneOf.0.items.[INDEX].account.oneOf.1.type","typeLabel":"string"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account","uniqueKey":"payments.items.[INDEX].oneOf.1.fees.oneOf.0.items.[INDEX].account.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"payments.items.[INDEX].oneOf.1.fees.oneOf.0.items.[INDEX].account.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"payments.items.[INDEX].oneOf.1.fees.oneOf.0.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. 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].oneOf.1.fees.oneOf.0.items.[INDEX].is_passed_to_customer","typeLabel":"boolean"}},"uniqueKey":"payments.items.[INDEX].oneOf.1.fees.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"List of fees associated with this payment. These fees will be the ledger source of truth for any payments that aren't explicitly created with the invoice payments api with a matching `external_id`. If specified, fee totals must equal the total fees on any invoice with a matching payment `external_id`. If fees are specified on a payment `external_id` on both the payout and through the payment API, the payment object takes precedence.","uniqueKey":"payments.items.[INDEX].oneOf.1.fees.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"fee_amount":{"type":"integer","format":"int64","description":"Amount of the fee in cents."},"description":{"type":"string","description":"Description of the fee."},"account":{"oneOf":[{"type":"object","title":"Account ID","description":"[Account identifier](/api-reference/ledger/account-identifier) to which the fee should be allocated.","properties":{"type":{"type":"string","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 identifier](/api-reference/ledger/account-identifier) to which the fee should be allocated.","properties":{"type":{"type":"string","description":"Resource type. Value will be `StableName`.","example":"StableName"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account"}}}]},"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."}}},"description":"List of fees associated with this payment. These fees will be the ledger source of truth for any payments that aren't explicitly created with the invoice payments api with a matching `external_id`. If specified, fee totals must equal the total fees on any invoice with a matching payment `external_id`. If fees are specified on a payment `external_id` on both the payout and through the payment API, the payment object takes precedence.","uniqueKey":"payments.items.[INDEX].oneOf.1.fees.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].oneOf.1.fees","typeLabel":"object[] | null"},"payment_paid_at":{"oneOf":[{"type":"string","format":"date-time","description":"Timestamp of when the original payment was completed.","uniqueKey":"payments.items.[INDEX].oneOf.1.payment_paid_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Timestamp of when the original payment was completed.","uniqueKey":"payments.items.[INDEX].oneOf.1.payment_paid_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].oneOf.1.payment_paid_at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"payments.items.[INDEX].oneOf.1","typeLabel":"Create new payment and invoice · object"}],"uniqueKey":"payments.items.[INDEX]","typeLabel":"Reference existing payment · object | Create new payment and invoice · object"},"description":"List of invoice payments to associate with the payout. Can refer to existing payments by ID or external ID. Alternatively, you can create new payments by specifying the payment amount and payment external ID.","isRequired":true,"uniqueKey":"payments","typeLabel":"(Reference existing payment · object | Create new payment and invoice · object)[]"},"additional_refunds_amount":{"type":"integer","format":"int64","description":"The amount of additional refunds associated with the payout, in cents. This should only be used when refunds cannot be individually itemized in the `refunds` array. Should be expressed as a positive value.","default":0,"uniqueKey":"additional_refunds_amount","typeLabel":"integer\u003cint64>"},"processor":{"oneOf":[{"type":"string","enum":["STRIPE","PAYPAL","SHOPIFY","ADYEN","RAINFOREST"],"description":"Processor used to make the payment. If not null, every payment or refund associated with the payout must have the same processor","example":"STRIPE","uniqueKey":"processor.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["STRIPE","PAYPAL","SHOPIFY","ADYEN","RAINFOREST"],"description":"Processor used to make the payment. If not null, every payment or refund associated with the payout must have the same processor","example":"STRIPE","uniqueKey":"processor.oneOf.1","typeLabel":"null"}],"uniqueKey":"processor","typeLabel":"enum\u003cstring> | null"},"refunds":{"type":"array","items":{"oneOf":[{"type":"object","title":"Reference existing refund payment","properties":{"refund_id":{"type":"string","format":"uuid","description":"The ID of the refund to reference. Must have exactly one payment.","uniqueKey":"refunds.items.[INDEX].oneOf.0.refund_id","typeLabel":"string\u003cuuid>"},"refund_external_id":{"type":"string","description":"The external ID of the refund to reference. Must have exactly one payment.","uniqueKey":"refunds.items.[INDEX].oneOf.0.refund_external_id","typeLabel":"string"},"refund_payment_id":{"type":"string","format":"uuid","description":"The ID of the refund payment to reference.","uniqueKey":"refunds.items.[INDEX].oneOf.0.refund_payment_id","typeLabel":"string\u003cuuid>"},"refund_payment_external_id":{"type":"string","description":"The external ID of the refund payment to reference.","uniqueKey":"refunds.items.[INDEX].oneOf.0.refund_payment_external_id","typeLabel":"string"}},"uniqueKey":"refunds.items.[INDEX].oneOf.0","typeLabel":"Reference existing refund payment · object"},{"type":"object","title":"Create new refund with payment","description":"Contains details for initiating a refund in a payout transaction. It includes an external identifier and the refund amount.","required":["refund_external_id","amount"],"properties":{"refund_external_id":{"type":"string","description":"An external identifier for the refund transaction.","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.refund_external_id","typeLabel":"string"},"amount":{"type":"integer","format":"int64","description":"The amount of the refund in cents. This value must be positive.","isRequired":true,"uniqueKey":"refunds.items.[INDEX].oneOf.1.amount","typeLabel":"integer\u003cint64>"}},"uniqueKey":"refunds.items.[INDEX].oneOf.1","typeLabel":"Create new refund with payment · object"}],"uniqueKey":"refunds.items.[INDEX]","typeLabel":"Reference existing refund payment · object | Create new refund with payment · object"},"description":"List of refund payments to associate with the payout. Can refer to existing payments by ID or external ID, or by their refund's ID or external ID (so long as said refund has exactly one payment). Alternatively, you can create new refund payments by specifying the refund amount and refund external ID.","default":[],"uniqueKey":"refunds","typeLabel":"(Reference existing refund payment · object | Create new refund with payment · object)[]"},"other_transactions":{"type":"array","items":{"type":"object","required":["amount","direction","account","description"],"properties":{"amount":{"type":"integer","format":"int64","description":"Amount of the transaction, in cents. This amount must be a positive value.","isRequired":true,"uniqueKey":"other_transactions.items.[INDEX].amount","typeLabel":"integer\u003cint64>"},"direction":{"type":"string","enum":["CREDIT","DEBIT"],"description":"Direction of the transaction.","isRequired":true,"uniqueKey":"other_transactions.items.[INDEX].direction","typeLabel":"enum\u003cstring>"},"account":{"oneOf":[{"type":"object","title":"Account ID","description":"Account identifier for the transaction.","properties":{"type":{"type":"string","description":"Resource type. Value will be `AccountId`.","example":"AccountId","uniqueKey":"other_transactions.items.[INDEX].account.oneOf.0.type","typeLabel":"string"},"id":{"type":"string","format":"uuid","description":"ID of the account","uniqueKey":"other_transactions.items.[INDEX].account.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"isRequired":true,"uniqueKey":"other_transactions.items.[INDEX].account.oneOf.0","typeLabel":"Account ID · object"},{"type":"object","title":"Account Stable Name","description":"Account identifier for the transaction.","properties":{"type":{"type":"string","description":"Resource type. Value will be `StableName`.","example":"StableName","uniqueKey":"other_transactions.items.[INDEX].account.oneOf.1.type","typeLabel":"string"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account","uniqueKey":"other_transactions.items.[INDEX].account.oneOf.1.stable_name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"other_transactions.items.[INDEX].account.oneOf.1","typeLabel":"Account Stable Name · object"}],"isRequired":true,"uniqueKey":"other_transactions.items.[INDEX].account","typeLabel":"Account ID · object | Account Stable Name · object"},"description":{"type":"string","description":"Description of the transaction.","isRequired":true,"uniqueKey":"other_transactions.items.[INDEX].description","typeLabel":"string"},"external_id":{"oneOf":[{"type":"string","description":"External ID of the transaction in your system for linking purposes. **Idempotency key**.","uniqueKey":"other_transactions.items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"External ID of the transaction in your system for linking purposes. **Idempotency key**.","uniqueKey":"other_transactions.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"other_transactions.items.[INDEX].external_id","typeLabel":"string | null"}},"uniqueKey":"other_transactions.items.[INDEX]","typeLabel":"object"},"description":"A list of other transactions associated with the payout","uniqueKey":"other_transactions","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":"tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"The tag value (e.g., \"sales\", \"marketing\", \"engineering\")","example":"sales","isRequired":true,"uniqueKey":"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":"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":"tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"tags.items.[INDEX].value_display_name","typeLabel":"string | null"}},"required":["key","value"],"uniqueKey":"tags.items.[INDEX]","typeLabel":"object"},"uniqueKey":"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":"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":"memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"reference_number","typeLabel":"string | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"external_id":"payout-1234","paid_out_amount":123,"fee":123,"completed_at":"2023-11-07T05:31:56Z","payments":[{"invoice_payment_id":"efc07679-58fb-4509-9b69-05559f29b669","invoice_payment_external_id":"payment-31415"}],"additional_refunds_amount":0,"processor":"STRIPE","refunds":[],"other_transactions":[{"amount":123,"account":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"description":"\u003cstring>","external_id":"\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>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"141ba365-8df3-4eb4-b532-8f388da2d5a5":{"description":"Payout has been successfully updated or unchanged.","headers":{},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique ID for the Payout. **Idempotency key.**","uniqueKey":"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":"external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the payout in your system for linking purposes.","example":"payout-1234","uniqueKey":"external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"external_id","typeLabel":"string | null"},"business_id":{"type":"string","format":"uuid","description":"ID of the Business that generated the payout.","uniqueKey":"business_id","typeLabel":"string\u003cuuid>"},"paid_out_amount":{"type":"integer","format":"int64","description":"The amount of the payout, in cents","uniqueKey":"paid_out_amount","typeLabel":"integer\u003cint64>"},"fee":{"type":"integer","format":"int64","description":"The platform fee associated with the payout","uniqueKey":"fee","typeLabel":"integer\u003cint64>"},"processor":{"oneOf":[{"type":"string","enum":["STRIPE","PAYPAL","SHOPIFY","ADYEN","RAINFOREST"],"description":"Processor used to make the payment, if any. If not null, every payment or refund associated with the payout must have the same processor","example":"STRIPE","uniqueKey":"processor.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["STRIPE","PAYPAL","SHOPIFY","ADYEN","RAINFOREST"],"description":"Processor used to make the payment, if any. If not null, every payment or refund associated with the payout must have the same processor","example":"STRIPE","uniqueKey":"processor.oneOf.1","typeLabel":"null"}],"uniqueKey":"processor","typeLabel":"enum\u003cstring> | null"},"imported_at":{"type":"string","format":"date-time","description":"Timestamp of when the payout was imported","uniqueKey":"imported_at","typeLabel":"string\u003cdate-time>"},"completed_at":{"type":"string","format":"date-time","description":"Timestamp of when the payout was completed","uniqueKey":"completed_at","typeLabel":"string\u003cdate-time>"},"match":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Layer's UUID for the match","uniqueKey":"match.id","typeLabel":"string\u003cuuid>"},"match_type":{"type":"string","enum":["TRANSFER","INVOICE_PAYMENT","PAYOUT"],"description":"Type of the object to match","uniqueKey":"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":"match.bank_transaction.id","typeLabel":"string\u003cuuid>"},"date":{"type":"string","format":"date-time","description":"Timestamp when the transaction was created.","isRequired":true,"uniqueKey":"match.bank_transaction.date","typeLabel":"string\u003cdate-time>"},"amount":{"type":"integer","format":"int64","description":"Amount of the transaction, in cents.","isRequired":true,"uniqueKey":"match.bank_transaction.amount","typeLabel":"integer\u003cint64>"},"business_id":{"type":"string","format":"uuid","description":"UUID of the business the transaction is for","uniqueKey":"match.bank_transaction.business_id","typeLabel":"string\u003cuuid>"},"source":{"type":"string","enum":["UNIT","PLAID","API","STRIPE","CUSTOM"],"description":"Source of the bank transaction.","uniqueKey":"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":"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":"match.bank_transaction.source_account_id","typeLabel":"string"},"imported_at":{"type":"string","format":"date-time","description":"Timestamp when the transaction was imported.","uniqueKey":"match.bank_transaction.imported_at","typeLabel":"string\u003cdate-time>"},"direction":{"type":"string","enum":["CREDIT","DEBIT"],"description":"Direction of the transaction.","uniqueKey":"match.bank_transaction.direction","typeLabel":"enum\u003cstring>"},"counterparty_name":{"oneOf":[{"type":"string","description":"Name of the transaction counterparty","example":"WeWork","uniqueKey":"match.bank_transaction.counterparty_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Name of the transaction counterparty","example":"WeWork","uniqueKey":"match.bank_transaction.counterparty_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"match.bank_transaction.counterparty_name","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","description":"Description of the transaction.","example":"WeWork monthly rent payment","uniqueKey":"match.bank_transaction.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Description of the transaction.","example":"WeWork monthly rent payment","uniqueKey":"match.bank_transaction.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"match.bank_transaction.description","typeLabel":"string | null"},"account_name":{"oneOf":[{"type":"string","description":"Name of the bank account","example":"Plaid Checking","uniqueKey":"match.bank_transaction.account_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Name of the bank account","example":"Plaid Checking","uniqueKey":"match.bank_transaction.account_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"match.bank_transaction.account_name","typeLabel":"string | null"},"categorizationStatus":{"type":"string","enum":["PENDING","READY_FOR_INPUT","CATEGORIZED","SPLIT","LAYER_REVIEW","JOURNALING","MATCHED"],"description":"The status of the transaction’s categorization in Layer’s systems.","uniqueKey":"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":"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":"match.bank_transaction.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"match.bank_transaction.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"match.bank_transaction.reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"match.bank_transaction.reference_number","typeLabel":"string | null"}},"uniqueKey":"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":"match.details.id","typeLabel":"string\u003cuuid>"},"amount":{"type":"integer","format":"int64","description":"Monetary amount of the matched transaction, in cents","isRequired":true,"uniqueKey":"match.details.amount","typeLabel":"integer\u003cint64>"},"date":{"type":"string","format":"date-time","description":"Date that the matched transaction occurred","isRequired":true,"uniqueKey":"match.details.date","typeLabel":"string\u003cdate-time>"},"description":{"oneOf":[{"type":"string","description":"Description of the match","example":"Transfer from SavingsAccount to CheckingAccount","uniqueKey":"match.details.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Description of the match","example":"Transfer from SavingsAccount to CheckingAccount","uniqueKey":"match.details.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"match.details.description","typeLabel":"string | null"}},"uniqueKey":"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":"match","typeLabel":"object"},"payments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the payment.","uniqueKey":"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":"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":"payments.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].external_id","typeLabel":"string | null"},"at":{"type":"string","format":"date-time","description":"Timestamp when the payment was completed.","uniqueKey":"payments.items.[INDEX].at","typeLabel":"string\u003cdate-time>"},"method":{"type":"string","enum":["CASH","CHECK","CREDIT_CARD","ACH","CREDIT_BALANCE","OTHER"],"description":"Payment method.","uniqueKey":"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":"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.","properties":{"type":{"type":"string","description":"Resource type. Value will be `AccountId`.","example":"AccountId","uniqueKey":"payments.items.[INDEX].prepayment_account.oneOf.0.type","typeLabel":"string"},"id":{"type":"string","format":"uuid","description":"ID of the account","uniqueKey":"payments.items.[INDEX].prepayment_account.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"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.","properties":{"type":{"type":"string","description":"Resource type. Value will be `StableName`.","example":"StableName","uniqueKey":"payments.items.[INDEX].prepayment_account.oneOf.1.type","typeLabel":"string"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account","uniqueKey":"payments.items.[INDEX].prepayment_account.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"payments.items.[INDEX].prepayment_account.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"payments.items.[INDEX].prepayment_account","typeLabel":"Account ID · object | Account Stable Name · object"},"payment_clearing_account":{"type":"object","properties":{"id":{"oneOf":[{"type":"object","title":"Account ID","description":"ID of the account","properties":{"type":{"type":"string","description":"Resource type. Value will be `AccountId`.","example":"AccountId","uniqueKey":"payments.items.[INDEX].payment_clearing_account.id.oneOf.0.type","typeLabel":"string"},"id":{"type":"string","format":"uuid","description":"ID of the account","uniqueKey":"payments.items.[INDEX].payment_clearing_account.id.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"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","properties":{"type":{"type":"string","description":"Resource type. Value will be `StableName`.","example":"StableName","uniqueKey":"payments.items.[INDEX].payment_clearing_account.id.oneOf.1.type","typeLabel":"string"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account","uniqueKey":"payments.items.[INDEX].payment_clearing_account.id.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"payments.items.[INDEX].payment_clearing_account.id.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"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":"payments.items.[INDEX].payment_clearing_account.name","typeLabel":"string"},"account_number":{"oneOf":[{"type":"string","description":"Account number if configured","example":"4000","uniqueKey":"payments.items.[INDEX].payment_clearing_account.account_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Account number if configured","example":"4000","uniqueKey":"payments.items.[INDEX].payment_clearing_account.account_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].payment_clearing_account.account_number","typeLabel":"string | null"},"stable_name":{"type":"object","properties":{"type":{"type":"string","description":"Resource type. Value will be `StableName`.","example":"StableName","uniqueKey":"payments.items.[INDEX].payment_clearing_account.stable_name.type","typeLabel":"string"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account","uniqueKey":"payments.items.[INDEX].payment_clearing_account.stable_name.stable_name","typeLabel":"string"}},"uniqueKey":"payments.items.[INDEX].payment_clearing_account.stable_name","typeLabel":"object"},"normality":{"type":"string","enum":["CREDIT","DEBIT"],"uniqueKey":"payments.items.[INDEX].payment_clearing_account.normality","typeLabel":"enum\u003cstring>"},"account_type":{"type":"object","properties":{"value":{"type":"string","enum":["ASSET","LIABILITY","EQUITY","REVENUE","COGS","EXPENSE"],"description":"Type of the account","uniqueKey":"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":"payments.items.[INDEX].payment_clearing_account.account_type.display_name","typeLabel":"string"}},"uniqueKey":"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"],"uniqueKey":"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":"payments.items.[INDEX].payment_clearing_account.account_subtype.display_name","typeLabel":"string"}},"uniqueKey":"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":"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":"payments.items.[INDEX].additional_fees.items.[INDEX].fee_amount","typeLabel":"integer\u003cint64>"},"description":{"type":"string","description":"Description of the fee.","uniqueKey":"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.","properties":{"type":{"type":"string","description":"Resource type. Value will be `AccountId`.","example":"AccountId","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].account.oneOf.0.type","typeLabel":"string"},"id":{"type":"string","format":"uuid","description":"ID of the account","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].account.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"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.","properties":{"type":{"type":"string","description":"Resource type. Value will be `StableName`.","example":"StableName","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].account.oneOf.1.type","typeLabel":"string"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].account.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].account.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"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":"payments.items.[INDEX].additional_fees.items.[INDEX].is_passed_to_customer","typeLabel":"boolean"}},"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX]","typeLabel":"object"},"description":"List of additional fees associated with this payment.","uniqueKey":"payments.items.[INDEX].additional_fees","typeLabel":"object[]"},"amount":{"type":"integer","format":"int64","description":"Customer payment amount, in cents.","uniqueKey":"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. ","example":"STRIPE","uniqueKey":"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. ","example":"STRIPE","uniqueKey":"payments.items.[INDEX].processor.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].processor","typeLabel":"string | null"},"imported_at":{"type":"string","format":"date-time","description":"Timestamp when the payment was imported into Layer.","uniqueKey":"payments.items.[INDEX].imported_at","typeLabel":"string\u003cdate-time>"},"allocations":{"type":"array","items":{"type":"object","properties":{"invoice_id":{"type":"string","format":"uuid","description":"ID of the invoice.","uniqueKey":"payments.items.[INDEX].allocations.items.[INDEX].invoice_id","typeLabel":"string\u003cuuid>"},"payment_id":{"type":"string","format":"uuid","description":"ID of the payment.","uniqueKey":"payments.items.[INDEX].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":"payments.items.[INDEX].allocations.items.[INDEX].amount","typeLabel":"integer\u003cint64>"},"transaction_tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID for the tag","isRequired":true,"uniqueKey":"payments.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":"payments.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":"payments.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":"payments.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":"payments.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":"payments.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":"payments.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.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":"payments.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":"payments.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.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":"payments.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":"payments.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.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":"payments.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX]","typeLabel":"object"},"description":"List of tags on the transaction associated with the payment allocation","uniqueKey":"payments.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 invoice payment allocation (for example, to display to end users).","uniqueKey":"payments.items.[INDEX].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":"payments.items.[INDEX].allocations.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.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":"payments.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":"payments.items.[INDEX].allocations.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.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 invoice payment allocation.","uniqueKey":"payments.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 invoice payment allocation.","uniqueKey":"payments.items.[INDEX].allocations.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].allocations.items.[INDEX].reference_number","typeLabel":"string | null"}},"uniqueKey":"payments.items.[INDEX].allocations.items.[INDEX]","typeLabel":"object"},"description":"List of payment allocations associated with this payment.","uniqueKey":"payments.items.[INDEX].allocations","typeLabel":"object[]"},"refund_allocations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the refund allocation.","uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"invoice_id":{"oneOf":[{"type":"string","format":"uuid","description":"ID of the invoice this allocation is associated with.","uniqueKey":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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","properties":{"type":{"type":"string","description":"Resource type. Value will be `AccountId`.","example":"AccountId","uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.0.type","typeLabel":"string"},"id":{"type":"string","format":"uuid","description":"ID of the account","uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"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","properties":{"type":{"type":"string","description":"Resource type. Value will be `StableName`.","example":"StableName","uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.1.type","typeLabel":"string"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account","uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_line_item_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_line_item_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_payment_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_payment_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_payment_external_id","typeLabel":"string | null"},"customer":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the customer.","uniqueKey":"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":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.individual_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.company_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Name of the company customer.","uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.company_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.company_name","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","description":"Email address of the customer.","uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.email.oneOf.0","typeLabel":"string"},{"type":"null","description":"Email address of the customer.","uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.email.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.mobile_phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Mobile phone number of the customer.","uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.mobile_phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.office_phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Office phone number of the customer.","uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.office_phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.office_phone","typeLabel":"string | null"},"address_string":{"oneOf":[{"type":"string","description":"Address of the customer.","uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.address_string.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address of the customer.","uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.address_string.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"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":"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":"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":"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":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX]","typeLabel":"object"},"uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags","typeLabel":"object[]"}},"uniqueKey":"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":"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":"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":"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":"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":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX]","typeLabel":"object"},"uniqueKey":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].reference_number","typeLabel":"string | null"}},"uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX]","typeLabel":"object"},"description":"Refund allocations associated with this invoice payment","example":[],"uniqueKey":"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":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].fee","typeLabel":"integer\u003cint64>"},"processor":{"type":"string","enum":["STRIPE","PAYPAL","SHOPIFY","ADYEN","RAINFOREST"],"description":"Processor used to make the payment, if any. Any processor name can be provided and will be tracked. ","example":"STRIPE","uniqueKey":"payments.items.[INDEX].payouts.items.[INDEX].processor","typeLabel":"enum\u003cstring>"},"imported_at":{"type":"string","format":"date-time","description":"Timestamp of when the payout was imported","uniqueKey":"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":"payments.items.[INDEX].payouts.items.[INDEX].completed_at","typeLabel":"string\u003cdate-time>"},"match":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Layer's UUID for the match","uniqueKey":"payments.items.[INDEX].payouts.items.[INDEX].match.id","typeLabel":"string\u003cuuid>"},"match_type":{"type":"string","enum":["TRANSFER","INVOICE_PAYMENT","PAYOUT"],"description":"Type of the object to match","uniqueKey":"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":"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":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.business_id","typeLabel":"string\u003cuuid>"},"source":{"type":"string","enum":["UNIT","PLAID","API","STRIPE","CUSTOM"],"description":"Source of the bank transaction.","uniqueKey":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.source_account_id","typeLabel":"string"},"imported_at":{"type":"string","format":"date-time","description":"Timestamp when the transaction was imported.","uniqueKey":"payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.imported_at","typeLabel":"string\u003cdate-time>"},"direction":{"type":"string","enum":["CREDIT","DEBIT"],"description":"Direction of the transaction.","uniqueKey":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.counterparty_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.account_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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"],"description":"The status of the transaction’s categorization in Layer’s systems.","uniqueKey":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.reference_number","typeLabel":"string | null"}},"uniqueKey":"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":"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":"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":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].match.details.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].payouts.items.[INDEX].match.details.description","typeLabel":"string | null"}},"uniqueKey":"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":"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":"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":"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":"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":"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":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"payments.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX]","typeLabel":"object"},"description":"A list of tags associated with the payout","uniqueKey":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].payouts.items.[INDEX].reference_number","typeLabel":"string | null"}},"uniqueKey":"payments.items.[INDEX].payouts.items.[INDEX]","typeLabel":"object"},"description":"Payouts associated with this payment.","uniqueKey":"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":"payments.items.[INDEX].transaction_tags.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"key":{"type":"string","description":"Key for the tag","example":"ExampleTagKey","isRequired":true,"uniqueKey":"payments.items.[INDEX].transaction_tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Value for the tag","example":"ExampleTagValue","isRequired":true,"uniqueKey":"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":"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":"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":"payments.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag dimension","uniqueKey":"payments.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].transaction_tags.items.[INDEX].archived_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","key","value","dimension_id","definition_id"],"uniqueKey":"payments.items.[INDEX].transaction_tags.items.[INDEX]","typeLabel":"object"},"description":"List of tags associated with this transaction","example":[],"uniqueKey":"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":"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":"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 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].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].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 invoice payment. Can be used to filter when listing invoice payments.","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 invoice payment. Can be used to filter when listing invoice payments.","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":"A list of invoice payments associated with the payout","uniqueKey":"payments","typeLabel":"object[]"},"refunds":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the refund.","uniqueKey":"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":"refunds.items.[INDEX].external_id","typeLabel":"string"},"refunded_amount":{"type":"integer","format":"int64","description":"Amount refunded to the customer in cents.","uniqueKey":"refunds.items.[INDEX].refunded_amount","typeLabel":"integer\u003cint64>"},"status":{"type":"string","description":"Status of the refund.","example":"PAID","uniqueKey":"refunds.items.[INDEX].status","typeLabel":"string"},"completed_at":{"type":"string","format":"date-time","description":"Time when the refund was completed.","uniqueKey":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"invoice_id":{"oneOf":[{"type":"string","format":"uuid","description":"ID of the invoice this allocation is associated with.","uniqueKey":"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":"refunds.items.[INDEX].allocations.items.[INDEX].invoice_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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","properties":{"type":{"type":"string","description":"Resource type. Value will be `AccountId`.","example":"AccountId","uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].account_identifier.oneOf.0.type","typeLabel":"string"},"id":{"type":"string","format":"uuid","description":"ID of the account","uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"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","properties":{"type":{"type":"string","description":"Resource type. Value will be `StableName`.","example":"StableName","uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].account_identifier.oneOf.1.type","typeLabel":"string"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account","uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].invoice_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].invoice_line_item_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].invoice_line_item_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].invoice_payment_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].invoice_payment_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].invoice_payment_external_id","typeLabel":"string | null"},"customer":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the customer.","uniqueKey":"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":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].customer.individual_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].customer.individual_name","typeLabel":"string | null"},"company_name":{"oneOf":[{"type":"string","description":"Name of the company customer.","uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].customer.company_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Name of the company customer.","uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].customer.company_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].customer.company_name","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","description":"Email address of the customer.","uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].customer.email.oneOf.0","typeLabel":"string"},{"type":"null","description":"Email address of the customer.","uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].customer.email.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].customer.email","typeLabel":"string | null"},"mobile_phone":{"oneOf":[{"type":"string","description":"Mobile phone number of the customer.","uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].customer.mobile_phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Mobile phone number of the customer.","uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].customer.mobile_phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"refunds.items.[INDEX].allocations.items.[INDEX].customer.office_phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Office phone number of the customer.","uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].customer.office_phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].customer.office_phone","typeLabel":"string | null"},"address_string":{"oneOf":[{"type":"string","description":"Address of the customer.","uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].customer.address_string.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address of the customer.","uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].customer.address_string.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].customer.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"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":"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":"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":"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":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"refunds.items.[INDEX].allocations.items.[INDEX].customer.transaction_tags.items.[INDEX]","typeLabel":"object"},"uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].customer.transaction_tags","typeLabel":"object[]"}},"uniqueKey":"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":"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":"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":"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":"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":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"refunds.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX]","typeLabel":"object"},"uniqueKey":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].reference_number","typeLabel":"string | null"}},"uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX]","typeLabel":"object"},"description":"Allocations associated with this refund.","uniqueKey":"refunds.items.[INDEX].allocations","typeLabel":"object[]"},"payments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the payment.","uniqueKey":"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":"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":"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":"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":"refunds.items.[INDEX].payments.items.[INDEX].fee.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"refunds.items.[INDEX].payments.items.[INDEX].completed_at","typeLabel":"string\u003cdate-time>"},"method":{"type":"string","description":"Method of the payment.","example":"CREDIT_CARD","uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].method","typeLabel":"string"},"processor":{"oneOf":[{"type":"string","description":"Processor used for the payment.","example":"STRIPE","uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].processor.oneOf.0","typeLabel":"string"},{"type":"null","description":"Processor used for the payment.","example":"STRIPE","uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].processor.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].processor","typeLabel":"string | null"},"payment_clearing_account":{"type":"object","properties":{"id":{"oneOf":[{"type":"object","title":"Account ID","description":"ID of the account","properties":{"type":{"type":"string","description":"Resource type. Value will be `AccountId`.","example":"AccountId","uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.id.oneOf.0.type","typeLabel":"string"},"id":{"type":"string","format":"uuid","description":"ID of the account","uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.id.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"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","properties":{"type":{"type":"string","description":"Resource type. Value will be `StableName`.","example":"StableName","uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.id.oneOf.1.type","typeLabel":"string"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account","uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.id.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.id.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"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":"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":"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":"refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.account_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.account_number","typeLabel":"string | null"},"stable_name":{"type":"object","properties":{"type":{"type":"string","description":"Resource type. Value will be `StableName`.","example":"StableName","uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.stable_name.type","typeLabel":"string"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account","uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.stable_name.stable_name","typeLabel":"string"}},"uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.stable_name","typeLabel":"object"},"normality":{"type":"string","enum":["CREDIT","DEBIT"],"uniqueKey":"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","COGS","EXPENSE"],"description":"Type of the account","uniqueKey":"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":"refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.account_type.display_name","typeLabel":"string"}},"uniqueKey":"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"],"uniqueKey":"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":"refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.account_subtype.display_name","typeLabel":"string"}},"uniqueKey":"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":"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","properties":{"type":{"type":"string","description":"Resource type. Value will be `AccountId`.","example":"AccountId","uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.0.type","typeLabel":"string"},"id":{"type":"string","format":"uuid","description":"ID of the account","uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"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","properties":{"type":{"type":"string","description":"Resource type. Value will be `StableName`.","example":"StableName","uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.1.type","typeLabel":"string"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account","uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].payments.items.[INDEX].refunded_payment_fees.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"refunds.items.[INDEX].payments.items.[INDEX].refunded_payment_fees.items.[INDEX].fee_amount","typeLabel":"integer\u003cint64>"}},"uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].refunded_payment_fees.items.[INDEX]","typeLabel":"object"},"uniqueKey":"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":"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":"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":"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":"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":"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":"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":"refunds.items.[INDEX].payments.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].payments.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].payments.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"refunds.items.[INDEX].payments.items.[INDEX].transaction_tags.items.[INDEX]","typeLabel":"object"},"uniqueKey":"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":"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":"refunds.items.[INDEX].payments.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].payments.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].payments.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"refunds.items.[INDEX].payments.items.[INDEX]","typeLabel":"object"},"description":"Payments associated with this refund.","uniqueKey":"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":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].fee","typeLabel":"integer\u003cint64>"},"processor":{"type":"string","enum":["STRIPE","PAYPAL","SHOPIFY","ADYEN","RAINFOREST"],"description":"Processor used to make the payment, if any. Any processor name can be provided and will be tracked. ","example":"STRIPE","uniqueKey":"refunds.items.[INDEX].payouts.items.[INDEX].processor","typeLabel":"enum\u003cstring>"},"imported_at":{"type":"string","format":"date-time","description":"Timestamp of when the payout was imported","uniqueKey":"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":"refunds.items.[INDEX].payouts.items.[INDEX].completed_at","typeLabel":"string\u003cdate-time>"},"match":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Layer's UUID for the match","uniqueKey":"refunds.items.[INDEX].payouts.items.[INDEX].match.id","typeLabel":"string\u003cuuid>"},"match_type":{"type":"string","enum":["TRANSFER","INVOICE_PAYMENT","PAYOUT"],"description":"Type of the object to match","uniqueKey":"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":"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":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.business_id","typeLabel":"string\u003cuuid>"},"source":{"type":"string","enum":["UNIT","PLAID","API","STRIPE","CUSTOM"],"description":"Source of the bank transaction.","uniqueKey":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.source_account_id","typeLabel":"string"},"imported_at":{"type":"string","format":"date-time","description":"Timestamp when the transaction was imported.","uniqueKey":"refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.imported_at","typeLabel":"string\u003cdate-time>"},"direction":{"type":"string","enum":["CREDIT","DEBIT"],"description":"Direction of the transaction.","uniqueKey":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.counterparty_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.account_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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"],"description":"The status of the transaction’s categorization in Layer’s systems.","uniqueKey":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.reference_number","typeLabel":"string | null"}},"uniqueKey":"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":"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":"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":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].match.details.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].payouts.items.[INDEX].match.details.description","typeLabel":"string | null"}},"uniqueKey":"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":"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":"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":"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":"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":"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":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"refunds.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX]","typeLabel":"object"},"description":"A list of tags associated with the payout","uniqueKey":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].payouts.items.[INDEX].reference_number","typeLabel":"string | null"}},"uniqueKey":"refunds.items.[INDEX].payouts.items.[INDEX]","typeLabel":"object"},"description":"Payouts associated with this refund.","uniqueKey":"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":"refunds.items.[INDEX].transaction_tags.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"key":{"type":"string","description":"Key for the tag","example":"ExampleTagKey","isRequired":true,"uniqueKey":"refunds.items.[INDEX].transaction_tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Value for the tag","example":"ExampleTagValue","isRequired":true,"uniqueKey":"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":"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":"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":"refunds.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag dimension","uniqueKey":"refunds.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].transaction_tags.items.[INDEX].archived_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","key","value","dimension_id","definition_id"],"uniqueKey":"refunds.items.[INDEX].transaction_tags.items.[INDEX]","typeLabel":"object"},"uniqueKey":"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":"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":"refunds.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"refunds.items.[INDEX]","typeLabel":"object"},"description":"A list of refunds associated with the payout","uniqueKey":"refunds","typeLabel":"object[]"},"transaction_tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID for the tag","isRequired":true,"uniqueKey":"transaction_tags.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"key":{"type":"string","description":"Key for the tag","example":"ExampleTagKey","isRequired":true,"uniqueKey":"transaction_tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Value for the tag","example":"ExampleTagValue","isRequired":true,"uniqueKey":"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":"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":"transaction_tags.items.[INDEX].definition_id","typeLabel":"string\u003cuuid>"},"dimension_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag dimension","uniqueKey":"transaction_tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag dimension","uniqueKey":"transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"transaction_tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag value definition","uniqueKey":"transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"transaction_tags.items.[INDEX].archived_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the tag was archived","uniqueKey":"transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"transaction_tags.items.[INDEX].archived_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","key","value","dimension_id","definition_id"],"uniqueKey":"transaction_tags.items.[INDEX]","typeLabel":"object"},"description":"A list of tags associated with the payout","uniqueKey":"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":"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":"memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"reference_number","typeLabel":"string | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"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","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}},"payments":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","external_id":"payment-1","at":"2023-11-07T05:31:56Z","method":"CASH","fee":123,"prepayment_account":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"payment_clearing_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":"CREDIT","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,"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","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":[{"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","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":{"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":[{"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":{"id":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"name":"Current Assets","account_number":"4000","stable_name":{"type":"StableName","stable_name":"CURRENT_ASSETS"},"normality":"CREDIT","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","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>"}],"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"},"833e5fbd-62f5-455f-8a1a-d08e29d82d21":{"description":"Payout successfully created.","headers":{},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique ID for the Payout. **Idempotency key.**","uniqueKey":"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":"external_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Unique ID of the payout in your system for linking purposes.","example":"payout-1234","uniqueKey":"external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"external_id","typeLabel":"string | null"},"business_id":{"type":"string","format":"uuid","description":"ID of the Business that generated the payout.","uniqueKey":"business_id","typeLabel":"string\u003cuuid>"},"paid_out_amount":{"type":"integer","format":"int64","description":"The amount of the payout, in cents","uniqueKey":"paid_out_amount","typeLabel":"integer\u003cint64>"},"fee":{"type":"integer","format":"int64","description":"The platform fee associated with the payout","uniqueKey":"fee","typeLabel":"integer\u003cint64>"},"processor":{"oneOf":[{"type":"string","enum":["STRIPE","PAYPAL","SHOPIFY","ADYEN","RAINFOREST"],"description":"Processor used to make the payment, if any. If not null, every payment or refund associated with the payout must have the same processor","example":"STRIPE","uniqueKey":"processor.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["STRIPE","PAYPAL","SHOPIFY","ADYEN","RAINFOREST"],"description":"Processor used to make the payment, if any. If not null, every payment or refund associated with the payout must have the same processor","example":"STRIPE","uniqueKey":"processor.oneOf.1","typeLabel":"null"}],"uniqueKey":"processor","typeLabel":"enum\u003cstring> | null"},"imported_at":{"type":"string","format":"date-time","description":"Timestamp of when the payout was imported","uniqueKey":"imported_at","typeLabel":"string\u003cdate-time>"},"completed_at":{"type":"string","format":"date-time","description":"Timestamp of when the payout was completed","uniqueKey":"completed_at","typeLabel":"string\u003cdate-time>"},"match":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Layer's UUID for the match","uniqueKey":"match.id","typeLabel":"string\u003cuuid>"},"match_type":{"type":"string","enum":["TRANSFER","INVOICE_PAYMENT","PAYOUT"],"description":"Type of the object to match","uniqueKey":"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":"match.bank_transaction.id","typeLabel":"string\u003cuuid>"},"date":{"type":"string","format":"date-time","description":"Timestamp when the transaction was created.","isRequired":true,"uniqueKey":"match.bank_transaction.date","typeLabel":"string\u003cdate-time>"},"amount":{"type":"integer","format":"int64","description":"Amount of the transaction, in cents.","isRequired":true,"uniqueKey":"match.bank_transaction.amount","typeLabel":"integer\u003cint64>"},"business_id":{"type":"string","format":"uuid","description":"UUID of the business the transaction is for","uniqueKey":"match.bank_transaction.business_id","typeLabel":"string\u003cuuid>"},"source":{"type":"string","enum":["UNIT","PLAID","API","STRIPE","CUSTOM"],"description":"Source of the bank transaction.","uniqueKey":"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":"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":"match.bank_transaction.source_account_id","typeLabel":"string"},"imported_at":{"type":"string","format":"date-time","description":"Timestamp when the transaction was imported.","uniqueKey":"match.bank_transaction.imported_at","typeLabel":"string\u003cdate-time>"},"direction":{"type":"string","enum":["CREDIT","DEBIT"],"description":"Direction of the transaction.","uniqueKey":"match.bank_transaction.direction","typeLabel":"enum\u003cstring>"},"counterparty_name":{"oneOf":[{"type":"string","description":"Name of the transaction counterparty","example":"WeWork","uniqueKey":"match.bank_transaction.counterparty_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Name of the transaction counterparty","example":"WeWork","uniqueKey":"match.bank_transaction.counterparty_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"match.bank_transaction.counterparty_name","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","description":"Description of the transaction.","example":"WeWork monthly rent payment","uniqueKey":"match.bank_transaction.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Description of the transaction.","example":"WeWork monthly rent payment","uniqueKey":"match.bank_transaction.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"match.bank_transaction.description","typeLabel":"string | null"},"account_name":{"oneOf":[{"type":"string","description":"Name of the bank account","example":"Plaid Checking","uniqueKey":"match.bank_transaction.account_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Name of the bank account","example":"Plaid Checking","uniqueKey":"match.bank_transaction.account_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"match.bank_transaction.account_name","typeLabel":"string | null"},"categorizationStatus":{"type":"string","enum":["PENDING","READY_FOR_INPUT","CATEGORIZED","SPLIT","LAYER_REVIEW","JOURNALING","MATCHED"],"description":"The status of the transaction’s categorization in Layer’s systems.","uniqueKey":"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":"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":"match.bank_transaction.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"match.bank_transaction.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"match.bank_transaction.reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"match.bank_transaction.reference_number","typeLabel":"string | null"}},"uniqueKey":"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":"match.details.id","typeLabel":"string\u003cuuid>"},"amount":{"type":"integer","format":"int64","description":"Monetary amount of the matched transaction, in cents","isRequired":true,"uniqueKey":"match.details.amount","typeLabel":"integer\u003cint64>"},"date":{"type":"string","format":"date-time","description":"Date that the matched transaction occurred","isRequired":true,"uniqueKey":"match.details.date","typeLabel":"string\u003cdate-time>"},"description":{"oneOf":[{"type":"string","description":"Description of the match","example":"Transfer from SavingsAccount to CheckingAccount","uniqueKey":"match.details.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Description of the match","example":"Transfer from SavingsAccount to CheckingAccount","uniqueKey":"match.details.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"match.details.description","typeLabel":"string | null"}},"uniqueKey":"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":"match","typeLabel":"object"},"payments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the payment.","uniqueKey":"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":"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":"payments.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].external_id","typeLabel":"string | null"},"at":{"type":"string","format":"date-time","description":"Timestamp when the payment was completed.","uniqueKey":"payments.items.[INDEX].at","typeLabel":"string\u003cdate-time>"},"method":{"type":"string","enum":["CASH","CHECK","CREDIT_CARD","ACH","CREDIT_BALANCE","OTHER"],"description":"Payment method.","uniqueKey":"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":"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.","properties":{"type":{"type":"string","description":"Resource type. Value will be `AccountId`.","example":"AccountId","uniqueKey":"payments.items.[INDEX].prepayment_account.oneOf.0.type","typeLabel":"string"},"id":{"type":"string","format":"uuid","description":"ID of the account","uniqueKey":"payments.items.[INDEX].prepayment_account.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"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.","properties":{"type":{"type":"string","description":"Resource type. Value will be `StableName`.","example":"StableName","uniqueKey":"payments.items.[INDEX].prepayment_account.oneOf.1.type","typeLabel":"string"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account","uniqueKey":"payments.items.[INDEX].prepayment_account.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"payments.items.[INDEX].prepayment_account.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"payments.items.[INDEX].prepayment_account","typeLabel":"Account ID · object | Account Stable Name · object"},"payment_clearing_account":{"type":"object","properties":{"id":{"oneOf":[{"type":"object","title":"Account ID","description":"ID of the account","properties":{"type":{"type":"string","description":"Resource type. Value will be `AccountId`.","example":"AccountId","uniqueKey":"payments.items.[INDEX].payment_clearing_account.id.oneOf.0.type","typeLabel":"string"},"id":{"type":"string","format":"uuid","description":"ID of the account","uniqueKey":"payments.items.[INDEX].payment_clearing_account.id.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"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","properties":{"type":{"type":"string","description":"Resource type. Value will be `StableName`.","example":"StableName","uniqueKey":"payments.items.[INDEX].payment_clearing_account.id.oneOf.1.type","typeLabel":"string"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account","uniqueKey":"payments.items.[INDEX].payment_clearing_account.id.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"payments.items.[INDEX].payment_clearing_account.id.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"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":"payments.items.[INDEX].payment_clearing_account.name","typeLabel":"string"},"account_number":{"oneOf":[{"type":"string","description":"Account number if configured","example":"4000","uniqueKey":"payments.items.[INDEX].payment_clearing_account.account_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Account number if configured","example":"4000","uniqueKey":"payments.items.[INDEX].payment_clearing_account.account_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].payment_clearing_account.account_number","typeLabel":"string | null"},"stable_name":{"type":"object","properties":{"type":{"type":"string","description":"Resource type. Value will be `StableName`.","example":"StableName","uniqueKey":"payments.items.[INDEX].payment_clearing_account.stable_name.type","typeLabel":"string"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account","uniqueKey":"payments.items.[INDEX].payment_clearing_account.stable_name.stable_name","typeLabel":"string"}},"uniqueKey":"payments.items.[INDEX].payment_clearing_account.stable_name","typeLabel":"object"},"normality":{"type":"string","enum":["CREDIT","DEBIT"],"uniqueKey":"payments.items.[INDEX].payment_clearing_account.normality","typeLabel":"enum\u003cstring>"},"account_type":{"type":"object","properties":{"value":{"type":"string","enum":["ASSET","LIABILITY","EQUITY","REVENUE","COGS","EXPENSE"],"description":"Type of the account","uniqueKey":"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":"payments.items.[INDEX].payment_clearing_account.account_type.display_name","typeLabel":"string"}},"uniqueKey":"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"],"uniqueKey":"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":"payments.items.[INDEX].payment_clearing_account.account_subtype.display_name","typeLabel":"string"}},"uniqueKey":"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":"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":"payments.items.[INDEX].additional_fees.items.[INDEX].fee_amount","typeLabel":"integer\u003cint64>"},"description":{"type":"string","description":"Description of the fee.","uniqueKey":"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.","properties":{"type":{"type":"string","description":"Resource type. Value will be `AccountId`.","example":"AccountId","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].account.oneOf.0.type","typeLabel":"string"},"id":{"type":"string","format":"uuid","description":"ID of the account","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].account.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"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.","properties":{"type":{"type":"string","description":"Resource type. Value will be `StableName`.","example":"StableName","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].account.oneOf.1.type","typeLabel":"string"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account","uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].account.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX].account.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"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":"payments.items.[INDEX].additional_fees.items.[INDEX].is_passed_to_customer","typeLabel":"boolean"}},"uniqueKey":"payments.items.[INDEX].additional_fees.items.[INDEX]","typeLabel":"object"},"description":"List of additional fees associated with this payment.","uniqueKey":"payments.items.[INDEX].additional_fees","typeLabel":"object[]"},"amount":{"type":"integer","format":"int64","description":"Customer payment amount, in cents.","uniqueKey":"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. ","example":"STRIPE","uniqueKey":"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. ","example":"STRIPE","uniqueKey":"payments.items.[INDEX].processor.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].processor","typeLabel":"string | null"},"imported_at":{"type":"string","format":"date-time","description":"Timestamp when the payment was imported into Layer.","uniqueKey":"payments.items.[INDEX].imported_at","typeLabel":"string\u003cdate-time>"},"allocations":{"type":"array","items":{"type":"object","properties":{"invoice_id":{"type":"string","format":"uuid","description":"ID of the invoice.","uniqueKey":"payments.items.[INDEX].allocations.items.[INDEX].invoice_id","typeLabel":"string\u003cuuid>"},"payment_id":{"type":"string","format":"uuid","description":"ID of the payment.","uniqueKey":"payments.items.[INDEX].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":"payments.items.[INDEX].allocations.items.[INDEX].amount","typeLabel":"integer\u003cint64>"},"transaction_tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID for the tag","isRequired":true,"uniqueKey":"payments.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":"payments.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":"payments.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":"payments.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":"payments.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":"payments.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":"payments.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.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":"payments.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":"payments.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.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":"payments.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":"payments.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.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":"payments.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX]","typeLabel":"object"},"description":"List of tags on the transaction associated with the payment allocation","uniqueKey":"payments.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 invoice payment allocation (for example, to display to end users).","uniqueKey":"payments.items.[INDEX].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":"payments.items.[INDEX].allocations.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.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":"payments.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":"payments.items.[INDEX].allocations.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.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 invoice payment allocation.","uniqueKey":"payments.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 invoice payment allocation.","uniqueKey":"payments.items.[INDEX].allocations.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].allocations.items.[INDEX].reference_number","typeLabel":"string | null"}},"uniqueKey":"payments.items.[INDEX].allocations.items.[INDEX]","typeLabel":"object"},"description":"List of payment allocations associated with this payment.","uniqueKey":"payments.items.[INDEX].allocations","typeLabel":"object[]"},"refund_allocations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the refund allocation.","uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"invoice_id":{"oneOf":[{"type":"string","format":"uuid","description":"ID of the invoice this allocation is associated with.","uniqueKey":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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","properties":{"type":{"type":"string","description":"Resource type. Value will be `AccountId`.","example":"AccountId","uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.0.type","typeLabel":"string"},"id":{"type":"string","format":"uuid","description":"ID of the account","uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"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","properties":{"type":{"type":"string","description":"Resource type. Value will be `StableName`.","example":"StableName","uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.1.type","typeLabel":"string"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account","uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_line_item_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_line_item_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_payment_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_payment_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].invoice_payment_external_id","typeLabel":"string | null"},"customer":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the customer.","uniqueKey":"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":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.individual_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.company_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Name of the company customer.","uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.company_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.company_name","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","description":"Email address of the customer.","uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.email.oneOf.0","typeLabel":"string"},{"type":"null","description":"Email address of the customer.","uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.email.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.mobile_phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Mobile phone number of the customer.","uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.mobile_phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.office_phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Office phone number of the customer.","uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.office_phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.office_phone","typeLabel":"string | null"},"address_string":{"oneOf":[{"type":"string","description":"Address of the customer.","uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.address_string.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address of the customer.","uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.address_string.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"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":"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":"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":"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":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags.items.[INDEX]","typeLabel":"object"},"uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].customer.transaction_tags","typeLabel":"object[]"}},"uniqueKey":"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":"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":"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":"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":"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":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].transaction_tags.items.[INDEX]","typeLabel":"object"},"uniqueKey":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].refund_allocations.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX].reference_number","typeLabel":"string | null"}},"uniqueKey":"payments.items.[INDEX].refund_allocations.items.[INDEX]","typeLabel":"object"},"description":"Refund allocations associated with this invoice payment","example":[],"uniqueKey":"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":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].fee","typeLabel":"integer\u003cint64>"},"processor":{"type":"string","enum":["STRIPE","PAYPAL","SHOPIFY","ADYEN","RAINFOREST"],"description":"Processor used to make the payment, if any. Any processor name can be provided and will be tracked. ","example":"STRIPE","uniqueKey":"payments.items.[INDEX].payouts.items.[INDEX].processor","typeLabel":"enum\u003cstring>"},"imported_at":{"type":"string","format":"date-time","description":"Timestamp of when the payout was imported","uniqueKey":"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":"payments.items.[INDEX].payouts.items.[INDEX].completed_at","typeLabel":"string\u003cdate-time>"},"match":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Layer's UUID for the match","uniqueKey":"payments.items.[INDEX].payouts.items.[INDEX].match.id","typeLabel":"string\u003cuuid>"},"match_type":{"type":"string","enum":["TRANSFER","INVOICE_PAYMENT","PAYOUT"],"description":"Type of the object to match","uniqueKey":"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":"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":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.business_id","typeLabel":"string\u003cuuid>"},"source":{"type":"string","enum":["UNIT","PLAID","API","STRIPE","CUSTOM"],"description":"Source of the bank transaction.","uniqueKey":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.source_account_id","typeLabel":"string"},"imported_at":{"type":"string","format":"date-time","description":"Timestamp when the transaction was imported.","uniqueKey":"payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.imported_at","typeLabel":"string\u003cdate-time>"},"direction":{"type":"string","enum":["CREDIT","DEBIT"],"description":"Direction of the transaction.","uniqueKey":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.counterparty_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.account_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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"],"description":"The status of the transaction’s categorization in Layer’s systems.","uniqueKey":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.reference_number","typeLabel":"string | null"}},"uniqueKey":"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":"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":"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":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].match.details.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].payouts.items.[INDEX].match.details.description","typeLabel":"string | null"}},"uniqueKey":"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":"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":"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":"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":"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":"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":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"payments.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX]","typeLabel":"object"},"description":"A list of tags associated with the payout","uniqueKey":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].payouts.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].payouts.items.[INDEX].reference_number","typeLabel":"string | null"}},"uniqueKey":"payments.items.[INDEX].payouts.items.[INDEX]","typeLabel":"object"},"description":"Payouts associated with this payment.","uniqueKey":"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":"payments.items.[INDEX].transaction_tags.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"key":{"type":"string","description":"Key for the tag","example":"ExampleTagKey","isRequired":true,"uniqueKey":"payments.items.[INDEX].transaction_tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Value for the tag","example":"ExampleTagValue","isRequired":true,"uniqueKey":"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":"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":"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":"payments.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag dimension","uniqueKey":"payments.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"payments.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"payments.items.[INDEX].transaction_tags.items.[INDEX].archived_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","key","value","dimension_id","definition_id"],"uniqueKey":"payments.items.[INDEX].transaction_tags.items.[INDEX]","typeLabel":"object"},"description":"List of tags associated with this transaction","example":[],"uniqueKey":"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":"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":"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 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].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].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 invoice payment. Can be used to filter when listing invoice payments.","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 invoice payment. Can be used to filter when listing invoice payments.","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":"A list of invoice payments associated with the payout","uniqueKey":"payments","typeLabel":"object[]"},"refunds":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the refund.","uniqueKey":"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":"refunds.items.[INDEX].external_id","typeLabel":"string"},"refunded_amount":{"type":"integer","format":"int64","description":"Amount refunded to the customer in cents.","uniqueKey":"refunds.items.[INDEX].refunded_amount","typeLabel":"integer\u003cint64>"},"status":{"type":"string","description":"Status of the refund.","example":"PAID","uniqueKey":"refunds.items.[INDEX].status","typeLabel":"string"},"completed_at":{"type":"string","format":"date-time","description":"Time when the refund was completed.","uniqueKey":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"invoice_id":{"oneOf":[{"type":"string","format":"uuid","description":"ID of the invoice this allocation is associated with.","uniqueKey":"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":"refunds.items.[INDEX].allocations.items.[INDEX].invoice_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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","properties":{"type":{"type":"string","description":"Resource type. Value will be `AccountId`.","example":"AccountId","uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].account_identifier.oneOf.0.type","typeLabel":"string"},"id":{"type":"string","format":"uuid","description":"ID of the account","uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].account_identifier.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"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","properties":{"type":{"type":"string","description":"Resource type. Value will be `StableName`.","example":"StableName","uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].account_identifier.oneOf.1.type","typeLabel":"string"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account","uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].account_identifier.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].account_identifier.oneOf.1","typeLabel":"Account Stable Name · object"},{"type":"null","uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].account_identifier.oneOf.2","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].invoice_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].invoice_line_item_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].invoice_line_item_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].invoice_payment_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].invoice_payment_external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].invoice_payment_external_id","typeLabel":"string | null"},"customer":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the customer.","uniqueKey":"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":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].customer.individual_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].customer.individual_name","typeLabel":"string | null"},"company_name":{"oneOf":[{"type":"string","description":"Name of the company customer.","uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].customer.company_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Name of the company customer.","uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].customer.company_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].customer.company_name","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","description":"Email address of the customer.","uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].customer.email.oneOf.0","typeLabel":"string"},{"type":"null","description":"Email address of the customer.","uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].customer.email.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].customer.email","typeLabel":"string | null"},"mobile_phone":{"oneOf":[{"type":"string","description":"Mobile phone number of the customer.","uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].customer.mobile_phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Mobile phone number of the customer.","uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].customer.mobile_phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"refunds.items.[INDEX].allocations.items.[INDEX].customer.office_phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Office phone number of the customer.","uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].customer.office_phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].customer.office_phone","typeLabel":"string | null"},"address_string":{"oneOf":[{"type":"string","description":"Address of the customer.","uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].customer.address_string.oneOf.0","typeLabel":"string"},{"type":"null","description":"Address of the customer.","uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].customer.address_string.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].customer.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"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":"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":"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":"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":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].customer.transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"refunds.items.[INDEX].allocations.items.[INDEX].customer.transaction_tags.items.[INDEX]","typeLabel":"object"},"uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].customer.transaction_tags","typeLabel":"object[]"}},"uniqueKey":"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":"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":"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":"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":"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":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"refunds.items.[INDEX].allocations.items.[INDEX].transaction_tags.items.[INDEX]","typeLabel":"object"},"uniqueKey":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].allocations.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX].reference_number","typeLabel":"string | null"}},"uniqueKey":"refunds.items.[INDEX].allocations.items.[INDEX]","typeLabel":"object"},"description":"Allocations associated with this refund.","uniqueKey":"refunds.items.[INDEX].allocations","typeLabel":"object[]"},"payments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the payment.","uniqueKey":"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":"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":"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":"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":"refunds.items.[INDEX].payments.items.[INDEX].fee.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"refunds.items.[INDEX].payments.items.[INDEX].completed_at","typeLabel":"string\u003cdate-time>"},"method":{"type":"string","description":"Method of the payment.","example":"CREDIT_CARD","uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].method","typeLabel":"string"},"processor":{"oneOf":[{"type":"string","description":"Processor used for the payment.","example":"STRIPE","uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].processor.oneOf.0","typeLabel":"string"},{"type":"null","description":"Processor used for the payment.","example":"STRIPE","uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].processor.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].processor","typeLabel":"string | null"},"payment_clearing_account":{"type":"object","properties":{"id":{"oneOf":[{"type":"object","title":"Account ID","description":"ID of the account","properties":{"type":{"type":"string","description":"Resource type. Value will be `AccountId`.","example":"AccountId","uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.id.oneOf.0.type","typeLabel":"string"},"id":{"type":"string","format":"uuid","description":"ID of the account","uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.id.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"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","properties":{"type":{"type":"string","description":"Resource type. Value will be `StableName`.","example":"StableName","uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.id.oneOf.1.type","typeLabel":"string"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account","uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.id.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.id.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"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":"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":"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":"refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.account_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.account_number","typeLabel":"string | null"},"stable_name":{"type":"object","properties":{"type":{"type":"string","description":"Resource type. Value will be `StableName`.","example":"StableName","uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.stable_name.type","typeLabel":"string"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account","uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.stable_name.stable_name","typeLabel":"string"}},"uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.stable_name","typeLabel":"object"},"normality":{"type":"string","enum":["CREDIT","DEBIT"],"uniqueKey":"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","COGS","EXPENSE"],"description":"Type of the account","uniqueKey":"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":"refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.account_type.display_name","typeLabel":"string"}},"uniqueKey":"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"],"uniqueKey":"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":"refunds.items.[INDEX].payments.items.[INDEX].payment_clearing_account.account_subtype.display_name","typeLabel":"string"}},"uniqueKey":"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":"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","properties":{"type":{"type":"string","description":"Resource type. Value will be `AccountId`.","example":"AccountId","uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.0.type","typeLabel":"string"},"id":{"type":"string","format":"uuid","description":"ID of the account","uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.0.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"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","properties":{"type":{"type":"string","description":"Resource type. Value will be `StableName`.","example":"StableName","uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.1.type","typeLabel":"string"},"stable_name":{"type":"string","example":"CURRENT_ASSETS","description":"Stable name of the account","uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.1.stable_name","typeLabel":"string"}},"uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].refunded_payment_fees.items.[INDEX].account.oneOf.1","typeLabel":"Account Stable Name · object"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].payments.items.[INDEX].refunded_payment_fees.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"refunds.items.[INDEX].payments.items.[INDEX].refunded_payment_fees.items.[INDEX].fee_amount","typeLabel":"integer\u003cint64>"}},"uniqueKey":"refunds.items.[INDEX].payments.items.[INDEX].refunded_payment_fees.items.[INDEX]","typeLabel":"object"},"uniqueKey":"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":"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":"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":"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":"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":"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":"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":"refunds.items.[INDEX].payments.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].payments.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].payments.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"refunds.items.[INDEX].payments.items.[INDEX].transaction_tags.items.[INDEX]","typeLabel":"object"},"uniqueKey":"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":"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":"refunds.items.[INDEX].payments.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].payments.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].payments.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"refunds.items.[INDEX].payments.items.[INDEX]","typeLabel":"object"},"description":"Payments associated with this refund.","uniqueKey":"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":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].fee","typeLabel":"integer\u003cint64>"},"processor":{"type":"string","enum":["STRIPE","PAYPAL","SHOPIFY","ADYEN","RAINFOREST"],"description":"Processor used to make the payment, if any. Any processor name can be provided and will be tracked. ","example":"STRIPE","uniqueKey":"refunds.items.[INDEX].payouts.items.[INDEX].processor","typeLabel":"enum\u003cstring>"},"imported_at":{"type":"string","format":"date-time","description":"Timestamp of when the payout was imported","uniqueKey":"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":"refunds.items.[INDEX].payouts.items.[INDEX].completed_at","typeLabel":"string\u003cdate-time>"},"match":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Layer's UUID for the match","uniqueKey":"refunds.items.[INDEX].payouts.items.[INDEX].match.id","typeLabel":"string\u003cuuid>"},"match_type":{"type":"string","enum":["TRANSFER","INVOICE_PAYMENT","PAYOUT"],"description":"Type of the object to match","uniqueKey":"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":"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":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.business_id","typeLabel":"string\u003cuuid>"},"source":{"type":"string","enum":["UNIT","PLAID","API","STRIPE","CUSTOM"],"description":"Source of the bank transaction.","uniqueKey":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.source_account_id","typeLabel":"string"},"imported_at":{"type":"string","format":"date-time","description":"Timestamp when the transaction was imported.","uniqueKey":"refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.imported_at","typeLabel":"string\u003cdate-time>"},"direction":{"type":"string","enum":["CREDIT","DEBIT"],"description":"Direction of the transaction.","uniqueKey":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.counterparty_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.account_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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"],"description":"The status of the transaction’s categorization in Layer’s systems.","uniqueKey":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].payouts.items.[INDEX].match.bank_transaction.reference_number","typeLabel":"string | null"}},"uniqueKey":"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":"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":"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":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].match.details.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].payouts.items.[INDEX].match.details.description","typeLabel":"string | null"}},"uniqueKey":"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":"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":"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":"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":"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":"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":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"refunds.items.[INDEX].payouts.items.[INDEX].transaction_tags.items.[INDEX]","typeLabel":"object"},"description":"A list of tags associated with the payout","uniqueKey":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].payouts.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].payouts.items.[INDEX].reference_number","typeLabel":"string | null"}},"uniqueKey":"refunds.items.[INDEX].payouts.items.[INDEX]","typeLabel":"object"},"description":"Payouts associated with this refund.","uniqueKey":"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":"refunds.items.[INDEX].transaction_tags.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"key":{"type":"string","description":"Key for the tag","example":"ExampleTagKey","isRequired":true,"uniqueKey":"refunds.items.[INDEX].transaction_tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Value for the tag","example":"ExampleTagValue","isRequired":true,"uniqueKey":"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":"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":"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":"refunds.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag dimension","uniqueKey":"refunds.items.[INDEX].transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].transaction_tags.items.[INDEX].archived_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","key","value","dimension_id","definition_id"],"uniqueKey":"refunds.items.[INDEX].transaction_tags.items.[INDEX]","typeLabel":"object"},"uniqueKey":"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":"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":"refunds.items.[INDEX].memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"refunds.items.[INDEX].reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"refunds.items.[INDEX]","typeLabel":"object"},"description":"A list of refunds associated with the payout","uniqueKey":"refunds","typeLabel":"object[]"},"transaction_tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID for the tag","isRequired":true,"uniqueKey":"transaction_tags.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"key":{"type":"string","description":"Key for the tag","example":"ExampleTagKey","isRequired":true,"uniqueKey":"transaction_tags.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Value for the tag","example":"ExampleTagValue","isRequired":true,"uniqueKey":"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":"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":"transaction_tags.items.[INDEX].definition_id","typeLabel":"string\u003cuuid>"},"dimension_display_name":{"oneOf":[{"type":"string","description":"Display name for the tag dimension","uniqueKey":"transaction_tags.items.[INDEX].dimension_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag dimension","uniqueKey":"transaction_tags.items.[INDEX].dimension_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"transaction_tags.items.[INDEX].value_display_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Display name for the tag value definition","uniqueKey":"transaction_tags.items.[INDEX].value_display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"transaction_tags.items.[INDEX].archived_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When the tag was archived","uniqueKey":"transaction_tags.items.[INDEX].archived_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"transaction_tags.items.[INDEX].archived_at","typeLabel":"string\u003cdate-time> | null"}},"required":["id","key","value","dimension_id","definition_id"],"uniqueKey":"transaction_tags.items.[INDEX]","typeLabel":"object"},"description":"A list of tags associated with the payout","uniqueKey":"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":"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":"memo.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"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":"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":"reference_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"reference_number","typeLabel":"string | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"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","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}},"payments":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","external_id":"payment-1","at":"2023-11-07T05:31:56Z","method":"CASH","fee":123,"prepayment_account":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"payment_clearing_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":"CREDIT","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,"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","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":[{"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","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":{"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":[{"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":{"id":{"type":"AccountId","id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"},"name":"Current Assets","account_number":"4000","stable_name":{"type":"StableName","stable_name":"CURRENT_ASSETS"},"normality":"CREDIT","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","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>"}],"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"},"137bad99-68cd-439c-930a-89547c19d10c":{"description":"A payout may be invalid if the payments and refunds do not total the payout amount, if the referenced payment or refund ids have different values than those in the payout creation parameters, or if a negative net value payload is specified.","content":{"application/json":{"schema":{"type":"object","properties":{},"example":"","description":"","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":""}},"exampleType":"generated"}},"exampleType":"generated"},"2877e9c7-2462-4406-a4d7-467ccaad4bb2":{"description":"Business id is not found. This indicates the business id is invalid or the business has been archived.","content":{"application/json":{"schema":{"type":"object","properties":{},"example":"","description":"","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":""}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"1ef5f91a-895c-4286-bab6-0b6e4319caa0":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[]}}},"servers":{},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[]},"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":"layerfi-beta","siteName":"Layer","title":"Create payout - Layer","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"api-reference/v1/create-payout.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Creates a new payout for a business or updates existing payout. This endpoint is idempotent using the external_id field as the idempotency key, so subsequent requests with the same external_id will update or no-op.\">\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/layerfi-beta/s73BE7atw0aQEpA2/_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/layerfi-beta/s73BE7atw0aQEpA2/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/layerfi-beta/s73BE7atw0aQEpA2/_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/layerfi-beta/s73BE7atw0aQEpA2/_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/layerfi-beta/s73BE7atw0aQEpA2/_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/layerfi-beta/s73BE7atw0aQEpA2/_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/layerfi-beta/s73BE7atw0aQEpA2/_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/layerfi-beta/s73BE7atw0aQEpA2/_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/layerfi-beta/s73BE7atw0aQEpA2/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create payout - Layer\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a new payout for a business or updates existing payout. This endpoint is idempotent using the external_id field as the idempotency key, so subsequent requests with the same external_id will update or no-op.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Layer\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs-beta.layerfi.com/api-reference/v1/create-payout\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://layerfi-beta.mintlify.site/_mintlify/api/og/v2?division=Payouts\u0026amp;title=Create+payout\u0026amp;description=Creates+a+new+payout+for+a+business+or+updates+existing+payout.+This+endpoint+is+idempotent+using+the+%60external_id%60+field+as+the+idempotency+key%2C+so+subsequent+\u0026amp;theme=773e674d0b0b7822dd4b83f7\u0026amp;signature=de0547c20b6acd5abb71d4026b4d4cc17b34ef489c8b257b2a2ee78518e89b3b\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create payout - Layer\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a new payout for a business or updates existing payout. This endpoint is idempotent using the external_id field as the idempotency key, so subsequent requests with the same external_id will update or no-op.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://layerfi-beta.mintlify.site/_mintlify/api/og/v2?division=Payouts\u0026amp;title=Create+payout\u0026amp;description=Creates+a+new+payout+for+a+business+or+updates+existing+payout.+This+endpoint+is+idempotent+using+the+%60external_id%60+field+as+the+idempotency+key%2C+so+subsequent+\u0026amp;theme=773e674d0b0b7822dd4b83f7\u0026amp;signature=de0547c20b6acd5abb71d4026b4d4cc17b34ef489c8b257b2a2ee78518e89b3b\">\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/layerfi-beta/s73BE7atw0aQEpA2/_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-beta.layerfi.com/api-reference/v1/create-payout\">\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/create-payout.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs-beta.layerfi.com/#organization\",\"name\":\"Layer\",\"url\":\"https://docs-beta.layerfi.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/layerfi-beta/oeZ7JcW3yIMmNpWf/logo/layer_logo.svg?fit=max\u0026auto=format\u0026n=oeZ7JcW3yIMmNpWf\u0026q=85\u0026s=1e991c064d8f58795064442ecaa2f3b2\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs-beta.layerfi.com#website\",\"name\":\"Layer\",\"url\":\"https://docs-beta.layerfi.com\",\"publisher\":{\"@id\":\"https://docs-beta.layerfi.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs-beta.layerfi.com/api-reference/v1/create-payout#webpage\",\"url\":\"https://docs-beta.layerfi.com/api-reference/v1/create-payout\",\"name\":\"Create payout\",\"description\":\"Creates a new payout for a business or updates existing payout. This endpoint is idempotent using the external_id field as the idempotency key, so subsequent requests with the same external_id will update or no-op.\",\"isPartOf\":{\"@id\":\"https://docs-beta.layerfi.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs-beta.layerfi.com/api-reference/v1/create-payout#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs-beta.layerfi.com/api-reference/v1/create-payout#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Financial Activity\",\"item\":\"https://docs-beta.layerfi.com/api-reference/customer/customer\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Accounts Receivable\",\"item\":\"https://docs-beta.layerfi.com/api-reference/customer/customer\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Payouts\",\"item\":\"https://docs-beta.layerfi.com/api-reference/customer-payouts/payout\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Create payout\",\"item\":\"https://docs-beta.layerfi.com/api-reference/v1/create-payout\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs-beta.layerfi.com/api-reference/v1/create-payout#apireference\",\"headline\":\"Create payout\",\"name\":\"Create payout\",\"description\":\"Creates a new payout for a business or updates existing payout. This endpoint is idempotent using the external_id field as the idempotency key, so subsequent requests with the same external_id will update or no-op.\",\"url\":\"https://docs-beta.layerfi.com/api-reference/v1/create-payout\",\"mainEntityOfPage\":{\"@id\":\"https://docs-beta.layerfi.com/api-reference/v1/create-payout#webpage\"},\"publisher\":{\"@id\":\"https://docs-beta.layerfi.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs-beta.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/create-payout.md","siteName":"Layer","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","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}/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":"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"}]},{"group":"Financial Accounts","pages":[{"group":"All External Accounts","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":"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"}]},{"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}/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"}]}]},{"group":"Documents","pages":[{"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"}]},{"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":"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"},{"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":"Tasks \u0026 Notifications","pages":[{"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"},{"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"},{"openapi":"post /v1/businesses/{businessId}/customers/{customerId}/merge","title":"Merge customers","href":"/api-reference/v1/merge-customers"}]},{"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":"get /v1/businesses/{businessId}/invoices","title":"List invoices","href":"/api-reference/v1/list-invoices"},{"openapi":"get /v1/businesses/{businessId}/invoices/{invoiceId}","title":"Fetch invoice","href":"/api-reference/v1/fetch-invoice"},{"openapi":"put /v1/businesses/{businessId}/invoices/{invoiceId}","title":"Update invoice","href":"/api-reference/v1/update-invoice"},{"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":"get /v1/businesses/{businessId}/invoices/{invoiceId}/pdf","title":"Generate invoice PDF","href":"/api-reference/v1/generate-invoice-pdf"},{"openapi":"post /v1/businesses/{businessId}/invoices/tags","title":"Tag invoices","href":"/api-reference/v1/tag-invoices"},{"openapi":"delete /v1/businesses/{businessId}/invoices/{invoiceId}/tags/{tagId}","title":"Delete invoice tag","href":"/api-reference/v1/delete-invoice-tag"},{"openapi":"get /v1/businesses/{businessId}/invoices/{invoiceId}/tags","title":"Fetch invoice tags","href":"/api-reference/v1/fetch-invoice-tags"}]},{"group":"Invoice Payments","pages":[{"title":"Invoice Payment object","href":"/api-reference/invoice/payments"},{"title":"Record a Payment","api":"POST https://sandbox.layerfi.com/v1/businesses/{business_id}/invoices/payments","href":"/api-reference/invoice/record-payment"},{"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/tags","title":"Tag invoice payments","href":"/api-reference/v1/tag-invoice-payments"},{"openapi":"get /v1/businesses/{businessId}/invoices/payments/{paymentId}/tags","title":"Fetch payment tags","href":"/api-reference/v1/fetch-payment-tags"},{"openapi":"delete /v1/businesses/{businessId}/invoices/payments/tags","title":"Remove payment tags","href":"/api-reference/v1/remove-payment-tags"},{"group":"Invoice Payment Allocations","pages":[{"openapi":"post /v1/businesses/{businessId}/invoices/payments/allocations/tags","title":"Tag payment allocations","href":"/api-reference/v1/tag-payment-allocations"},{"openapi":"get /v1/businesses/{businessId}/invoices/payments/{paymentId}/allocations/{allocationId}/tags","title":"Fetch payment allocation tags","href":"/api-reference/v1/fetch-payment-allocation-tags"},{"openapi":"delete /v1/businesses/{businessId}/invoices/payments/allocations/tags","title":"Remove payment allocations tags","href":"/api-reference/v1/remove-payment-allocations-tags"}]}]},{"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","description":"Fetches a payout for a business.","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/{payoutId}/update","title":"Update payout","description":"Updates a payout for a business. Ledger entries will be reversed and new entries created for the updated payout. To keep ledger entries most understandable, we recommend updating payouts rather than deleting and recreating when the intent is to fix or update information from the same payout.","href":"/api-reference/v1/update-payout"},{"openapi":"delete /v1/businesses/{businessId}/payouts/{payoutId}","title":"Delete payout","href":"/api-reference/v1/delete-payout"},{"openapi":"post /v1/businesses/{businessId}/payouts/tags","title":"Tag payouts","href":"/api-reference/v1/tag-payouts"},{"openapi":"get /v1/businesses/{businessId}/payouts/{payoutId}/tags","title":"Fetch payout tags","href":"/api-reference/v1/fetch-payout-tags"},{"openapi":"delete /v1/businesses/{businessId}/payouts/tags","title":"Remove payout tags","href":"/api-reference/v1/remove-payout-tags"}]},{"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":"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/{refundId}/payments/{paymentId}","title":"Fetch refund payment","href":"/api-reference/v1/fetch-refund-payment"},{"openapi":"delete /v1/businesses/{businessId}/invoices/refunds/{refundId}/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"},{"openapi":"post /v1/businesses/{businessId}/vendors/{vendorId}/merge","title":"Merge vendors","href":"/api-reference/v1/merge-vendors"}]},{"group":"Bills","pages":[{"title":"Bill object","href":"/api-reference/bill/bill"},{"openapi":"get /v1/businesses/{businessId}/bills","title":"List bills","href":"/api-reference/v1/list-bills"},{"openapi":"get /v1/businesses/{businessId}/bills/{billId}","title":"Fetch bill","href":"/api-reference/v1/fetch-bill"},{"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"},{"openapi":"post /v1/businesses/{businessId}/bills/tags","title":"Tag bills","href":"/api-reference/v1/tag-bills"},{"openapi":"delete /v1/businesses/{businessId}/bills/tags","title":"Remove bill tags","href":"/api-reference/v1/remove-bill-tags"}]},{"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"},{"openapi":"post /v1/businesses/{businessId}/bills/bill-payments/tags","title":"Tag bill payments","href":"/api-reference/v1/tag-bill-payments"},{"openapi":"delete /v1/businesses/{businessId}/bills/bill-payments/tags","title":"Remove bill payment tags","href":"/api-reference/v1/remove-bill-payment-tags"},{"group":"Bill Payment Allocations","pages":[{"openapi":"post /v1/businesses/{businessId}/bills/bill-payments/allocations/tags","title":"Tag bill payment allocations","href":"/api-reference/v1/tag-bill-payment-allocations"},{"openapi":"delete /v1/businesses/{businessId}/bills/bill-payments/allocations/tags","title":"Remove bill payment allocation tags","href":"/api-reference/v1/remove-bill-payment-allocation-tags"}]}]},{"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":"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":"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":"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":"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"},{"title":"Categorize a Transaction","api":"PUT /v1/businesses/{business_id}/bank-transactions/{bank_transaction_id}/categorize","href":"/api-reference/bank-transaction/categorize"},{"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":"get /v1/businesses/{businessId}/categories","title":"Fetch transaction categories","href":"/api-reference/v1/fetch-transaction-categories"},{"openapi":"post /v1/businesses/{businessId}/bank-transactions/tags","title":"Tag bank transactions","href":"/api-reference/v1/tag-bank-transactions"},{"openapi":"delete /v1/businesses/{businessId}/bank-transactions/tags","title":"Remove transaction tags","href":"/api-reference/v1/remove-transaction-tags"},{"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"}]}]},{"group":"General Ledger","pages":[{"title":"Account Identifier","href":"/api-reference/ledger/account-identifier"},{"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"},{"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"},{"openapi":"post /v1/businesses/{businessId}/custom-journal-entries/tags","title":"Tag multiple custom journal entries","href":"/api-reference/v1/custom-journal-entries/tag-multiple-custom-journal-entries"},{"openapi":"delete /v1/businesses/{businessId}/custom-journal-entries/tags","title":"Remove tags from multiple custom journal entries","href":"/api-reference/v1/custom-journal-entries/remove-tags-from-multiple-custom-journal-entries"}]},{"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"},{"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":"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"},{"openapi":"get /v1/businesses/{businessId}/tags/values","title":"List tag value","href":"/api-reference/v1/list-tag-value"},{"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":"patch /v1/businesses/{businessId}/tags/dimensions/{dimensionId}","title":"Update tag dimension","href":"/api-reference/v1/update-tag-dimension"}]},{"group":"Tag Values","pages":[{"openapi":"get /v1/businesses/{businessId}/tags/values","title":"List tag value","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":"Reports","pages":[{"openapi":"get /v1/businesses/{businessId}/mileage/summary","title":"Get mileage summary","href":"/api-reference/v1/get-mileage-summary"}]}]}]},{"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-summaries","title":"Fetch P\u0026L summaries","href":"/api-reference/v1/fetch-p\u0026l-summaries"},{"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":"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":[{"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","title":"Get tax estimates","href":"/api-reference/v1/tax-estimates/get-tax-estimates"},{"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":"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":"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":"SMS","pages":[{"title":"SMS Configuration object","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":"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":"Activity Metrics","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":"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":"Embedded Components","pages":[{"title":"Embedded Components","href":"/embedded-components/layerprovider-context"}]}]},"basePath":"","title":"Create payout - Layer","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CWRF67qg.js","snippetPresets-BR8BoZAC.js","utils-D5WEoDBM.js","style-to-object-BY3JEAdk.js","utils-B79vXYXV.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-C59iNs-S.js","conditional-requirements-CFM0id0Q.js","cloneDeep-455jK_K_.js","_Uint8Array-BEecbuUl.js","isObject-FP1Yky1u.js","ApiExamples-CFRHL52q.js","usePlaygroundInputsStore-Caip2xMX.js","shallow-BS-qcxmX.js","isEqual-CEpbaqh9.js","CodeSnippets-B-R0FAqw.js","CodeSnippet-Bkkti1IB.js","use-playground-group-access-BLvLSz8w.js","Page-UFatEFaf.js","api-description-markdown-Cny85OC3.js","DynamicMarkdown-Czhs88Hc.js","SectionHeading-B08KBUKT.js","MethodPill-D8OvWg5y.js","getPastedJson-tB5m0_yh.js","Check2Icon-CeP__a4S.js","axios-CsQoIw0U.js","Markdown-LI7DSqeK.js","AssistantPageLink-bYxdsqKl.js","dist-DXTH2WLA.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}