A Refund represents a transaction that returns value from a business to a customer. Each refund has one or more Refund Allocations (targets) and zero or more Refund Payments.
Creating Refunds
There are two ways to create refunds:
Simple Refunds
Use simple refunds when you want to fully refund a single target (invoice, invoice line item, or invoice payment) and the refund is fully paid. Layer automatically:
Calculates the refund amount based on what can be refunded from the target
Creates one allocation that perfectly cancels out the target
Creates one refund payment that pays the refund in full
Itemized Refunds
Use itemized refunds for more complex scenarios including:
Refunding multiple targets in a single refund
Partial refunds that don’t fully cancel out the target
Unpaid refunds (refunds owed but not yet disbursed)
Custom allocation amounts or payment structures
With itemized refunds, you specify all allocations and payments explicitly.
Refund Object
Attributes
string
required
Unique identifier for the refund.
string
Unique ID of the refund in your system for linking purposes. Idempotency key.
integer
required
Amount refunded to the customer in cents.
string
required
Status of the refund.
ISO8601 timestamp
required
Time when the refund was completed.
boolean
required
Whether this refund is dedicated or not. Dedicated refunds can only have one allocation and one payment, and their allocation target cannot be changed.
Memo for any text you would like to associate with the refund.
json object
Arbitrary metadata you can include with the refund.
string
Any (typically user-visible) identifier you would like to associate with the refund. Can be used to filter when listing refunds.
Refund Allocation Object
A Refund Allocation represents one of the targets of a refund. It can reference a specific invoice, invoice line item, invoice payment, or customer.
For example, a refund can apply to two separate invoices if the invoices have the same customer.
The total of the amounts of the refund allocations must add up to the refund amount.
string
required
Unique identifier for the refund allocation.
string
ID of the invoice this allocation is associated with.
External ID of the invoice this allocation is associated with.
string
ID of the invoice line item this allocation is associated with. If specified, must not refer to a different invoice than invoice_id or invoice_external_id.
string
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.
string
ID of the invoice payment this allocation is associated with.
string
External ID of the invoice payment this allocation is associated with.
Customer object
The Customer associated with this refund allocation.
Array of Tags
Tags associated with the refund allocation.
Show Tag properties
string
required
The tag’s key
string
required
The tag’s value
ISO8601 timestamp
required
When the tag was created
ISO8601 timestamp
required
When the tag was last updated
ISO8601 timestamp
When the tag was deleted
string
Memo for any text you would like to associate with the refund allocation.
json object
Arbitrary metadata you can include with the refund allocation.
string
Any (typically user-visible) identifier you would like to associate with the refund allocation.
Refund Allocation Line Item Object
A Refund Allocation Line Item represents a specific line within a refund allocation, allowing for detailed breakdowns of how the allocation amount is distributed across different ledger accounts.
string
External identifier for the line item.
integer
required
Amount of the line item in cents.
ChartAccount object
The ledger account associated with this line item.
ChartAccount object
The prepayment ledger account associated with this line item, if applicable.
Array of Tags
Tags associated with the line item.
Show Tag properties
string
required
The tag’s key
string
required
The tag’s value
ISO8601 timestamp
required
When the tag was created
ISO8601 timestamp
required
When the tag was last updated
ISO8601 timestamp
When the tag was deleted
string
Memo for any text you would like to associate with the line item.
json object
Arbitrary metadata you can include with the line item.
string
Any (typically user-visible) identifier you would like to associate with the refund pyment. Can be used to filter when listing refund payments.
Refund Payment Object
A Refund Payment represents a money movement by which the refund was disbursed to the customer.
A refund with zero payments represents a refund that is owed to a customer but has not yet been sent.A refund can have many payments so long as the total of their refunded_amounts does not exceed the total amount of the refund.Refund payments are matchable to bank transactions and are therefore the means by which refunds are reconciled with bank accounts.
string
required
Unique identifier for the payment.
string
Unique ID of the payment in your system for linking purposes. Idempotency key.
integer
required
Amount refunded to the customer in cents.
integer
Fee paid by the business to make the refund payment (typically a payment processing fee).
ISO8601 timestamp
required
Time when the payment was completed.
string
required
Method of the payment (e.g., CREDIT_CARD, ACH, etc.).
string
Processor used for the payment (e.g., STRIPE, SHOPIFY, etc.).
Memo for any text you would like to associate with the refund payment.
json object
Arbitrary metadata you can include with the refund payment.
Refunded Payment Fee Object
A Refunded Payment Fee represents a fee that was refunded as part of a refund payment.
This differs from the ‘refund_processing_fee’ field on the refund payment, since that is paid by the business (typically to a payment processor), whereas this is refunded from the payment processor back to the business.
AccountIdentifier object
required
Identifier of the ledger account for the refunded payment fee.
string
Description of the fee that the refunded payment fee refunds.
integer
required
Amount of the fee refund in cents.
Simple Refund Creation Parameters
Use these parameters to create a simple refund that fully refunds a single target (invoice, invoice line item, or invoice payment) and is fully paid.
string
Unique ID of the refund in your system for linking purposes. Idempotency key.
ISO8601 timestamp
required
When the refund was completed and paid.
string
The ID of the invoice to refund. Cannot be used with other target identifiers.
string
The external ID of the invoice to refund. Cannot be used with other target identifiers.
string
The ID of the invoice line item to refund. Cannot be used with other target identifiers.
string
The external ID of the invoice line item to refund. Cannot be used with other target identifiers.
string
The ID of the invoice payment to refund. Cannot be used with other target identifiers.
string
The external ID of the invoice payment to refund. Cannot be used with other target identifiers.
integer
Fee charged to the business for processing the refund in cents. Defaults to 0.
PaymentMethod enum
required
Method of the payment (e.g., CREDIT_CARD, ACH, etc.).
string
Processor used for the payment (e.g., STRIPE, SHOPIFY, etc.).
array of TagKeyValue objects
Tags to apply to the refund. Tags are key-value pairs that can be used to categorize and filter refunds.
Show TagKeyValue properties
string
required
The tag dimension key (e.g., “department”, “project”, “location”)
string
Optional display name for the tag dimension. If the dimension doesn’t exist, this will be used as its display name.
string
required
The tag value (e.g., “engineering”, “project-alpha”, “san-francisco”)
string
Optional display name for the tag value. If the value doesn’t exist, this will be used as its display name.
string
Memo for any text you would like to associate with the refund.
json object
Arbitrary metadata you can include with the refund.
Itemized Refund Creation Parameters
Use these parameters to create an itemized refund with full control over allocations and payments.
string
Unique ID of the refund in your system for linking purposes. Idempotency key.
integer
required
The total amount of the refund in cents. Must equal the sum of all allocation amounts.
ISO8601 timestamp
required
When the refund was completed.
array of RefundAllocationParams objects
required
The targets of the refund. Each allocation specifies how much of the refund should be applied to a specific invoice, line item, payment, or customer.
Show RefundAllocationParams properties
string
External identifier for the allocation.
integer
required
Total amount of this allocation in cents. Must equal the sum of all line item amounts.
array of LineItemParams objects
required
Line items that make up this allocation.
string
ID of the invoice this allocation targets.
string
External ID of the invoice this allocation targets.
string
ID of the invoice line item this allocation targets.
string
External ID of the invoice line item this allocation targets.
string
ID of the invoice payment this allocation targets.
string
External ID of the invoice payment this allocation targets.
string
ID of the customer this allocation targets.
string
External ID of the customer this allocation targets.
array of TagKeyValue objects
Tags for this allocation.
string
Memo for this allocation.
json object
Metadata for this allocation.
array of RefundPaymentParams objects
required
The payment methods and amounts used to process the refund.
Show RefundPaymentParams properties
string
External identifier for the payment.
integer
required
Amount refunded to the customer in cents.
integer
Fee charged to the business for processing this payment.
ISO8601 timestamp
required
When this payment was completed.
PaymentMethod enum
required
Payment method used.
string
Processor used for this payment.
array of RefundedPaymentFeeInput objects
Fees refunded as part of this payment.
array of TagKeyValue objects
Tags for this payment.
string
Memo for this payment.
json object
Metadata for this payment.
string
Any (typically user-visible) identifier for this payment.
array of TagKeyValue objects
Tags to apply to the refund. Tags are key-value pairs that can be used to categorize and filter refunds.
Show TagKeyValue properties
string
required
The tag dimension key (e.g., “department”, “project”, “location”)
string
Optional display name for the tag dimension. If the dimension doesn’t exist, this will be used as its display name.
string
required
The tag value (e.g., “engineering”, “project-alpha”, “san-francisco”)
string
Optional display name for the tag value. If the value doesn’t exist, this will be used as its display name.
string
Memo for any text you would like to associate with the refund.
json object
Arbitrary metadata you can include with the refund.
Dedicated refunds are a refunds that are created alongside invoices, invoice line items, and invoice payments. They provide a streamlined way to create refunds during the invoice creation or payment recording process.They are intended for when you know at the time of importing an invoice, invoice line item, or payment that it will be refunded, and want to create everything in one API call.Each dedicated refund has exactly one allocation and one payment. Once created, the allocation target cannot be changedDedicated refunds can be included when creating:Invoices: Add dedicated_refunds array to the invoice bodyInvoice Line Items: Add dedicated_refunds array to any line itemInvoice Payments: Add dedicated_refunds array to any payment within an invoice
Simple vs Itemized Dedicated Refunds
When creating dedicated refunds, Layer will automatically determine whether to create them as simple or itemized refunds based on the parameters you provide:Simple Dedicated Refunds (see Simple Refunds):
Created when you don’t specify the line_items parameter
Layer automatically calculates the refund amount and creates a single allocation
Ideal for straightforward refunds where you want to refund the full amount of a target
{"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/refunds/refund","slug":"/api-reference/refunds/refund","pageMetadata":{"title":"Refund object","description":null,"href":"/api-reference/refunds/refund"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`A Refund represents a transaction that returns value from a business to a customer. Each refund has one or more Refund Allocations (targets) and zero or more Refund Payments.`}),`\n`,_jsx(Heading,{level:`2`,id:`creating-refunds`,children:`Creating Refunds`}),`\n`,_jsx(_components.p,{children:`There are two ways to create refunds:`}),`\n`,_jsx(Heading,{level:`3`,id:`simple-refunds`,children:`Simple Refunds`}),`\n`,_jsx(_components.p,{children:`Use simple refunds when you want to fully refund a single target (invoice, invoice line item, or invoice payment) and the refund is fully paid. Layer automatically:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Calculates the refund amount based on what can be refunded from the target`}),`\n`,_jsx(_components.li,{children:`Creates one allocation that perfectly cancels out the target`}),`\n`,_jsx(_components.li,{children:`Creates one refund payment that pays the refund in full`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`itemized-refunds`,children:`Itemized Refunds`}),`\n`,_jsx(_components.p,{children:`Use itemized refunds for more complex scenarios including:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Refunding multiple targets in a single refund`}),`\n`,_jsx(_components.li,{children:`Partial refunds that don’t fully cancel out the target`}),`\n`,_jsx(_components.li,{children:`Unpaid refunds (refunds owed but not yet disbursed)`}),`\n`,_jsx(_components.li,{children:`Custom allocation amounts or payment structures`}),`\n`]}),`\n`,_jsx(_components.p,{children:`With itemized refunds, you specify all allocations and payments explicitly.`}),`\n`,_jsx(Heading,{level:`2`,id:`refund-object`,children:`Refund Object`}),`\n`,_jsx(Heading,{level:`3`,id:`attributes`,children:`Attributes`}),`\n`,_jsx(ParamField,{body:`id`,type:`string`,required:`true`,id:`param-id`,children:_jsx(_components.p,{children:`Unique identifier for the refund.`})}),`\n`,_jsx(ParamField,{body:`external_id`,type:`string`,id:`param-external-id`,children:_jsxs(_components.p,{children:[`Unique ID of the refund in your system for linking purposes. `,_jsx(_components.strong,{children:`Idempotency key`}),`.`]})}),`\n`,_jsx(ParamField,{body:`refunded_amount`,type:`integer`,required:`true`,id:`param-refunded-amount`,children:_jsx(_components.p,{children:`Amount refunded to the customer in cents.`})}),`\n`,_jsx(ParamField,{body:`status`,type:`string`,required:`true`,id:`param-status`,children:_jsx(_components.p,{children:`Status of the refund.`})}),`\n`,_jsx(ParamField,{body:`completed_at`,type:`ISO8601 timestamp`,required:`true`,id:`param-completed-at`,children:_jsx(_components.p,{children:`Time when the refund was completed.`})}),`\n`,_jsx(ParamField,{body:`is_dedicated`,type:`boolean`,required:`true`,id:`param-is-dedicated`,children:_jsx(_components.p,{children:`Whether this refund is dedicated or not. Dedicated refunds can only have one allocation and one payment, and their allocation target cannot be changed.`})}),`\n`,_jsx(ParamField,{body:`allocations`,type:`array of RefundAllocation objects`,id:`param-allocations`,children:_jsxs(_components.p,{children:[`Allocations associated with this refund. See `,_jsx(_components.a,{href:`#refund-allocation-object`,children:`Refund Allocation Object`}),` for details.`]})}),`\n`,_jsx(ParamField,{body:`payments`,type:`array of RefundPayment objects`,id:`param-payments`,children:_jsxs(_components.p,{children:[`Payments associated with this refund. See `,_jsx(_components.a,{href:`#refund-payment-object`,children:`Refund Payment Object`}),` for details.`]})}),`\n`,_jsx(ParamField,{body:`payouts`,type:`array of Payout objects`,id:`param-payouts`,children:_jsx(_components.p,{children:`Payouts associated with this refund.`})}),`\n`,_jsxs(ParamField,{body:`transaction_tags`,type:`Array of Tags`,id:`param-transaction-tags`,children:[_jsx(_components.p,{children:`Tags associated with the refund.`}),_jsxs(Expandable,{title:`Tag properties`,children:[_jsx(ResponseField,{name:`key`,required:`true`,type:`string`,id:`param-key`,children:_jsx(_components.p,{children:`The tag’s key`})}),_jsx(ResponseField,{name:`value`,required:`true`,type:`string`,id:`param-value`,children:_jsx(_components.p,{children:`The tag’s value`})}),_jsx(ResponseField,{name:`created_at`,required:`true`,type:`ISO8601 timestamp`,id:`param-created-at`,children:_jsx(_components.p,{children:`When the tag was created`})}),_jsx(ResponseField,{name:`updated_at`,required:`true`,type:`ISO8601 timestamp`,id:`param-updated-at`,children:_jsx(_components.p,{children:`When the tag was last updated`})}),_jsx(ResponseField,{name:`deleted_at`,type:`ISO8601 timestamp`,id:`param-deleted-at`,children:_jsx(_components.p,{children:`When the tag was deleted`})})]})]}),`\n`,_jsx(ParamField,{body:`memo`,type:`string`,id:`param-memo`,children:_jsx(_components.p,{children:`Memo for any text you would like to associate with the refund.`})}),`\n`,_jsx(ParamField,{body:`metadata`,type:`json object`,id:`param-metadata`,children:_jsx(_components.p,{children:`Arbitrary metadata you can include with the refund.`})}),`\n`,_jsx(ParamField,{body:`reference_number`,type:`string`,id:`param-reference-number`,children:_jsx(_components.p,{children:`Any (typically user-visible) identifier you would like to associate with the refund. Can be used to filter when listing refunds.`})}),`\n`,_jsx(Heading,{level:`2`,id:`refund-allocation-object`,children:`Refund Allocation Object`}),`\n`,_jsx(_components.p,{children:`A Refund Allocation represents one of the targets of a refund. It can reference a specific invoice, invoice line item, invoice payment, or customer.\nFor example, a refund can apply to two separate invoices if the invoices have the same customer.\nThe total of the amounts of the refund allocations must add up to the refund amount.`}),`\n`,_jsx(ParamField,{body:`id`,type:`string`,required:`true`,id:`param-id-1`,children:_jsx(_components.p,{children:`Unique identifier for the refund allocation.`})}),`\n`,_jsx(ParamField,{body:`invoice_id`,type:`string`,id:`param-invoice-id`,children:_jsx(_components.p,{children:`ID of the invoice this allocation is associated with.`})}),`\n`,_jsx(ParamField,{body:`amount`,type:`integer`,required:`true`,id:`param-amount`,children:_jsx(_components.p,{children:`Amount of the allocation in cents.`})}),`\n`,_jsx(ParamField,{body:`line_items`,type:`array of RefundAllocationLineItem objects`,id:`param-line-items`,children:_jsxs(_components.p,{children:[`Line items that make up this allocation. See `,_jsx(_components.a,{href:`#refund-allocation-line-item-object`,children:`Refund Allocation Line Item Object`}),` for details.`]})}),`\n`,_jsx(ParamField,{body:`invoice_external_id`,type:`string`,id:`param-invoice-external-id`,children:_jsx(_components.p,{children:`External ID of the invoice this allocation is associated with.`})}),`\n`,_jsx(ParamField,{body:`invoice_line_item_id`,type:`string`,id:`param-invoice-line-item-id`,children:_jsxs(_components.p,{children:[`ID of the invoice line item this allocation is associated with. If specified, must not refer to a different invoice than `,_jsx(_components.code,{children:`invoice_id`}),` or `,_jsx(_components.code,{children:`invoice_external_id`}),`.`]})}),`\n`,_jsx(ParamField,{body:`invoice_line_item_external_id`,type:`string`,id:`param-invoice-line-item-external-id`,children:_jsxs(_components.p,{children:[`The external ID of the invoice line item to refund. If specified alongside `,_jsx(_components.code,{children:`invoice_line_item_id`}),`, they must refer to the same invoice line item.`]})}),`\n`,_jsx(ParamField,{body:`invoice_payment_id`,type:`string`,id:`param-invoice-payment-id`,children:_jsx(_components.p,{children:`ID of the invoice payment this allocation is associated with.`})}),`\n`,_jsx(ParamField,{body:`invoice_payment_external_id`,type:`string`,id:`param-invoice-payment-external-id`,children:_jsx(_components.p,{children:`External ID of the invoice payment this allocation is associated with.`})}),`\n`,_jsx(ParamField,{body:`customer`,type:`Customer object`,id:`param-customer`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`/api-reference/customer/customer`,children:`Customer`}),` associated with this refund allocation.`]})}),`\n`,_jsxs(ParamField,{body:`transaction_tags`,type:`Array of Tags`,id:`param-transaction-tags-1`,children:[_jsx(_components.p,{children:`Tags associated with the refund allocation.`}),_jsxs(Expandable,{title:`Tag properties`,children:[_jsx(ResponseField,{name:`key`,required:`true`,type:`string`,id:`param-key-1`,children:_jsx(_components.p,{children:`The tag’s key`})}),_jsx(ResponseField,{name:`value`,required:`true`,type:`string`,id:`param-value-1`,children:_jsx(_components.p,{children:`The tag’s value`})}),_jsx(ResponseField,{name:`created_at`,required:`true`,type:`ISO8601 timestamp`,id:`param-created-at-1`,children:_jsx(_components.p,{children:`When the tag was created`})}),_jsx(ResponseField,{name:`updated_at`,required:`true`,type:`ISO8601 timestamp`,id:`param-updated-at-1`,children:_jsx(_components.p,{children:`When the tag was last updated`})}),_jsx(ResponseField,{name:`deleted_at`,type:`ISO8601 timestamp`,id:`param-deleted-at-1`,children:_jsx(_components.p,{children:`When the tag was deleted`})})]})]}),`\n`,_jsx(ParamField,{body:`memo`,type:`string`,id:`param-memo-1`,children:_jsx(_components.p,{children:`Memo for any text you would like to associate with the refund allocation.`})}),`\n`,_jsx(ParamField,{body:`metadata`,type:`json object`,id:`param-metadata-1`,children:_jsx(_components.p,{children:`Arbitrary metadata you can include with the refund allocation.`})}),`\n`,_jsx(ParamField,{body:`reference_number`,type:`string`,id:`param-reference-number-1`,children:_jsx(_components.p,{children:`Any (typically user-visible) identifier you would like to associate with the refund allocation.`})}),`\n`,_jsx(Heading,{level:`2`,id:`refund-allocation-line-item-object`,children:`Refund Allocation Line Item Object`}),`\n`,_jsx(_components.p,{children:`A Refund Allocation Line Item represents a specific line within a refund allocation, allowing for detailed breakdowns of how the allocation amount is distributed across different ledger accounts.`}),`\n`,_jsx(ParamField,{body:`external_id`,type:`string`,id:`param-external-id-1`,children:_jsx(_components.p,{children:`External identifier for the line item.`})}),`\n`,_jsx(ParamField,{body:`amount`,type:`integer`,required:`true`,id:`param-amount-1`,children:_jsx(_components.p,{children:`Amount of the line item in cents.`})}),`\n`,_jsx(ParamField,{body:`ledger_account`,type:`ChartAccount object`,id:`param-ledger-account`,children:_jsx(_components.p,{children:`The ledger account associated with this line item.`})}),`\n`,_jsx(ParamField,{body:`prepayment_account`,type:`ChartAccount object`,id:`param-prepayment-account`,children:_jsx(_components.p,{children:`The prepayment ledger account associated with this line item, if applicable.`})}),`\n`,_jsxs(ParamField,{body:`transaction_tags`,type:`Array of Tags`,id:`param-transaction-tags-2`,children:[_jsx(_components.p,{children:`Tags associated with the line item.`}),_jsxs(Expandable,{title:`Tag properties`,children:[_jsx(ResponseField,{name:`key`,required:`true`,type:`string`,id:`param-key-2`,children:_jsx(_components.p,{children:`The tag’s key`})}),_jsx(ResponseField,{name:`value`,required:`true`,type:`string`,id:`param-value-2`,children:_jsx(_components.p,{children:`The tag’s value`})}),_jsx(ResponseField,{name:`created_at`,required:`true`,type:`ISO8601 timestamp`,id:`param-created-at-2`,children:_jsx(_components.p,{children:`When the tag was created`})}),_jsx(ResponseField,{name:`updated_at`,required:`true`,type:`ISO8601 timestamp`,id:`param-updated-at-2`,children:_jsx(_components.p,{children:`When the tag was last updated`})}),_jsx(ResponseField,{name:`deleted_at`,type:`ISO8601 timestamp`,id:`param-deleted-at-2`,children:_jsx(_components.p,{children:`When the tag was deleted`})})]})]}),`\n`,_jsx(ParamField,{body:`memo`,type:`string`,id:`param-memo-2`,children:_jsx(_components.p,{children:`Memo for any text you would like to associate with the line item.`})}),`\n`,_jsx(ParamField,{body:`metadata`,type:`json object`,id:`param-metadata-2`,children:_jsx(_components.p,{children:`Arbitrary metadata you can include with the line item.`})}),`\n`,_jsx(ParamField,{body:`reference_number`,type:`string`,id:`param-reference-number-2`,children:_jsx(_components.p,{children:`Any (typically user-visible) identifier you would like to associate with the refund pyment. Can be used to filter when listing refund payments.`})}),`\n`,_jsx(Heading,{level:`2`,id:`refund-payment-object`,children:`Refund Payment Object`}),`\n`,_jsx(_components.p,{children:`A Refund Payment represents a money movement by which the refund was disbursed to the customer.\nA refund with zero payments represents a refund that is owed to a customer but has not yet been sent.`}),`\n`,_jsxs(_components.p,{children:[`A refund can have many payments so long as the total of their `,_jsx(_components.code,{children:`refunded_amount`}),`s does not exceed the total amount of the refund.`]}),`\n`,_jsx(_components.p,{children:`Refund payments are matchable to bank transactions and are therefore the means by which refunds are reconciled with bank accounts.`}),`\n`,_jsx(ParamField,{body:`id`,type:`string`,required:`true`,id:`param-id-2`,children:_jsx(_components.p,{children:`Unique identifier for the payment.`})}),`\n`,_jsx(ParamField,{body:`external_id`,type:`string`,id:`param-external-id-2`,children:_jsxs(_components.p,{children:[`Unique ID of the payment in your system for linking purposes. `,_jsx(_components.strong,{children:`Idempotency key`}),`.`]})}),`\n`,_jsx(ParamField,{body:`refunded_amount`,type:`integer`,required:`true`,id:`param-refunded-amount-1`,children:_jsx(_components.p,{children:`Amount refunded to the customer in cents.`})}),`\n`,_jsx(ParamField,{body:`refund_processing_fee`,type:`integer`,id:`param-refund-processing-fee`,children:_jsx(_components.p,{children:`Fee paid by the business to make the refund payment (typically a payment processing fee).`})}),`\n`,_jsx(ParamField,{body:`completed_at`,type:`ISO8601 timestamp`,required:`true`,id:`param-completed-at-1`,children:_jsx(_components.p,{children:`Time when the payment was completed.`})}),`\n`,_jsx(ParamField,{body:`method`,type:`string`,required:`true`,id:`param-method`,children:_jsxs(_components.p,{children:[`Method of the payment (e.g., `,_jsx(_components.code,{children:`CREDIT_CARD`}),`, `,_jsx(_components.code,{children:`ACH`}),`, etc.).`]})}),`\n`,_jsx(ParamField,{body:`processor`,type:`string`,id:`param-processor`,children:_jsxs(_components.p,{children:[`Processor used for the payment (e.g., `,_jsx(_components.code,{children:`STRIPE`}),`, `,_jsx(_components.code,{children:`SHOPIFY`}),`, etc.).`]})}),`\n`,_jsx(ParamField,{body:`refunded_payment_fees`,type:`array of RefundedPaymentFee objects`,id:`param-refunded-payment-fees`,children:_jsxs(_components.p,{children:[`Refunded payment fees associated with the refund payment. See `,_jsx(_components.a,{href:`#refunded-payment-fee-object`,children:`Refunded Payment Fee Object`}),` for details.`]})}),`\n`,_jsxs(ParamField,{body:`transaction_tags`,type:`Array of Tags`,id:`param-transaction-tags-3`,children:[_jsx(_components.p,{children:`Tags associated with the refund payment.`}),_jsxs(Expandable,{title:`Tag properties`,children:[_jsx(ResponseField,{name:`key`,required:`true`,type:`string`,id:`param-key-3`,children:_jsx(_components.p,{children:`The tag’s key`})}),_jsx(ResponseField,{name:`value`,required:`true`,type:`string`,id:`param-value-3`,children:_jsx(_components.p,{children:`The tag’s value`})}),_jsx(ResponseField,{name:`created_at`,required:`true`,type:`ISO8601 timestamp`,id:`param-created-at-3`,children:_jsx(_components.p,{children:`When the tag was created`})}),_jsx(ResponseField,{name:`updated_at`,required:`true`,type:`ISO8601 timestamp`,id:`param-updated-at-3`,children:_jsx(_components.p,{children:`When the tag was last updated`})}),_jsx(ResponseField,{name:`deleted_at`,type:`ISO8601 timestamp`,id:`param-deleted-at-3`,children:_jsx(_components.p,{children:`When the tag was deleted`})})]})]}),`\n`,_jsx(ParamField,{body:`memo`,type:`string`,id:`param-memo-3`,children:_jsx(_components.p,{children:`Memo for any text you would like to associate with the refund payment.`})}),`\n`,_jsx(ParamField,{body:`metadata`,type:`json object`,id:`param-metadata-3`,children:_jsx(_components.p,{children:`Arbitrary metadata you can include with the refund payment.`})}),`\n`,_jsx(Heading,{level:`2`,id:`refunded-payment-fee-object`,children:`Refunded Payment Fee Object`}),`\n`,_jsx(_components.p,{children:`A Refunded Payment Fee represents a fee that was refunded as part of a refund payment.\nThis differs from the ‘refund_processing_fee’ field on the refund payment, since that is paid by the business (typically to a payment processor), whereas this is refunded from the payment processor back to the business.`}),`\n`,_jsx(ParamField,{body:`account`,type:`AccountIdentifier object`,required:`true`,id:`param-account`,children:_jsx(_components.p,{children:`Identifier of the ledger account for the refunded payment fee.`})}),`\n`,_jsx(ParamField,{body:`description`,type:`string`,id:`param-description`,children:_jsx(_components.p,{children:`Description of the fee that the refunded payment fee refunds.`})}),`\n`,_jsx(ParamField,{body:`fee_amount`,type:`integer`,required:`true`,id:`param-fee-amount`,children:_jsx(_components.p,{children:`Amount of the fee refund in cents.`})}),`\n`,_jsx(Heading,{level:`2`,id:`simple-refund-creation-parameters`,children:`Simple Refund Creation Parameters`}),`\n`,_jsx(_components.p,{children:`Use these parameters to create a simple refund that fully refunds a single target (invoice, invoice line item, or invoice payment) and is fully paid.`}),`\n`,_jsx(ParamField,{body:`external_id`,type:`string`,id:`param-external-id-3`,children:_jsxs(_components.p,{children:[`Unique ID of the refund in your system for linking purposes. `,_jsx(_components.strong,{children:`Idempotency key`}),`.`]})}),`\n`,_jsx(ParamField,{body:`completed_at`,type:`ISO8601 timestamp`,required:`true`,id:`param-completed-at-2`,children:_jsx(_components.p,{children:`When the refund was completed and paid.`})}),`\n`,_jsx(ParamField,{body:`invoice_id`,type:`string`,id:`param-invoice-id-1`,children:_jsx(_components.p,{children:`The ID of the invoice to refund. Cannot be used with other target identifiers.`})}),`\n`,_jsx(ParamField,{body:`invoice_external_id`,type:`string`,id:`param-invoice-external-id-1`,children:_jsx(_components.p,{children:`The external ID of the invoice to refund. Cannot be used with other target identifiers.`})}),`\n`,_jsx(ParamField,{body:`invoice_line_item_id`,type:`string`,id:`param-invoice-line-item-id-1`,children:_jsx(_components.p,{children:`The ID of the invoice line item to refund. Cannot be used with other target identifiers.`})}),`\n`,_jsx(ParamField,{body:`invoice_line_item_external_id`,type:`string`,id:`param-invoice-line-item-external-id-1`,children:_jsx(_components.p,{children:`The external ID of the invoice line item to refund. Cannot be used with other target identifiers.`})}),`\n`,_jsx(ParamField,{body:`invoice_payment_id`,type:`string`,id:`param-invoice-payment-id-1`,children:_jsx(_components.p,{children:`The ID of the invoice payment to refund. Cannot be used with other target identifiers.`})}),`\n`,_jsx(ParamField,{body:`invoice_payment_external_id`,type:`string`,id:`param-invoice-payment-external-id-1`,children:_jsx(_components.p,{children:`The external ID of the invoice payment to refund. Cannot be used with other target identifiers.`})}),`\n`,_jsx(ParamField,{body:`refund_processing_fee`,type:`integer`,id:`param-refund-processing-fee-1`,children:_jsx(_components.p,{children:`Fee charged to the business for processing the refund in cents. Defaults to 0.`})}),`\n`,_jsx(ParamField,{body:`method`,type:`PaymentMethod enum`,required:`true`,id:`param-method-1`,children:_jsxs(_components.p,{children:[`Method of the payment (e.g., `,_jsx(_components.code,{children:`CREDIT_CARD`}),`, `,_jsx(_components.code,{children:`ACH`}),`, etc.).`]})}),`\n`,_jsx(ParamField,{body:`processor`,type:`string`,id:`param-processor-1`,children:_jsxs(_components.p,{children:[`Processor used for the payment (e.g., `,_jsx(_components.code,{children:`STRIPE`}),`, `,_jsx(_components.code,{children:`SHOPIFY`}),`, etc.).`]})}),`\n`,_jsxs(ParamField,{body:`tags`,type:`array of TagKeyValue objects`,id:`param-tags`,children:[_jsx(_components.p,{children:`Tags to apply to the refund. Tags are key-value pairs that can be used to categorize and filter refunds.`}),_jsxs(Expandable,{title:`TagKeyValue properties`,children:[_jsx(ParamField,{body:`key`,required:`true`,type:`string`,id:`param-key-4`,children:_jsx(_components.p,{children:`The tag dimension key (e.g., “department”, “project”, “location”)`})}),_jsx(ParamField,{body:`dimension_display_name`,type:`string`,id:`param-dimension-display-name`,children:_jsx(_components.p,{children:`Optional display name for the tag dimension. If the dimension doesn’t exist, this will be used as its display name.`})}),_jsx(ParamField,{body:`value`,required:`true`,type:`string`,id:`param-value-4`,children:_jsx(_components.p,{children:`The tag value (e.g., “engineering”, “project-alpha”, “san-francisco”)`})}),_jsx(ParamField,{body:`value_display_name`,type:`string`,id:`param-value-display-name`,children:_jsx(_components.p,{children:`Optional display name for the tag value. If the value doesn’t exist, this will be used as its display name.`})})]})]}),`\n`,_jsx(ParamField,{body:`memo`,type:`string`,id:`param-memo-4`,children:_jsx(_components.p,{children:`Memo for any text you would like to associate with the refund.`})}),`\n`,_jsx(ParamField,{body:`metadata`,type:`json object`,id:`param-metadata-4`,children:_jsx(_components.p,{children:`Arbitrary metadata you can include with the refund.`})}),`\n`,_jsx(Heading,{level:`2`,id:`itemized-refund-creation-parameters`,children:`Itemized Refund Creation Parameters`}),`\n`,_jsx(_components.p,{children:`Use these parameters to create an itemized refund with full control over allocations and payments.`}),`\n`,_jsx(ParamField,{body:`external_id`,type:`string`,id:`param-external-id-4`,children:_jsxs(_components.p,{children:[`Unique ID of the refund in your system for linking purposes. `,_jsx(_components.strong,{children:`Idempotency key`}),`.`]})}),`\n`,_jsx(ParamField,{body:`refunded_amount`,type:`integer`,required:`true`,id:`param-refunded-amount-2`,children:_jsx(_components.p,{children:`The total amount of the refund in cents. Must equal the sum of all allocation amounts.`})}),`\n`,_jsx(ParamField,{body:`completed_at`,type:`ISO8601 timestamp`,required:`true`,id:`param-completed-at-3`,children:_jsx(_components.p,{children:`When the refund was completed.`})}),`\n`,_jsxs(ParamField,{body:`allocations`,type:`array of RefundAllocationParams objects`,required:`true`,id:`param-allocations-1`,children:[_jsx(_components.p,{children:`The targets of the refund. Each allocation specifies how much of the refund should be applied to a specific invoice, line item, payment, or customer.`}),_jsxs(Expandable,{title:`RefundAllocationParams properties`,children:[_jsx(ResponseField,{name:`external_id`,type:`string`,id:`param-external-id-5`,children:_jsx(_components.p,{children:`External identifier for the allocation.`})}),_jsx(ResponseField,{name:`total_amount`,required:`true`,type:`integer`,id:`param-total-amount`,children:_jsx(_components.p,{children:`Total amount of this allocation in cents. Must equal the sum of all line item amounts.`})}),_jsx(ResponseField,{name:`line_items`,required:`true`,type:`array of LineItemParams objects`,id:`param-line-items-1`,children:_jsx(_components.p,{children:`Line items that make up this allocation.`})}),_jsx(ResponseField,{name:`invoice_id`,type:`string`,id:`param-invoice-id-2`,children:_jsx(_components.p,{children:`ID of the invoice this allocation targets.`})}),_jsx(ResponseField,{name:`invoice_external_id`,type:`string`,id:`param-invoice-external-id-2`,children:_jsx(_components.p,{children:`External ID of the invoice this allocation targets.`})}),_jsx(ResponseField,{name:`invoice_line_item_id`,type:`string`,id:`param-invoice-line-item-id-2`,children:_jsx(_components.p,{children:`ID of the invoice line item this allocation targets.`})}),_jsx(ResponseField,{name:`invoice_line_item_external_id`,type:`string`,id:`param-invoice-line-item-external-id-2`,children:_jsx(_components.p,{children:`External ID of the invoice line item this allocation targets.`})}),_jsx(ResponseField,{name:`invoice_payment_id`,type:`string`,id:`param-invoice-payment-id-2`,children:_jsx(_components.p,{children:`ID of the invoice payment this allocation targets.`})}),_jsx(ResponseField,{name:`invoice_payment_external_id`,type:`string`,id:`param-invoice-payment-external-id-2`,children:_jsx(_components.p,{children:`External ID of the invoice payment this allocation targets.`})}),_jsx(ResponseField,{name:`customer_id`,type:`string`,id:`param-customer-id`,children:_jsx(_components.p,{children:`ID of the customer this allocation targets.`})}),_jsx(ResponseField,{name:`customer_external_id`,type:`string`,id:`param-customer-external-id`,children:_jsx(_components.p,{children:`External ID of the customer this allocation targets.`})}),_jsx(ResponseField,{name:`tags`,type:`array of TagKeyValue objects`,id:`param-tags-1`,children:_jsx(_components.p,{children:`Tags for this allocation.`})}),_jsx(ResponseField,{name:`memo`,type:`string`,id:`param-memo-5`,children:_jsx(_components.p,{children:`Memo for this allocation.`})}),_jsx(ResponseField,{name:`metadata`,type:`json object`,id:`param-metadata-5`,children:_jsx(_components.p,{children:`Metadata for this allocation.`})})]})]}),`\n`,_jsxs(ParamField,{body:`payments`,type:`array of RefundPaymentParams objects`,required:`true`,id:`param-payments-1`,children:[_jsx(_components.p,{children:`The payment methods and amounts used to process the refund.`}),_jsxs(Expandable,{title:`RefundPaymentParams properties`,children:[_jsx(ResponseField,{name:`external_id`,type:`string`,id:`param-external-id-6`,children:_jsx(_components.p,{children:`External identifier for the payment.`})}),_jsx(ResponseField,{name:`refunded_amount`,required:`true`,type:`integer`,id:`param-refunded-amount-3`,children:_jsx(_components.p,{children:`Amount refunded to the customer in cents.`})}),_jsx(ResponseField,{name:`refund_processing_fee`,type:`integer`,id:`param-refund-processing-fee-2`,children:_jsx(_components.p,{children:`Fee charged to the business for processing this payment.`})}),_jsx(ResponseField,{name:`completed_at`,required:`true`,type:`ISO8601 timestamp`,id:`param-completed-at-4`,children:_jsx(_components.p,{children:`When this payment was completed.`})}),_jsx(ResponseField,{name:`method`,required:`true`,type:`PaymentMethod enum`,id:`param-method-2`,children:_jsx(_components.p,{children:`Payment method used.`})}),_jsx(ResponseField,{name:`processor`,type:`string`,id:`param-processor-2`,children:_jsx(_components.p,{children:`Processor used for this payment.`})}),_jsx(ResponseField,{name:`refunded_payment_fees`,type:`array of RefundedPaymentFeeInput objects`,id:`param-refunded-payment-fees-1`,children:_jsx(_components.p,{children:`Fees refunded as part of this payment.`})}),_jsx(ResponseField,{name:`tags`,type:`array of TagKeyValue objects`,id:`param-tags-2`,children:_jsx(_components.p,{children:`Tags for this payment.`})}),_jsx(ResponseField,{name:`memo`,type:`string`,id:`param-memo-6`,children:_jsx(_components.p,{children:`Memo for this payment.`})}),_jsx(ResponseField,{name:`metadata`,type:`json object`,id:`param-metadata-6`,children:_jsx(_components.p,{children:`Metadata for this payment.`})}),_jsx(ParamField,{body:`reference_number`,type:`string`,id:`param-reference-number-3`,children:_jsx(_components.p,{children:`Any (typically user-visible) identifier for this payment.`})})]})]}),`\n`,_jsxs(ParamField,{body:`tags`,type:`array of TagKeyValue objects`,id:`param-tags-3`,children:[_jsx(_components.p,{children:`Tags to apply to the refund. Tags are key-value pairs that can be used to categorize and filter refunds.`}),_jsxs(Expandable,{title:`TagKeyValue properties`,children:[_jsx(ParamField,{body:`key`,required:`true`,type:`string`,id:`param-key-5`,children:_jsx(_components.p,{children:`The tag dimension key (e.g., “department”, “project”, “location”)`})}),_jsx(ParamField,{body:`dimension_display_name`,type:`string`,id:`param-dimension-display-name-1`,children:_jsx(_components.p,{children:`Optional display name for the tag dimension. If the dimension doesn’t exist, this will be used as its display name.`})}),_jsx(ParamField,{body:`value`,required:`true`,type:`string`,id:`param-value-5`,children:_jsx(_components.p,{children:`The tag value (e.g., “engineering”, “project-alpha”, “san-francisco”)`})}),_jsx(ParamField,{body:`value_display_name`,type:`string`,id:`param-value-display-name-1`,children:_jsx(_components.p,{children:`Optional display name for the tag value. If the value doesn’t exist, this will be used as its display name.`})})]})]}),`\n`,_jsx(ParamField,{body:`memo`,type:`string`,id:`param-memo-7`,children:_jsx(_components.p,{children:`Memo for any text you would like to associate with the refund.`})}),`\n`,_jsx(ParamField,{body:`metadata`,type:`json object`,id:`param-metadata-7`,children:_jsx(_components.p,{children:`Arbitrary metadata you can include with the refund.`})}),`\n`,`\n`,_jsx(Heading,{level:`2`,id:`dedicated-refunds`,children:`Dedicated Refunds`}),`\n`,_jsx(_components.p,{children:`Dedicated refunds are a refunds that are created alongside invoices, invoice line items, and invoice payments. They provide a streamlined way to create refunds during the invoice creation or payment recording process.`}),`\n`,_jsx(_components.p,{children:`They are intended for when you know at the time of importing an invoice, invoice line item, or payment that it will be refunded, and want to create everything in one API call.`}),`\n`,_jsx(_components.p,{children:`Each dedicated refund has exactly one allocation and one payment. Once created, the allocation target cannot be changed`}),`\n`,_jsx(_components.p,{children:`Dedicated refunds can be included when creating:`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Invoices`}),`: Add `,_jsx(_components.code,{children:`dedicated_refunds`}),` array to the invoice body`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Invoice Line Items`}),`: Add `,_jsx(_components.code,{children:`dedicated_refunds`}),` array to any line item`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Invoice Payments`}),`: Add `,_jsx(_components.code,{children:`dedicated_refunds`}),` array to any payment within an invoice`]}),`\n`,_jsx(Heading,{level:`3`,id:`simple-vs-itemized-dedicated-refunds`,children:`Simple vs Itemized Dedicated Refunds`}),`\n`,_jsx(_components.p,{children:`When creating dedicated refunds, Layer will automatically determine whether to create them as simple or itemized refunds based on the parameters you provide:`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Simple Dedicated Refunds`}),` (see `,_jsx(_components.a,{href:`#simple-refund-creation-parameters`,children:`Simple Refunds`}),`):`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Created when you don’t specify the `,_jsx(_components.code,{children:`line_items`}),` parameter`]}),`\n`,_jsx(_components.li,{children:`Layer automatically calculates the refund amount and creates a single allocation`}),`\n`,_jsx(_components.li,{children:`Ideal for straightforward refunds where you want to refund the full amount of a target`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Itemized Dedicated Refunds`}),` (see `,_jsx(_components.a,{href:`#itemized-refund-creation-parameters`,children:`Itemized Refunds`}),`):`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Created when you provide the `,_jsx(_components.code,{children:`line_items`}),` parameter with detailed allocation breakdowns`]}),`\n`,_jsx(_components.li,{children:`You have full control over how the refund amount is distributed across different ledger accounts`}),`\n`,_jsx(_components.li,{children:`Required for complex refunds involving multiple accounts or partial amounts`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`create-dedicated-refund-parameters-object`,children:`Create Dedicated Refund Parameters Object`}),`\n`,_jsx(ParamField,{body:`external_id`,type:`string`,id:`param-external-id-7`,children:_jsxs(_components.p,{children:[`External ID for the refund within your platform. `,_jsx(_components.strong,{children:`Idempotency key.`})]})}),`\n`,_jsx(ParamField,{body:`account_identifier`,type:`AccountIdentifier object`,id:`param-account-identifier`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`/api-reference/ledger/account-identifier`,children:`Account Identifier`}),` for the refund allocation. If not specified, will use the appropriate account based on the target.`]})}),`\n`,_jsxs(ParamField,{body:`line_items`,type:`array of CreateCustomerRefundAllocationLineItemParams objects`,id:`param-line-items-2`,children:[_jsx(_components.p,{children:`Detailed line items for the refund allocation. Use this for itemized refunds where you need to specify the exact amounts and accounts.`}),_jsxs(Expandable,{title:`CreateCustomerRefundAllocationLineItemParams properties`,children:[_jsx(ResponseField,{name:`amount`,required:`true`,type:`integer`,id:`param-amount-2`,children:_jsx(_components.p,{children:`Amount for this line item in cents.`})}),_jsx(ResponseField,{name:`account_identifier`,type:`AccountIdentifier object`,id:`param-account-identifier-1`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`/api-reference/ledger/account-identifier`,children:`Account Identifier`}),` for this line item.`]})}),_jsx(ResponseField,{name:`tags`,type:`array of TagKeyValue objects`,id:`param-tags-4`,children:_jsx(_components.p,{children:`Tags for this line item.`})}),_jsx(ResponseField,{name:`memo`,type:`string`,id:`param-memo-8`,children:_jsx(_components.p,{children:`Memo for this line item.`})}),_jsx(ResponseField,{name:`metadata`,type:`json object`,id:`param-metadata-8`,children:_jsx(_components.p,{children:`Metadata for this line item.`})}),_jsx(ResponseField,{name:`reference_number`,type:`string`,id:`param-reference-number-4`,children:_jsx(_components.p,{children:`Reference number for this line item.`})})]})]}),`\n`,_jsx(ParamField,{body:`completed_at`,type:`ISO8601 timestamp`,required:`true`,id:`param-completed-at-5`,children:_jsx(_components.p,{children:`When the refund was completed.`})}),`\n`,_jsx(ParamField,{body:`refund_processing_fee`,type:`integer`,id:`param-refund-processing-fee-3`,children:_jsx(_components.p,{children:`Processing fee for the refund, in cents. Defaults to 0.`})}),`\n`,_jsx(ParamField,{body:`method`,type:`PaymentMethod enum`,required:`true`,id:`param-method-3`,children:_jsxs(_components.p,{children:[`Method used to make the refund.\nValues can be: `,_jsx(_components.code,{children:`CASH`}),`, `,_jsx(_components.code,{children:`CHECK`}),`, `,_jsx(_components.code,{children:`CREDIT_CARD`}),`, `,_jsx(_components.code,{children:`ACH`}),`, `,_jsx(_components.code,{children:`CREDIT_BALANCE`}),`, `,_jsx(_components.code,{children:`OTHER`})]})}),`\n`,_jsx(ParamField,{body:`processor`,type:`string`,id:`param-processor-3`,children:_jsx(_components.p,{children:`Processor used to make the refund, if any.`})}),`\n`,_jsxs(ParamField,{body:`refunded_payment_fees`,type:`array of RefundedInvoicePaymentFeeInput objects`,id:`param-refunded-payment-fees-2`,children:[_jsx(_components.p,{children:`List of payment fees that were refunded as part of this refund.`}),_jsxs(Expandable,{title:`RefundedInvoicePaymentFeeInput properties`,children:[_jsx(ResponseField,{name:`account`,required:`true`,type:`AccountIdentifier object`,id:`param-account-1`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`/api-reference/ledger/account-identifier`,children:`Account Identifier`}),` for the refunded fee.`]})}),_jsx(ResponseField,{name:`description`,type:`string`,id:`param-description-1`,children:_jsx(_components.p,{children:`Description of the fee being refunded.`})}),_jsx(ResponseField,{name:`amount`,required:`true`,type:`integer`,id:`param-amount-3`,children:_jsx(_components.p,{children:`Amount of the fee refund in cents.`})})]})]}),`\n`,_jsxs(ParamField,{body:`tags`,type:`array of TagKeyValue objects`,id:`param-tags-5`,children:[_jsx(_components.p,{children:`Tags to apply to the refund. Tags are key-value pairs that can be used to categorize and filter refunds.`}),_jsxs(Expandable,{title:`TagKeyValue properties`,children:[_jsx(ParamField,{body:`key`,required:`true`,type:`string`,id:`param-key-6`,children:_jsx(_components.p,{children:`The tag dimension key (e.g., “department”, “project”, “location”)`})}),_jsx(ParamField,{body:`dimension_display_name`,type:`string`,id:`param-dimension-display-name-2`,children:_jsx(_components.p,{children:`Optional display name for the tag dimension. If the dimension doesn’t exist, this will be used as its display name.`})}),_jsx(ParamField,{body:`value`,required:`true`,type:`string`,id:`param-value-6`,children:_jsx(_components.p,{children:`The tag value (e.g., “engineering”, “project-alpha”, “san-francisco”)`})}),_jsx(ParamField,{body:`value_display_name`,type:`string`,id:`param-value-display-name-2`,children:_jsx(_components.p,{children:`Optional display name for the tag value. If the value doesn’t exist, this will be used as its display name.`})})]})]}),`\n`,_jsx(ParamField,{body:`memo`,type:`string`,id:`param-memo-9`,children:_jsx(_components.p,{children:`Any text you would like to associate with the refund.`})}),`\n`,_jsx(ParamField,{body:`metadata`,type:`json object`,id:`param-metadata-9`,children:_jsx(_components.p,{children:`Arbitrary metadata you can include with the refund.`})}),`\n`,_jsx(ParamField,{body:`reference_number`,type:`string`,id:`param-reference-number-5`,children:_jsx(_components.p,{children:`Any (typically user-visible) identifier you would like to associate with the refund.`})}),`\n`,_jsx(Heading,{level:`3`,id:`example-invoice-with-dedicated-refunds`,children:`Example: Invoice with Dedicated Refunds`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`69`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`69`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"invoice-123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sent_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-04-02T09:02:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"customer_external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"customer-456\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"line_items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"product\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Widget Pro\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"unit_price\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2500`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`4`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"dedicated_refunds\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"refund-widget-1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"line_items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"account_identifier\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"StableName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"stable_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CUSTOMER_REFUNDS\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"completed_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-04-03T10:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"method\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CREDIT_CARD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"processor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"RAINFOREST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"memo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Partial (itemized) refund for damaged item\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"payments\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"payment-123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"method\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CREDIT_CARD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"dedicated_refunds\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"refund-processing-fee\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"completed_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-04-03T10:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"method\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CREDIT_CARD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"processor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"RAINFOREST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"memo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Full (simple) payment refund\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"payment-xyz\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"method\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CREDIT_CARD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`7000`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"dedicated_refunds\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"refund-invoice-discount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"line_items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`250`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"account_identifier\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"StableName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"stable_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CUSTOMER_REFUNDS\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"completed_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-04-03T10:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"method\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CREDIT_CARD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"processor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"RAINFOREST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"memo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Partial (itemized) refund for whole invoice\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Refund object","description":null,"href":"/api-reference/refunds/refund"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`A Refund represents a transaction that returns value from a business to a customer. Each refund has one or more Refund Allocations (targets) and zero or more Refund Payments.`}),`\n`,_jsx(Heading,{level:`2`,id:`creating-refunds`,children:`Creating Refunds`}),`\n`,_jsx(_components.p,{children:`There are two ways to create refunds:`}),`\n`,_jsx(Heading,{level:`3`,id:`simple-refunds`,children:`Simple Refunds`}),`\n`,_jsx(_components.p,{children:`Use simple refunds when you want to fully refund a single target (invoice, invoice line item, or invoice payment) and the refund is fully paid. Layer automatically:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Calculates the refund amount based on what can be refunded from the target`}),`\n`,_jsx(_components.li,{children:`Creates one allocation that perfectly cancels out the target`}),`\n`,_jsx(_components.li,{children:`Creates one refund payment that pays the refund in full`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`itemized-refunds`,children:`Itemized Refunds`}),`\n`,_jsx(_components.p,{children:`Use itemized refunds for more complex scenarios including:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Refunding multiple targets in a single refund`}),`\n`,_jsx(_components.li,{children:`Partial refunds that don’t fully cancel out the target`}),`\n`,_jsx(_components.li,{children:`Unpaid refunds (refunds owed but not yet disbursed)`}),`\n`,_jsx(_components.li,{children:`Custom allocation amounts or payment structures`}),`\n`]}),`\n`,_jsx(_components.p,{children:`With itemized refunds, you specify all allocations and payments explicitly.`}),`\n`,_jsx(Heading,{level:`2`,id:`refund-object`,children:`Refund Object`}),`\n`,_jsx(Heading,{level:`3`,id:`attributes`,children:`Attributes`}),`\n`,_jsx(ParamField,{body:`id`,type:`string`,required:`true`,id:`param-id`,children:_jsx(_components.p,{children:`Unique identifier for the refund.`})}),`\n`,_jsx(ParamField,{body:`external_id`,type:`string`,id:`param-external-id`,children:_jsxs(_components.p,{children:[`Unique ID of the refund in your system for linking purposes. `,_jsx(_components.strong,{children:`Idempotency key`}),`.`]})}),`\n`,_jsx(ParamField,{body:`refunded_amount`,type:`integer`,required:`true`,id:`param-refunded-amount`,children:_jsx(_components.p,{children:`Amount refunded to the customer in cents.`})}),`\n`,_jsx(ParamField,{body:`status`,type:`string`,required:`true`,id:`param-status`,children:_jsx(_components.p,{children:`Status of the refund.`})}),`\n`,_jsx(ParamField,{body:`completed_at`,type:`ISO8601 timestamp`,required:`true`,id:`param-completed-at`,children:_jsx(_components.p,{children:`Time when the refund was completed.`})}),`\n`,_jsx(ParamField,{body:`is_dedicated`,type:`boolean`,required:`true`,id:`param-is-dedicated`,children:_jsx(_components.p,{children:`Whether this refund is dedicated or not. Dedicated refunds can only have one allocation and one payment, and their allocation target cannot be changed.`})}),`\n`,_jsx(ParamField,{body:`allocations`,type:`array of RefundAllocation objects`,id:`param-allocations`,children:_jsxs(_components.p,{children:[`Allocations associated with this refund. See `,_jsx(_components.a,{href:`#refund-allocation-object`,children:`Refund Allocation Object`}),` for details.`]})}),`\n`,_jsx(ParamField,{body:`payments`,type:`array of RefundPayment objects`,id:`param-payments`,children:_jsxs(_components.p,{children:[`Payments associated with this refund. See `,_jsx(_components.a,{href:`#refund-payment-object`,children:`Refund Payment Object`}),` for details.`]})}),`\n`,_jsx(ParamField,{body:`payouts`,type:`array of Payout objects`,id:`param-payouts`,children:_jsx(_components.p,{children:`Payouts associated with this refund.`})}),`\n`,_jsxs(ParamField,{body:`transaction_tags`,type:`Array of Tags`,id:`param-transaction-tags`,children:[_jsx(_components.p,{children:`Tags associated with the refund.`}),_jsxs(Expandable,{title:`Tag properties`,children:[_jsx(ResponseField,{name:`key`,required:`true`,type:`string`,id:`param-key`,children:_jsx(_components.p,{children:`The tag’s key`})}),_jsx(ResponseField,{name:`value`,required:`true`,type:`string`,id:`param-value`,children:_jsx(_components.p,{children:`The tag’s value`})}),_jsx(ResponseField,{name:`created_at`,required:`true`,type:`ISO8601 timestamp`,id:`param-created-at`,children:_jsx(_components.p,{children:`When the tag was created`})}),_jsx(ResponseField,{name:`updated_at`,required:`true`,type:`ISO8601 timestamp`,id:`param-updated-at`,children:_jsx(_components.p,{children:`When the tag was last updated`})}),_jsx(ResponseField,{name:`deleted_at`,type:`ISO8601 timestamp`,id:`param-deleted-at`,children:_jsx(_components.p,{children:`When the tag was deleted`})})]})]}),`\n`,_jsx(ParamField,{body:`memo`,type:`string`,id:`param-memo`,children:_jsx(_components.p,{children:`Memo for any text you would like to associate with the refund.`})}),`\n`,_jsx(ParamField,{body:`metadata`,type:`json object`,id:`param-metadata`,children:_jsx(_components.p,{children:`Arbitrary metadata you can include with the refund.`})}),`\n`,_jsx(ParamField,{body:`reference_number`,type:`string`,id:`param-reference-number`,children:_jsx(_components.p,{children:`Any (typically user-visible) identifier you would like to associate with the refund. Can be used to filter when listing refunds.`})}),`\n`,_jsx(Heading,{level:`2`,id:`refund-allocation-object`,children:`Refund Allocation Object`}),`\n`,_jsx(_components.p,{children:`A Refund Allocation represents one of the targets of a refund. It can reference a specific invoice, invoice line item, invoice payment, or customer.\nFor example, a refund can apply to two separate invoices if the invoices have the same customer.\nThe total of the amounts of the refund allocations must add up to the refund amount.`}),`\n`,_jsx(ParamField,{body:`id`,type:`string`,required:`true`,id:`param-id-1`,children:_jsx(_components.p,{children:`Unique identifier for the refund allocation.`})}),`\n`,_jsx(ParamField,{body:`invoice_id`,type:`string`,id:`param-invoice-id`,children:_jsx(_components.p,{children:`ID of the invoice this allocation is associated with.`})}),`\n`,_jsx(ParamField,{body:`amount`,type:`integer`,required:`true`,id:`param-amount`,children:_jsx(_components.p,{children:`Amount of the allocation in cents.`})}),`\n`,_jsx(ParamField,{body:`line_items`,type:`array of RefundAllocationLineItem objects`,id:`param-line-items`,children:_jsxs(_components.p,{children:[`Line items that make up this allocation. See `,_jsx(_components.a,{href:`#refund-allocation-line-item-object`,children:`Refund Allocation Line Item Object`}),` for details.`]})}),`\n`,_jsx(ParamField,{body:`invoice_external_id`,type:`string`,id:`param-invoice-external-id`,children:_jsx(_components.p,{children:`External ID of the invoice this allocation is associated with.`})}),`\n`,_jsx(ParamField,{body:`invoice_line_item_id`,type:`string`,id:`param-invoice-line-item-id`,children:_jsxs(_components.p,{children:[`ID of the invoice line item this allocation is associated with. If specified, must not refer to a different invoice than `,_jsx(_components.code,{children:`invoice_id`}),` or `,_jsx(_components.code,{children:`invoice_external_id`}),`.`]})}),`\n`,_jsx(ParamField,{body:`invoice_line_item_external_id`,type:`string`,id:`param-invoice-line-item-external-id`,children:_jsxs(_components.p,{children:[`The external ID of the invoice line item to refund. If specified alongside `,_jsx(_components.code,{children:`invoice_line_item_id`}),`, they must refer to the same invoice line item.`]})}),`\n`,_jsx(ParamField,{body:`invoice_payment_id`,type:`string`,id:`param-invoice-payment-id`,children:_jsx(_components.p,{children:`ID of the invoice payment this allocation is associated with.`})}),`\n`,_jsx(ParamField,{body:`invoice_payment_external_id`,type:`string`,id:`param-invoice-payment-external-id`,children:_jsx(_components.p,{children:`External ID of the invoice payment this allocation is associated with.`})}),`\n`,_jsx(ParamField,{body:`customer`,type:`Customer object`,id:`param-customer`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`/api-reference/customer/customer`,children:`Customer`}),` associated with this refund allocation.`]})}),`\n`,_jsxs(ParamField,{body:`transaction_tags`,type:`Array of Tags`,id:`param-transaction-tags-1`,children:[_jsx(_components.p,{children:`Tags associated with the refund allocation.`}),_jsxs(Expandable,{title:`Tag properties`,children:[_jsx(ResponseField,{name:`key`,required:`true`,type:`string`,id:`param-key-1`,children:_jsx(_components.p,{children:`The tag’s key`})}),_jsx(ResponseField,{name:`value`,required:`true`,type:`string`,id:`param-value-1`,children:_jsx(_components.p,{children:`The tag’s value`})}),_jsx(ResponseField,{name:`created_at`,required:`true`,type:`ISO8601 timestamp`,id:`param-created-at-1`,children:_jsx(_components.p,{children:`When the tag was created`})}),_jsx(ResponseField,{name:`updated_at`,required:`true`,type:`ISO8601 timestamp`,id:`param-updated-at-1`,children:_jsx(_components.p,{children:`When the tag was last updated`})}),_jsx(ResponseField,{name:`deleted_at`,type:`ISO8601 timestamp`,id:`param-deleted-at-1`,children:_jsx(_components.p,{children:`When the tag was deleted`})})]})]}),`\n`,_jsx(ParamField,{body:`memo`,type:`string`,id:`param-memo-1`,children:_jsx(_components.p,{children:`Memo for any text you would like to associate with the refund allocation.`})}),`\n`,_jsx(ParamField,{body:`metadata`,type:`json object`,id:`param-metadata-1`,children:_jsx(_components.p,{children:`Arbitrary metadata you can include with the refund allocation.`})}),`\n`,_jsx(ParamField,{body:`reference_number`,type:`string`,id:`param-reference-number-1`,children:_jsx(_components.p,{children:`Any (typically user-visible) identifier you would like to associate with the refund allocation.`})}),`\n`,_jsx(Heading,{level:`2`,id:`refund-allocation-line-item-object`,children:`Refund Allocation Line Item Object`}),`\n`,_jsx(_components.p,{children:`A Refund Allocation Line Item represents a specific line within a refund allocation, allowing for detailed breakdowns of how the allocation amount is distributed across different ledger accounts.`}),`\n`,_jsx(ParamField,{body:`external_id`,type:`string`,id:`param-external-id-1`,children:_jsx(_components.p,{children:`External identifier for the line item.`})}),`\n`,_jsx(ParamField,{body:`amount`,type:`integer`,required:`true`,id:`param-amount-1`,children:_jsx(_components.p,{children:`Amount of the line item in cents.`})}),`\n`,_jsx(ParamField,{body:`ledger_account`,type:`ChartAccount object`,id:`param-ledger-account`,children:_jsx(_components.p,{children:`The ledger account associated with this line item.`})}),`\n`,_jsx(ParamField,{body:`prepayment_account`,type:`ChartAccount object`,id:`param-prepayment-account`,children:_jsx(_components.p,{children:`The prepayment ledger account associated with this line item, if applicable.`})}),`\n`,_jsxs(ParamField,{body:`transaction_tags`,type:`Array of Tags`,id:`param-transaction-tags-2`,children:[_jsx(_components.p,{children:`Tags associated with the line item.`}),_jsxs(Expandable,{title:`Tag properties`,children:[_jsx(ResponseField,{name:`key`,required:`true`,type:`string`,id:`param-key-2`,children:_jsx(_components.p,{children:`The tag’s key`})}),_jsx(ResponseField,{name:`value`,required:`true`,type:`string`,id:`param-value-2`,children:_jsx(_components.p,{children:`The tag’s value`})}),_jsx(ResponseField,{name:`created_at`,required:`true`,type:`ISO8601 timestamp`,id:`param-created-at-2`,children:_jsx(_components.p,{children:`When the tag was created`})}),_jsx(ResponseField,{name:`updated_at`,required:`true`,type:`ISO8601 timestamp`,id:`param-updated-at-2`,children:_jsx(_components.p,{children:`When the tag was last updated`})}),_jsx(ResponseField,{name:`deleted_at`,type:`ISO8601 timestamp`,id:`param-deleted-at-2`,children:_jsx(_components.p,{children:`When the tag was deleted`})})]})]}),`\n`,_jsx(ParamField,{body:`memo`,type:`string`,id:`param-memo-2`,children:_jsx(_components.p,{children:`Memo for any text you would like to associate with the line item.`})}),`\n`,_jsx(ParamField,{body:`metadata`,type:`json object`,id:`param-metadata-2`,children:_jsx(_components.p,{children:`Arbitrary metadata you can include with the line item.`})}),`\n`,_jsx(ParamField,{body:`reference_number`,type:`string`,id:`param-reference-number-2`,children:_jsx(_components.p,{children:`Any (typically user-visible) identifier you would like to associate with the refund pyment. Can be used to filter when listing refund payments.`})}),`\n`,_jsx(Heading,{level:`2`,id:`refund-payment-object`,children:`Refund Payment Object`}),`\n`,_jsx(_components.p,{children:`A Refund Payment represents a money movement by which the refund was disbursed to the customer.\nA refund with zero payments represents a refund that is owed to a customer but has not yet been sent.`}),`\n`,_jsxs(_components.p,{children:[`A refund can have many payments so long as the total of their `,_jsx(_components.code,{children:`refunded_amount`}),`s does not exceed the total amount of the refund.`]}),`\n`,_jsx(_components.p,{children:`Refund payments are matchable to bank transactions and are therefore the means by which refunds are reconciled with bank accounts.`}),`\n`,_jsx(ParamField,{body:`id`,type:`string`,required:`true`,id:`param-id-2`,children:_jsx(_components.p,{children:`Unique identifier for the payment.`})}),`\n`,_jsx(ParamField,{body:`external_id`,type:`string`,id:`param-external-id-2`,children:_jsxs(_components.p,{children:[`Unique ID of the payment in your system for linking purposes. `,_jsx(_components.strong,{children:`Idempotency key`}),`.`]})}),`\n`,_jsx(ParamField,{body:`refunded_amount`,type:`integer`,required:`true`,id:`param-refunded-amount-1`,children:_jsx(_components.p,{children:`Amount refunded to the customer in cents.`})}),`\n`,_jsx(ParamField,{body:`refund_processing_fee`,type:`integer`,id:`param-refund-processing-fee`,children:_jsx(_components.p,{children:`Fee paid by the business to make the refund payment (typically a payment processing fee).`})}),`\n`,_jsx(ParamField,{body:`completed_at`,type:`ISO8601 timestamp`,required:`true`,id:`param-completed-at-1`,children:_jsx(_components.p,{children:`Time when the payment was completed.`})}),`\n`,_jsx(ParamField,{body:`method`,type:`string`,required:`true`,id:`param-method`,children:_jsxs(_components.p,{children:[`Method of the payment (e.g., `,_jsx(_components.code,{children:`CREDIT_CARD`}),`, `,_jsx(_components.code,{children:`ACH`}),`, etc.).`]})}),`\n`,_jsx(ParamField,{body:`processor`,type:`string`,id:`param-processor`,children:_jsxs(_components.p,{children:[`Processor used for the payment (e.g., `,_jsx(_components.code,{children:`STRIPE`}),`, `,_jsx(_components.code,{children:`SHOPIFY`}),`, etc.).`]})}),`\n`,_jsx(ParamField,{body:`refunded_payment_fees`,type:`array of RefundedPaymentFee objects`,id:`param-refunded-payment-fees`,children:_jsxs(_components.p,{children:[`Refunded payment fees associated with the refund payment. See `,_jsx(_components.a,{href:`#refunded-payment-fee-object`,children:`Refunded Payment Fee Object`}),` for details.`]})}),`\n`,_jsxs(ParamField,{body:`transaction_tags`,type:`Array of Tags`,id:`param-transaction-tags-3`,children:[_jsx(_components.p,{children:`Tags associated with the refund payment.`}),_jsxs(Expandable,{title:`Tag properties`,children:[_jsx(ResponseField,{name:`key`,required:`true`,type:`string`,id:`param-key-3`,children:_jsx(_components.p,{children:`The tag’s key`})}),_jsx(ResponseField,{name:`value`,required:`true`,type:`string`,id:`param-value-3`,children:_jsx(_components.p,{children:`The tag’s value`})}),_jsx(ResponseField,{name:`created_at`,required:`true`,type:`ISO8601 timestamp`,id:`param-created-at-3`,children:_jsx(_components.p,{children:`When the tag was created`})}),_jsx(ResponseField,{name:`updated_at`,required:`true`,type:`ISO8601 timestamp`,id:`param-updated-at-3`,children:_jsx(_components.p,{children:`When the tag was last updated`})}),_jsx(ResponseField,{name:`deleted_at`,type:`ISO8601 timestamp`,id:`param-deleted-at-3`,children:_jsx(_components.p,{children:`When the tag was deleted`})})]})]}),`\n`,_jsx(ParamField,{body:`memo`,type:`string`,id:`param-memo-3`,children:_jsx(_components.p,{children:`Memo for any text you would like to associate with the refund payment.`})}),`\n`,_jsx(ParamField,{body:`metadata`,type:`json object`,id:`param-metadata-3`,children:_jsx(_components.p,{children:`Arbitrary metadata you can include with the refund payment.`})}),`\n`,_jsx(Heading,{level:`2`,id:`refunded-payment-fee-object`,children:`Refunded Payment Fee Object`}),`\n`,_jsx(_components.p,{children:`A Refunded Payment Fee represents a fee that was refunded as part of a refund payment.\nThis differs from the ‘refund_processing_fee’ field on the refund payment, since that is paid by the business (typically to a payment processor), whereas this is refunded from the payment processor back to the business.`}),`\n`,_jsx(ParamField,{body:`account`,type:`AccountIdentifier object`,required:`true`,id:`param-account`,children:_jsx(_components.p,{children:`Identifier of the ledger account for the refunded payment fee.`})}),`\n`,_jsx(ParamField,{body:`description`,type:`string`,id:`param-description`,children:_jsx(_components.p,{children:`Description of the fee that the refunded payment fee refunds.`})}),`\n`,_jsx(ParamField,{body:`fee_amount`,type:`integer`,required:`true`,id:`param-fee-amount`,children:_jsx(_components.p,{children:`Amount of the fee refund in cents.`})}),`\n`,_jsx(Heading,{level:`2`,id:`simple-refund-creation-parameters`,children:`Simple Refund Creation Parameters`}),`\n`,_jsx(_components.p,{children:`Use these parameters to create a simple refund that fully refunds a single target (invoice, invoice line item, or invoice payment) and is fully paid.`}),`\n`,_jsx(ParamField,{body:`external_id`,type:`string`,id:`param-external-id-3`,children:_jsxs(_components.p,{children:[`Unique ID of the refund in your system for linking purposes. `,_jsx(_components.strong,{children:`Idempotency key`}),`.`]})}),`\n`,_jsx(ParamField,{body:`completed_at`,type:`ISO8601 timestamp`,required:`true`,id:`param-completed-at-2`,children:_jsx(_components.p,{children:`When the refund was completed and paid.`})}),`\n`,_jsx(ParamField,{body:`invoice_id`,type:`string`,id:`param-invoice-id-1`,children:_jsx(_components.p,{children:`The ID of the invoice to refund. Cannot be used with other target identifiers.`})}),`\n`,_jsx(ParamField,{body:`invoice_external_id`,type:`string`,id:`param-invoice-external-id-1`,children:_jsx(_components.p,{children:`The external ID of the invoice to refund. Cannot be used with other target identifiers.`})}),`\n`,_jsx(ParamField,{body:`invoice_line_item_id`,type:`string`,id:`param-invoice-line-item-id-1`,children:_jsx(_components.p,{children:`The ID of the invoice line item to refund. Cannot be used with other target identifiers.`})}),`\n`,_jsx(ParamField,{body:`invoice_line_item_external_id`,type:`string`,id:`param-invoice-line-item-external-id-1`,children:_jsx(_components.p,{children:`The external ID of the invoice line item to refund. Cannot be used with other target identifiers.`})}),`\n`,_jsx(ParamField,{body:`invoice_payment_id`,type:`string`,id:`param-invoice-payment-id-1`,children:_jsx(_components.p,{children:`The ID of the invoice payment to refund. Cannot be used with other target identifiers.`})}),`\n`,_jsx(ParamField,{body:`invoice_payment_external_id`,type:`string`,id:`param-invoice-payment-external-id-1`,children:_jsx(_components.p,{children:`The external ID of the invoice payment to refund. Cannot be used with other target identifiers.`})}),`\n`,_jsx(ParamField,{body:`refund_processing_fee`,type:`integer`,id:`param-refund-processing-fee-1`,children:_jsx(_components.p,{children:`Fee charged to the business for processing the refund in cents. Defaults to 0.`})}),`\n`,_jsx(ParamField,{body:`method`,type:`PaymentMethod enum`,required:`true`,id:`param-method-1`,children:_jsxs(_components.p,{children:[`Method of the payment (e.g., `,_jsx(_components.code,{children:`CREDIT_CARD`}),`, `,_jsx(_components.code,{children:`ACH`}),`, etc.).`]})}),`\n`,_jsx(ParamField,{body:`processor`,type:`string`,id:`param-processor-1`,children:_jsxs(_components.p,{children:[`Processor used for the payment (e.g., `,_jsx(_components.code,{children:`STRIPE`}),`, `,_jsx(_components.code,{children:`SHOPIFY`}),`, etc.).`]})}),`\n`,_jsxs(ParamField,{body:`tags`,type:`array of TagKeyValue objects`,id:`param-tags`,children:[_jsx(_components.p,{children:`Tags to apply to the refund. Tags are key-value pairs that can be used to categorize and filter refunds.`}),_jsxs(Expandable,{title:`TagKeyValue properties`,children:[_jsx(ParamField,{body:`key`,required:`true`,type:`string`,id:`param-key-4`,children:_jsx(_components.p,{children:`The tag dimension key (e.g., “department”, “project”, “location”)`})}),_jsx(ParamField,{body:`dimension_display_name`,type:`string`,id:`param-dimension-display-name`,children:_jsx(_components.p,{children:`Optional display name for the tag dimension. If the dimension doesn’t exist, this will be used as its display name.`})}),_jsx(ParamField,{body:`value`,required:`true`,type:`string`,id:`param-value-4`,children:_jsx(_components.p,{children:`The tag value (e.g., “engineering”, “project-alpha”, “san-francisco”)`})}),_jsx(ParamField,{body:`value_display_name`,type:`string`,id:`param-value-display-name`,children:_jsx(_components.p,{children:`Optional display name for the tag value. If the value doesn’t exist, this will be used as its display name.`})})]})]}),`\n`,_jsx(ParamField,{body:`memo`,type:`string`,id:`param-memo-4`,children:_jsx(_components.p,{children:`Memo for any text you would like to associate with the refund.`})}),`\n`,_jsx(ParamField,{body:`metadata`,type:`json object`,id:`param-metadata-4`,children:_jsx(_components.p,{children:`Arbitrary metadata you can include with the refund.`})}),`\n`,_jsx(Heading,{level:`2`,id:`itemized-refund-creation-parameters`,children:`Itemized Refund Creation Parameters`}),`\n`,_jsx(_components.p,{children:`Use these parameters to create an itemized refund with full control over allocations and payments.`}),`\n`,_jsx(ParamField,{body:`external_id`,type:`string`,id:`param-external-id-4`,children:_jsxs(_components.p,{children:[`Unique ID of the refund in your system for linking purposes. `,_jsx(_components.strong,{children:`Idempotency key`}),`.`]})}),`\n`,_jsx(ParamField,{body:`refunded_amount`,type:`integer`,required:`true`,id:`param-refunded-amount-2`,children:_jsx(_components.p,{children:`The total amount of the refund in cents. Must equal the sum of all allocation amounts.`})}),`\n`,_jsx(ParamField,{body:`completed_at`,type:`ISO8601 timestamp`,required:`true`,id:`param-completed-at-3`,children:_jsx(_components.p,{children:`When the refund was completed.`})}),`\n`,_jsxs(ParamField,{body:`allocations`,type:`array of RefundAllocationParams objects`,required:`true`,id:`param-allocations-1`,children:[_jsx(_components.p,{children:`The targets of the refund. Each allocation specifies how much of the refund should be applied to a specific invoice, line item, payment, or customer.`}),_jsxs(Expandable,{title:`RefundAllocationParams properties`,children:[_jsx(ResponseField,{name:`external_id`,type:`string`,id:`param-external-id-5`,children:_jsx(_components.p,{children:`External identifier for the allocation.`})}),_jsx(ResponseField,{name:`total_amount`,required:`true`,type:`integer`,id:`param-total-amount`,children:_jsx(_components.p,{children:`Total amount of this allocation in cents. Must equal the sum of all line item amounts.`})}),_jsx(ResponseField,{name:`line_items`,required:`true`,type:`array of LineItemParams objects`,id:`param-line-items-1`,children:_jsx(_components.p,{children:`Line items that make up this allocation.`})}),_jsx(ResponseField,{name:`invoice_id`,type:`string`,id:`param-invoice-id-2`,children:_jsx(_components.p,{children:`ID of the invoice this allocation targets.`})}),_jsx(ResponseField,{name:`invoice_external_id`,type:`string`,id:`param-invoice-external-id-2`,children:_jsx(_components.p,{children:`External ID of the invoice this allocation targets.`})}),_jsx(ResponseField,{name:`invoice_line_item_id`,type:`string`,id:`param-invoice-line-item-id-2`,children:_jsx(_components.p,{children:`ID of the invoice line item this allocation targets.`})}),_jsx(ResponseField,{name:`invoice_line_item_external_id`,type:`string`,id:`param-invoice-line-item-external-id-2`,children:_jsx(_components.p,{children:`External ID of the invoice line item this allocation targets.`})}),_jsx(ResponseField,{name:`invoice_payment_id`,type:`string`,id:`param-invoice-payment-id-2`,children:_jsx(_components.p,{children:`ID of the invoice payment this allocation targets.`})}),_jsx(ResponseField,{name:`invoice_payment_external_id`,type:`string`,id:`param-invoice-payment-external-id-2`,children:_jsx(_components.p,{children:`External ID of the invoice payment this allocation targets.`})}),_jsx(ResponseField,{name:`customer_id`,type:`string`,id:`param-customer-id`,children:_jsx(_components.p,{children:`ID of the customer this allocation targets.`})}),_jsx(ResponseField,{name:`customer_external_id`,type:`string`,id:`param-customer-external-id`,children:_jsx(_components.p,{children:`External ID of the customer this allocation targets.`})}),_jsx(ResponseField,{name:`tags`,type:`array of TagKeyValue objects`,id:`param-tags-1`,children:_jsx(_components.p,{children:`Tags for this allocation.`})}),_jsx(ResponseField,{name:`memo`,type:`string`,id:`param-memo-5`,children:_jsx(_components.p,{children:`Memo for this allocation.`})}),_jsx(ResponseField,{name:`metadata`,type:`json object`,id:`param-metadata-5`,children:_jsx(_components.p,{children:`Metadata for this allocation.`})})]})]}),`\n`,_jsxs(ParamField,{body:`payments`,type:`array of RefundPaymentParams objects`,required:`true`,id:`param-payments-1`,children:[_jsx(_components.p,{children:`The payment methods and amounts used to process the refund.`}),_jsxs(Expandable,{title:`RefundPaymentParams properties`,children:[_jsx(ResponseField,{name:`external_id`,type:`string`,id:`param-external-id-6`,children:_jsx(_components.p,{children:`External identifier for the payment.`})}),_jsx(ResponseField,{name:`refunded_amount`,required:`true`,type:`integer`,id:`param-refunded-amount-3`,children:_jsx(_components.p,{children:`Amount refunded to the customer in cents.`})}),_jsx(ResponseField,{name:`refund_processing_fee`,type:`integer`,id:`param-refund-processing-fee-2`,children:_jsx(_components.p,{children:`Fee charged to the business for processing this payment.`})}),_jsx(ResponseField,{name:`completed_at`,required:`true`,type:`ISO8601 timestamp`,id:`param-completed-at-4`,children:_jsx(_components.p,{children:`When this payment was completed.`})}),_jsx(ResponseField,{name:`method`,required:`true`,type:`PaymentMethod enum`,id:`param-method-2`,children:_jsx(_components.p,{children:`Payment method used.`})}),_jsx(ResponseField,{name:`processor`,type:`string`,id:`param-processor-2`,children:_jsx(_components.p,{children:`Processor used for this payment.`})}),_jsx(ResponseField,{name:`refunded_payment_fees`,type:`array of RefundedPaymentFeeInput objects`,id:`param-refunded-payment-fees-1`,children:_jsx(_components.p,{children:`Fees refunded as part of this payment.`})}),_jsx(ResponseField,{name:`tags`,type:`array of TagKeyValue objects`,id:`param-tags-2`,children:_jsx(_components.p,{children:`Tags for this payment.`})}),_jsx(ResponseField,{name:`memo`,type:`string`,id:`param-memo-6`,children:_jsx(_components.p,{children:`Memo for this payment.`})}),_jsx(ResponseField,{name:`metadata`,type:`json object`,id:`param-metadata-6`,children:_jsx(_components.p,{children:`Metadata for this payment.`})}),_jsx(ParamField,{body:`reference_number`,type:`string`,id:`param-reference-number-3`,children:_jsx(_components.p,{children:`Any (typically user-visible) identifier for this payment.`})})]})]}),`\n`,_jsxs(ParamField,{body:`tags`,type:`array of TagKeyValue objects`,id:`param-tags-3`,children:[_jsx(_components.p,{children:`Tags to apply to the refund. Tags are key-value pairs that can be used to categorize and filter refunds.`}),_jsxs(Expandable,{title:`TagKeyValue properties`,children:[_jsx(ParamField,{body:`key`,required:`true`,type:`string`,id:`param-key-5`,children:_jsx(_components.p,{children:`The tag dimension key (e.g., “department”, “project”, “location”)`})}),_jsx(ParamField,{body:`dimension_display_name`,type:`string`,id:`param-dimension-display-name-1`,children:_jsx(_components.p,{children:`Optional display name for the tag dimension. If the dimension doesn’t exist, this will be used as its display name.`})}),_jsx(ParamField,{body:`value`,required:`true`,type:`string`,id:`param-value-5`,children:_jsx(_components.p,{children:`The tag value (e.g., “engineering”, “project-alpha”, “san-francisco”)`})}),_jsx(ParamField,{body:`value_display_name`,type:`string`,id:`param-value-display-name-1`,children:_jsx(_components.p,{children:`Optional display name for the tag value. If the value doesn’t exist, this will be used as its display name.`})})]})]}),`\n`,_jsx(ParamField,{body:`memo`,type:`string`,id:`param-memo-7`,children:_jsx(_components.p,{children:`Memo for any text you would like to associate with the refund.`})}),`\n`,_jsx(ParamField,{body:`metadata`,type:`json object`,id:`param-metadata-7`,children:_jsx(_components.p,{children:`Arbitrary metadata you can include with the refund.`})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`Response`,numberOfLines:`125`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`125`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3c90c3cc-0d44-4b50-8888-8dd25736052a\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"31415926535\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"refunded_amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`123`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PAID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"completed_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023-11-07T05:31:56Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"is_dedicated\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"allocations\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3c90c3cc-0d44-4b50-8888-8dd25736052a\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"invoice_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3c90c3cc-0d44-4b50-8888-8dd25736052a\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`123`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"line_items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"line-item-1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`123`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ledger_account\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3c90c3cc-0d44-4b50-8888-8dd25736052a\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Revenue\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"account_number\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"4000\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prepayment_account\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"transaction_tags\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a1b2c3d4-e5f6-7890-abcd-ef1234567890\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"department\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sales\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"dimension_display_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Department\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value_display_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Sales Team\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"dimension_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"d1e2f3a4-b5c6-7890-abcd-ef1234567890\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"definition_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"f1e2d3c4-b5a6-7890-abcd-ef1234567890\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-02-27T02:16:40.389772Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updated_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-02-27T02:16:40.389772Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"deleted_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"archived_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"memo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"invoice_external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"invoice-123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"invoice_line_item_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3c90c3cc-0d44-4b50-8888-8dd25736052a\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"invoice_line_item_external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"line-item-123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"invoice_payment_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3c90c3cc-0d44-4b50-8888-8dd25736052a\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"invoice_payment_external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"payment-123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"customer\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3c90c3cc-0d44-4b50-8888-8dd25736052a\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"31415926535\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"individual_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"John Doe\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"company_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Acme Corp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"john@example.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mobile_phone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"555-123-4567\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"office_phone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"555-987-6543\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"address_string\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"123 Main St, Anytown, CA 90210\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"notes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"VIP customer\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ACTIVE\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"transaction_tags\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CustomerType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Premium\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023-11-07T05:31:56Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updated_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023-11-07T05:31:56Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"deleted_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"transaction_tags\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"RefundReason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CustomerRequest\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023-11-07T05:31:56Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updated_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023-11-07T05:31:56Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"deleted_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"memo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"payments\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3c90c3cc-0d44-4b50-8888-8dd25736052a\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"31415926535\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"refunded_amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`123`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"refund_processing_fee\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`15`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"completed_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023-11-07T05:31:56Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"method\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CREDIT_CARD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"processor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"STRIPE\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"refunded_payment_fees\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"account\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AccountId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3c90c3cc-0d44-4b50-8888-8dd25736052a\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Processing fee refund\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"fee_amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"transaction_tags\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ProcessorReference\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ref_12345\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023-11-07T05:31:56Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updated_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023-11-07T05:31:56Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"deleted_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"memo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"payouts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"transaction_tags\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Department\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CustomerService\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023-11-07T05:31:56Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updated_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023-11-07T05:31:56Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"deleted_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"memo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(Heading,{level:`2`,id:`dedicated-refunds`,children:`Dedicated Refunds`}),`\n`,_jsx(_components.p,{children:`Dedicated refunds are a refunds that are created alongside invoices, invoice line items, and invoice payments. They provide a streamlined way to create refunds during the invoice creation or payment recording process.`}),`\n`,_jsx(_components.p,{children:`They are intended for when you know at the time of importing an invoice, invoice line item, or payment that it will be refunded, and want to create everything in one API call.`}),`\n`,_jsx(_components.p,{children:`Each dedicated refund has exactly one allocation and one payment. Once created, the allocation target cannot be changed`}),`\n`,_jsx(_components.p,{children:`Dedicated refunds can be included when creating:`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Invoices`}),`: Add `,_jsx(_components.code,{children:`dedicated_refunds`}),` array to the invoice body`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Invoice Line Items`}),`: Add `,_jsx(_components.code,{children:`dedicated_refunds`}),` array to any line item`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Invoice Payments`}),`: Add `,_jsx(_components.code,{children:`dedicated_refunds`}),` array to any payment within an invoice`]}),`\n`,_jsx(Heading,{level:`3`,id:`simple-vs-itemized-dedicated-refunds`,children:`Simple vs Itemized Dedicated Refunds`}),`\n`,_jsx(_components.p,{children:`When creating dedicated refunds, Layer will automatically determine whether to create them as simple or itemized refunds based on the parameters you provide:`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Simple Dedicated Refunds`}),` (see `,_jsx(_components.a,{href:`#simple-refund-creation-parameters`,children:`Simple Refunds`}),`):`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Created when you don’t specify the `,_jsx(_components.code,{children:`line_items`}),` parameter`]}),`\n`,_jsx(_components.li,{children:`Layer automatically calculates the refund amount and creates a single allocation`}),`\n`,_jsx(_components.li,{children:`Ideal for straightforward refunds where you want to refund the full amount of a target`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Itemized Dedicated Refunds`}),` (see `,_jsx(_components.a,{href:`#itemized-refund-creation-parameters`,children:`Itemized Refunds`}),`):`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Created when you provide the `,_jsx(_components.code,{children:`line_items`}),` parameter with detailed allocation breakdowns`]}),`\n`,_jsx(_components.li,{children:`You have full control over how the refund amount is distributed across different ledger accounts`}),`\n`,_jsx(_components.li,{children:`Required for complex refunds involving multiple accounts or partial amounts`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`create-dedicated-refund-parameters-object`,children:`Create Dedicated Refund Parameters Object`}),`\n`,_jsx(ParamField,{body:`external_id`,type:`string`,id:`param-external-id-7`,children:_jsxs(_components.p,{children:[`External ID for the refund within your platform. `,_jsx(_components.strong,{children:`Idempotency key.`})]})}),`\n`,_jsx(ParamField,{body:`account_identifier`,type:`AccountIdentifier object`,id:`param-account-identifier`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`/api-reference/ledger/account-identifier`,children:`Account Identifier`}),` for the refund allocation. If not specified, will use the appropriate account based on the target.`]})}),`\n`,_jsxs(ParamField,{body:`line_items`,type:`array of CreateCustomerRefundAllocationLineItemParams objects`,id:`param-line-items-2`,children:[_jsx(_components.p,{children:`Detailed line items for the refund allocation. Use this for itemized refunds where you need to specify the exact amounts and accounts.`}),_jsxs(Expandable,{title:`CreateCustomerRefundAllocationLineItemParams properties`,children:[_jsx(ResponseField,{name:`amount`,required:`true`,type:`integer`,id:`param-amount-2`,children:_jsx(_components.p,{children:`Amount for this line item in cents.`})}),_jsx(ResponseField,{name:`account_identifier`,type:`AccountIdentifier object`,id:`param-account-identifier-1`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`/api-reference/ledger/account-identifier`,children:`Account Identifier`}),` for this line item.`]})}),_jsx(ResponseField,{name:`tags`,type:`array of TagKeyValue objects`,id:`param-tags-4`,children:_jsx(_components.p,{children:`Tags for this line item.`})}),_jsx(ResponseField,{name:`memo`,type:`string`,id:`param-memo-8`,children:_jsx(_components.p,{children:`Memo for this line item.`})}),_jsx(ResponseField,{name:`metadata`,type:`json object`,id:`param-metadata-8`,children:_jsx(_components.p,{children:`Metadata for this line item.`})}),_jsx(ResponseField,{name:`reference_number`,type:`string`,id:`param-reference-number-4`,children:_jsx(_components.p,{children:`Reference number for this line item.`})})]})]}),`\n`,_jsx(ParamField,{body:`completed_at`,type:`ISO8601 timestamp`,required:`true`,id:`param-completed-at-5`,children:_jsx(_components.p,{children:`When the refund was completed.`})}),`\n`,_jsx(ParamField,{body:`refund_processing_fee`,type:`integer`,id:`param-refund-processing-fee-3`,children:_jsx(_components.p,{children:`Processing fee for the refund, in cents. Defaults to 0.`})}),`\n`,_jsx(ParamField,{body:`method`,type:`PaymentMethod enum`,required:`true`,id:`param-method-3`,children:_jsxs(_components.p,{children:[`Method used to make the refund.\nValues can be: `,_jsx(_components.code,{children:`CASH`}),`, `,_jsx(_components.code,{children:`CHECK`}),`, `,_jsx(_components.code,{children:`CREDIT_CARD`}),`, `,_jsx(_components.code,{children:`ACH`}),`, `,_jsx(_components.code,{children:`CREDIT_BALANCE`}),`, `,_jsx(_components.code,{children:`OTHER`})]})}),`\n`,_jsx(ParamField,{body:`processor`,type:`string`,id:`param-processor-3`,children:_jsx(_components.p,{children:`Processor used to make the refund, if any.`})}),`\n`,_jsxs(ParamField,{body:`refunded_payment_fees`,type:`array of RefundedInvoicePaymentFeeInput objects`,id:`param-refunded-payment-fees-2`,children:[_jsx(_components.p,{children:`List of payment fees that were refunded as part of this refund.`}),_jsxs(Expandable,{title:`RefundedInvoicePaymentFeeInput properties`,children:[_jsx(ResponseField,{name:`account`,required:`true`,type:`AccountIdentifier object`,id:`param-account-1`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`/api-reference/ledger/account-identifier`,children:`Account Identifier`}),` for the refunded fee.`]})}),_jsx(ResponseField,{name:`description`,type:`string`,id:`param-description-1`,children:_jsx(_components.p,{children:`Description of the fee being refunded.`})}),_jsx(ResponseField,{name:`amount`,required:`true`,type:`integer`,id:`param-amount-3`,children:_jsx(_components.p,{children:`Amount of the fee refund in cents.`})})]})]}),`\n`,_jsxs(ParamField,{body:`tags`,type:`array of TagKeyValue objects`,id:`param-tags-5`,children:[_jsx(_components.p,{children:`Tags to apply to the refund. Tags are key-value pairs that can be used to categorize and filter refunds.`}),_jsxs(Expandable,{title:`TagKeyValue properties`,children:[_jsx(ParamField,{body:`key`,required:`true`,type:`string`,id:`param-key-6`,children:_jsx(_components.p,{children:`The tag dimension key (e.g., “department”, “project”, “location”)`})}),_jsx(ParamField,{body:`dimension_display_name`,type:`string`,id:`param-dimension-display-name-2`,children:_jsx(_components.p,{children:`Optional display name for the tag dimension. If the dimension doesn’t exist, this will be used as its display name.`})}),_jsx(ParamField,{body:`value`,required:`true`,type:`string`,id:`param-value-6`,children:_jsx(_components.p,{children:`The tag value (e.g., “engineering”, “project-alpha”, “san-francisco”)`})}),_jsx(ParamField,{body:`value_display_name`,type:`string`,id:`param-value-display-name-2`,children:_jsx(_components.p,{children:`Optional display name for the tag value. If the value doesn’t exist, this will be used as its display name.`})})]})]}),`\n`,_jsx(ParamField,{body:`memo`,type:`string`,id:`param-memo-9`,children:_jsx(_components.p,{children:`Any text you would like to associate with the refund.`})}),`\n`,_jsx(ParamField,{body:`metadata`,type:`json object`,id:`param-metadata-9`,children:_jsx(_components.p,{children:`Arbitrary metadata you can include with the refund.`})}),`\n`,_jsx(ParamField,{body:`reference_number`,type:`string`,id:`param-reference-number-5`,children:_jsx(_components.p,{children:`Any (typically user-visible) identifier you would like to associate with the refund.`})}),`\n`,_jsx(Heading,{level:`3`,id:`example-invoice-with-dedicated-refunds`,children:`Example: Invoice with Dedicated Refunds`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`69`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`69`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"invoice-123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sent_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-04-02T09:02:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"customer_external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"customer-456\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"line_items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"product\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Widget Pro\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"unit_price\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2500`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`4`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"dedicated_refunds\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"refund-widget-1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"line_items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"account_identifier\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"StableName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"stable_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CUSTOMER_REFUNDS\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"completed_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-04-03T10:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"method\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CREDIT_CARD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"processor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"RAINFOREST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"memo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Partial (itemized) refund for damaged item\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"payments\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"payment-123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"method\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CREDIT_CARD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"dedicated_refunds\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"refund-processing-fee\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"completed_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-04-03T10:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"method\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CREDIT_CARD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"processor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"RAINFOREST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"memo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Full (simple) payment refund\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"payment-xyz\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"method\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CREDIT_CARD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`7000`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"dedicated_refunds\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"refund-invoice-discount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"line_items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`250`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"account_identifier\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"StableName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"stable_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CUSTOMER_REFUNDS\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"completed_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-04-03T10:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"method\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CREDIT_CARD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"processor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"RAINFOREST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"memo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Partial (itemized) refund for whole invoice\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Refund object","description":null,"href":"/api-reference/refunds/refund"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Creating Refunds","slug":"creating-refunds","depth":2,"children":[{"title":"Simple Refunds","slug":"simple-refunds","depth":3,"children":[]},{"title":"Itemized Refunds","slug":"itemized-refunds","depth":3,"children":[]}]},{"title":"Refund Object","slug":"refund-object","depth":2,"children":[{"title":"Attributes","slug":"attributes","depth":3,"children":[]}]},{"title":"Refund Allocation Object","slug":"refund-allocation-object","depth":2,"children":[]},{"title":"Refund Allocation Line Item Object","slug":"refund-allocation-line-item-object","depth":2,"children":[]},{"title":"Refund Payment Object","slug":"refund-payment-object","depth":2,"children":[]},{"title":"Refunded Payment Fee Object","slug":"refunded-payment-fee-object","depth":2,"children":[]},{"title":"Simple Refund Creation Parameters","slug":"simple-refund-creation-parameters","depth":2,"children":[]},{"title":"Itemized Refund Creation Parameters","slug":"itemized-refund-creation-parameters","depth":2,"children":[]},{"title":"Dedicated Refunds","slug":"dedicated-refunds","depth":2,"children":[{"title":"Simple vs Itemized Dedicated Refunds","slug":"simple-vs-itemized-dedicated-refunds","depth":3,"children":[]},{"title":"Create Dedicated Refund Parameters Object","slug":"create-dedicated-refund-parameters-object","depth":3,"children":[]},{"title":"Example: Invoice with Dedicated Refunds","slug":"example-invoice-with-dedicated-refunds","depth":3,"children":[]}]}],"codeExamples":{"response":{"type":"ResponseExample","children":[{"filename":"Response","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"125\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"external_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"31415926535\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"refunded_amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">123\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"PAID\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"completed_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2023-11-07T05:31:56Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"is_dedicated\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"allocations\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"invoice_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">123\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"line_items\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"external_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"line-item-1\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">123\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"ledger_account\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Revenue\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"account_number\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"4000\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"prepayment_account\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"transaction_tags\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"a1b2c3d4-e5f6-7890-abcd-ef1234567890\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"key\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"department\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"value\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"sales\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"dimension_display_name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Department\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"value_display_name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Sales Team\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"dimension_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"d1e2f3a4-b5c6-7890-abcd-ef1234567890\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"definition_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"f1e2d3c4-b5a6-7890-abcd-ef1234567890\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"created_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2024-02-27T02:16:40.389772Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"updated_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2024-02-27T02:16:40.389772Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"deleted_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"archived_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"memo\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"metadata\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"invoice_external_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"invoice-123\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"invoice_line_item_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"invoice_line_item_external_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"line-item-123\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"invoice_payment_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"invoice_payment_external_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"payment-123\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"customer\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"external_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"31415926535\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"individual_name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"John Doe\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"company_name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Acme Corp\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"email\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"john@example.com\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"mobile_phone\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"555-123-4567\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"office_phone\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"555-987-6543\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"address_string\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"123 Main St, Anytown, CA 90210\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"notes\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"VIP customer\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"ACTIVE\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"transaction_tags\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"key\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"CustomerType\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"value\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Premium\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"created_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2023-11-07T05:31:56Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"updated_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2023-11-07T05:31:56Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"deleted_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"transaction_tags\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"key\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"RefundReason\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"value\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"CustomerRequest\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"created_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2023-11-07T05:31:56Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"updated_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2023-11-07T05:31:56Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"deleted_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"memo\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"metadata\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"payments\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"external_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"31415926535\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"refunded_amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">123\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"refund_processing_fee\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">15\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"completed_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2023-11-07T05:31:56Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"method\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"CREDIT_CARD\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"processor\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"STRIPE\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"refunded_payment_fees\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"account\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"AccountId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"description\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Processing fee refund\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"fee_amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">10\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"transaction_tags\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"key\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"ProcessorReference\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"value\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"ref_12345\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"created_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2023-11-07T05:31:56Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"updated_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2023-11-07T05:31:56Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"deleted_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"memo\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"metadata\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"payouts\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"transaction_tags\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"key\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Department\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"value\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"CustomerService\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"created_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2023-11-07T05:31:56Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"updated_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2023-11-07T05:31:56Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"deleted_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"memo\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"metadata\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":["/_mintlify/custom/layerfi-beta/8742a05bb8f14e85/scripts/validate-mint-links.js"],"subdomain":"layerfi-beta","siteName":"Layer","title":"Refund object - Layer","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"api-reference/refunds/refund.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=\"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=\"Refund object - Layer\">\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/refunds/refund\">\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=Refunds\u0026amp;title=Refund+object\u0026amp;theme=773e674d0b0b7822dd4b83f7\u0026amp;signature=b6723229639f0ef3ce57fb7ec3bd4dad02c46f3c6c83e58cbe48c5b3fe797217\">\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=\"Refund object - Layer\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://layerfi-beta.mintlify.site/_mintlify/api/og/v2?division=Refunds\u0026amp;title=Refund+object\u0026amp;theme=773e674d0b0b7822dd4b83f7\u0026amp;signature=b6723229639f0ef3ce57fb7ec3bd4dad02c46f3c6c83e58cbe48c5b3fe797217\">\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/refunds/refund\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/refunds/refund.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/refunds/refund#webpage\",\"url\":\"https://docs-beta.layerfi.com/api-reference/refunds/refund\",\"name\":\"Refund object\",\"isPartOf\":{\"@id\":\"https://docs-beta.layerfi.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs-beta.layerfi.com/api-reference/refunds/refund#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs-beta.layerfi.com/api-reference/refunds/refund#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\":\"Refund object\",\"item\":\"https://docs-beta.layerfi.com/api-reference/refunds/refund\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs-beta.layerfi.com/api-reference/refunds/refund#article\",\"headline\":\"Refund object\",\"name\":\"Refund object\",\"url\":\"https://docs-beta.layerfi.com/api-reference/refunds/refund\",\"mainEntityOfPage\":{\"@id\":\"https://docs-beta.layerfi.com/api-reference/refunds/refund#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/refunds/refund.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","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","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","description":"Remove tags from payouts by tag id. Payouts can be untagged in bulk or individually. This endpoint only allows deleting tags on payouts and cannot be used to remove tags on other entity types.","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","description":"Fetches a list of refunds for a business. Refunds can be filtered by external ID, status, completion date range, amount range, and payout inclusion. Results will be paginated, see [Pagination](/api-details/pagination) for details.","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":"Refund object - Layer","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":["2b790eda92"],"chunks":["ApiExamples-CFRHL52q.js","usePlaygroundInputsStore-Caip2xMX.js","shallow-BS-qcxmX.js","utils-B79vXYXV.js","utils-D5WEoDBM.js","isEqual-CEpbaqh9.js","_Uint8Array-BEecbuUl.js","isObject-FP1Yky1u.js","CodeSnippets-B-R0FAqw.js","CodeSnippet-Bkkti1IB.js","snippetPresets-BR8BoZAC.js","style-to-object-BY3JEAdk.js","use-playground-group-access-BLvLSz8w.js","cloneDeep-455jK_K_.js","v4-DIgz8zy6.js"]}