E-Invoice/E-WayBill APIs
API – Cancel E-Waybill
This API is used to cancel ewayBill.
URL
POST https://app.octagst.com/api/einvoice/cancelewb?gstin={value}
Query Parameters
Name | Description |
---|---|
gstin | It specifies GSTIN of seller |
Request Payload
Structure
Parameter | Data Type | Type | Description |
---|---|---|---|
ewbNo | String(64) | Mandatory | e-Waybillnumber |
cancelRsnCode | String(1) | Mandatory | Cancel reason1 : Duplicate2 : Order Cancelled3 : Data entry mistake4 : Others |
cancelRmrk | String(50) | Mandatory | Cancel remarks |
Sample
{
"ewbNo": "791008693652",
"cancelRsnCode": "2",
"cancelRmrk": "Wrong HSN codes reported"
}
Response Payload
Success
Response payload will contain the success status.
Parameter | Data Type | Description |
---|---|---|
Success | Boolean | true in case of success |
CancelTime | String | EWB cancellation timeDD/MM/YYYY HH:MM:SS |
{
"Success": true,
"CancelTime": "29/11/2020 09:34:11"
}
Failure
If API request fails for some reason, response payload will contain the failure status and a list of errors.
{
"Success": false,
"Errors": [
{
"Code": "ERR_CODE_1",
"Message": "ERR MESSAGE 1"
},
{
"Code": "ERR_CODE_n",
"Message": "ERR MESSAGE n"
}
]
}