India
GST invoice PDF API for India
Generate GST-compliant tax invoices as PDFs from your billing system. Render the fields the law requires (both parties' GSTIN, HSN or SAC codes, the CGST, SGST, and IGST split, place of supply, and amount in words) with INR formatting, all from one API call.
Render a GST tax invoice from data
Keep your invoice layout in a template and generate each document by sending the order data. The PDF carries every field a registered supplier must show on a tax invoice.
// A GST tax invoice template plus order data -> a PDF.
const res = await fetch("https://api.pdfpipe.xyz/v1/pdf", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PDFPIPE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
template_id: "tmpl_gst_invoice",
data: {
seller_gstin: "27ABCDE1234F1Z5",
buyer_gstin: "29PQRSX6789K2Z1",
place_of_supply: "Maharashtra (27)",
items: [{ desc: "SaaS subscription", sac: "997331", taxable: "10000.00", igst: "1800.00" }],
total_inr: "11800.00",
},
}),
});Built for Indian tax documents
GST fields
Supplier and recipient GSTIN, invoice number and date, HSN or SAC codes, taxable value, and the CGST/SGST/IGST breakup.
e-invoice ready
Embed the IRN and signed QR code you receive from the Invoice Registration Portal into the rendered PDF. PDFPipe draws them; it does not replace the IRP.
INR and amount in words
Rupee symbol, Indian digit grouping (lakh and crore), and total in words rendered cleanly.
Common uses in India
- B2B GST tax invoices with input-tax-credit details.
- E-commerce and SaaS receipts with place-of-supply logic.
- Bills of supply for composition or exempt sellers.
- Bulk monthly invoicing via the batch endpoint.
Frequently asked
Can it generate GST-compliant tax invoices?
Yes. You provide a template with the required GST fields (both GSTINs, HSN/SAC, taxable value, CGST/SGST/IGST, place of supply), send the data, and the API returns the tax invoice PDF.
Does it issue e-invoices or generate the IRN?
No. The IRN and signed QR code are issued by the government Invoice Registration Portal (IRP). PDFPipe renders the PDF and embeds the IRN and QR you receive from the IRP, so the printed invoice is complete.
Can it format amounts in INR with lakh and crore grouping?
Yes. Format the values in your code or template and render the rupee symbol, Indian digit grouping, and amount in words.
Does it handle HSN and SAC codes?
Yes. HSN codes for goods and SAC codes for services are just template fields you populate from your catalog.
Which PDF API do you need?
These pages cover related search intents. Pick the one that matches what you are building.
500 free documents a month, flat pricing after that, and a live playground you can try without signing up.