Get File Ingestion Status
This API will be used to know the final status of the ingestion.
Request Method
GET
Request URL
Request Headers
Parameter | Data Type | Field Validation | Description |
---|---|---|---|
x-cleartax-auth-token | String | NA | Mandatory. User auth token. |
Request Path Params
Parameter | Data Type | Field Validation | Description |
---|---|---|---|
templateType | String | Enum: tds | Mandatory. This will always be “tds”. |
activityId | String | NA | Mandatory. Activity ID received in Trigger File Ingestion API. |
Request Query Params
Parameter | Data Type | Field Validation | Description |
---|---|---|---|
tenant | String | Enum: For 24Q - TDSV224Q For 26Q - TDSV226Q For 27Q - TDSV227Q For 27EQ - TDSV227EQ
| Mandatory. |
Request Body
There is no request body for this API.
Response Status Codes
HTTP Status Code | Description |
---|---|
200 | OK |
400 | Bad request. |
401 | Unauthorized |
500 | Internal Server Error |
Response Schema
Parameter | Data Type | Field Validations | Description |
---|---|---|---|
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 an empty array. |
fileError | Object | NA | File Error Object. If there is no file error, then this field will be null. |
errors | Array | NA | Array of Error Objects. If there are no errors, then this will be an empty array. |
Processing Stats Object
Parameter | Data Type | Field Validations | Description |
---|---|---|---|
identifier | String | NA | Identifier. |
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
Parameter | Data Type | Field Validations | Description |
---|---|---|---|
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 | Array | NA | Array of File Error Details Object. If there are no errors, this will be null. |
Error Object
Parameter | Data Type | Field Validations | Descriptions |
---|---|---|---|
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. |
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