PDF Packing Slip Generator

/api/packingslip 2 credit(s) per call

Generate professional PDF packing slips with line items, tracking information, and shipping details.

Overview

The PDF Packing Slip Generator creates professional PDF packing slips from structured JSON data. Include seller and customer addresses, shipping details, line items with quantities, custom colors, and notes.

Endpoint

POST /api/packingslip

Request Body

Field Type Required Description
slipNumber int No Packing slip number (auto-generated if omitted)
shipDate string No Ship date (ISO 8601, defaults to today)
seller object No Seller info (name, addressLines, email, phone)
customer object No Customer info (same fields as seller)
shippingAddress object No Shipping address (name, addressLines)
items array Yes Line items (each: name, quantity)
trackingNumber string No Shipment tracking number
carrier string No Shipping carrier name (e.g. "FedEx", "UPS")
notes string No Optional notes or handling instructions
logoUrl string No URL of the logo image (PNG, JPG, SVG) rendered in the header
accentColor string No Hex color for packing slip 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)

Example

Generate a PDF packing slip:

curl -X POST https://simplewebapis.com/api/packingslip \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: swa_your_key" \
  -d '{
    "slipNumber": 5001,
    "shipDate": "2025-01-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]" },
    "shippingAddress": { "name": "Globex Inc", "addressLines": ["789 Dock Blvd", "New York, NY 10002"] },
    "items": [
      { "name": "Wireless Mouse", "quantity": 5 },
      { "name": "USB-C Cable", "quantity": 10 }
    ],
    "trackingNumber": "FX123456789",
    "carrier": "FedEx",
    "notes": "Fragile - handle with care",
    "logoUrl": "https://simplewebapis.com/favicon-32x32.png",
    "accentColor": "#2563EB",
    "separatorColor": "#E5E7EB",
    "notesBackgroundColor": "#F9FAFB"
  }' --output packing-slip.pdf

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

Try it out

Use the Playground to test this API live.