---
title: "Credit note"
description: "Credits part of an invoice and references the original."
plan: Pro
docs: https://ui.edbn.me/docs/pdfs/credit-note
---

# Credit note

Credits part of an invoice and references the original.

The original invoice number sits with the credit note’s own number and issue date, beside the Credit to party. Credited items are line items, each with a detail line underneath that can give the reason, and the supplied totals end on the total credit. A closing note can say where the credit was applied and what remains due; unlike the invoice, there’s no payment block.

## Installation

This is a Pro item. Once per project, create a token at https://ui.edbn.me/dashboard/tokens, put it in `.env.local` as `EDBN_TOKEN`, and add the registry to `components.json`:

```json
{
  "registries": {
    "@edbn": {
      "url": "https://ui.edbn.me/r/{name}.json",
      "headers": { "Authorization": "Bearer ${EDBN_TOKEN}" }
    }
  }
}
```

Then install:

```bash
npx shadcn@4.19.0 add @edbn/pdf-credit-note
```

## Dependencies
- edbn: pdf-shared

## Usage

The example code is part of Pro (https://ui.edbn.me/pricing). With the user's token, the edbn MCP server's `get_example` tool returns it: https://ui.edbn.me/mcp

## Files
- lib/pdf/templates/credit-note.typ (15 lines)
- lib/pdf/examples/credit-note.ts (64 lines)
- lib/pdf/examples/credit-note.json (56 lines)

## For agents
- Base theme, once per project: npx shadcn@4.19.0 add https://ui.edbn.me/r/edbn-base.json
- MCP server with search, items, examples and source: https://ui.edbn.me/mcp
- Every page and item: https://ui.edbn.me/llms.txt
