This API is used for cancelling an e-Invoice within stipulated time by passing the IRN.
The format and details of Cancellation of IRN API request is depicted in following table.
URL | <URL>/api/Cancel |
---|---|
Content-Type |
application/json |
Method |
POST |
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 the authenticated user |
user_name |
User name of the authenticated user |
AuthToken |
Authentication token returned by the E-Invoice system |
Attributes | Description |
---|---|
Data | encoded string of encrypted Cancel e-invoice JSON using Sek. |
Attributes | Description |
---|---|
Status | Status of the Cancel IRN request(values 1-Success and 0- Failure) |
Data | If Status is ‘1’ |
Irn | IRN that is cancelled |
CancelDate | Date of cancellation of the IRN |
ErrorDetails | If Status is ‘0’ |
ErrorCode | Unique error code |
ErrorMessage | Error Description |
InfoDtls | Any additional message to be conveyed would be passed. |
Cancel IRN Request
JSON corresponds to the "Data" element of Cancel E-Invoice Request above
JSON (corresponds to the data element of Cancelled e-Invoice Response(Success))
JSON(in case of error)
Content will be updated shortly.