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

# Invoices

> Invoice lifecycle for 86d: draft, sent, paid, partial, overdue. Issue invoices to B2B Customers with payment terms and credit notes.

<Warning>
  **Experimental.** This Module has no test or production evidence recorded yet. Read it, run it locally, and hold off on real Orders. See [maturity levels](/docs/resources/versioning).
</Warning>

The Invoices [Module](/docs/concepts/modules) manages an invoice lifecycle separate from [Order](/docs/concepts/commerce-model) receipts. Use it for B2B selling: extended payment terms (Net 30, Net 60), credit notes, partial payments, and an aging report.

**Source:** [`modules/invoices`](https://github.com/86d-store/86d/tree/main/modules/invoices) · **npm:** [`@86d-store/invoices`](https://www.npmjs.com/package/@86d-store/invoices)

## Installation

```sh theme={null}
86d module add invoices
```

## Store endpoints

| Method | Path                         | Description              |
| ------ | ---------------------------- | ------------------------ |
| `GET`  | `/orders/me/:id/invoice`     | Get invoice for an order |
| `GET`  | `/orders/me/:id/invoice/pdf` | Download as PDF          |

## Admin endpoints

| Method | Path                              | Description                        |
| ------ | --------------------------------- | ---------------------------------- |
| `GET`  | `/admin/invoices`                 | List with status and aging filters |
| `POST` | `/admin/invoices/:id/send`        | Email the invoice                  |
| `POST` | `/admin/invoices/:id/credit-note` | Issue a credit note                |

## Related pages

* [Orders](/docs/modules/orders)
* [Quotes](/docs/modules/quotes)
* [Customers](/docs/modules/customers)
* [How commerce records relate](/docs/concepts/commerce-model)
* [Versioning and maturity](/docs/resources/versioning)
* [Glossary](/docs/resources/glossary)
