e-Way Bill API for Logistics Platforms

Logistics-platform-grade API for high-volume EWB. Bulk 100/call, real-time Part-B updates, consolidated EWB for milk-run distribution.

Get sandbox keys → View OpenAPI docs Talk to sales

What is the e-Way Bill API for Logistics Platforms?

For logistics-tech platforms (transport management, freight aggregators, last-mile delivery), the WhiteBooks e-Way Bill API is purpose-built for high-volume scenarios. Bulk EWB generation (up to 100 per call), webhook-driven Part-B updates as vehicles change, and consolidated EWB for milk-run distribution.

Real-time GPS-feed integration lets you auto-update Part-B based on actual vehicle location from your fleet management system. The API supports multi-leg journeys with transhipment, return shipments, and reverse logistics flows.

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 throughput?

100 EWBs per bulk call. Up to 50 concurrent bulk jobs per tenant on Enterprise.

Can I auto-update Part-B from GPS?

Yes — set up a webhook listener that triggers Part-B update when your fleet system signals vehicle change.

Is multi-leg journey supported?

Yes — each leg gets a separate Part-B update with timestamp + location.

Reverse logistics (return shipment)?

Yes — flag as reverse_flow=true in request; API handles consignor/consignee inversion automatically.

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 →