Download OpenAPI specification:Download
Document Management and Search Service with OpenSearch Integration.
This API provides intelligent document indexing, advanced search capabilities, and secure file management within the DANAConnect platform.
Key Features:
Advanced Document Management and Search Service with OpenSearch Integration.
This enhanced version provides intelligent document indexing, advanced search capabilities, and secure file management within a scalable architecture. Leveraging OpenSearch for high-performance indexing and retrieval, it enables sophisticated document operations while maintaining enterprise-grade security and auditability.
Key capabilities include:
Advanced document search in OpenSearch with support for:
Results are limited by configuration (index-document.search.limit)
Search completed successfully. The response body contains a business status code:
| Code | Description |
|---|---|
| 200 | OK |
Invalid search request. The response body contains a business error code:
| Code | Description |
|---|---|
| 6 | Unknown error |
| 14 | Unexpected filter operator |
| 65 | No documents match the provided search criteria |
Unauthorized - invalid or missing JWT token
Internal server error during search operation
{- "filters": [
- {
- "key": "tipo",
- "value": "factura"
}, - {
- "key": "departamento",
- "value": "ventas"
}
], - "documentTypeId": 0,
- "servicesId": 0,
- "operator": "AND"
}{- "code": 200,
- "description": "Search completed successfully",
- "documentsList": [
- {
- "pathS3": "string",
- "url": "string",
- "codeUrl": "string",
- "isZip": true,
- "filters": [
- {
- "key": "string",
- "value": "string"
}
], - "createDate": "2019-08-24T14:15:22Z",
- "validUntilDate": "2019-08-24T14:15:22Z",
- "documentTypeId": 0,
- "servicesId": 0,
- "configServiceName": "string"
}
], - "totalHits": 42
}Indexes one or more documents in OpenSearch and stores them in S3. Returns secure download URLs for each indexed document.
Documents indexed successfully. The response body contains a business status code:
| Code | Description |
|---|---|
| 0 | OK |
| 100 | OK with warning (partial success in non-strict mode) |
Invalid request. The response body contains a business error code:
| Code | Description |
|---|---|
| 3 | Exceeded the maximum number of documents allowed |
| 4 | Document not found |
| 6 | Unknown error |
| 7 | Duplicated URL on document list |
| 9 | Exceeded the maximum number of files to be compressed |
| 10 | The service configuration is incorrect or not assigned |
| 30 | You must include the 'filters' field with at least one configured filter |
| 31 | No filters are configured for this document type |
| 32 | Each filter must contain a valid 'key' |
| 33 | The filter with key is not allowed |
| 34 | The document list must not be empty |
| 35 | The 'isZip' must not be null |
| 37 | The configuration Document Type is incorrect |
| 38 | The configuration Document Type is not assigned |
| 39 | The configuration Document Type is not enabled |
| 40 | Client configuration not found |
| 57 | Client configuration version is invalid |
| 500 | At the moment, we cannot establish a connection |
Unauthorized - invalid or missing JWT token
Internal server error during document processing
{- "servicesId": 0,
- "isStrict": true,
- "isZip": true,
- "documentList": [
- {
- "url": "string"
}
], - "filters": [
- {
- "key": "string",
- "value": "string"
}
], - "additionalInfo": "string"
}{- "code": 0,
- "description": "string",
- "documentList": [
- {
- "pathS3": "string",
- "url": "string",
- "objectExist": true
}
]
}