Get E-way bill by date#
Available only in sandbox.
This API is Deprecated. Please use VERSION TWO OH (v2.0)
Given a date, fetch all e-way bills for the current users on that date.
Route
/basic/einv/{flynn-version}/{irp}/{e-invoice-api-version}/ewayapi/by-date/{date}
- active ‘flynn-version’: v1.0
- method: GET
URL Parameters#
Name | Description | Type |
---|---|---|
flynn-version | version of the API for example, v1.0 |
string |
irp | IRP Provider as per GST registration for e-invoicing | enum (ni1, ni2) |
e-invoice-api-version | E-invoice API version | string |
date | date (in URL encoded format, like 31%2F12%2F2020) | string |
Headers#
All headers as mentioned in the Basic E-Invoice API introduction.
Tip
The only valid value for the header key accept
is application/json
.
Also, since no request body is sent, header key Content-type
is optional.
Response#
200
:#
Successful response will be the same payload as per the ‘E-Invoice API Documentation’ published by NIC.
Sample Response Body
{
"data": "[{\"ewbNo\":621009730002,\"ewbDate\":\"31/12/2020 04:01:00 am\",\"status\":\"ACT\",\"genGstin\":\"24AAAPI3182M002\",\"docNo\":\"LA335123B002C429\",\"docDate\":\"31/12/2020\",\"delPinCode\":400049,\"delStateCode\":27,\"delPlace\":\"ABC\",\"validUpto\":\"01/01/2021 11:59:00 am\",\"extendedTimes\":0,\"rejectStatus\":\"N\"}]"
}
502
:#
If any Error from NIC end then sample response will be as per below.
Sample Response Body
{
"error": {
"message": "err-received-error",
"type": "Communication",
"args": {
"error-text": "{\"errorCodes\":\"418\"}"
}
}
}
Other e-invoice errors are mentioned under common errors.
Notes#
IRP - nic is deprecated. Instead of it please use ni1 or ni2