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

# Finalize an invoice

> Transitions a draft invoice to finalized status, making it immutable.



## OpenAPI

````yaml post /v1/invoices/{id}/finalize
openapi: 3.0.0
info:
  title: Revstack API
  version: 1.0.0
  description: >-
    Open Source Billing OS for Developers. The scalable, developer-first billing
    engine with subscriptions, invoicing, usage metering, and entitlements.
servers:
  - url: http://localhost:6900
    description: Revstack API (Local Development)
security: []
paths:
  /v1/invoices/{id}/finalize:
    post:
      tags:
        - Invoices
      summary: Finalize an invoice
      description: Transitions a draft invoice to finalized status, making it immutable.
      parameters:
        - schema:
            type: string
            example: inv_abc123
          required: true
          name: id
          in: path
      responses:
        '200':
          description: Invoice finalized
          content:
            application/json:
              schema:
                nullable: true

````