Trigger File Ingestion
Last updated
Last updated
This API will trigger the ingestion to your Clear TDS Account.
POST
Parameter | Data Type | Field Validations | Description |
---|---|---|---|
Parameter | Data Type | Field Validations | Description |
---|---|---|---|
There are no query paramaters for this API.
Request Body
HTTP Status Code - 201 Created
HTTP Status Code - 401 Unauthorized
Currently there are no known validations.
Currently there are no known constraints.
Parameter | Data Type | Field Validations | Description |
---|---|---|---|
Parameter | Data Type | Field Validations | Description |
---|---|---|---|
Parameter | Data Type | Field Validations | Description |
---|---|---|---|
Parameter | Data Type | Field Validations | Discriptions |
---|---|---|---|
HTTP Status Code | Description |
---|---|
Parameter | Data Type | Field Validations | Description |
---|---|---|---|
Parameter | Data Type | Field Validations | Description |
---|---|---|---|
x-cleartax-auth-token
String
NA
Mandatory.
User auth token.
tan
String
NA
Mandatory. TAN of deductor
Content-Type
String
NA
Mandatory. application/json
templateType
String
Enum: tds
Type of document. This will always be “tds”.
userInputArgs
Object
NA
Mandatory.
User Input Arguments Object
fileInfo
Object
NA
Mandatory.
File Information Object
templateId
String
NA
Mandatory. Template ID of the file uploaded.
For 24Q - 62df9202813e5b2d2d2a2ff5 For 26Q - 62de5622813e5b2d2d2a2f90 For 27Q - 62df93ca813e5b2d2d2a2ff7 For 27EQ - 62df928a813e5b2d2d2a2ff6
For custom upload templates, use the custom upload template ID.
metadata
Object
NA
Mandatory.
Contains 3 fields, formtype, financialYear,
quarter
tenant
String
Enum:
For 24Q - TDSV224Q For 26Q - TDSV226Q For 27Q - TDSV227Q For 27EQ-TDSV227EQ
Mandatory.
formType
String
Enum:
Form24Q
Form26Q
Form27Q
Form27EQ
Mandatory.
Type of the form.
financialYear
String
NA
Mandatory.
Financial Year
quarter
String
NA
Mandatory.
Quarter
s3FileUrl
String
NA
Mandatory.
Presigned URL where the file was uploaded.
userFileName
String
NA
Mandatory.
Filename used when generating the Pre-signed URL.
201
Triggered ingestion successfully.
400
Bad request.
401
Unauthorized
500
Internal Server Error
activityId
String
NA
Async activity ID created by Clear.
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.
For non activity related errors, this will be null.
errors
Array
NA
Array of Error Objects. If there are no errors, then this will be an empty array.
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.