Show HN: I built an API to generate PDF invoices from JSON

3 months ago 1

Unlock Seamless Invoicing

Experience the ultimate invoicing solution designed for efficiency, precision, and complete control over your financial documents.

Flexible Logo Integration

Easily add your brand to every invoice. Link directly to your logo image or display a custom text logo.

Detailed Documentation

Dive into our clear, step-by-step guide designed to help you quickly integrate and master the API.

JSON in. PDF invoice out

Turn JSON into professional PDF invoices with a simple API call. Quick to start, powerful enough for any customization you throw at it.

Start Simple, Customize Deeply

Begin generating invoices with a lean, straightforward payload. All advanced options are optional, letting you tailor every detail when you need to.

Ready to Get Started?

Generate your first invoice in minutes with our simple API

Quick Start Example

Copy this code and replace with your API key to generate your first invoice

1// Generate invoice with JSON2Invoice API 2const invoiceData = { 3 language: "en", 4 timezone: "America/New_York", 5 from: { 6 name: "Your Company", 7 street: "123 Business Ave", 8 place: "New York, NY 10001", 9 country: "United States" 10 }, 11 to: { 12 name: "Client Company", 13 street: "456 Client Street", 14 place: "Boston, MA 02101", 15 country: "United States" 16 }, 17 invoice: { 18 id: "INV-2024-001", 19 currency: "USD", 20 date: "December 30, 2024", 21 due_date: "January 29, 2025", 22 items: [ 23 { 24 description: "Professional Services", 25 quantity: "10", 26 unit_price: "150.00" 27 } 28 ] 29 } 30}; 31 32// Send to API 33const response = await fetch('https://api.json2invoice.com', { 34 method: 'POST', 35 headers: { 36 'Content-Type': 'application/json', 37 'X-API-Key': 'YOUR_API_KEY' 38 }, 39 body: JSON.stringify({ data: invoiceData }) 40}); 41 42const result = await response.json(); 43console.log('PDF URL:', result.url);

Custom Invoice Generation

Transform your data into stunning, professional PDF invoices with a simple API call. Our service streamlines your billing, offering unparalleled flexibility and precision.

Simple, Transparent Pricing

Choose the plan that fits your needs. Start for free, scale as you grow.

Pay-as-you-go

Every account starts with 10 FREE API credits.
After that, it's just $0.02 per invoice.

Number of Invoice Credits:1,000

(2 cents per invoice credit)

  • 10 Free API Credits to start
  • Ideal for variable workloads
  • Access to all core features

Loading...

Best Value

Bulk Plan

10,000 Invoices for $42
Ideal for businesses with higher volume needs.

  • Best value at $0.0042 per invoice
  • Includes 10,000 API credits
  • Perfect for high-volume processing

Loading...

Frequently Asked Questions

Read Entire Article