Skip to content

HTML to PDF API for ecommerce

HTML to PDF API for Ecommerce Stores That Send Invoices, Packing Slips and Order Documents

SitePDF turns the HTML your store already renders into a PDF with one API call and can keep a dated copy of every document it produces. It is built for stores and platforms that generate thousands of order documents a month and want them to match the web view.

  • PDF and archive in one call
  • Plans from $49 a month
  • Your HTML stays yours

Short answer

SitePDF is an HTML to PDF API for ecommerce: send the HTML of an invoice, packing slip or order confirmation and get a PDF back from managed Chromium. The Starter API plan is $49 a month for 10,000 renders ($288 billed yearly), Growth is $99 a month for 50,000 ($588 yearly), and Scale is $299 a month for 250,000 ($1,788 yearly). Add archive=true and each document is also stored with its capture time.

Written and fact checked by the SitePDF team.

Which plan fits which store

Pick by renders per month, where one order usually needs one to three documents. These volumes are examples, so use your own order count.

Plan Renders a month Price Archive kept Concurrent renders Typical store
Starter API 10,000 $49 a month, $288 billed yearly 90 days 3 About 3,000 orders a month with an invoice and a packing slip each
Growth 50,000 $99 a month, $588 billed yearly 365 days 10 About 15,000 orders a month, or a platform generating documents for many merchants
Scale 250,000 $299 a month, $1,788 billed yearly 3 years 30 High volume marketplaces and peak season batches

SitePDF figures come from our own pricing page. See pricing for the current plans.

Where an online store needs a PDF

Invoices and credit notes. Your order page already shows line items, tax and totals in HTML. Rendering that same markup avoids a second invoice template that drifts from the page the customer sees.

Packing slips and returns forms. Warehouse staff print them in batches. A fixed paper size, repeated table headers on long orders and a logo in SVG are ordinary CSS in a browser and painful in a drawing library.

Order confirmations, quotes and wholesale price lists. B2B stores send quotes as PDFs because buyers forward them to a purchasing department. Charts and web fonts come through exactly as designed.

How the call works from a store backend

When an order is paid, your backend renders the document template to HTML as it already does for the browser, then sends it to POST /v1/render. The response returns a link to the PDF, which you attach to the email or save on the order record. Nothing runs on your servers except the HTTP call, so there is no Chromium image to build and no font set to maintain.

This works from Laravel, Rails, Node, Python, Go or any language that can make an HTTP request. If you want the framework specific version, see HTML to PDF in Laravel or HTML to PDF in Rails.

A worked example with numbers

These are planning assumptions, so replace them with your own. A store ships 6,000 orders a month and generates an invoice and a packing slip for each, which is 12,000 renders. That is above the 10,000 of Starter API, so Growth at $99 a month ($588 billed yearly, about $49 a month) is the plan that fits, with room for the November and December peak.

Compare that with running your own browser pool. If it takes 20 hours to build and 2 hours a month to keep running, at $100 an hour, labor alone is $4,400 in year one before any server cost. The HTML2PDF API pricing worked example shows the full table for 10,000 documents.

Keeping a dated copy of every document

Disputes happen: a customer says the invoice showed a different total, or a chargeback asks for the order confirmation as sent. With archive=true the render is stored with its capture time, and you can retrieve it by id for as long as your plan keeps the archive, 90 days on Starter API, 365 days on Growth and three years on Scale. For records you must keep longer, download the PDF into your own storage.

SitePDF does not file taxes or certify an invoice as legally valid in any country. Your accounting rules decide what an invoice must contain, and the API renders whatever HTML you send.

Who it is for and who it is not for

It is for ecommerce teams and platforms with a developer who can make an HTTP call, that already have order documents as HTML and generate from a few thousand to a few hundred thousand a month.

It is not for a store owner who wants a no-code app inside a hosted shop builder, or for fixed-position documents such as shipping labels from a carrier, which the carrier supplies. If your stack is Zapier or Make, the no-code PDF page is the better start. Subscription products can read the SaaS version, and bookkeeping products have a page for accounting software.

Render an order invoice from your own HTML and keep a dated copy.
curl -X POST https://api.sitepdf.com/v1/render \
  -H "Authorization: Bearer $SITEPDF_KEY" \
  -H "Content-Type: application/json" \
  -d '{"html": "<h1>Invoice 10482</h1>...", "format": "Letter", "archive": true}'

This is the documented API call shape. Full request and response walkthrough.

Questions about this job

How do I generate invoices as PDF for an online store?
Render the invoice template to HTML as you do for the order page, then send the HTML to an HTML to PDF API. SitePDF returns a PDF link from one call, and with archive=true it also stores a dated copy of the document.
How much does an HTML to PDF API cost for an ecommerce store?
SitePDF Starter API is $49 a month for 10,000 renders, or $288 billed yearly. Growth is $99 a month for 50,000 renders and Scale is $299 a month for 250,000. One order often needs an invoice and a packing slip, so count two renders per order.
Can it create packing slips in batches?
Yes. Send one render call per document from a queue in your backend. Starter API runs 3 renders at the same time, Growth 10 and Scale 30, so a peak day batch finishes faster on a higher plan.
Does it work with Shopify or WooCommerce?
SitePDF is an API, not a store app. Any backend or automation that can send an HTTP request can call it, including a custom Shopify app, a WooCommerce plugin you write, or a Zapier or Make step. We do not ship a ready-made store plugin.
How long are order documents kept?
Archived renders are kept for 90 days on Starter API, 365 days on Growth and three years on Scale. Download any PDF you must keep longer into your own storage.

Index

More PDF and archiving tools

Get started

Render and archive with one API call

A pixel perfect PDF and a dated copy of the page from the same request. Plans from $49 a month, half price billed yearly.

HTML to PDF, in your browser

Buy the plan