Bulk e-Way Bill Generation API

Generate up to 100 e-Way Bills in a single API call. Async processing with per-EWB status, webhook completion notification.

Get sandbox keys → View OpenAPI docs Talk to sales

What is the Bulk e-Way Bill Generation API?

The Bulk e-Way Bill Generation API processes up to 100 EWBs in a single async call. Submit the list, get back a job_id, receive completion via webhook. Each EWB result includes generated EWB number + validity OR a clear failure reason.

Partial success is the norm for large batches — e.g., 95/100 succeed, 3 fail validation, 2 timeout. The API surfaces per-EWB status so retry logic can target only the failures.

Quick spec

Code examples

curl Node.jsPythonJava
curl -X POST 'https://apisandbox.whitebooks.in/eway/api/v1/eway/generate-bulk' \
  -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-bulk', {
  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-bulk',
    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-bulk"))
    .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

What's the max batch size?

100 EWBs per call. Larger batches: split into multiple jobs.

How long does a 100-EWB job take?

Typical 15-30 seconds for 100 EWBs. Webhook delivers the result.

How are failures handled?

Per-EWB status in the response. Retry only the failures with corrected payload.

Is bulk supported on sandbox?

Yes — full feature parity. Test high-volume flows without hitting production NIC.

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 →