How to generate a PDF invoice from JSON with an API
Turn a JSON payload into a finished PDF invoice with one POST request: authentication, the exact request body, strict mode, error shapes, and working curl, Node.js and Python code.
Read the guide →Blog
Practical guides to document generation with DocMake. Every code block below runs against the live API, and every claim is something the product does today.
Turn a JSON payload into a finished PDF invoice with one POST request: authentication, the exact request body, strict mode, error shapes, and working curl, Node.js and Python code.
Read the guide →A practical rule for choosing between Word and PDF output: pick DOCX when the recipient must edit the document, PDF when it is a final record. Plus how each format is actually produced.
Read the guide →Connect Claude, Cursor or any MCP client to DocMake with the @docmake/mcp server: install it in one command, then ask for an invoice in plain language and get a rendered PDF back.
Read the guide →How DocMake templates handle dynamic content: dotted variable keys, formatters, condition operators, repeating table rows and loop metadata, walked through with a real invoice template.
Read the guide →Prefer a reader? Subscribe to the RSS feed.
The Free plan includes full API access, 1,000 documents a month, no card and no expiry. Start from a gallery template or read the API reference.
Start free