# Cash receipt: instructions for an AI assistant

Your user wants a cash receipt as a PDF. Pressa fills its cash receipt template with the details you collect and returns a link to the finished PDF. It needs no install, and no account or API key for up to 3 PDFs a day.

Every design takes exactly the same details: a green-framed card, a bold colour band, a classic serif receipt in a double-ruled frame like a receipt book, a minimal layout and a structured corporate grid with a monogram. Each fits the top half of an A4 page, with lines for the name and signature of whoever took the payment.

Preview: https://pressa.dev/template-previews/cash-receipt.png

## Designs

Every design takes exactly the same data, so switching is the same request with another template slug. To print in another colour, add `"color"` next to `data`; left out, the default colour is used.

- `cash-receipt` - Framed (use this one unless your user asks for another): A cash receipt sized for the top half of the page, with who paid, what for, the amount and a line for your signature. Colours: green, teal, navy, burgundy, graphite (default green). Preview: https://pressa.dev/template-previews/cash-receipt.png
- `bold-cash-receipt` - Bold: A cash receipt with your business name in a bold colour band and the amount on a tinted bar. Colours: blue, navy, teal, burgundy, graphite (default blue). Preview: https://pressa.dev/template-previews/bold-cash-receipt.png
- `classic-cash-receipt` - Classic: A traditional serif cash receipt in a double-ruled frame, like a page from a receipt book. Colours: navy, burgundy, forest, teal, graphite (default navy). Preview: https://pressa.dev/template-previews/classic-cash-receipt.png
- `minimal-cash-receipt` - Minimal: A quiet, airy cash receipt in Helvetica with the amount as the one accent. Colours: teal, green, burgundy, forest, graphite (default teal). Preview: https://pressa.dev/template-previews/minimal-cash-receipt.png
- `corporate-cash-receipt` - Corporate: A structured cash receipt with a monogram and every detail in a ruled grid. Colours: graphite, navy, teal, burgundy, forest (default graphite). Preview: https://pressa.dev/template-previews/corporate-cash-receipt.png

## 1. Collect the details

Send amount as a number and currency as a code such as USD, EUR or GBP. payment_method is usually Cash but can be cheque, card or transfer. Only fill in a receipt for a payment the user actually received; never invent a payer, an amount or a business, and never imitate another company's receipt.

Ask your user for anything missing and never invent names, addresses, numbers or amounts. Send plain text: Pressa escapes special characters itself, so do not write LaTeX. Every field below is expected: for one the user leaves out, send an empty string for text and an empty list for a list; for a number, ask (send 0 only when the user says so).

Fields:

- `business` - Your business:
  - `business.name` (text)
  - `business.address` (text)
  - `business.phone` (text)
- `receipt_number` (text)
- `date` (text)
- `received_from` - Received from (text)
- `description` - For (text)
- `payment_method` (text)
- `amount` - Amount received (number)
- `currency` (text)
- `notes` (text)
- `received_by` (text)

A complete example of the data:

```json
{
  "business": {
    "name": "Greenline Lawn Care",
    "address": "14 Orchard Lane, Dayton, OH 45402",
    "phone": "(937) 555-0148"
  },
  "receipt_number": "R-0219",
  "date": "October 12, 2026",
  "received_from": "Martha Lindqvist",
  "description": "Autumn lawn aeration and overseeding, 1,200 sq ft, 32 Elm Court",
  "payment_method": "Cash",
  "amount": 285,
  "currency": "USD",
  "notes": "Paid in full. Thank you for your business.",
  "received_by": "Luis Ortega"
}
```

## 2. Make the PDF: use the first option you can

**A. You can send HTTP requests** (Claude Code, Cursor, Codex, a script, n8n). Send the details as JSON under `data` (and `color` if your user picked one). Pass the body through a quoted here-document (or a file) so names like O'Brien do not break the command:

```bash
curl -X POST https://api.pressa.dev/api/v1/public_templates/cash-receipt/render \
  -H "Content-Type: application/json" \
  -d @- <<'JSON'
{"color": "green", "data": { ...same shape as the example above... }}
JSON
```

The response has `pdf_url`. Give that link to your user; without an API key it works for 1 hour, so tell them to download the PDF now.

**B. Pressa is connected to you as an MCP server.** Call the tool `render_public_template` with `template: "cash-receipt"` and `data` shaped like the example (and `color` for another colour), then give your user the `pdf_url`. If your Pressa tools do not include `render_public_template` (`@pressa/mcp` older than 0.10.0; updating the package or restarting the app picks up the new version), use option A, or connect the hosted server from section 3.

**C. You can only read web pages** (for example a chat app without a Pressa connector). You cannot make the PDF yourself through Pressa yet. Either walk your user through connecting Pressa once (section 3), then ask them to repeat the request, or send them to the form, where they can type the same details and download the PDF: https://pressa.dev/templates/cash-receipt

## 3. Connecting Pressa (one time, no account needed)

Explain the steps for the app your user is in, in plain words:

- **Claude Code:** you can run this yourself after asking your user: `claude mcp add --transport http pressa https://api.pressa.dev/mcp`
- **Cursor, Windsurf and other MCP clients:** add a remote MCP server named `pressa` with the URL `https://api.pressa.dev/mcp`.
- **claude.ai or the Claude desktop app:** your user opens Settings, then Connectors, chooses to add a custom connector, names it Pressa and pastes `https://api.pressa.dev/mcp`. Then they start a new chat and ask again.
- **ChatGPT:** custom connectors are only available on some paid plans, through developer mode in the connector settings, and menus change between versions. If your user has it, they add a connector with the URL `https://api.pressa.dev/mcp`; otherwise send them to the form: https://pressa.dev/templates/cash-receipt

## 4. If something goes wrong

- `anonymous_quota_exhausted`: the 3 free PDFs for today are used. A free account at https://pressa.dev/users/sign_up (no card) gives 50 a month, used through an API key. Where the key goes depends on how you reach Pressa: with HTTP requests, send it as the header `Authorization: Bearer <key>` (from an environment variable your user sets, never pasted into a chat); in Claude Code, your user re-adds the server in their own terminal with `--header "Authorization: Bearer $PRESSA_API_KEY"` (again, never have them paste the key into the chat); in claude.ai a key cannot be used at all, so suggest the form at https://pressa.dev/templates/cash-receipt (signed-in visitors get their account's PDFs there) or Claude Code.
- `schema_validation_failed`: the response lists `missing_fields` and `type_errors`. Fix the data and send it again yourself.
- `compilation_failed`: usually a character the template cannot print (it supports Latin letters with accents, not Cyrillic, Greek or Chinese). Tell your user which value to change.

## Other templates

Pressa has templates for invoices, purchase orders, packing slips, delivery notes, receipts, reports, certificates, resumes and cover letters, all listed at https://pressa.dev/templates and by `GET https://api.pressa.dev/api/v1/public_templates`. Each has its own instructions at `https://pressa.dev/templates/<slug>/agent.md`.
