| 200 |
OK is returned to indicate that the task of batch processing receipts/invoices was created successfully.
The response contains the following fields:
| createdTime |
The time when the task was received and created. |
| finishedTime |
The time when the task was finished. |
| numberOfFiles |
The number of files submitted for this task |
| numberOfPages |
The number of pages of files submitted for this task |
| result |
Placeholder for carrying the result when the task is designed to process one document, which has one result for the input files. Not applicable here, therefore, result will not be filled. |
| results |
When the task is finished in processing documents, the results will be assigned with an array of structured results in json format. |
| queryParams |
Contains a list of key value pairs to record the query parameters of the task. The keys are endpoint, privacy, docType, polygon, and fullText.
|
| messages |
messages from the system for the user to inform any issues about this task. |
| status |
Status of the task, the value can be "Received", "Processing", "Error", "Finished". |
An example of how task looks like:
{
"id": "TaskMultiDocs-6430682530dc4b73a840bd81-2025-03-14T074724430Z-1Fw5m6ff",
"createdTime": "2025-03-14T07:47:24.429Z",
"finishedTime": null,
"numberOfFiles": 2,
"numberOfPages": 2,
"result": null,
"results": null,
"queryParams": {
"privacy": "false",
"fullText": "false",
"endpoint": "api/finance/extract/batch/task",
"polygon": "false",
"docType": ""
},
"messages": null,
"status": "Received"
}
|