Business · Live

E-Way Bill API

Generate an e-way bill for any consignment in a single API call.

From ₹3/callPrepaid · billed per successful call

What the E-Way Bill API does

Generate e-way bills programmatically instead of keying them into the government portal. Send the consignment details and receive the EWB number and validity back. Calls carry your own GST portal API credentials (GSTIN, username and password), so filings are made as you, on your own registration. We never file on our own account.

Popular use cases

  • →ERP and billing software issuing e-way bills at invoice time
  • →Logistics and transport platforms moving goods across states
  • →Warehouse and dispatch systems automating outbound consignments
Request
curl -X POST https://apisathi.in/gw/v1/ewb-generate-v1/ \
  -H "X-API-Key: live_xxx" \
  -H "Content-Type: application/json" \
  -d '{ "gstin": "23BEFPJ5660F2ZP", "username": "your_portal_user", "password": "•••", "payload": { "supplyType": "O", "docType": "INV" } }'
Response
{
  "success": true,
  "data": { "ewayBillNo": 391000123456, "validUpto": "05/09/2026" }
}

Response fields returned by the E-Way Bill API

FieldExample
successtrue
data.ewayBillNo391000123456
data.validUpto05/09/2026

Every field, error code and the full schema are in the E-Way Bill API reference.

Call the E-Way Bill API from Node.js or Python

Node.js
const res = await fetch('https://apisathi.in/gw/v1/ewb-generate-v1/', {
  method: 'POST',
  headers: { 'X-API-Key': process.env.APISATHI_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({"gstin":"23BEFPJ5660F2ZP","username":"your_portal_user","password":"•••","payload":{"supplyType":"O","docType":"INV"}}),
});
const data = await res.json();
Python
import os, requests

res = requests.post(
    "https://apisathi.in/gw/v1/ewb-generate-v1/",
    headers={"X-API-Key": os.environ["APISATHI_KEY"]},
    json={"gstin":"23BEFPJ5660F2ZP","username":"your_portal_user","password":"•••","payload":{"supplyType":"O","docType":"INV"}},
    timeout=30,
)
data = res.json()

E-Way Bill API pricing

  • → From ₹3 per successful call + 18% GST
  • → Prepaid wallet from ₹200; no monthly fee, no minimum volume
  • → Failed or timed-out calls are not charged
  • → Bonus credit on recharges of ₹1,000 and above; GST invoice on every recharge
See live prices for every API →

Start in four steps

  1. Create a free account — about a minute.
  2. Call the E-Way Bill API with your TEST key in the sandbox, free.
  3. Recharge the wallet (UPI, card or netbanking) from ₹200.
  4. Switch to your LIVE key — the same key works for every API.
Create a free account →

Frequently asked questions

Do I need my own GST portal credentials?

Yes. E-way bills are filed against your registration, so you create an API user on the e-way bill portal and pass those credentials with each call. It is your filing, not ours.

What does it cost?

A flat ₹3 per successful call. Failed calls are never charged — the wallet hold is released automatically.

Can I cancel or update a bill afterwards?

Yes. Cancellation, Part-B vehicle updates, validity extension and transporter changes are all separate endpoints on the same key.

Can I test the E-Way Bill API for free?

Yes. Every account gets a TEST key that calls the E-Way Bill API in the sandbox at no cost and returns realistic sample responses, so you can finish your integration before adding money to the wallet.

Am I charged if a E-Way Bill API call fails?

No. You pay only for successful calls. If the source is unavailable, times out or rejects the request, the amount held for that call is released straight back to your wallet.

How do I get a E-Way Bill API key?

Sign up at apisathi.in — it takes about a minute — and create a key under API Keys. Use the TEST key in the sandbox, then recharge from ₹200 and switch to a LIVE key. The same key works for every API on API Sathi.

Start using the E-Way Bill API today

Sign up, recharge a prepaid wallet and generate a key in minutes. Lowest price guaranteed, no volume commitment.