Simple, powerful API for e-invoicing in 50+ countries. Generate compliant invoices with AI, validate automatically, and send globally—all with a few lines of code.
// Initialize the client
import { EInvoiceProClient } from '@einvoicepro/sdk';
const client = new EInvoiceProClient({
apiKey: process.env.EINVOICEPRO_API_KEY,
});
// Generate invoice with AI
const invoice = await client.invoices.createWithAI({
description: "3 months of consulting services for Acme Corp, $15k per month, due in 30 days",
clientEmail: "accounts@acmecorp.com",
});
// Validate compliance
const validation = await client.compliance.validate({
invoice: invoice,
countryCode: "IN", // India GSTN
});
if (validation.valid) {
// Send invoice
await client.invoices.send(invoice.id);
console.log("Invoice sent successfully!");
}Get started in under 10 minutes with our SDKs
256-bit encryption and SOC2 compliance
50+ countries, 100+ compliance standards
Clear docs, code examples, and support
/api/invoices/createCreate a new invoice with AI-powered generation
description(string)*Natural language description of the invoiceclient_id(string)Existing client UUID (optional)currency(string)ISO 4217 currency code (default: user's base currency)/api/invoices/:idRetrieve invoice details with compliance status
id(string)*Invoice UUID/api/invoices/:id/sendSend invoice via email to client
id(string)*Invoice UUIDrecipient_email(string)Override client email/api/compliance/validateValidate invoice against country-specific compliance rules
invoice(object)*Complete invoice objectcountry_code(string)*ISO 3166-1 alpha-2 country code/api/fx-ratesGet real-time currency exchange rates
base(string)*Base currency codetarget(string)*Target currency codeAuthenticate API requests using your API key in the Authorization header:
Get your API key from Dashboard → Settings → API Keys. Keep your API key secure—do not share it or commit it to version control.