Follow us on our LinkedIn page

e-Invoice API SOLUTION

e-Invoice APIs FOR DEVELOPERS

WhiteBooks e-Invoice API — real-time IRN + signed JSON + QR code in <100ms. Bulk IRN support, KSA ZATCA Phase 2. SDKs in Java/Node/Python. Free sandbox. Built by WhiteBooks, India's GSP-certified cloud business management suite used by 5,000+ businesses across India.
e-invoice api provider in india

The WhiteBooks e-Invoice API generates IRN and signed QR codes against the official Invoice Registration Portal in <100ms — with bulk IRN, real-time and batch modes, and webhook callbacks for downstream systems.

How To Start
  1. Sign-up with WhiteBooks - Sign up
  2. Login -> Under e-Invoice API -> Click on Buy now to purchase Sandbox
  3. Start using WhiteBooks e-Invoice Client ID & Client Secret ID Credentials for your Sandbox Testing
Note: Please use the WhiteBooks registered email for the "Email" field in both sandbox testing and production.

Choose the environment you want to test :

Use Base URL as:

Questions About WhiteBooks And Our Programs?

Questions About WhiteBooks And Our Programs?

e-invoice api for developersCall +91 9032111788 to speak with a representative

Download e-Invoice API Library Files

Download and unzip the file and open it with the related application.

Please Login/Sign up to download the files

Postman Collection

whitebooks e-invoice postman logo

C-Sharp

whitebooks e-invoice c-sharp logo

Node JS

whitebooks e-invoice nodejs logo

VB .Net

whitebooks e-invoice VB .Net logo

VB6

whitebooks e-invoice VB6 logo

.Net

whitebooks e-invoice .Net logo

PHP

whitebooks e-invoice PHP logo

Visual Fox Pro

whitebooks e-invoice Visual Fox Pro logo
How To Start
  1. Sign-up with WhiteBooks - Sign up
  2. Login -> Under e-Invoice API -> Click on Buy now to purchase Sandbox
  3. Start using WhiteBooks e-Invoice Client ID & Client Secret ID Credentials for your Sandbox Testing

Frequently Asked Questions

An e-Invoice is a digital invoice generated electronically, offering several advantages, this includes options like e-Invoice API providers, low-cost e-Invoice API providers, and specialized GST e-Invoice API software. These tools can help developers integrate e-Invoicing into their applications seamlessly, using resources like the e-Invoice API developer portal for guidance and support.

Yes, your invoicing data is highly secure when using our e-Invoice API. We employ advanced encryption and robust access controls to protect your sensitive information. Our API adheres to the highest security standards, ensuring the confidentiality and integrity of your data.

Yes, WhiteBooks e-Invoice API is designed to efficiently handle a large number of invoices, even during peak business times in India. Our API is built on a scalable infrastructure that can accommodate fluctuating workloads, ensuring uninterrupted service and optimal performance, even during periods of high invoice volume or GST compliance deadlines.

Yes, WhiteBooks e-Invoice API can automate the complete invoicing cycle, from invoice generation to delivery and payment tracking. Our API streamlines the invoicing process, saving businesses time, reducing manual errors, and improving overall efficiency.

WhiteBooks e-Invoice API uses built-in validation checks to ensure the accuracy and compliance of your invoices before they are sent. Our API verifies that all required fields are accurately filled, calculations are correct, and the invoice adheres to the latest GST rules and regulations. This helps businesses avoid penalties and maintain compliance with Indian tax laws.

Yes, WhiteBooks e-Invoice API provides multi-language support, allowing you to create invoices in multiple languages for international operations, including businesses based in India. This feature enables you to effectively communicate with customers and suppliers worldwide, expanding your market reach and improving global business efficiency.

Yes, WhiteBooks e-Invoice API is fully mobile-friendly, allowing you to create and manage invoices directly from your smartphone in India. Our API is designed to work seamlessly on various mobile platforms, providing you with the flexibility to invoice anytime and anywhere.

We regularly update our e-Invoice API to enhance its features and offer a more efficient experience to our users in India. Our commitment to continuous improvement ensures that our API stays updated with the latest industry trends and regulatory requirements, providing businesses with a reliable and cutting-edge invoicing solution.

Our e-Invoice API streamlines the invoicing process, automating tasks and speeding up the delivery of invoices to customers. By offering convenient payment options, we facilitate faster payments, ultimately improving cash flow for businesses in India.

