Skip to main content

GST E-Way Bill API

GST E-Way Bill (EWB) is an electronic permit used for tracking the movement of goods under GST. Use this API to authenticate with the E-Way Bill system and generate, fetch, update, extend, cancel, consolidate, and manage multi-vehicle movement of e-way bills programmatically. The GST E-Way Bill API enables automated compliance workflows for goods movement and lets you create and update e-way bills (Part-A/Part-B), track shipments across stakeholders (consignor, consignee, transporter), and maintain audit-ready logistics records.

Generate and fetch EWB

Generate e-way bills with Part-A data, items, and transporter details. Fetch bills by date, document data, or EWB number.

Update Part-B and transporter

Update vehicle details (Part-B) or change transporter assignment after generating the e-way bill.

Transporter operations

Transporters can list assigned e-way bills, update vehicle details, and extend validity when delays occur.

Consolidated and multi-vehicle

Create consolidated e-way bills for multiple consignments in one vehicle. Manage multi-vehicle movement for partial deliveries.

Consignee actions

Consignees can view assigned e-way bills and reject incorrect bills for audit compliance.

Master data and troubleshooting

Search GSTIN, transporter IDs, HSN codes, and retrieve error lists for debugging.

Prerequisites

Before using the E-Way Bill API:
  • API credentials: Create API credentials on the E-Way Bill portal. See Create API credentials.
  • Sandbox JWT token: Authenticate with Sandbox to get an access token.
  • E-Way Bill session: Authenticate with the E-Way Bill portal to get an EWB access token.
Header routing: Use the x-source header to specify the E-Way Bill server: primary (default), secondary, or tertiary. This helps with load balancing and failover.

How it works

1

Create API credentials

Register API credentials on the E-Way Bill portal to enable programmatic access. See Create API credentials.
2

Authenticate for E-Way Bill access

Use the E-Way Bill Authentication endpoint with your portal username, password, and GSTIN to get an access token.
3

Generate E-Way Bill

Create an e-way bill with Part-A data (invoice details, HSN codes, values) and optionally include transporter and vehicle details.
4

Update logistics details

Update Part-B vehicle details when the truck is assigned, or change the transporter using the update APIs.
5

Track and verify

Fetch e-way bills by EWB number, date range, or document data. Verify bill status across consignor, consignee, and transporter views.
6

Handle transporter and consignee actions

Transporters can view and manage assigned bills. Consignees can reject incorrect e-way bills to maintain audit compliance.
7

Advanced movement and troubleshooting

Create consolidated e-way bills for multiple shipments. Use multi-vehicle movement for partial deliveries. Check the error list for troubleshooting.
Quick access to common E-Way Bill starting points:

API categories

Authentication

Authenticate with the E-Way Bill portal to start a session:
APIMethodPath
E-Way Bill AuthenticationPOST/gst/compliance/e-way-bill/tax-payer/authenticate

Consignor APIs

APIs for the goods supplier (consignor) to generate and manage e-way bills:
APIMethodPath
Generate E-Way BillPOST/gst/compliance/e-way-bill/consignor/bill
Get E-Way Bills By DateGET/gst/compliance/e-way-bill/consignor/bills
Get E-Way Bills By Document DataGET/gst/compliance/e-way-bill/consignor/bill
Cancel E-Way BillPOST/gst/compliance/e-way-bill/consignor/bill/{ewb_no}/cancel
Extend ValidityPOST/gst/compliance/e-way-bill/consignor/bill/{ewb_no}/extend
Update Vehicle Details (Part B)PUT/gst/compliance/e-way-bill/consignor/bill/{ewb_no}/vehicle
Update TransporterPUT/gst/compliance/e-way-bill/consignor/bill/{ewb_no}/transporter

Consolidated e-way bill (Consignor)

APIMethodPath
Consolidate E-Way BillPOST/gst/compliance/e-way-bill/consignor/consolidated-bill
Get Consolidated BillGET/gst/compliance/e-way-bill/consignor/consolidated-bill/{consolidated_ewb_no}
Regenerate Consolidated BillPOST/gst/compliance/e-way-bill/consignor/consolidated-bill/{consolidated_ewb_no}/regenerate

Multi-vehicle movement (Consignor)

APIMethodPath
Initiate Multi-Vehicle MovementPOST/gst/compliance/e-way-bill/consignor/bill/{ewb_no}/multi-vehicle
Add VehiclePOST/gst/compliance/e-way-bill/consignor/bill/{ewb_no}/multi-vehicle/vehicle
Update VehiclePUT/gst/compliance/e-way-bill/consignor/bill/{ewb_no}/multi-vehicle/vehicle

Consignee APIs

APIs for the goods receiver (consignee) to view and manage assigned e-way bills:
APIMethodPath
Get E-Way Bills By DateGET/gst/compliance/e-way-bill/consignee/bills
Reject E-Way BillPOST/gst/compliance/e-way-bill/consignee/bill/{ewb_no}/reject

Transporter APIs

