SureTaxAPI
POST-Batch-Upload
Overview
The Upload API endpoint is designed to facilitate the process of uploading files into the SureTax system. This endpoint requires the inclusion of a specific header called X-Import-Type to specify the type of file being uploaded.In the body of the API request, the following parameters need to be included:
1. legalEntityCode: This parameter represents the code or identifier for the legal entity associated with the uploaded file.
2. DatayearMonth: This parameter specifies the year and month associated with the data being uploaded.
3. filelayoutversion: This parameter indicates the version or format of the file being uploaded.
It ensures that the SureTax system can correctly interpret and process the data within the file.By utilizing this upload API endpoint, users can seamlessly transfer their files into the SureTax system.
OperationId: POST-Batch-Upload
Authorization Method(s): OAuth
Verb: POST
End Point: /Batch/Upload
Example Request
The following is an json request for this operation.
{
"fileContent": "file.csv",
"requestData": {
"legalEntityCode": "B000112005",
"fileLayoutVersion": "1.0",
"dataYearMonth": "202501"
}
}
Display String | Field Name | Field Type |
---|---|---|
X-request-id* | x-request-id | string |
X-import-type* | x-import-type | string |
code | description |
---|---|
202 | The API responds with this code to indicate that the data was sent successfully. |
400 | Bad Request - The server could not process the request due to invalid input or missing required parameters. |
401 | Unauthorized: The user's authentication is not valid. |
500 | Internal Server Error - An unexpected error occurred on the server while processing the request. |