> ## Documentation Index
> Fetch the complete documentation index at: https://docs.useautumn.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Invoice Finalized

> 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.

### Payload Fields

**id** `string` *required*

The Autumn invoice ID

**plan\_ids** `string[]` *required*

Array of plan IDs included in this invoice

**stripe\_id** `string` *required*

The Stripe invoice ID

**processor\_type** `'stripe' | 'revenuecat'` *required*

The billing processor that owns this invoice.

**status** `string` *required*

The status of the invoice

**total** `number` *required*

The total amount of the invoice

**amount\_paid** `number | null` *required*

The amount paid on the invoice, in major currency units. Null on invoices recorded before amounts paid were tracked.

**refunded\_amount** `number` *required*

The total amount refunded on the invoice, in major currency units

**currency** `string` *required*

The currency code for the invoice

**created\_at** `number` *required*

Timestamp when the invoice was created

**hosted\_invoice\_url** `string | null`

URL to the Stripe-hosted invoice page

**customer\_id** `string | null` *required*

The ID of the customer this invoice belongs to. Null for customers created without an ID.

**entity\_id** `string | null` *required*

The ID of the entity this invoice belongs to, if entity-scoped

**items** `object[]`

Line items on the invoice, one per line as shown in Stripe. Capped at 100. Empty for invoices recorded before line item storage.

**properties**

**id** `string` *required*

The Autumn invoice line item ID. Stable across reads, and can be used to reference this line in later calls.

**description** `string` *required*

Description of the invoice line item

**period\_start** `number | null` *required*

Timestamp when the billing period starts

**period\_end** `number | null` *required*

Timestamp when the billing period ends

**plan\_id** `string | null` *required*

The plan this line item came from. Null for lines with no Autumn plan behind them.

**feature\_id** `string | null` *required*

The ID of the feature associated with this line item

**feature\_name** `string | null` *required*

The name of the feature associated with this line item

**quantity** `number | null` *required*

Quantity actually charged on this line. Null on fixed-price lines.

**amount** `number` *required*

Amount charged on this line, pre-discount and pre-tax. Negative for credits.

**entities** `object[]` *required*

How this line splits by entity. Empty for customer-level lines. Only populated for invoices finalized after entity attribution shipped.

**properties**

**entity\_id** `string` *required*

The entity this share of the line item is attributed to

**quantity** `number | null` *required*

Quantity charged to this entity. Null on fixed-price lines.

**amount** `number` *required*

Amount attributed to this entity, pre-discount and pre-tax


## OpenAPI

````yaml api/openapi.yml webhook invoice.finalized
openapi: 3.1.0
info:
  title: Autumn API
  version: 2.6.0
servers:
  - url: https://api.useautumn.com
    description: Production server
security:
  - secretKey: []
paths: {}
components:
  securitySchemes:
    secretKey:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.