Check Processing Status and Get Document Information
Once the document is submitted, check its processing status by examining the document information. It is retrieved with a GET
request containing the document URI. When the document is processed, retrieve its extractions and layout.
//document information can be retrieved by sending a GET request to the document URI.
GET /documents/{id}
Request
Headers
Header | Value |
---|---|
|
|
//get document processing status
curl -H 'Authorization: BEARER <token>'
-X GET -H 'Accept: application/vnd.gini.v1+json'
-i https://pay-api.gini.net/documents/c292af40-d06a-11e2-9a2f-000000000000
Response
Headers
Status Code | Description |
---|---|
200 (OK) | Operation is successful. |
Header | Value |
---|---|
|
|
Body (application/vnd.gini.v1+json)
Key | Child Key | Type | Description |
---|---|---|---|
| Â |
| Document unique identifier (such as UUID Version 1). |
| Â |
| Document name (as stated in upload). |
| Â |
| Number of pages. |
| Â |
| Document creation unix timestamp (in milliseconds). |
| Â |
| Document source channel: |
| Â |
| Document processing status: |
| Â |
| Classification of the source file: |
 |
|
| Document page number. |
 |
|
| Pre-rendered page image URIs. |
| Â |
| List of related resources, for example, found extractions or document layout. |
 |
|
| Document extractions URI. |
 |
|
| Document layout URI. |
 |
|
| Processed document URI. |
 |
|
| Document URI. |
Errors
Status Code | Description |
---|---|
404 (Not Found) | Returned when no document can be found under specific URI. |
//request response
{
"id": "626626a0-749f-11e2-bfd6-000000000000",
"creationDate": 1360623867402,
"name": "scanned.jpg",
"progress": "COMPLETED",
"origin": "UPLOAD",
"sourceClassification": "SCANNED",
"pageCount": 1,
"_links": {
"extractions": "https://pay-api.gini.net/documents/626626a0-749f-11e2-bfd6-000000000000/extractions",
"layout": "https://pay-api.gini.net/documents/626626a0-749f-11e2-bfd6-000000000000/layout",
"document": "https://pay-api.gini.net/documents/626626a0-749f-11e2-bfd6-000000000000",
"processed": "https://pay-api.gini.net/documents/626626a0-749f-11e2-bfd6-000000000000/processed"
}
}
Â