Save recognized document
Headers
-
TARGET-ORGANIZATION-ID integer(int32)
ID of organization, for which the operation must be performed
-
API token (can be retrieved from account settings)
Body Required
body
-
documentFileId string
-
documentWidth integer(int32)
-
isNotPurchaseInvoice boolean
-
result object
Additional properties are allowed.
-
status string
Values are
PENDING
,IN_PROGRESS
,FAIL
, orSUCCESS
.
PUT /api-v1/invoice-scan-recognizer/batch
curl \
-X PUT http://10.10.10.132/api-v1/invoice-scan-recognizer/batch \
-H "TARGET-ORGANIZATION-ID: 42" \
-H "WEAL-TOKEN: string" \
-d '{"documentFileId":"string","documentWidth":42,"isNotPurchaseInvoice":true,"result":{"message":"string","taskType":"RECOGNIZE"},"status":"PENDING"}'
Request examples
# Headers
TARGET-ORGANIZATION-ID: 42
WEAL-TOKEN: string
# Payload
{
"documentFileId": "string",
"documentWidth": 42,
"isNotPurchaseInvoice": true,
"result": {
"message": "string",
"taskType": "RECOGNIZE"
},
"status": "PENDING"
}
Response examples (200)
{
"documentFileId": 42,
"documentWidth": 42,
"fields": [
{
"anchor": true,
"fieldId": "string",
"id": 42,
"recognizedDocumentId": 42,
"value": "string"
}
],
"id": 42,
"notPurchaseInvoice": true,
"status": "PENDING",
"templateId": 42
}