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

NameDescription
gstinIt specifies GSTIN of seller

Request Payload

Structure

ParameterData TypeTypeDescription
ewbNoString(64)Mandatorye-Waybillnumber
cancelRsnCodeString(1)MandatoryCancel reason
1: Duplicate
2: Order Cancelled
3: Data entry mistake
4: Others
cancelRmrkString(50)MandatoryCancel remarks

Sample

{
  "ewbNo": "791008693652",
  "cancelRsnCode": "2",
  "cancelRmrk": "Wrong HSN codes reported"
}

Response Payload

Success

Response payload will contain the success status.

ParameterData TypeDescription
SuccessBooleantrue in case of success
CancelTimeStringEWB cancellation time
DD/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"
    }
  ]
}