APIs for logistics providers (transporters) to manage e-way bills:
APIMethodPath
Get E-Way Bills By Date and StateGET/gst/compliance/e-way-bill/transporter/bills
List E-Way Bills By GeneratorGET/gst/compliance/e-way-bill/transporter/bills/by-generator
Extend ValidityPOST/gst/compliance/e-way-bill/transporter/bill/{ewb_no}/extend
Update Vehicle DetailsPUT/gst/compliance/e-way-bill/transporter/bill/{ewb_no}/vehicle
Update TransporterPUT/gst/compliance/e-way-bill/transporter/bill/{ewb_no}/transporter

Consolidated e-way bill (Transporter)

APIMethodPath
Consolidate E-Way BillPOST/gst/compliance/e-way-bill/transporter/consolidated-bill
Get Consolidated BillGET/gst/compliance/e-way-bill/transporter/consolidated-bill/{consolidated_ewb_no}
Regenerate Consolidated BillPOST/gst/compliance/e-way-bill/transporter/consolidated-bill/{consolidated_ewb_no}/regenerate

Multi-vehicle movement (Transporter)

APIMethodPath
Initiate Multi-Vehicle MovementPOST/gst/compliance/e-way-bill/transporter/bill/{ewb_no}/multi-vehicle
Add VehiclePOST/gst/compliance/e-way-bill/transporter/bill/{ewb_no}/multi-vehicle/vehicle
Update VehiclePUT/gst/compliance/e-way-bill/transporter/bill/{ewb_no}/multi-vehicle/vehicle

Common APIs

Shared endpoints for fetching e-way bills, searching master data, and troubleshooting:
APIMethodPath
Get E-Way BillGET/gst/compliance/e-way-bill/tax-payer/bill/{ewb_no}
Get Error ListGET/gst/compliance/e-way-bill/tax-payer/error-list
Get HSN DetailsGET/gst/compliance/e-way-bill/tax-payer/hsn
Search GSTINPOST/gst/compliance/e-way-bill/tax-payer/gstin/search
Search Transporter IdPOST/gst/compliance/e-way-bill/tax-payer/transin/search

Common use cases

Use the GST E-Way Bill API when you need to:
  • Generate e-way bills for outbound shipments when an invoice is created in an ERP (manufacturing or wholesale dispatch)
  • Update Part-B vehicle details when the truck is assigned late or the vehicle changes mid-transit
  • Extend e-way bill validity when delays occur due to breakdown, rerouting, weather, or roadblocks based on remaining distance
  • Create a consolidated e-way bill for a transporter carrying multiple consignments in one vehicle for faster checkpoint verification
  • Use multi-vehicle movement when one e-way bill’s goods are moved in parts across multiple vehicles (partial deliveries or hub transfers)
  • Allow consignees to reject an incorrect e-way bill (wrong GSTIN or invoice mapping) and keep records auditable

Frequently asked questions

GST E-Way Bill (EWB) is an electronic permit required for transporting goods worth more than INR 50,000 under the GST regime. The e-way bill system tracks goods movement across state and intra-state borders, ensuring tax compliance and reducing tax evasion. Both the consignor (supplier) and transporter must generate or carry a valid e-way bill during transit.
GST E-Way Bill API authentication requires two steps. First, authenticate with Sandbox to get a JWT access token. Then, use the E-Way Bill Authentication endpoint with your E-Way Bill portal username, password, and GSTIN to get an EWB access token. This token is used for all subsequent e-way bill operations. See the Generate E-Way Bill session recipe for a complete walkthrough.
Consignors (goods suppliers) use the Generate E-Way Bill endpoint to create e-way bills with Part-A invoice data. After generation, consignors can Update Vehicle Details to add Part-B data, Update Transporter to change logistics provider, Extend Validity for delays, or Cancel E-Way Bill if needed.
Transporters can update vehicle details using the Update Vehicle Details endpoint when a vehicle changes mid-transit. To extend validity due to transit delays, transporters use the Extend Validity endpoint with the remaining distance. Transporters can also list all assigned e-way bills using Get E-Way Bills By Date and State.
Consolidated E-Way Bill (CEWB) combines multiple e-way bills into a single document when a transporter carries goods from multiple consignors in one vehicle. CEWB is useful for logistics providers transporting multiple consignments to simplify checkpoint verification. Use the Consolidate E-Way Bill endpoint to create a CEWB and Get Consolidated Bill to fetch details.
Multi-vehicle movement is required when goods covered by a single e-way bill are transported using multiple vehicles. For example, partial deliveries or hub-to-hub transfers. Use Initiate Multi-Vehicle Movement to start multi-vehicle mode, then Add Vehicle for each additional vehicle in the shipment chain.
E-Way Bill API errors can be debugged using the Get Error List endpoint, which returns all error codes and descriptions from the E-Way Bill portal. For general API error handling patterns and HTTP status codes, see the Errors guide. Common issues include invalid GSTIN format, expired sessions, and missing Part-B data.
The x-source header specifies which E-Way Bill server to route requests to: primary (default), secondary, or tertiary. This header enables load balancing and failover when one server is unavailable or slow. Use primary for normal operations. Switch to secondary or tertiary if you experience timeouts or the primary server is under maintenance. Include this header in all E-Way Bill API requests.