All Templates

Itemized Receipt Template

A4 portrait

A classic A4 business receipt with a header, a PAID stamp, an itemized table with quantities and unit prices, a totals block, and the payment method. Generate a PDF receipt for every order through the API.

Preview of the Itemized Receipt template rendered as a PDF

The exact PDF the API produces. What you preview is what you generate.

Generate with the API

Use this template, publish it to get a template id, then call the API with your data. Replace YOUR_TEMPLATE_ID and YOUR_API_KEY with your own.

curl -X POST https://api.pdfglyph.dev/v1/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "templateId": "YOUR_TEMPLATE_ID",
    "data": {
      "receiptNumber": "RCPT-4Q2X-0917",
      "datePaid": "June 12, 2026",
      "merchant": {
        "name": "Northwind Supply Co.",
        "email": "sales@northwind.supply"
      },
      "customer": {
        "name": "Dana Whitfield",
        "email": "dana@example.com"
      },
      "paymentMethod": {
        "brand": "Visa",
        "last4": "4242"
      },
      "items": [
        {
          "description": "Oak desk organizer",
          "quantity": "2",
          "unitPrice": "$24.00",
          "amount": "$48.00"
        },
        {
          "description": "Felt desk mat, large",
          "quantity": "1",
          "unitPrice": "$39.00",
          "amount": "$39.00"
        },
        {
          "description": "Brass paperweight",
          "quantity": "3",
          "unitPrice": "$12.00",
          "amount": "$36.00"
        }
      ],
      "subtotal": "$123.00",
      "taxLabel": "Sales tax (8%)",
      "taxAmount": "$9.84",
      "total": "$132.84"
    }
  }' \
  --output document.pdf

Sample Data

The JSON this preview was rendered from. Match these fields, or edit the template to fit the data you already have.

{
  "receiptNumber": "RCPT-4Q2X-0917",
  "datePaid": "June 12, 2026",
  "merchant": {
    "name": "Northwind Supply Co.",
    "email": "sales@northwind.supply"
  },
  "customer": {
    "name": "Dana Whitfield",
    "email": "dana@example.com"
  },
  "paymentMethod": {
    "brand": "Visa",
    "last4": "4242"
  },
  "items": [
    {
      "description": "Oak desk organizer",
      "quantity": "2",
      "unitPrice": "$24.00",
      "amount": "$48.00"
    },
    {
      "description": "Felt desk mat, large",
      "quantity": "1",
      "unitPrice": "$39.00",
      "amount": "$39.00"
    },
    {
      "description": "Brass paperweight",
      "quantity": "3",
      "unitPrice": "$12.00",
      "amount": "$36.00"
    }
  ],
  "subtotal": "$123.00",
  "taxLabel": "Sales tax (8%)",
  "taxAmount": "$9.84",
  "total": "$132.84"
}

Start with the Itemized Receipt Template

Open it in the editor as a new draft, customize the HTML and styling, then generate PDFs on demand through the API.