---
title: "Invoice"
description: "Line items with unit prices, the totals you supply, and bank payment details."
plan: Pro
docs: https://ui.edbn.me/docs/pdfs/invoice
---

# Invoice

Line items with unit prices, the totals you supply, and bank payment details.

Bill to and Ship to sit beside the invoice number, issue date, due date and reference, and extra fields such as a PO number join them. Each line item can carry a muted detail line, and the Qty and Unit price columns appear only when an item fills them.

Amounts arrive as minor units and an ISO currency code and are formatted for the locale. The totals print as supplied, the last in bold under a rule, and payment takes a sentence or labelled bank details.

## 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-invoice
```

## 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/invoice.typ (18 lines)
- lib/pdf/examples/invoice.ts (113 lines)
- lib/pdf/examples/invoice.json (105 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
