e-Invoice API for Microsoft Dynamics 365

Dynamics 365 Business Central AppSource extension + F&O Power Automate connector for e-Invoice. IRN, signed QR, bulk + cancellation.

Get sandbox keys → View OpenAPI docs Talk to sales

What is the e-Invoice API for Microsoft Dynamics 365?

For Dynamics 365 Business Central, the WhiteBooks e-Invoice extension is published on AppSource. It surfaces as the "e-Invoice → Generate IRN" action on sales invoice cards and supports bulk IRN from list views.

For Dynamics 365 F&O, a Power Automate connector enables low-code workflow automation — e.g., trigger IRN generation on invoice posting, fail to retry queue on NIC error, send alert if cancellation window approaching.

Quick spec

Code examples

curl Node.jsPythonJava
curl -X POST 'https://apisandbox.whitebooks.in/einvoice/api/v1/irn/generate' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{ /* payload */ }'
Node.js
const res = await fetch('https://apisandbox.whitebooks.in/einvoice/api/v1/irn/generate', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer ' + accessToken,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(payload),
});
const data = await res.json();
Python
import requests

resp = requests.post(
    'https://apisandbox.whitebooks.in/einvoice/api/v1/irn/generate',
    headers={'Authorization': f'Bearer {access_token}'},
    json=payload,
)
data = resp.json()
Java
HttpRequest req = HttpRequest.newBuilder()
    .uri(URI.create("https://apisandbox.whitebooks.in/einvoice/api/v1/irn/generate"))
    .header("Authorization", "Bearer " + accessToken)
    .header("Content-Type", "application/json")
    .post(BodyPublishers.ofString(payload))
    .build();
HttpResponse<String> resp = HttpClient.newHttpClient()
    .send(req, BodyHandlers.ofString());

Integrate in 3 steps

  1. Sign up at accounts.whitebooks.in — sandbox credentials issued instantly, no sales gate.
  2. Make your first call against the sandbox base URL using the code example above. Validate against your local model.
  3. Move to production once your tests pass — switch host to https://api.whitebooks.in/einvoice. Same payload, same response shape.

Frequently asked questions

Is the extension AppSource-published?

Yes — search "WhiteBooks e-Invoice" in AppSource. Install in <30 minutes.

Does it support multi-company in BC?

Yes — per-company GSTIN configuration. Returns route per company automatically.

How are F&O bulk runs handled?

Power Automate flow batches 1,000 invoices per call and writes IRN back to the F&O sales invoice header.

What's the licensing model?

Annual subscription tied to your D365 GSTIN. Volume discounts on Enterprise tier.

Explore the full e-Invoice API

This is one endpoint inside the WhiteBooks e-Invoice API suite. See the full documentation — every endpoint, every parameter, every error code.

Open the e-Invoice API page →

Related e-Invoice API endpoints

IRN Generation API → IRN Cancellation API → Bulk IRN Generation API (1,000/call) → Signed QR Code Retrieval API →