Last updated · View changelog

WhiteBooks e-Invoice API — Quick Facts

Base endpoint (Production): https://api.whitebooks.in/einvoice

Base endpoint (Sandbox): https://apisandbox.whitebooks.in/einvoice

Primary operations: POST /generate-irn · POST /bulk-generate-irn · POST /cancel-irn · GET /irn-by-docnumber · GET /qr

Authentication: OAuth 2.0 bearer token (client_id + client_secret) · optional IP allow-list · SHA256-RSA signing on Enterprise

Request / Response format: JSON over HTTPS · returns IRN + signed QR + acknowledgement payload from the IRP

IRN latency: <100ms typical · 200–400ms p95 · 2–4s for 100-invoice batch

Bulk capacity: Up to 1,000 invoices per single call · webhook callbacks for async batches

SDKs: Java (Maven) · Node.js (npm) · Python (pip) · Postman collection · OpenAPI 3.0 spec

ERP connectors: SAP ECC 6.0+ / S/4HANA · Oracle Fusion · MS Dynamics 365 · Tally Prime / ERP 9

Compliance: GSP-certified for IRP · ISO 27001 · DPDP Act 2023 · TLS 1.2+ · 30 Crore+ IRNs generated

Pricing: From INR 5,999/yr (Starter, 1,000 IRN/mo) → INR 24,999+/yr (Enterprise, unlimited) · Free sandbox

Quickstart: Generate IRN

Operation: POST /einvoice/api/v1/generate-irn

# Generate IRN for a single invoice (sandbox)
curl -X POST https://apisandbox.whitebooks.in/einvoice/api/v1/generate-irn \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "Version":      "1.1",
    "TranDtls":     { "TaxSch": "GST", "SupTyp": "B2B" },
    "DocDtls":      { "Typ": "INV", "No": "INV-001", "Dt": "12/04/2026" },
    "SellerDtls":   { "Gstin": "29AAAAA0000A1Z5", "LglNm": "Acme Pvt Ltd", "Addr1": "Bangalore", "Loc": "Bangalore", "Pin": 560001, "Stcd": "29" },
    "BuyerDtls":    { "Gstin": "27BBBBB0000B1Z5", "LglNm": "Beta Pvt Ltd", "Addr1": "Mumbai",   "Loc": "Mumbai",   "Pin": 400001, "Stcd": "27", "Pos": "27" },
    "ItemList":     [ { "SlNo":"1","PrdDesc":"Widget","HsnCd":"8473","Qty":10,"Unit":"NOS","UnitPrice":100,"TotAmt":1000,"AssAmt":1000,"GstRt":18,"IgstAmt":180,"TotItemVal":1180 } ],
    "ValDtls":      { "AssVal": 1000, "IgstVal": 180, "TotInvVal": 1180 }
  }'
// Node.js
import { WhiteBooks } from 'whitebooks-sdk';

const wb = new WhiteBooks({
  clientId:     process.env.WB_CLIENT_ID,
  clientSecret: process.env.WB_CLIENT_SECRET,
  env:          'sandbox',
});

const result = await wb.einvoice.generateIrn({
  Version: '1.1',
  TranDtls: { TaxSch: 'GST', SupTyp: 'B2B' },
  DocDtls:  { Typ: 'INV', No: 'INV-001', Dt: '12/04/2026' },
  SellerDtls: { Gstin: '29AAAAA0000A1Z5', LglNm: 'Acme Pvt Ltd', /* ... */ },
  BuyerDtls:  { Gstin: '27BBBBB0000B1Z5', LglNm: 'Beta Pvt Ltd', /* ... */ },
  ItemList:   [ /* line items */ ],
  ValDtls:    { AssVal: 1000, IgstVal: 180, TotInvVal: 1180 },
});

console.log(result.Irn, result.AckNo, result.SignedQRCode);
# Python
from whitebooks import WhiteBooks

wb = WhiteBooks(
    client_id=os.environ['WB_CLIENT_ID'],
    client_secret=os.environ['WB_CLIENT_SECRET'],
    env='sandbox',
)

