Create Invoices With API

CraftMyPDF supports RESTful API integration. The integration with REST API makes it easy to auto create invoices in your application.

Invoices, receipts and credit notes are what your customers see most, and what you can least afford to assemble by hand. Pull line items, taxes and totals from your billing system and issue a branded PDF the moment an order lands.

Design the template once in our drag-and-drop editor, then POST your JSON — your invoices come back with tables, images, barcodes and QR codes rendered from your data. Any language that speaks HTTP works, with no PDF library to maintain.

*No Credit-card Required!

Use CraftMyPDF Integration to Create Invoices With API

Three simple steps to automate your document or image generation with any programming language:

  1. Design your template once in our drag-and-drop editor — add your text, images, tables and barcodes.
  2. Send us your data and tell us which template to use — from your own app, or from Zapier or Make.com.
  3. Your finished PDF or image comes straight back, ready to store, email or print.

Automation for PDF & image generation has never been easier!

Prefer a different tool? Automate the same workflow with Make.com or Zapier.

Millions of PDFs generated for thousands of users worldwide

CraftMyPDF gives you the power to seamlessly generate PDFs and images from highly reusable templates

  • Easy to Use Drag-and-Drop Template Editor

    Design professional PDF templates visually with our easy-to-use editor. Add text, images, QR codes, barcodes, shapes, tables, charts, and more.

    more
  • Turn Existing PDFs into Fillable Templates

    AI and computer vision detect fields in your existing PDFs, identify the expected data type, and generate clear labels for easier mapping and automation.

    Video tutorial
  • Powerful Expressions & Formatting Support

    Format dates, currencies, numbers, and text with built-in expressions. Need more advanced logic? Extend your templates with custom JavaScript functions.

    more
  • Generate PDF Documents Within Your Region

    Generate and store PDFs closer to your users with regional endpoints. Available in the US, EU, Singapore, and Australia to support data residency and lower latency.

    more
  • PDF Generation & Image Generation API

    Our cloud-based API helps you to generate PDF documents or images. We support synchronously or asynchronously PDF generation scale without the costs of maintenance.

    API Reference
  • Automate with Nocode or Lowcode Platforms

    Automate document workflows with Zapier, Make, Bubble, Coda, and REST API integrations. Connect CraftMyPDF to the tools your team already uses.

    more
  • Support of Fillable Components

    Create interactive PDF forms with fillable components in the drag-and-drop editor. Add text fields, checkboxes, dropdowns, radio buttons, and signature fields with ease.

    more
  • Built with Security in Mind

    CraftMyPDF has successfully completed its SOC 2 Type II audit to support teams that need stronger security, reliability, and operational trust.

    Enterprise features

Intuitive & Advanced Template Editor

Our drag & drop editor lets you design templates in any browser and generate pixel-perfect PDF documents and images from pre-defined templates and JSON data.

Advanced Drag & Drop Template Builder

No code required! Our advanced editor allows you to easily create new PDFs by dragging and dropping the elements into your PDF templates.

You can create PDF documents easily such as invoices, reports, delivery notes that reflect your brand.

If you are still converting HTML code to PDFs and looking for an easy way to create PDF documents – Our PDF template editor does not require HTML or CSS knowledge.

Drag-and-drop template builder animation The CraftMyPDF template editor building an invoice. A logo, a customer text block bound to the data field customer.name, a line-item table bound to items, and a QR code are dragged one at a time from the component palette onto a blank page. Each element is selected as it lands and the properties panel shows its position, size and data-field binding. When all four are placed the finished template is marked saved. Invoice Template 100% Preview COMPONENTS Text Image Table QR Code Barcode Shape Chart A4 · Portrait Bill to {{ customer.name }} PROPERTIES Select an element POSITION SIZE DATA FIELD STYLE OPACITY Auto-fit Image X 12 Y 12 W 46 H 30 {{ logo_url }} Text X 83 Y 12 W 96 H 30 {{ customer.name }} Table X 12 Y 90 W 167 H 104 {{ items }} QR Code X 12 Y 216 W 34 H 34 {{ order_id }} Saved Image Text Table QR Code
Use Cases

Generate Professional PDFs for Recurring Business Workflows

CraftMyPDF helps you design reusable PDF templates and generate polished documents from JSON data using API, Make, or Zapier.

  • Contracts
  • PDF Reports
  • Sales Reports
  • Invoices
  • Packing Slips
  • Label Sheets
  • Certificates
  • Agreements
  • Purchase Orders
  • Delivery Notes
  • Payslips
  • Coupons
  • Credit Notes
  • Dispatch Labels
  • Shipping Labels
CraftMyPDF packing slip template preview

Easy Integrations

Call the PDF Generation API and Image Generation API from the tools your team already runs — Zapier, Make.com, n8n, Bubble.io and more — with no glue code to maintain.

Automate your PDF workflow with no-code platforms or the REST API

One template, one JSON payload. Send data from a Zapier zap, a Make.com scenario, an n8n workflow or your own backend — every integration calls the same endpoint.

Run it synchronously for on-screen downloads or asynchronously for batches, with request data and generated files kept in your chosen region: US, EU, Singapore or Australia.

Browse all integrations
curl -X POST \
  --header "Content-Type: application/json"  \
  --header 'X-API-KEY: 7832MjA6MTE6UjlkM3h4emxpTExzeFR0aQ=' \
  --data '{"template_id": "05f77b2b18ad809a", "export_type":"json", "expiration": 10, "output_file":"my_new.pdf", "data":  "{ \"invoice_number\": \"INV38379\", \"date\": \"2021-09-30\",  \"currency\": \"USD\", \"total_amount\": 82542.56   }", "output_file": "output.pdf"}' \
  "https://api.craftmypdf.com/v1/create"

Native integrations, plus a REST API for everything else.

Customer Reviews

Trusted by individual developers and businesses, we have generated over 10 millions of high-quality PDFs!

See what our customers have to say about us

Frequently Asked Questions

How does creating invoices with the API work?

You design the invoice once in the editor. Then, each time you need an invoice, your app sends the customer details, line items and totals as JSON along with the template ID. CraftMyPDF fills in the template and returns the PDF, which you can email, save or print.

Do I have to design the invoice from scratch?

No. Choose a ready-made invoice template, add your logo and colours, and connect it to your data. The editor works by drag and drop, so you don't need to know HTML or CSS.

Can one template handle different line items, currencies and date formats?

Yes. The table grows or shrinks with the number of items you send. Dates and prices come in as plain data and are formatted the way your customers expect, for example 12 Nov 2026 or $1,250.00. The template can also turn a payment reference into a barcode or QR code.

I don't have a developer. Can I still automate invoices?

Yes. Link your billing tool through Zapier, Make, n8n, Airtable or HubSpot and the invoice is created automatically when an order comes in or a deal closes.

What else can I put on an invoice besides text and totals?

Logos and images, tables that grow with the data, barcodes and QR codes, fillable fields, and simple rules written in JavaScript, such as hiding the discount row when there is no discount. All editor and API options are listed under features.

Can I try it without creating an account?

Yes. The free online invoice maker gives you a PDF with no sign-up, and it sits with the other free PDF tools like the receipt maker and the bulk generator from CSV. If you want to test the API itself, the free plan includes 50 PDFs a month.

Start generating PDFs in minutes

Design templates in your browser and generate pixel-perfect PDFs through a simple REST API or your favourite no-code platform.

*No Credit-card Required!