Part-B Update API

Update Part-B (vehicle / transporter) on an existing e-Way Bill. Required when vehicle changes mid-journey or for Part-A-only original EWB.

Get sandbox keys → View OpenAPI docs Talk to sales

What is the Part-B Update API?

The Part-B Update API updates the vehicle number, mode of transport, or transporter ID on an existing e-Way Bill. This is required (a) when a Part-A-only EWB needs vehicle details added before goods movement, or (b) when vehicle changes mid-journey (e.g., transhipment, breakdown).

Each EWB allows multiple Part-B updates throughout the journey. WhiteBooks tracks the full Part-B history per EWB for audit trail. The API also handles "Update Place of Delivery" for cases where the destination changes after EWB generation.

Quick spec

Code examples

curl Node.jsPythonJava
curl -X POST 'https://apisandbox.whitebooks.in/eway/api/v1/eway/part-b/update' \
  -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/part-b/update', {
  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/part-b/update',
    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/part-b/update"))
    .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 many Part-B updates are allowed per EWB?

Unlimited within the EWB validity period. Each update is timestamped.

Can I update Part-B after EWB has expired?

No — once expired, generate a fresh EWB.

What if the vehicle was wrong from the start?

Cancel the EWB (within 24h) and generate fresh, or use Part-B update if past 24h.

Is multi-vehicle journey supported?

Yes — each leg gets its own Part-B update with timestamp + lat/long if available.

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 → e-Way Bill Validity Extension API → Consolidated e-Way Bill API →