All e-way bill and e-invoice API calls
POST /v1/ewaybill/reject
Send the e-way bill number of a document another party generated against your GSTIN. It is rejected and you get the rejection time back. It works only within 72 hours of generation, and never on an e-way bill you generated yourself.
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.
The other party involved in the e-way bill can reject it when it was generated by the supplier or recipient. The supplier or recipient can reject it when it was generated by the transporter.
The window is 72 hours from generation. After that the e-way bill can no longer be rejected.
Use the other-party list to see every e-way bill raised against your GSTIN on a given date, then reject the ones that are not yours.
An e-way bill you generated yourself cannot be rejected. The network answers with error 341 and a plain message. Cancel it instead, within 24 hours.
| 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 reject. |
| 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/reject" \
-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", "test_mode": true }'Response
{
"success": true,
"ewaybill_no": "351000000123",
"rejected_date": "23/10/2026 10:24:00 AM",
"billed_to": "paid",
"credits_remaining": 197
}| Code | Message | What to do |
|---|---|---|
| 341 | This e-way bill is generated by you and hence you cannot reject it | Cancel your own e-way bill instead, within 24 hours of generating it. |
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.