e-Way Bill API for SAP — S/4HANA, ECC

Native SAP integration for e-Way Bill generation. JCo / RFC + BTP iFlow. Auto-generate EWB from SAP delivery documents.

Get sandbox keys → View OpenAPI docs Talk to sales

What is the e-Way Bill API for SAP — S/4HANA, ECC?

The WhiteBooks e-Way Bill connector for SAP supports S/4HANA, ECC 6.0+, and ABAP-based custom logistics modules. It auto-generates EWB when a delivery document is released, fetches signed EWB confirmation, and writes the EWB number back to the delivery for printing on the bill of lading.

For high-volume distribution (>5,000 deliveries/day), the connector batches EWB generation and surfaces NIC rate-limit issues gracefully via SAP transaction monitors.

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

Does this trigger on delivery release?

Yes — standard SAP event-handler. Configurable via SAP basis.

Is SAP TM (Transportation Management) supported?

Yes — TM integration writes EWB to the transportation order header.

How is rate-limit handled?

Connector queues per-vehicle-day and serializes to stay within NIC limits. p99 latency stays under 800ms even at peak.

Sample code?

github.com/whitebooks-in/sap-eway includes RFC samples + BTP iFlow template.

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 →