This API is used to generate the e-waybill using Invoice Registration Number (IRN). The details and parameters of the requests and responses are explained.
Request Header
Attributes | Description |
---|---|
client_id | Client id to be provided by e-invoice system |
client_secret |
Client secret to be provided by e-invoice system |
Gstin |
GSTIN of authenticated user |
user_name |
User name of the authenticated user |
AuthToken |
Authentication token returned by the e-invoice system |
Request Payload
Attributes | Description |
---|---|
Data | Base 64 encoded string of encrypted invoice JSON using SEK |
Attributes | Description |
---|---|
Status | Status of the generate IRN request (values 1- Success and 0-Failure) |
Data | If Status is ‘1’ |
Irn | SHA256 hash of Gstin, DocDtls.No, DocDtls.Typ, financial year of DocDtls.Dt |
EwbNo | e-waybill Number |
EwbDt | e-waybill date |
EwbValidTill | e-waybill validity |
Error Details | If Status is ‘0’ |
ErrorCode | Unique error code |
ErrorMessage | Error Description |
InfoDtls | Any additional message to be conveyed would be passed. |
{ "Irn": "825a63fc30ab5e948c47d460f0bc3ca615b8389d98bf38f56ff49df6160de06e", "TransId": "29DPZPS4403C1ZF", "TransMode": "1", "TrnDocNO": "12/22", "TrnDocDt": "06/02/2020", "VehNo": "KA01AB1234", "Distance": 120, "VehType": "R", "TransName": "ree" }
{ "EwayBillNo":111008683051, "EwayBillDate":"2020-04-24 11:28:00", "ValidUpto":"2020-04-26 23:59:00" }
JSON(in case of error)