Business

Receipt PDF Template

Generate branded receipts for every transaction. Perfect for e-commerce, retail, payment processing, and POS system automation.

18 customizable variables

How It Works

1. Get Your API Key

Sign up and generate an API key from your dashboard.

2. Send JSON Payload

Make a POST request with your template variables as JSON.

3. Receive PDF URL

Get a direct URL to your generated PDF document.

Template Variables

Customize your PDF by providing values for these variables in your API request.

Variable NameTypeDefault Value
{{store_locations}}textParis • New York
{{business_name}}textMy Business
{{business_address}}text123 Main Street, City
{{business_email}}textcontact@business.com
{{business_phone}}text+1 234 567 890
{{receipt_number}}textREC-2024-001
{{date}}date-
{{customer_name}}textCustomer Name
{{time}}text14:32
{{customer_email}}textcustomer@email.com
{{payment_method}}textCredit Card
{{item_description}}textProduct/Service
{{item_qty}}number1
{{item_price}}text$50.00
{{subtotal}}text$50.00
{{tax}}text$5.00
{{total}}text$55.00
{{card_last_four}}text****4242

Code Examples

Copy and paste these examples to start generating PDFs with this template.

curl -X POST 'https://api.pdf-sign.com/functions/v1/generate-pdf-preview' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: pdfsign_YOUR_API_KEY' \
  -d '{
    "templateId": "d7c6f59e-2bfe-47c2-9109-49f626ff419f",
    "variables": {
      "store_locations": "Paris • New York",
      "business_name": "My Business",
      "business_address": "123 Main Street, City",
      "business_email": "contact@business.com",
      "business_phone": "+1 234 567 890",
      "receipt_number": "REC-2024-001",
      "date": "your_date",
      "customer_name": "Customer Name",
      "time": "14:32",
      "customer_email": "customer@email.com",
      "payment_method": "Credit Card",
      "item_description": "Product/Service",
      "item_qty": "1",
      "item_price": "$50.00",
      "subtotal": "$50.00",
      "tax": "$5.00",
      "total": "$55.00",
      "card_last_four": "****4242"
    }
  }'

Example JSON Payload

Here's a complete example of the variables object you'll send in your API request.

{
  "templateId": "d7c6f59e-2bfe-47c2-9109-49f626ff419f",
  "variables": {
    "store_locations": "Paris • New York",
    "business_name": "My Business",
    "business_address": "123 Main Street, City",
    "business_email": "contact@business.com",
    "business_phone": "+1 234 567 890",
    "receipt_number": "REC-2024-001",
    "date": "your_date",
    "customer_name": "Customer Name",
    "time": "14:32",
    "customer_email": "customer@email.com",
    "payment_method": "Credit Card",
    "item_description": "Product/Service",
    "item_qty": "1",
    "item_price": "$50.00",
    "subtotal": "$50.00",
    "tax": "$5.00",
    "total": "$55.00",
    "card_last_four": "****4242"
  }
}

Other Templates

Ready to Generate Receipts?

Sign up and start generating professional PDF documents in minutes. Start at just €9/month.