NIC-Compliant e-Way Bill API

WhiteBooks routes all e-Way Bill traffic through the official NIC EWB portal channel. Full schema compliance, advance schema notice.

Get sandbox keys → View OpenAPI docs Talk to sales

What is the NIC-Compliant e-Way Bill API?

NIC (National Informatics Centre) operates the official e-Way Bill portal. WhiteBooks holds direct NIC EWB API access and routes every e-Way Bill request through the official channel — not screen-scraped or reverse-engineered.

NIC publishes API schema updates and downtime windows to channel partners in advance. WhiteBooks consumers are insulated from these upstream changes — schema migrations are handled inside the WhiteBooks API layer with backward compatibility.

Quick spec

Code examples

curl Node.jsPythonJava
curl -X POST 'https://apisandbox.whitebooks.in/eway/api/v1/eway/generate' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{ /* payload */ }'
Node.js
const res = await fetch('https://apisandbox.whitebooks.in/eway/api/v1/eway/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/eway/api/v1/eway/generate',
    headers={'Authorization': f'Bearer {access_token}'},
    json=payload,
)
data = resp.json()
Java
HttpRequest req = HttpRequest.newBuilder()
    .uri(URI.create("https://apisandbox.whitebooks.in/eway/api/v1/eway/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/eway. Same payload, same response shape.

Frequently asked questions

How can I verify NIC channel?

Every EWB response carries NIC's digital acknowledgment. Verifiable against NIC's published portal.

Does WhiteBooks support all NIC schema versions?

Current and N-1 (one prior major version). Older payloads auto-converted.

How are NIC outages handled?

Requests queued and replayed automatically. Webhook fires on resolution.

Is the NIC channel rate-limited?

Yes — NIC enforces per-GSTIN limits. WhiteBooks queueing layer absorbs the bursts.

Explore the full e-Way Bill API

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

Open the e-Way Bill API page →

Related e-Way Bill API endpoints

e-Way Bill Generation API → e-Way Bill Cancellation API → Part-B Update API → e-Way Bill Validity Extension API →