Skip to content
E-way Bill API Environment:
https://your-domain/api/v1 Sample GSTIN 27AABCS1429B1ZUUse aps_test_… keys: labelled sample data, never billed.
Generate Eway Bill

Parent API: E-way Bill APIQuickstart guideAuthentication guide

E-way Bill Generation API

POST/api/v1/ewaybillTry it

Validates and submits an E-way Bill. The body follows the NIC GENEWAYBILL field names (supplyType, docNo, fromGstin, itemList, transMode, …). Until a live provider is configured and your account is activated: and always with sandbox keys: the call runs in demo mode: full validation, nothing created, nothing charged.

Billing: On live generation only. Demo validation and failures are free.

Parameters

Header parameters

  • Authorizationstringrequired

    Bearer <your API key>: aps_live_… or aps_test_…. X-API-Key is also accepted.

  • Idempotency-Keystring (8 to 80 chars)required

    Retries with the same key replay the original result instead of generating twice.

Body

  • bodyapplication/jsonrequired

    The E-way Bill payload. See the sample body and the field validation on the generation form.

Response

200400401402403404409429502503504

200 returns the JSON shown in the example panel. Every non-200 uses the standard envelope with a stable error.code:

  • 400invalid_requestA field is missing or malformed; details.issues lists what.
  • 400invalid_gstinThe GSTIN fails format or checksum validation.
  • 400invalid_ewb_noAn E-way Bill number has 12 digits.
  • 401invalid_api_keyThe key is missing, malformed, revoked, or used with the wrong environment prefix.
  • 402insufficient_balanceThe wallet cannot cover this call. Recharge and retry.
  • 403insufficient_scopeThe key lacks the scope this endpoint needs.
  • 403ewb_not_enabledE-way Bill access has not been purchased on this account.
  • 403ewb_activation_pendingSetup is paid; provider onboarding has not finished.
  • 404not_foundNo such resource.
  • 409idempotency_conflictA request with this Idempotency-Key is still in progress.
  • 429rate_limitedToo many requests; honour Retry-After.
  • 502upstream_errorThe data source failed. You were not charged.
  • 503provider_not_configuredThis capability has no live provider configured.
  • 504upstream_timeoutThe data source took too long. You were not charged.
  • A missing or malformed Idempotency-Key is a 400.
  • `mode` is `live` or `demo`; only `mode: "live"` with `created: true` means a real E-way Bill exists.

Frequently Asked Questions

Why is an Idempotency-Key required?

Networks fail mid-request. Retrying with the same key replays the original result instead of generating a second E-way Bill, so a retry can never double-generate or double-charge.

What is demo mode?

Until a live provider is configured and your account is activated (and always with sandbox keys), the call validates the full payload but creates nothing and charges nothing. The response says so explicitly with mode: "demo" and created: false.

Which fields does the body use?

The NIC GENEWAYBILL field names: supplyType, docType, docNo, fromGstin, toGstin, itemList, transMode and the rest. Copy the sample body and adjust.

When am I charged?

Only when a live E-way Bill is actually created. Demo validation, validation failures and provider errors are free.

Log in

Log in with your WhatsApp number. We'll send a one-time code.

WhatsApp login isn't configured on this server yet, so sign-in is unavailable.

First time here? A new number creates your account automatically. Searches after your free one are paid from your wallet.

Add wallet credit

Bigger recharges get a cheaper per-call rate.

Recharge amount
Wallet credit
₹7,999.00
GST (18%)
₹1,439.82
Total
₹9,438.82
Never expires

Payments aren't configured on this server yet.