GST & non-GST invoices
Create fully compliant GST invoices or plain non-GST bills from a single endpoint.
Integrate GST and non-GST invoice generation, automatic tax calculations, downloadable invoice PDFs, payment recording and real-time webhooks into your SaaS, ERP, POS or business application.
Book an Integration DemoPrefer to talk first? Message us on WhatsApp — or fill the form for sandbox access. Built for Indian software products, SaaS platforms, ERPs, POS systems and marketplaces.
curl --request POST \
--url https://api.ledgerly.biz/api/v1/partner/invoices \
--header "Authorization: Bearer lgy_live_YOUR_API_KEY" \
--header "Idempotency-Key: ORDER-1001-INVOICE" \
--header "Content-Type: application/json" \
--data '{
"external_reference": "ORDER-1001",
"invoice_date": "2026-07-21",
"customer": {
"name": "ABC Traders",
"gstin": "23ABCDE1234F1Z5"
},
"place_of_supply": "Madhya Pradesh",
"items": [
{
"name": "Software Service",
"quantity": 1,
"unit_price": 10000,
"gst_rate": 18
}
]
}'const res = await fetch(
"https://api.ledgerly.biz/api/v1/partner/invoices",
{
method: "POST",
headers: {
"Authorization": "Bearer lgy_live_YOUR_API_KEY",
"Idempotency-Key": "ORDER-1001-INVOICE",
"Content-Type": "application/json"
},
body: JSON.stringify({
external_reference: "ORDER-1001",
invoice_date: "2026-07-21",
customer: { name: "ABC Traders", gstin: "23ABCDE1234F1Z5" },
place_of_supply: "Madhya Pradesh",
items: [
{ name: "Software Service", quantity: 1, unit_price: 10000, gst_rate: 18 }
]
})
}
);
const invoice = await res.json();import requests
res = requests.post(
"https://api.ledgerly.biz/api/v1/partner/invoices",
headers={
"Authorization": "Bearer lgy_live_YOUR_API_KEY",
"Idempotency-Key": "ORDER-1001-INVOICE",
"Content-Type": "application/json",
},
json={
"external_reference": "ORDER-1001",
"invoice_date": "2026-07-21",
"customer": {"name": "ABC Traders", "gstin": "23ABCDE1234F1Z5"},
"place_of_supply": "Madhya Pradesh",
"items": [
{"name": "Software Service", "quantity": 1,
"unit_price": 10000, "gst_rate": 18}
],
},
)
invoice = res.json()One integration adds India-ready billing to
A billing module may look simple at first, but production billing requires tax calculations, invoice numbering, PDF generation, payment tracking, retries, audit history and reliable document states.
Ledgerly provides these capabilities through developer-friendly APIs so your team can focus on its main product instead of maintaining an invoice engine.
Production-ready building blocks, exposed as clean REST endpoints — nothing you have to build or maintain yourself.
Create fully compliant GST invoices or plain non-GST bills from a single endpoint.
Tax split is derived from place of supply and each line's GST rate — no tax code on your side.
Every issued invoice produces a standard Ledgerly PDF, delivered via a short-lived signed URL.
An Idempotency-Key makes retries safe — the same request never creates a duplicate invoice.
Record payments against an invoice and track amount paid, amount due and status.
HMAC-SHA256 signed events for invoice.created, invoice.paid and invoice.cancelled.
Attach your own order ID to every invoice and look invoices up by that reference.
Review invoices, outstanding balances, webhooks and request activity from the Ledgerly web app.
Issue, rotate and revoke keys instantly — each key is scoped to your registered business.
Authentication and request logs give you and Ledgerly a clear audit trail for every call.
From first request to production, most partners are live in days — not weeks.
Tell us about your product and receive test credentials, documentation and the Postman collection.
Send customer, product, GST and payment information to POST /v1/partner/invoices.
Verify invoice formatting, GST totals, payment updates and signed webhook events.
Complete verification and activate your production credentials to go live.
Send the essentials — Ledgerly finalizes the invoice, calculates GST, assigns a number and returns everything, including the PDF link.
{
"success": true,
"invoice_id": "inv_a1b2c3d4e5f6g7h8i9j0",
"external_reference": "ORDER-1001",
"invoice_number": "INV-2026-0041",
"status": "ISSUED",
"subtotal": 10000,
"taxable_amount": 10000,
"tax_amount": 1800,
"cgst": 900,
"sgst": 900,
"igst": 0,
"grand_total": 11800,
"amount_paid": 0,
"amount_due": 11800,
"pdf_url": "/v1/partner/invoices/inv_a1b2c3d4e5f6g7h8i9j0/pdf",
"created_at": "2026-07-21T10:30:00"
}| Item | Qty | Rate | GST | Amount |
|---|---|---|---|---|
| Software Service | 1 | ₹10,000 | 18% | ₹10,000 |
Illustrative example. No real API keys, GSTINs or customer records are shown.
Add billing without developing and maintaining an independent invoice engine.
Generate a GST invoice and PDF directly after a retail transaction, with your bill number as the reference.
Issue invoices from sales orders and reconcile payments without building a tax engine into your ERP.
Bill subscribers with correct CGST/SGST/IGST and hand them a compliant downloadable invoice.
Produce seller and buyer invoices per order and notify your systems through webhooks.
Turn a closed deal or completed job into a GST invoice without leaving your workflow.
Invoice shipments and services with HSN/SAC codes and place-of-supply handled for you.
Add fee and service billing to niche vertical apps with a single, consistent invoice format.
Ledgerly is not only an invoice API. Your software automates billing through APIs, while authorized business users manage exceptions in the Ledgerly web or mobile app.
Automated, through the API
Hands-on, for your business users
Predictable REST endpoints, clear errors and the tooling your team already expects — so integration is a few days of work, not a project.
curl https://api.ledgerly.biz/api/v1/partner/ping \
-H "Authorization: Bearer lgy_live_YOUR_API_KEY"
# 200 OK
{
"success": true,
"partner_account_id": 1,
"message": "Partner API authentication successful"
}Every error returns a stable code, a human message and per-field detail where relevant.
Only capabilities that are actually in place — described plainly, without exaggerated claims.
Retry-After.Start with core invoicing, or unlock the full billing suite. Introductory partner pricing, per registered business — taxes extra.
Core invoicing API for one registered business (one GSTIN)
Everything in Core plus customers, products, quotations, payment links & reports
Both plans include sandbox & production keys, idempotent invoice creation, signed webhooks and basic integration assistance. Prices are per registered business (one GSTIN) and exclude taxes. Custom development, government e-invoicing (IRN), e-way bills, multiple connected businesses, white-label usage and reseller rights are priced separately. Contact us for embedded partner pricing.
Tell us about your product and integration. We review each request and follow up with sandbox credentials and documentation.
GST and non-GST invoices, directly from your software. You send customer, product and tax details; Ledgerly calculates CGST, SGST and IGST, assigns an invoice number, generates a PDF and returns all totals. You can also retrieve invoices, look them up by your own order reference, cancel invoices and record payments.
Yes. You receive sandbox credentials and documentation to test invoice creation, GST calculations, PDF layout, cancellation and webhooks before production keys are issued.
Billing Core (₹999/month) covers invoices, payment recording and webhooks — the essentials to bill directly from your software. Billing Suite (₹1,999/month) adds customers, products, quotations, payment links, payments listing, reports and statements for a full billing back office. Both include sandbox and production keys and cover one registered business (one GSTIN).
Yes. The correct tax split is applied automatically from the place_of_supply and each line's gst_rate, and the CGST, SGST and IGST amounts are returned in the response.
Yes. Every invoice carries your external_reference (your order or reference ID). It must be unique per account, and you can fetch an invoice directly by that reference.
Invoice creation requires an Idempotency-Key header. Retrying with the same key and payload returns the original invoice, and a repeated external_reference returns a duplicate error — so network retries never create double invoices.
Both the Billing Core and Billing Suite plans cover one registered business and one GSTIN. Connecting multiple businesses, or offering billing to your own customers, is available under separate embedded-partner pricing.
Government e-invoicing (IRN) and e-way bills are not part of the Billing Core or Billing Suite plans. They can be scoped and priced separately.
White-label PDFs, reselling and sublicensing are not included in the Billing Core or Billing Suite plans and require a separate partner or reseller agreement.
Yes. Basic integration support is included during business hours — authentication, request format, sandbox testing and genuine API defects. Custom development and extensive troubleshooting may be quoted separately.
Test invoice generation, GST calculations, PDFs, payments and webhooks using the Ledgerly sandbox.
Discuss Your Integration on WhatsApp