PDF receipts your customers can actually file
Email-body receipts get lost and screenshot badly. Expense tools, accountants, and procurement departments want a proper PDF. Generating one takes a single call:
await fetch("https://slipstack.dev/api/v1/pdf", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SLIPSTACK_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
template: "receipt", // <- receipt layout, PAID badge included
data: {
from: { name: "Bean & Barrel Coffee", logoUrl: tenant.logoUrl },
to: { name: payment.customerName, email: payment.email },
number: `R-${payment.id}`,
currency: payment.currency,
items: payment.items,
taxRate: payment.taxRate,
},
}),
});Where teams use it
- Marketplaces: per-seller branded receipts (logo + accent color per tenant).
- POS / kiosks: email a PDF instead of printing; works offline-queue friendly.
- Subscriptions: attach receipts to renewal emails straight from your billing webhook.
The receipt template automatically stamps a PAID badge and skips due-date fields. Same API, same key, same pricing as invoices.