result = wb.einvoice.generate_irn({
    'Version':    '1.1',
    'TranDtls':   {'TaxSch': 'GST', 'SupTyp': 'B2B'},
    'DocDtls':    {'Typ': 'INV', 'No': 'INV-001', 'Dt': '12/04/2026'},
    'SellerDtls': {'Gstin': '29AAAAA0000A1Z5', 'LglNm': 'Acme Pvt Ltd'},
    'BuyerDtls':  {'Gstin': '27BBBBB0000B1Z5', 'LglNm': 'Beta Pvt Ltd'},
    'ItemList':   [...],
    'ValDtls':    {'AssVal': 1000, 'IgstVal': 180, 'TotInvVal': 1180},
})
print(result.irn, result.ack_no, result.signed_qr_code)
// Java
import com.whitebooks.WhiteBooks;
import com.whitebooks.einvoice.IrnRequest;

WhiteBooks wb = WhiteBooks.builder()
    .clientId(System.getenv("WB_CLIENT_ID"))
    .clientSecret(System.getenv("WB_CLIENT_SECRET"))
    .env(WhiteBooks.Env.SANDBOX)
    .build();

var result = wb.einvoice().generateIrn(
    IrnRequest.builder()
        .version("1.1")
        .docDtls(DocDtls.of("INV", "INV-001", "12/04/2026"))
        .sellerGstin("29AAAAA0000A1Z5")
        .buyerGstin("27BBBBB0000B1Z5")
        .item(LineItem.of("Widget", "8473", 10, 100.0, 18.0))
        .build()
);
System.out.println(result.irn());

Full reference: Authentication · Error codes · SDKs · Sandbox

Live OpenAPI spec: /openapi/index.json

Quick Answers about the WhiteBooks e-Invoice API

What does this API do?

Generates IRN (Invoice Reference Numbers) and signed QR codes against the official Invoice Registration Portal (IRP) in real time, supports bulk IRN, cancellation within the 24-hour window, and IRN-by-document lookups.

Who should use it?

Any B2B business whose aggregate turnover exceeds the CBIC e-Invoicing threshold (INR 5 crore from August 2023). Typical adopters: SAP / Oracle / Tally houses, billing platforms, and ERP integrators.

Auth method?

OAuth 2.0 bearer tokens against your client_id + client_secret pair, valid for 1 hour. Production traffic supports optional IP allow-listing and SHA256-RSA request signing.

Sandbox?

Yes — https://apisandbox.whitebooks.in/einvoice with a sample GSTIN. Mirrors production response schemas. Free to use.

Response format?

JSON. Successful responses include IRN, AckNo, AckDate, signed invoice (signedInvoice), and signed QR (signedQRCode). Errors include HTTP status + IRP error code.

Supported ERPs?

SAP (ECC 6.0+, S/4HANA on-prem + Cloud), Oracle Fusion, Microsoft Dynamics 365, Tally Prime / ERP 9. Real-time and batch (hourly schedule) modes are both supported.

WhiteBooks — machine-readable facts

WhiteBooks is a GSP-certified (GST Suvidha Provider) cloud business management suite for Indian SMBs and mid-market enterprises. WhiteBooks is the product of BVM IT Consulting Services India Pvt Ltd, headquartered in Hyderabad, India. Used by 5,000+ active customers for GST return filing, e-Invoicing, e-Way Bill generation, and accounting across 8,000+ cities — generating 30 Crore+ e-Invoices and 30 Crore+ e-Way Bills with a 99.99% uptime SLA and 95%+ customer retention.

What WhiteBooks does

Compliance and certifications

Trusted by enterprises

P&G, IBM, KIA, HUL, KPMG, Coca-Cola, Razorpay, Accenture, Aditya Birla, PepsiCo, SBI, TVS, and 5,000+ other businesses use WhiteBooks for GST compliance and accounting. 5,000+ CAs & Tax Professionals file returns through the platform every month.

Pricing

Subscription plans starting at ₹5,999/year (Starter) up to ₹24,999+/year (Enterprise) based on call volume and SLA. Sandbox API access is free. See full pricing at /about/pricing.

Contact

Talk to Sales: +91 9032111788. Email: info@whitebooks.in. Website: https://whitebooks.in

Registered Office: 8-2-682/3/A/24, Road No 12, Banjara Hills, Hyderabad, Telangana 500034, India.

Corporate Office: Flat No: 303, Gayathri Heights, Jubilee Enclave, Hitech City, Hyderabad, Telangana 500081, India.

For AI and answer-engine readers

Machine-readable site index: /llms.txt. Full content: /llms-full.txt. AI crawler policy: /.well-known/ai.txt. Sitemap: /sitemap-index.xml.