PDF Quote Generator

/api/quote 2 credit(s) per call

Generate professional PDF quotes with line items, tax and discount rates, and validity dates.

Overview

The PDF Quote Generator creates professional PDF quotes from structured JSON data. Include seller and customer addresses, line items with prices and quantities, tax and discount rates, validity dates, notes, terms, and custom styling.

Endpoint

POST /api/quote

Request Body

Field Type Required Description
quoteNumber int No Quote number (auto-generated if omitted)
issueDate string No Issue date (ISO 8601, defaults to today)
validUntilDate string No Validity expiry date (ISO 8601, defaults to 30 days from now)
seller object No Seller info (name, addressLines, email, phone)
customer object No Customer info (same fields as seller)
items array Yes Line items (each: name, price, quantity)
taxRate decimal No Tax rate as a percentage (0–100, e.g. 20 for 20%)
discountRate decimal No Discount rate as a percentage (0–100, e.g. 10 for 10%)
notes string No Optional notes or comments
terms string No Terms and conditions text
logoUrl string No URL of the logo image (PNG, JPG, SVG) rendered in the header
accentColor string No Hex color for quote heading and label (default: #3B82F6)
textColor string No Hex color for primary text (default: #1F2937)
mutedTextColor string No Hex color for secondary/muted text (default: #6B7280)
separatorColor string No Hex color for table row borders and address underlines (default: #E5E7EB)
notesBackgroundColor string No Hex color for the notes box background (default: #F3F4F6)
currency string No ISO 4217 currency code (e.g. "USD", "EUR", "GBP"). Defaults to "USD"

Example

Generate a PDF quote:

curl -X POST https://simplewebapis.com/api/quote \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: swa_your_key" \
  -d '{
    "quoteNumber": 1001,
    "issueDate": "2025-01-15",
    "validUntilDate": "2025-02-15",
    "seller": { "name": "Acme Corp", "addressLines": ["123 Seller St", "San Francisco, CA 94105"], "email": "[email protected]" },
    "customer": { "name": "Globex Inc", "addressLines": ["456 Customer Ave", "New York, NY 10001"], "email": "[email protected]" },
    "items": [
      { "name": "Web Development", "price": 1500.00, "quantity": 1 },
      { "name": "UI Design", "price": 800.00, "quantity": 2 }
    ],
    "taxRate": 0.2,
    "discountRate": 0.1,
    "notes": "Quote valid for 30 days from issue date.",
    "terms": "Payment due within 14 days of acceptance.",
    "currency": "USD",
    "logoUrl": "https://simplewebapis.com/favicon-32x32.png",
    "accentColor": "#2563EB",
    "separatorColor": "#E5E7EB",
    "notesBackgroundColor": "#F9FAFB"
  }' --output quote.pdf

The response is a PDF document (Content-Type: application/pdf).

Try it out

Use the Playground to test this API live.