Get File Ingestion Status
This API will be used to know the final status of the ingestion.
Request Method
GET
Request URL
Request Headers
x-cleartax-auth-token
String
NA
Mandatory.
User auth token.
Request Path Params
templateType
String
Enum:
sales,
purchase
Mandatory.
Type of document. sales - Sale document.
purchase - Purchase document.
activityId
String
NA
Mandatory. Activity ID received in Trigger File Ingestion API.
Request Query Params
tenant
String
Enum:
GSTSALES,
MAXITC
Mandatory. Primary Product for which the file is uploaded.
GSTSALES - For Sales Document,
MAXITC- For Purchase Document
Request Body
There is no request body for this API.
Response Status Codes
200
OK
400
Bad request.
401
Unauthorized
500
Internal Server Error
Response Schema
externalId
String
NA
If the user passes this in the request, it will be returned in the response.
activityId
String
NA
Activity ID requested in the request.
status
String
Enum: ACTIVITY_CREATED, ACTIVITY_QUEUED, ACTIVITY_COMPLETED, ACTIVITY_DISCARDED,
SYSTEM_FEEDBACK, UNPLANNED_ERROR
Status of the triggered ingestion activity. ACTIVITY_CREATED - Ingestion triggered,
ACTIVITY_QUEUED - Ingestion in progress,
ACTIVITY_COMPLETED - Ingestion completed or aborted or error,
ACTIVITY_DISCARDED - Ingestion deleted from UI.
SYSTEM_FEEDBACK - Any handled error on the file, eg: file corrupted, mandatory header missing, duplicate header, etc. UNPLANNED_ERROR - Any unhandled error.
processingStats
Array
NA
Array of Processing Stats objects. If the activity is not completed, then this field will be null.
fileError
Object
NA
File Error Object. If there is no file error, then this field will be null.
Processing Stats Object
gstin
String
NA
GSTIN for which the stats are aggregated.
totalDocumentCount
Number
NA
Count of total documents parsed from the valid rows.
validRows
Number
NA
Count of valid rows.
invalidRows
Number
NA
Count of invalid rows.
File Error Object
inputFileName
String
NA
Filename used in Trigger File Ingestion API.
status
String
Enum: DATA_VALIDATION_ERROR
Status of the error file.
errorFileUrl
String
NA
URL from where the error file can be downloaded. This pre-signed URL is valid for 10 hours. This file will be in CSV format.
errors
String
NA
Array of File Error Details Object. If there are no errors, this will be null.
File Error Details Object
errorCode
String
NA
Error code. If there is no error code, then this will be null.
errorMessage
String
NA
Error message. If there is no error message, then this will be null.
errorField
String
NA
Error field. If there is no error field, then this will be null.
errorValues
Array
NA
Array of strings. Error values. If there are no error values, then this will be null.
errorResolution
String
NA
Error resolution. If there is no error resolution, then this will be null.
Sample Response (Success)
Success - HTTP Status Code - 200
Sample Response (Error)
HTTP Status Code - 401 Unauthorized
API Validations
Currently there are no known validations.
API Constraints
Currently there are no known constraints.
Last updated