E-Invoice/E-WayBill APIs

API – Cancel IRN

This API is used to cancel IRN.

URL

POST https://app.octagst.com/api/einvoice/cancelirn?gstin={value}

Query Parameters

NameDescription
gstinIt specifies GSTIN of seller

Request

Structure

ParameterData TypeTypeDescription
IrnString(64)MandatoryInvoice reference number
CnlRsnString(1)MandatoryCancel reason
1: Duplicate
2: Data entry mistake
CnlRemString(100)MandatoryCancel remarks

Sample

{
  "Irn": "34e60bdd02a8bdee4be4a4bc8d510ae0b8cc248b02009e5b875aced4fda57c76",
  "CnlRsn": "2",
  "CnlRem": "Wrong HSN codes reported"
}

Response

Structure

ParameterData TypeDescription
SuccessBooleantrue in case of success
IrnStringInvoice reference number which is cancelled
CancelTimeStringIRN cancellation time
DD/MM/YYYY HH:MM:SS

Sample – Success

Response payload will contain the success status along with IRN information.

{
  "Success": true,
  "Irn": "a5c12dca80e743321740b001fd70953e8738d109865d28ba4013750f2046f229",
  "CancelTime": "29/11/2020 09:34:11"
}

Sample – 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"
    }
  ]
}