E-Invoice/E-WayBill APIs

API – Get E-Waybill by IRN

This API is used to get details of e-waybill for a given IRN.

URL

GET https://app.octagst.com/api/einvoice/getewbbyirn?gstin={value}&irn={value}&pdf={value}

Query Parameters

NameDescriptionTypeValue
gstinIt specifies GSTIN of seller GSTINMandatory
irnIt specifies Invoice reference numberMandatory
pdfIt specifies whether to include eWayBill pdf in response or notOptionalyes, no (default)

Success Response

Response payload will contains the success status along with e-Waybill information.

{
  "Success": true,
  "EwbStatus": "ACT",
  "EwbNo": "191008688443",
  "EwbTime": "27/11/2020 17:23:45",
  "EwbValidTill": "29/11/2020 17:23:45",
  "EwbPdf": "utwf19...34566AAAElFTkSuQmCC"
}

Failure Response

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