Fired when a Stripe invoice is finalized and its line items have been reconciled. The body is the invoice as returned by invoices.list, with items populated and each item carrying a per-entity entities breakdown.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Autumn","colors":{"primary":"#8838ff","light":"#9b5cff","dark":"#8838ff"},"logo":{"light":"https://mintcdn.com/autumn-b9b4c0fb/BOEMpWFJsAdGcii1/assets/logo/autumn-dark.svg?fit=max\u0026auto=format\u0026n=BOEMpWFJsAdGcii1\u0026q=85\u0026s=720bd2227c435e77f2c91cbfcbccd274","dark":"https://mintcdn.com/autumn-b9b4c0fb/BOEMpWFJsAdGcii1/assets/logo/autumn-light.svg?fit=max\u0026auto=format\u0026n=BOEMpWFJsAdGcii1\u0026q=85\u0026s=f700b862e5d0ada8c89a5976d27863fe"},"favicon":"https://mintcdn.com/autumn-b9b4c0fb/ihHX49Ug6NamJ10t/favicon.svg?fit=max\u0026auto=format\u0026n=ihHX49Ug6NamJ10t\u0026q=85\u0026s=b1fd8b3e3086e5a3855a8cf8c45dd57a","api":{"playground":{"display":"interactive"},"examples":{"languages":["typescript","python","bash"]}},"appearance":{"default":"system","strict":false},"background":{"color":{"light":"#FFFFFF","dark":"#0A0A0A"}},"navbar":{"primary":{"type":"button","label":"Dashboard","href":"https://app.useautumn.com"}},"footer":{"socials":{"x":"https://x.com/autumnpricing","linkedin":"https://linkedin.com/company/useautumn"}},"fonts":{"heading":{"family":"Inter"},"body":{"family":"Inter"}},"contextual":{"options":["copy","cursor","view"],"display":"header"},"interaction":{"drilldown":true},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Discord","icon":"discord","href":"https://discord.gg/STqxY92zuS"},{"anchor":"Website","icon":"globe","href":"https://useautumn.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"autumn-b9b4c0fb","hasAudioNarration":false,"actualSubdomain":"autumn-b9b4c0fb","customDomains":["docs.useautumn.com"],"gitSource":{"type":"github","owner":"useautumn","repo":"autumn","deployBranch":"main","contentDirectory":"apps/docs/mintlify","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae357c7096333fd0dad2c93","collectionId":"25280e25-e09e-4e9b-b07d-b9a9bf60c8f9","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae357c7096333fd0dad2c93"},"feedback":{"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae357c7096333fd0dad2c93","clientVersion":"0.0.4021","searchFilterCounts":[{"language":"default","tag":"API Reference","count":101},{"language":"default","tag":"Documentation","count":64},{"language":"default","tag":"Billing","count":20},{"language":"default","tag":"Configure Pricing","count":19},{"language":"default","tag":"Additional Resources","count":16},{"language":"default","tag":"Customers","count":15},{"language":"default","tag":"Rewards \u0026 Referrals","count":13},{"language":"default","tag":"Balances","count":10},{"language":"default","tag":"Webhook Events","count":10},{"language":"default","tag":"Invoices","count":8}],"searchSettings":{"tuning":{"anchor":{"titleCoverageRelabel":true}}}},"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":"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":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","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":"per-site-search-delta","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":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"language-tabs.css","content":""},{"filePath":"style.css","content":".prose>.api-section{display:none!important}"}],"page":{"pagePath":"api-reference/webhooks/invoiceFinalized","slug":"/api-reference/webhooks/invoiceFinalized","pageMetadata":{"title":"Invoice Finalized","openapi":"api/openapi.yml webhook invoice.finalized","description":"Fired when a Stripe invoice is finalized and its line items have been reconciled. The body is the invoice as returned by `invoices.list`, with `items` populated and each item carrying a per-entity `entities` breakdown.","href":"/api-reference/webhooks/invoiceFinalized"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Fired when a Stripe invoice is finalized and its line items have been reconciled. The body is the invoice as returned by \", _jsx(_components.code, {\n children: \"invoices.list\"\n }), \", with \", _jsx(_components.code, {\n children: \"items\"\n }), \" populated and each item carrying a per-entity \", _jsx(_components.code, {\n children: \"entities\"\n }), \" breakdown.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={p:`p`,..._provideComponents(),...props.components},{Expandable,Heading,ParamField}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`3`,id:`payload-fields`,children:`Payload Fields`}),`\n`,_jsx(ParamField,{body:`id`,type:`string`,required:true,id:`param-id`,children:_jsx(_components.p,{children:`The Autumn invoice ID`})}),`\n`,_jsx(ParamField,{body:`plan_ids`,type:`string[]`,required:true,id:`param-plan-ids`,children:_jsx(_components.p,{children:`Array of plan IDs included in this invoice`})}),`\n`,_jsx(ParamField,{body:`stripe_id`,type:`string`,required:true,id:`param-stripe-id`,children:_jsx(_components.p,{children:`The Stripe invoice ID`})}),`\n`,_jsx(ParamField,{body:`processor_type`,type:`'stripe' | 'revenuecat'`,required:true,id:`param-processor-type`,children:_jsx(_components.p,{children:`The billing processor that owns this invoice.`})}),`\n`,_jsx(ParamField,{body:`status`,type:`string`,required:true,id:`param-status`,children:_jsx(_components.p,{children:`The status of the invoice`})}),`\n`,_jsx(ParamField,{body:`total`,type:`number`,required:true,id:`param-total`,children:_jsx(_components.p,{children:`The total amount of the invoice`})}),`\n`,_jsx(ParamField,{body:`amount_paid`,type:`number | null`,required:true,id:`param-amount-paid`,children:_jsx(_components.p,{children:`The amount paid on the invoice, in major currency units. Null on invoices recorded before amounts paid were tracked.`})}),`\n`,_jsx(ParamField,{body:`refunded_amount`,type:`number`,required:true,id:`param-refunded-amount`,children:_jsx(_components.p,{children:`The total amount refunded on the invoice, in major currency units`})}),`\n`,_jsx(ParamField,{body:`currency`,type:`string`,required:true,id:`param-currency`,children:_jsx(_components.p,{children:`The currency code for the invoice`})}),`\n`,_jsx(ParamField,{body:`created_at`,type:`number`,required:true,id:`param-created-at`,children:_jsx(_components.p,{children:`Timestamp when the invoice was created`})}),`\n`,_jsx(ParamField,{body:`hosted_invoice_url`,type:`string | null`,id:`param-hosted-invoice-url`,children:_jsx(_components.p,{children:`URL to the Stripe-hosted invoice page`})}),`\n`,_jsx(ParamField,{body:`customer_id`,type:`string | null`,required:true,id:`param-customer-id`,children:_jsx(_components.p,{children:`The ID of the customer this invoice belongs to. Null for customers created without an ID.`})}),`\n`,_jsx(ParamField,{body:`entity_id`,type:`string | null`,required:true,id:`param-entity-id`,children:_jsx(_components.p,{children:`The ID of the entity this invoice belongs to, if entity-scoped`})}),`\n`,_jsxs(ParamField,{body:`items`,type:`object[]`,id:`param-items`,children:[_jsx(_components.p,{children:`Line items on the invoice, one per line as shown in Stripe. Capped at 100. Empty for invoices recorded before line item storage.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`id`,type:`string`,required:true,id:`param-id-1`,children:_jsx(_components.p,{children:`The Autumn invoice line item ID. Stable across reads, and can be used to reference this line in later calls.`})}),_jsx(ParamField,{body:`description`,type:`string`,required:true,id:`param-description`,children:_jsx(_components.p,{children:`Description of the invoice line item`})}),_jsx(ParamField,{body:`period_start`,type:`number | null`,required:true,id:`param-period-start`,children:_jsx(_components.p,{children:`Timestamp when the billing period starts`})}),_jsx(ParamField,{body:`period_end`,type:`number | null`,required:true,id:`param-period-end`,children:_jsx(_components.p,{children:`Timestamp when the billing period ends`})}),_jsx(ParamField,{body:`plan_id`,type:`string | null`,required:true,id:`param-plan-id`,children:_jsx(_components.p,{children:`The plan this line item came from. Null for lines with no Autumn plan behind them.`})}),_jsx(ParamField,{body:`feature_id`,type:`string | null`,required:true,id:`param-feature-id`,children:_jsx(_components.p,{children:`The ID of the feature associated with this line item`})}),_jsx(ParamField,{body:`feature_name`,type:`string | null`,required:true,id:`param-feature-name`,children:_jsx(_components.p,{children:`The name of the feature associated with this line item`})}),_jsx(ParamField,{body:`quantity`,type:`number | null`,required:true,id:`param-quantity`,children:_jsx(_components.p,{children:`Quantity actually charged on this line. Null on fixed-price lines.`})}),_jsx(ParamField,{body:`amount`,type:`number`,required:true,id:`param-amount`,children:_jsx(_components.p,{children:`Amount charged on this line, pre-discount and pre-tax. Negative for credits.`})}),_jsxs(ParamField,{body:`entities`,type:`object[]`,required:true,id:`param-entities`,children:[_jsx(_components.p,{children:`How this line splits by entity. Empty for customer-level lines. Only populated for invoices finalized after entity attribution shipped.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`entity_id`,type:`string`,required:true,id:`param-entity-id-1`,children:_jsx(_components.p,{children:`The entity this share of the line item is attributed to`})}),_jsx(ParamField,{body:`quantity`,type:`number | null`,required:true,id:`param-quantity-1`,children:_jsx(_components.p,{children:`Quantity charged to this entity. Null on fixed-price lines.`})}),_jsx(ParamField,{body:`amount`,type:`number`,required:true,id:`param-amount-1`,children:_jsx(_components.p,{children:`Amount attributed to this entity, pre-discount and pre-tax`})})]})]})]})]})]})}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":"Invoice Finalized","openapi":"api/openapi.yml webhook invoice.finalized","description":"Fired when a Stripe invoice is finalized and its line items have been reconciled. The body is the invoice as returned by `invoices.list`, with `items` populated and each item carrying a per-entity `entities` breakdown.","href":"/api-reference/webhooks/invoiceFinalized"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Payload Fields","slug":"payload-fields","depth":3,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/autumn-b9b4c0fb/d78b8c063824141d/dynamic-response.js"],"openApiReferenceData":{"operation":{"operationId":"invoiceFinalized","summary":"Invoice Finalized","description":"Fired when a Stripe invoice is finalized and its line items have been reconciled. The body is the invoice as returned by `invoices.list`, with `items` populated and each item carrying a per-entity `entities` breakdown.","requestBody":"bdb8c243-fa41-4c08-8562-9805c80aec45","responses":{"200":"d372464e-c457-4e5a-aa66-fce3bb2289cc"},"method":"post","type":"webhook","servers":["1859b8ca-2f5e-46a3-bf02-4db97da802b6"],"security":["6db26da5-13a5-4307-b0cc-93a36dbc5b6a"],"path":"invoice.finalized","baseUrlOptions":["https://api.useautumn.com"],"title":"Invoice Finalized","codeSamples":[],"requestExampleLanguages":["typescript","python","bash"],"requiredOnlyExamples":false,"requestExamples":[{"language":"json","filename":"Example","code":"{\n \"type\": \"invoice.finalized\",\n \"data\": {\n \"object\": \"invoice.finalized\",\n \"id\": \"inv_2b3c4d5e6f7g8h\",\n \"customer_id\": \"acme_corp\",\n \"entity_id\": null,\n \"plan_ids\": [\n \"enterprise\"\n ],\n \"stripe_id\": \"in_1A2B3C4D5E6F7G8H\",\n \"processor_type\": \"stripe\",\n \"status\": \"open\",\n \"total\": 4505,\n \"amount_paid\": null,\n \"refunded_amount\": 0,\n \"currency\": \"usd\",\n \"created_at\": 1788220800000,\n \"hosted_invoice_url\": \"https://api.useautumn.com/invoices/hosted_invoice_url/inv_2b3c4d5e6f7g8h\",\n \"items\": [\n {\n \"id\": \"invoice_li_2b3c4d5e6f7g8h\",\n \"description\": \"Enterprise plan\",\n \"plan_id\": \"enterprise\",\n \"feature_id\": null,\n \"feature_name\": null,\n \"quantity\": null,\n \"amount\": 2400,\n \"period_start\": 1785542400000,\n \"period_end\": 1788220800000,\n \"entities\": []\n },\n {\n \"id\": \"invoice_li_3c4d5e6f7g8h9i\",\n \"description\": \"AI credits\",\n \"plan_id\": \"enterprise\",\n \"feature_id\": \"ai_credits\",\n \"feature_name\": \"AI Credits\",\n \"quantity\": 842000,\n \"amount\": 1684,\n \"period_start\": 1785542400000,\n \"period_end\": 1788220800000,\n \"entities\": [\n {\n \"entity_id\": \"acme-docs-prod\",\n \"quantity\": 842000,\n \"amount\": 1684\n }\n ]\n }\n ]\n }\n}"}],"requestExampleType":"webhook","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["type","data"],"properties":{"type":{"type":"string","const":"invoice.finalized","description":"The webhook event type.","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"data":{"examples":[{"object":"invoice.finalized","id":"inv_2b3c4d5e6f7g8h","customer_id":"acme_corp","entity_id":null,"plan_ids":["enterprise"],"stripe_id":"in_1A2B3C4D5E6F7G8H","processor_type":"stripe","status":"open","total":4505,"amount_paid":null,"refunded_amount":0,"currency":"usd","created_at":1788220800000,"hosted_invoice_url":"https://api.useautumn.com/invoices/hosted_invoice_url/inv_2b3c4d5e6f7g8h","items":[{"id":"invoice_li_2b3c4d5e6f7g8h","description":"Enterprise plan","plan_id":"enterprise","feature_id":null,"feature_name":null,"quantity":null,"amount":2400,"period_start":1785542400000,"period_end":1788220800000,"entities":[]},{"id":"invoice_li_3c4d5e6f7g8h9i","description":"AI credits","plan_id":"enterprise","feature_id":"ai_credits","feature_name":"AI Credits","quantity":842000,"amount":1684,"period_start":1785542400000,"period_end":1788220800000,"entities":[{"entity_id":"acme-docs-prod","quantity":842000,"amount":1684}]}]}],"type":"object","properties":{"id":{"description":"The Autumn invoice ID","example":"inv_2b3c4d5e6f7g8h","type":"string","isRequired":true,"uniqueKey":"data.id","typeLabel":"string"},"plan_ids":{"description":"Array of plan IDs included in this invoice","example":["pro_plan","addon_feature"],"type":"array","items":{"type":"string","uniqueKey":"data.plan_ids.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"data.plan_ids","typeLabel":"string[]"},"stripe_id":{"description":"The Stripe invoice ID","example":"in_1A2B3C4D5E6F7G8H","type":"string","isRequired":true,"uniqueKey":"data.stripe_id","typeLabel":"string"},"processor_type":{"description":"The billing processor that owns this invoice.","example":"stripe","default":"stripe","type":"string","enum":["stripe","revenuecat"],"isRequired":true,"uniqueKey":"data.processor_type","typeLabel":"enum\u003cstring>"},"status":{"description":"The status of the invoice","example":"paid","type":"string","isRequired":true,"uniqueKey":"data.status","typeLabel":"string"},"total":{"description":"The total amount of the invoice","example":2999,"type":"number","isRequired":true,"uniqueKey":"data.total","typeLabel":"number"},"amount_paid":{"oneOf":[{"type":"number","description":"The amount paid on the invoice, in major currency units. Null on invoices recorded before amounts paid were tracked.","example":29.99,"isRequired":true,"uniqueKey":"data.amount_paid.oneOf.0","typeLabel":"number"},{"type":"null","description":"The amount paid on the invoice, in major currency units. Null on invoices recorded before amounts paid were tracked.","example":29.99,"isRequired":true,"uniqueKey":"data.amount_paid.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.amount_paid","typeLabel":"number | null"},"refunded_amount":{"description":"The total amount refunded on the invoice, in major currency units","example":0,"type":"number","isRequired":true,"uniqueKey":"data.refunded_amount","typeLabel":"number"},"currency":{"description":"The currency code for the invoice","example":"usd","type":"string","isRequired":true,"uniqueKey":"data.currency","typeLabel":"string"},"created_at":{"description":"Timestamp when the invoice was created","example":1759247877000,"type":"number","isRequired":true,"uniqueKey":"data.created_at","typeLabel":"number"},"customer_id":{"oneOf":[{"type":"string","description":"The ID of the customer this invoice belongs to. Null for customers created without an ID.","example":"cus_123","isRequired":true,"uniqueKey":"data.customer_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The ID of the customer this invoice belongs to. Null for customers created without an ID.","example":"cus_123","isRequired":true,"uniqueKey":"data.customer_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.customer_id","typeLabel":"string | null"},"entity_id":{"oneOf":[{"type":"string","description":"The ID of the entity this invoice belongs to, if entity-scoped","example":"ent_456","isRequired":true,"uniqueKey":"data.entity_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The ID of the entity this invoice belongs to, if entity-scoped","example":"ent_456","isRequired":true,"uniqueKey":"data.entity_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.entity_id","typeLabel":"string | null"},"hosted_invoice_url":{"oneOf":[{"type":"string","description":"URL to the Stripe-hosted invoice page","example":"https://invoice.stripe.com/i/acct_123/test_456","uniqueKey":"data.hosted_invoice_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"URL to the Stripe-hosted invoice page","example":"https://invoice.stripe.com/i/acct_123/test_456","uniqueKey":"data.hosted_invoice_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.hosted_invoice_url","typeLabel":"string | null"},"items":{"description":"Line items on the invoice, one per line as shown in Stripe. Capped at 100. Empty for invoices recorded before line item storage.","type":"array","items":{"type":"object","properties":{"id":{"description":"The Autumn invoice line item ID. Stable across reads, and can be used to reference this line in later calls.","example":"invoice_li_2b3c4d5e6f7g8h","type":"string","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].id","typeLabel":"string"},"description":{"description":"Description of the invoice line item","example":"Pro Plan - Monthly Subscription","type":"string","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].description","typeLabel":"string"},"period_start":{"oneOf":[{"type":"number","description":"Timestamp when the billing period starts","example":1759247877000,"isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].period_start.oneOf.0","typeLabel":"number"},{"type":"null","description":"Timestamp when the billing period starts","example":1759247877000,"isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].period_start.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].period_start","typeLabel":"number | null"},"period_end":{"oneOf":[{"type":"number","description":"Timestamp when the billing period ends","example":1761839877000,"isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].period_end.oneOf.0","typeLabel":"number"},{"type":"null","description":"Timestamp when the billing period ends","example":1761839877000,"isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].period_end.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].period_end","typeLabel":"number | null"},"plan_id":{"oneOf":[{"type":"string","description":"The plan this line item came from. Null for lines with no Autumn plan behind them.","example":"pro","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].plan_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The plan this line item came from. Null for lines with no Autumn plan behind them.","example":"pro","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].plan_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].plan_id","typeLabel":"string | null"},"feature_id":{"oneOf":[{"type":"string","description":"The ID of the feature associated with this line item","example":"feature_123","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].feature_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The ID of the feature associated with this line item","example":"feature_123","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].feature_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].feature_id","typeLabel":"string | null"},"feature_name":{"oneOf":[{"type":"string","description":"The name of the feature associated with this line item","example":"API Calls","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].feature_name.oneOf.0","typeLabel":"string"},{"type":"null","description":"The name of the feature associated with this line item","example":"API Calls","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].feature_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].feature_name","typeLabel":"string | null"},"quantity":{"oneOf":[{"type":"number","description":"Quantity actually charged on this line. Null on fixed-price lines.","example":842000,"isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].quantity.oneOf.0","typeLabel":"number"},{"type":"null","description":"Quantity actually charged on this line. Null on fixed-price lines.","example":842000,"isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].quantity.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].quantity","typeLabel":"number | null"},"amount":{"description":"Amount charged on this line, pre-discount and pre-tax. Negative for credits.","example":1684,"type":"number","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].amount","typeLabel":"number"},"entities":{"description":"How this line splits by entity. Empty for customer-level lines. Only populated for invoices finalized after entity attribution shipped.","type":"array","items":{"type":"object","properties":{"entity_id":{"description":"The entity this share of the line item is attributed to","example":"acme-docs-prod","type":"string","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].entities.items.[INDEX].entity_id","typeLabel":"string"},"quantity":{"oneOf":[{"type":"number","description":"Quantity charged to this entity. Null on fixed-price lines.","example":842000,"isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].entities.items.[INDEX].quantity.oneOf.0","typeLabel":"number"},{"type":"null","description":"Quantity charged to this entity. Null on fixed-price lines.","example":842000,"isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].entities.items.[INDEX].quantity.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].entities.items.[INDEX].quantity","typeLabel":"number | null"},"amount":{"description":"Amount attributed to this entity, pre-discount and pre-tax","example":1684,"type":"number","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].entities.items.[INDEX].amount","typeLabel":"number"}},"required":["entity_id","quantity","amount"],"additionalProperties":false,"uniqueKey":"data.\\items.items.[INDEX].entities.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].entities","typeLabel":"object[]"}},"required":["id","description","period_start","period_end","plan_id","feature_id","feature_name","quantity","amount","entities"],"additionalProperties":false,"uniqueKey":"data.\\items.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.\\items","typeLabel":"object[]"}},"required":["id","plan_ids","stripe_id","processor_type","status","total","amount_paid","refunded_amount","currency","created_at","customer_id","entity_id"],"additionalProperties":false,"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"type":"invoice.finalized","data":{"object":"invoice.finalized","id":"inv_2b3c4d5e6f7g8h","customer_id":"acme_corp","entity_id":null,"plan_ids":["enterprise"],"stripe_id":"in_1A2B3C4D5E6F7G8H","processor_type":"stripe","status":"open","total":4505,"amount_paid":null,"refunded_amount":0,"currency":"usd","created_at":1788220800000,"hosted_invoice_url":"https://api.useautumn.com/invoices/hosted_invoice_url/inv_2b3c4d5e6f7g8h","items":[{"id":"invoice_li_2b3c4d5e6f7g8h","description":"Enterprise plan","plan_id":"enterprise","feature_id":null,"feature_name":null,"quantity":null,"amount":2400,"period_start":1785542400000,"period_end":1788220800000,"entities":[]},{"id":"invoice_li_3c4d5e6f7g8h9i","description":"AI credits","plan_id":"enterprise","feature_id":"ai_credits","feature_name":"AI Credits","quantity":842000,"amount":1684,"period_start":1785542400000,"period_end":1788220800000,"entities":[{"entity_id":"acme-docs-prod","quantity":842000,"amount":1684}]}]}},"examples":{"Example":{"title":"Example","value":{"type":"invoice.finalized","data":{"object":"invoice.finalized","id":"inv_2b3c4d5e6f7g8h","customer_id":"acme_corp","entity_id":null,"plan_ids":["enterprise"],"stripe_id":"in_1A2B3C4D5E6F7G8H","processor_type":"stripe","status":"open","total":4505,"amount_paid":null,"refunded_amount":0,"currency":"usd","created_at":1788220800000,"hosted_invoice_url":"https://api.useautumn.com/invoices/hosted_invoice_url/inv_2b3c4d5e6f7g8h","items":[{"id":"invoice_li_2b3c4d5e6f7g8h","description":"Enterprise plan","plan_id":"enterprise","feature_id":null,"feature_name":null,"quantity":null,"amount":2400,"period_start":1785542400000,"period_end":1788220800000,"entities":[]},{"id":"invoice_li_3c4d5e6f7g8h9i","description":"AI credits","plan_id":"enterprise","feature_id":"ai_credits","feature_name":"AI Credits","quantity":842000,"amount":1684,"period_start":1785542400000,"period_end":1788220800000,"entities":[{"entity_id":"acme-docs-prod","quantity":842000,"amount":1684}]}]}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"d372464e-c457-4e5a-aa66-fce3bb2289cc":{"description":"Webhook received successfully.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"6db26da5-13a5-4307-b0cc-93a36dbc5b6a":{"secretKey":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[],"schemeName":"secretKey"}}},"servers":{"1859b8ca-2f5e-46a3-bf02-4db97da802b6":{"url":"https://api.useautumn.com","description":"Production server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","scopes":[],"schemeName":"secretKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"secretKey","name":"Authorization"}],"title":"secretKey"}]},"originalFileLocation":"api/openapi.yml"},"subdomain":"autumn-b9b4c0fb","siteName":"Autumn","title":"Invoice Finalized - Autumn","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-28T10:28:46.133Z","originalFileLocation":"api-reference/webhooks/invoiceFinalized.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Fired when a Stripe invoice is finalized and its line items have been reconciled. The body is the invoice as returned by invoices.list, with items populated and each item carrying a per-entity entities breakdown.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Autumn\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/autumn-b9b4c0fb/LQO5vXfVIKEXnzb8/_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/autumn-b9b4c0fb/LQO5vXfVIKEXnzb8/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/autumn-b9b4c0fb/LQO5vXfVIKEXnzb8/_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/autumn-b9b4c0fb/LQO5vXfVIKEXnzb8/_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/autumn-b9b4c0fb/LQO5vXfVIKEXnzb8/_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/autumn-b9b4c0fb/LQO5vXfVIKEXnzb8/_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/autumn-b9b4c0fb/LQO5vXfVIKEXnzb8/_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/autumn-b9b4c0fb/LQO5vXfVIKEXnzb8/_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/autumn-b9b4c0fb/LQO5vXfVIKEXnzb8/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Invoice Finalized - Autumn\">\u003cmeta data-mint-head property=\"og:description\" content=\"Fired when a Stripe invoice is finalized and its line items have been reconciled. The body is the invoice as returned by invoices.list, with items populated and each item carrying a per-entity entities breakdown.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Autumn\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.useautumn.com/api-reference/webhooks/invoiceFinalized\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://autumn-b9b4c0fb.mintlify.app/_mintlify/api/og/v2?division=Invoice\u0026amp;title=Invoice+Finalized\u0026amp;description=Fired+when+a+Stripe+invoice+is+finalized+and+its+line+items+have+been+reconciled.+The+body+is+the+invoice+as+returned+by+%60invoices.list%60%2C+with+%60items%60+populated\u0026amp;theme=3bf7e6d15826cac91d0b643c\u0026amp;signature=49f5d30d34836f11e071747039dcacba45da1721deef94a1cd1c5ab5ff75b360\">\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=\"Invoice Finalized - Autumn\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Fired when a Stripe invoice is finalized and its line items have been reconciled. The body is the invoice as returned by invoices.list, with items populated and each item carrying a per-entity entities breakdown.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://autumn-b9b4c0fb.mintlify.app/_mintlify/api/og/v2?division=Invoice\u0026amp;title=Invoice+Finalized\u0026amp;description=Fired+when+a+Stripe+invoice+is+finalized+and+its+line+items+have+been+reconciled.+The+body+is+the+invoice+as+returned+by+%60invoices.list%60%2C+with+%60items%60+populated\u0026amp;theme=3bf7e6d15826cac91d0b643c\u0026amp;signature=49f5d30d34836f11e071747039dcacba45da1721deef94a1cd1c5ab5ff75b360\">\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/autumn-b9b4c0fb/LQO5vXfVIKEXnzb8/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Autumn\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#8838ff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.useautumn.com/api-reference/webhooks/invoiceFinalized\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/webhooks/invoiceFinalized.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.useautumn.com/#organization\",\"name\":\"Autumn\",\"url\":\"https://docs.useautumn.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/autumn-b9b4c0fb/BOEMpWFJsAdGcii1/assets/logo/autumn-dark.svg?fit=max\u0026auto=format\u0026n=BOEMpWFJsAdGcii1\u0026q=85\u0026s=720bd2227c435e77f2c91cbfcbccd274\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.useautumn.com#website\",\"name\":\"Autumn\",\"url\":\"https://docs.useautumn.com\",\"publisher\":{\"@id\":\"https://docs.useautumn.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.useautumn.com/api-reference/webhooks/invoiceFinalized#webpage\",\"url\":\"https://docs.useautumn.com/api-reference/webhooks/invoiceFinalized\",\"name\":\"Invoice Finalized\",\"description\":\"Fired when a Stripe invoice is finalized and its line items have been reconciled. The body is the invoice as returned by invoices.list, with items populated and each item carrying a per-entity entities breakdown.\",\"dateModified\":\"2026-10-28T10:28:46.133Z\",\"isPartOf\":{\"@id\":\"https://docs.useautumn.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.useautumn.com/api-reference/webhooks/invoiceFinalized#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.useautumn.com/api-reference/webhooks/invoiceFinalized#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Webhook Events\",\"item\":\"https://docs.useautumn.com/api-reference/webhooks/balancesUsageAlertTriggered\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Invoice Finalized\",\"item\":\"https://docs.useautumn.com/api-reference/webhooks/invoiceFinalized\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.useautumn.com/api-reference/webhooks/invoiceFinalized#apireference\",\"headline\":\"Invoice Finalized\",\"name\":\"Invoice Finalized\",\"description\":\"Fired when a Stripe invoice is finalized and its line items have been reconciled. The body is the invoice as returned by invoices.list, with items populated and each item carrying a per-entity entities breakdown.\",\"url\":\"https://docs.useautumn.com/api-reference/webhooks/invoiceFinalized\",\"mainEntityOfPage\":{\"@id\":\"https://docs.useautumn.com/api-reference/webhooks/invoiceFinalized#webpage\"},\"dateModified\":\"2026-10-28T10:28:46.133Z\",\"publisher\":{\"@id\":\"https://docs.useautumn.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.useautumn.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Autumn\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Autumn","nav":{"global":{"anchors":[{"anchor":"Discord","icon":"discord","href":"https://discord.gg/STqxY92zuS"},{"anchor":"Website","icon":"globe","href":"https://useautumn.com"}]},"tabs":[{"tab":"Documentation","icon":"folder-open","pages":[{"title":"Documentation","href":"/welcome"}]},{"tab":"Examples","icon":"graduation-cap","pages":[{"title":"Examples","href":"/examples/monetary-credits"}]},{"tab":"CLI","icon":"square-terminal","pages":[{"title":"CLI","href":"/cli/getting-started"}]},{"tab":"API Reference","icon":"display-code","groups":[{"group":"Billing","pages":[{"title":"Attach","openapi":"openapi POST /v1/billing.attach","href":"/api-reference/billing/attach"},{"title":"Update Subscription","openapi":"openapi POST /v1/billing.update","href":"/api-reference/billing/billingUpdate"},{"title":"Open Customer Portal","openapi":"openapi POST /v1/billing.open_customer_portal","href":"/api-reference/billing/openCustomerPortal"},{"title":"Setup Payment","openapi":"openapi POST /v1/billing.setup_payment","href":"/api-reference/billing/setupPayment"},{"title":"Multi Attach","openapi":"openapi POST /v1/billing.multi_attach","href":"/api-reference/billing/multiAttach"},{"title":"Multi Update","openapi":"openapi POST /v1/billing.multi_update","href":"/api-reference/billing/multiUpdate"},{"title":"Create Schedule","openapi":"openapi POST /v1/billing.create_schedule","href":"/api-reference/billing/createSchedule"},{"title":"Verify","openapi":"openapi POST /v1/billing.verify","href":"/api-reference/billing/verify"},{"title":"Import","openapi":"openapi POST /v1/billing.import","href":"/api-reference/billing/import"},{"group":"Previews","pages":[{"title":"Preview Attach","openapi":"openapi POST /v1/billing.preview_attach","href":"/api-reference/billing/previewAttach"},{"title":"Preview Update","openapi":"openapi POST /v1/billing.preview_update","href":"/api-reference/billing/previewUpdate"},{"title":"Preview Multi Attach","openapi":"openapi POST /v1/billing.preview_multi_attach","href":"/api-reference/billing/previewMultiAttach"},{"title":"Preview Multi Update","openapi":"openapi POST /v1/billing.preview_multi_update","href":"/api-reference/billing/previewMultiUpdate"}]},{"group":"Licenses","pages":[{"title":"Attach License","openapi":"openapi POST /v1/licenses.attach","href":"/api-reference/licenses/attachLicense"},{"title":"Release License","openapi":"openapi POST /v1/licenses.release","href":"/api-reference/licenses/releaseLicense"},{"title":"List Licenses","openapi":"openapi POST /v1/licenses.list","href":"/api-reference/licenses/listLicenses"},{"title":"List License Assignments","openapi":"openapi POST /v1/licenses.list_assignments","href":"/api-reference/licenses/listLicenseAssignments"}]}]},{"group":"Balances","pages":[{"title":"Check Permissions","openapi":"openapi POST /v1/balances.check","href":"/api-reference/core/check"},{"title":"Track Usage","openapi":"openapi POST /v1/balances.track","href":"/api-reference/core/track"},{"title":"Batch Track Usage","openapi":"openapi POST /v1/balances.batch_track","href":"/api-reference/core/batchTrack"},{"title":"List Balances","openapi":"openapi POST /v1/balances.list","href":"/api-reference/balances/listBalances"},{"title":"Create Balance","openapi":"openapi POST /v1/balances.create","href":"/api-reference/balances/createBalance"},{"title":"Update Balance","openapi":"openapi POST /v1/balances.update","href":"/api-reference/balances/updateBalance"},{"title":"Delete Balance","openapi":"openapi POST /v1/balances.delete","href":"/api-reference/balances/deleteBalance"},{"title":"Finalize Lock","openapi":"openapi POST /v1/balances.finalize","href":"/api-reference/balances/finalizeLock"}]},{"group":"Customers","pages":[{"title":"Get or Create Customer","openapi":"openapi POST /v1/customers.get_or_create","href":"/api-reference/customers/getOrCreateCustomer"},{"title":"Get Customer","openapi":"openapi POST /v1/customers.get","href":"/api-reference/customers/getCustomer"},{"title":"List Customers","openapi":"openapi POST /v1/customers.list","href":"/api-reference/customers/listCustomers"},{"title":"List Subscriptions","openapi":"openapi POST /v1/subscriptions.list","href":"/api-reference/customers/listSubscriptions"},{"title":"List Purchases","openapi":"openapi POST /v1/purchases.list","href":"/api-reference/customers/listPurchases"},{"title":"Update Customer","openapi":"openapi POST /v1/customers.update","href":"/api-reference/customers/updateCustomer"},{"title":"Delete Customer","openapi":"openapi POST /v1/customers.delete","href":"/api-reference/customers/deleteCustomer"}]},{"group":"Invoices","pages":[{"title":"List Invoices","openapi":"openapi POST /v1/invoices.list","href":"/api-reference/invoices/listInvoices"},{"title":"Create Invoice","openapi":"openapi POST /v1/invoices.create","href":"/api-reference/invoices/createInvoice"},{"title":"Mark Invoice as Paid","openapi":"openapi POST /v1/invoices.pay","href":"/api-reference/invoices/payInvoice"},{"title":"Void Invoice","openapi":"openapi POST /v1/invoices.void","href":"/api-reference/invoices/voidInvoice"},{"title":"Reissue Invoice","openapi":"openapi POST /v1/invoices.reissue","href":"/api-reference/invoices/reissueInvoice"},{"title":"Issue Credit Note","openapi":"openapi POST /v1/invoices.issue_credit_note","href":"/api-reference/invoices/issueCreditNote"},{"title":"Backfill Invoices","openapi":"openapi POST /v1/invoices.insert","href":"/api-reference/invoices/insertInvoices"},{"title":"List Invoice Templates","openapi":"openapi POST /v1/invoices.listTemplates","href":"/api-reference/invoices/listInvoiceTemplates"}]},{"group":"Authorization","pages":[{"title":"Mint","openapi":"openapi POST /v1/keys.mint","href":"/api-reference/keys/mintKey"},{"title":"Refresh","openapi":"openapi POST /v1/keys.refresh","href":"/api-reference/keys/refreshKey"},{"title":"Revoke","openapi":"openapi POST /v1/keys.revoke","href":"/api-reference/keys/revokeKey"}]},{"group":"Events","pages":[{"title":"List Events","openapi":"openapi POST /v1/events.list","href":"/api-reference/events/listEvents"},{"title":"Aggregate Events","openapi":"openapi POST /v1/events.aggregate","href":"/api-reference/events/aggregateEvents"}]},{"group":"Logs","pages":[{"title":"Search Request Logs","openapi":"openapi POST /v1/logs.search","href":"/api-reference/logs/searchRequestLogs"}]},{"group":"Entities","pages":[{"title":"Get Entity","openapi":"openapi POST /v1/entities.get","href":"/api-reference/entities/getEntity"},{"title":"List Entities","openapi":"openapi POST /v1/entities.list","href":"/api-reference/entities/listEntities"},{"title":"Create Entity","openapi":"openapi POST /v1/entities.create","href":"/api-reference/entities/createEntity"},{"title":"Update Entity","openapi":"openapi POST /v1/entities.update","href":"/api-reference/entities/updateEntity"},{"title":"Delete Entity","openapi":"openapi POST /v1/entities.delete","href":"/api-reference/entities/deleteEntity"}]},{"group":"Accounts","pages":[{"title":"Get Account","openapi":"openapi POST /v1/accounts.get","href":"/api-reference/accounts/getAccount"},{"title":"Update Account","openapi":"openapi POST /v1/accounts.update","href":"/api-reference/accounts/updateAccount"}]},{"group":"Plans","pages":[{"title":"Get a plan","openapi":"openapi POST /v1/plans.get","href":"/api-reference/plans/getPlan"},{"title":"List all plans","openapi":"openapi POST /v1/plans.list","href":"/api-reference/plans/listPlans"},{"title":"Create a plan","openapi":"openapi POST /v1/plans.create","href":"/api-reference/plans/createPlan"},{"title":"Update a plan","openapi":"openapi POST /v1/plans.update","href":"/api-reference/plans/updatePlan"},{"title":"Delete a plan","openapi":"openapi POST /v1/plans.delete","href":"/api-reference/plans/deletePlan"}]},{"group":"Features","pages":[{"title":"Get Feature","openapi":"openapi POST /v1/features.get","href":"/api-reference/features/getFeature"},{"title":"List Features","openapi":"openapi POST /v1/features.list","href":"/api-reference/features/listFeatures"},{"title":"Create Feature","openapi":"openapi POST /v1/features.create","href":"/api-reference/features/createFeature"},{"title":"Update Feature","openapi":"openapi POST /v1/features.update","href":"/api-reference/features/updateFeature"},{"title":"Delete Feature","openapi":"openapi POST /v1/features.delete","href":"/api-reference/features/deleteFeature"}]},{"group":"Rewards \u0026 Referrals","pages":[{"title":"Create Referral Program","openapi":"openapi POST /v1/referral_programs.create","href":"/api-reference/referrals/createReferralProgram"},{"title":"List Referral Programs","openapi":"openapi POST /v1/referral_programs.list","href":"/api-reference/referrals/listReferralPrograms"},{"title":"Get Referral Program","openapi":"openapi POST /v1/referral_programs.get","href":"/api-reference/referrals/getReferralProgram"},{"title":"Update Referral Program","openapi":"openapi POST /v1/referral_programs.update","href":"/api-reference/referrals/updateReferralProgram"},{"title":"Delete Referral Program","openapi":"openapi POST /v1/referral_programs.delete","href":"/api-reference/referrals/deleteReferralProgram"},{"title":"Create Referral Code","openapi":"openapi POST /v1/referrals.create_code","href":"/api-reference/referrals/createReferralCode"},{"title":"Redeem Referral Code","openapi":"openapi POST /v1/referrals.redeem_code","href":"/api-reference/referrals/redeemReferralCode"},{"title":"Create Reward","openapi":"openapi POST /v1/rewards.create","href":"/api-reference/rewards/createReward"},{"title":"List Rewards","openapi":"openapi POST /v1/rewards.list","href":"/api-reference/rewards/listRewards"},{"title":"Get Reward","openapi":"openapi POST /v1/rewards.get","href":"/api-reference/rewards/getReward"},{"title":"Update Reward","openapi":"openapi POST /v1/rewards.update","href":"/api-reference/rewards/updateReward"},{"title":"Delete Reward","openapi":"openapi POST /v1/rewards.delete","href":"/api-reference/rewards/deleteReward"},{"title":"Redeem Reward Code","openapi":"openapi POST /v1/rewards.redeem","href":"/api-reference/rewards/redeemRewardCode"}]},{"group":"Webhooks","pages":[{"title":"Get Webhook","openapi":"openapi POST /v1/webhooks.get","href":"/api-reference/webhooks/getWebhook"},{"title":"List Webhooks","openapi":"openapi POST /v1/webhooks.list","href":"/api-reference/webhooks/listWebhooks"},{"title":"Create Webhook","openapi":"openapi POST /v1/webhooks.create","href":"/api-reference/webhooks/createWebhook"},{"title":"Update Webhook","openapi":"openapi POST /v1/webhooks.update","href":"/api-reference/webhooks/updateWebhook"},{"title":"Delete Webhook","openapi":"openapi POST /v1/webhooks.delete","href":"/api-reference/webhooks/deleteWebhook"},{"title":"Sync Webhooks","openapi":"openapi POST /v1/webhooks.sync","href":"/api-reference/webhooks/syncWebhooks"},{"group":"Previews","pages":[{"title":"Preview Sync Webhooks","openapi":"openapi POST /v1/webhooks.preview_sync","href":"/api-reference/webhooks/previewSyncWebhooks"}]}]},{"group":"Webhook Events","pages":[{"group":"Balances","pages":[{"title":"Usage Alert Triggered","openapi":"api/openapi.yml webhook balances.usage_alert_triggered","href":"/api-reference/webhooks/balancesUsageAlertTriggered"},{"title":"Limit Reached","openapi":"api/openapi.yml webhook balances.limit_reached","href":"/api-reference/webhooks/balancesLimitReached"}]},{"group":"Billing","pages":[{"title":"Auto Top-Up Failed","openapi":"api/openapi.yml webhook billing.auto_topup_failed","href":"/api-reference/webhooks/billingAutoTopupFailed"},{"title":"Auto Top-Up Succeeded","openapi":"api/openapi.yml webhook billing.auto_topup_succeeded","href":"/api-reference/webhooks/billingAutoTopupSucceeded"},{"title":"Plans Updated","openapi":"api/openapi.yml webhook billing.updated","description":"Fired when a customer's plans change — activated, scheduled, updated, or expired. Each event carries a `plan_changes` array describing what happened and a `tags` array (e.g. `trial_ended`, `phase_changed`) describing why.","href":"/api-reference/webhooks/billingUpdated"}]},{"group":"Invoice","pages":[{"title":"Invoice Finalized","openapi":"api/openapi.yml webhook invoice.finalized","href":"/api-reference/webhooks/invoiceFinalized"}]},{"group":"Vercel","pages":[{"title":"Resource Deleted","openapi":"api/openapi.yml webhook vercel.resources.deleted","description":"When a Vercel resource is deleted, you'll need to handle de-provisioning any API keys or other non-Autumn controlled data for this user.","href":"/api-reference/webhooks/vercelResourcesDeleted"},{"title":"Resource Provisioned","openapi":"api/openapi.yml webhook vercel.resources.provisioned","href":"/api-reference/webhooks/vercelResourcesProvisioned"},{"title":"Rotate Secrets","openapi":"api/openapi.yml webhook vercel.resources.rotate_secrets","href":"/api-reference/webhooks/vercelResourcesRotateSecrets"},{"title":"Webhook Event","openapi":"api/openapi.yml webhook vercel.webhooks.event","href":"/api-reference/webhooks/vercelWebhooksEvent"}]}]},{"group":"Platform (Beta)","pages":[{"title":"Overview","href":"/api-reference/platform/overview"},{"title":"Create Organization","openapi":"platform POST /platform/organizations","href":"/api-reference/platform/create-organization"},{"title":"Generate Stripe OAuth URL","openapi":"platform POST /platform/oauth_url","href":"/api-reference/platform/oauth-url"},{"title":"Get Stripe Connection","openapi":"openapi POST /v1/platform.get_stripe_connection","href":"/api-reference/platform/getStripeConnection"},{"title":"Disconnect Stripe","openapi":"openapi POST /v1/platform.disconnect_stripe","href":"/api-reference/platform/disconnectStripe"},{"title":"Update Connected Stripe Account","openapi":"platform POST /platform/organizations/stripe","href":"/api-reference/platform/update-stripe"},{"title":"List Users","openapi":"platform GET /platform/users","href":"/api-reference/platform/list-users"},{"title":"List Organizations","openapi":"platform GET /platform/organizations","href":"/api-reference/platform/list-orgs"}]}]},{"tab":"Changelog","icon":"list-ol","pages":[{"title":"Changelog","href":"/changelog/changelog"}]}]},"title":"Invoice Finalized - Autumn","buildId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","deploymentId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-26-lDe7V.js","utils-CWQmgYtH.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-4-Aw3rSD.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C2zjXYA5.js","snippetPresets-DFmpFA7C.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-FJpQavWq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-D_GvPF7k.js","shallow-Bs2ZB0NO.js","getApiPlaygroundDisplay-DCcqJJk-.js","CodeSnippet-DzDxawVe.js","CodeSnippets-aUr7fU-7.js","Page-CT9uE8Ip.js","getPastedJson-Y1fKsj_I.js","icon-DI4zTsDr.js","MethodPill-C0nDlmSQ.js","DuplicateIcon-NUXbx2nQ.js","createIcon-BdTHrPAi.js","DynamicMarkdown-CtpgKJwj.js","SectionHeading-B3x35tOt.js","axios-vUo_bRtp.js","Markdown-3OmurJMP.js","clsx-DMKzROTp.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-1ms6tsT-.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Ke9xIMFx.js"]}