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

# Create a credit note

> Issues a credit note against an invoice for partial or full refund.



## OpenAPI

````yaml post /v1/credit-notes
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/credit-notes:
    post:
      tags:
        - Credit Notes
      summary: Create a credit note
      description: Issues a credit note against an invoice for partial or full refund.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                invoice_id:
                  type: string
                  minLength: 1
                amount:
                  type: number
                  minimum: 0
                  exclusiveMinimum: true
                reason:
                  type: string
              required:
                - invoice_id
                - amount
      responses:
        '201':
          description: Credit note created
          content:
            application/json:
              schema:
                nullable: true
        '400':
          description: Validation error

````