Send the e-way bill number and the closure date once the goods movement it covers has actually happened. It marks the e-way bill as closed, which is different from cancelling one that should never have existed.
Cost: 3 credits per successful call. A rejection or an upstream failure is never charged.
Every call accepts "test_mode": true and returns a sample in the live shape, free. Set up your API credentials before the first real call.
Closing records that the movement finished as planned. Cancelling withdraws an e-way bill that should not have been issued, and is limited to 24 hours from generation.
Use close for a normal, completed delivery. Use cancel when the e-way bill itself was wrong.
closure_date is dd/MM/yyyy. remarks is optional free text.
| Field | Type | Required | Meaning |
|---|---|---|---|
| gstin | string | Yes | The GSTIN you act as, with API access set up. |
| gstin_username | string | Yes | The e-way bill API username for that GSTIN. Never stored. |
| password | string | Yes | The matching API password. Never stored. |
| ewaybill_no | string | Yes | The e-way bill number to close. |
| closure_date | string | Yes | dd/MM/yyyy. |
| remarks | string | No | Free text. |
| test_mode | boolean | No | true returns a sample in the live shape: free, nothing is filed. |
Send your API key in the x-api-key header. Government API credentials are used for the one call and never stored.
The request below runs in test mode, so it is free and files nothing. Remove test_mode for a real call.
curl -X POST "https://www.gstinapi.in/v1/ewaybill/close" \
-H "x-api-key: YOUR_API_KEY" -H "Content-Type: application/json" \
-d '{ "gstin": "24AAAAA0000A1Z5", "gstin_username": "YOUR_EWB_API_USER", "password": "YOUR_EWB_API_PASSWORD", "ewaybill_no": "351000000123", "closure_date": "24/10/2026", "remarks": "Goods delivered", "test_mode": true }'Response
{
"success": true,
"ewaybill_no": "351000000123",
"close_date": "24/10/2026",
"billed_to": "paid",
"credits_remaining": 197
}Not affiliated with the Government of India. Rules are the government network's own and can change; if a page here looks out of date, tell us.