Retrieve a document by id
Security
OAuth2(Required scopes: documents.read)
- API EUhttps://api.cloud.hypatos.ai/v2/documents/{id}
- API UShttps://api.cloud.hypatos.com/v2/documents/{id}
- Mock serverhttps://hypatos.redocly.app/_mock/openapi/documents/{id}
curl -i -X GET \
'https://api.cloud.hypatos.ai/v2/documents/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Document retrieved.
Identifier of the primary file associated with this document.
Example:"5349b4ddd2781d08c09890f4"
List of files associated with this document, each with their assigned role and main file flag.
Example:
[ { "id": "5349b4ddd2781d08c09890f4", "type": "salesOrder", "mainFile": true }, { "id": "5349b4ddd2781d08c09890f5", "type": "supportingDocument", "mainFile": false } ]
Identifier of the preview file for this document, if available.
Example:"5349b4ddd2781d08c09890f6"
Example:
{ "currency": "EUR", "items": [ { … } ], "number": "2018-DE-0011122351", "qty": 2 }
Enum:"done""doneAutomatically""extracted""failed""inCompletion""junk""new""processing""rejected""reviewRequired"
Response
{ "id": "6040dc9680b782b365ea77d5", "completedAt": "1990-12-31T15:59:60-08:00", "completedBy": "string", "createdAt": "1990-12-31T15:59:60-08:00", "createdBy": "string", "fileId": "5349b4ddd2781d08c09890f4", "caseId": "5349b4ddd1111d08c09890f4", "files": [ { … }, { … } ], "previewFileId": "5349b4ddd2781d08c09890f6", "entities": { "currency": "EUR", "items": [ … ], "number": "2018-DE-0011122351", "qty": 2 }, "externalId": "doc-0001", "externalData": { "internalSystemId": "sap-01" }, "projectId": "6040dc9680b782b365ea77d5", "state": "done", "title": "scan-doc-1.jpg", "updatedAt": "1990-12-31T15:59:60-08:00", "updatedBy": "string", "url": "https://example.com/documents/6040dc9680b782b365ea77d5" }