Skip to Content
0
Nov 25, 2021 at 08:47 AM

Document Information Extraction with Custom Documents

115 Views

Tutorials: https://developers.sap.com/tutorials/cp-aibus-dox-ui-template-custom.html
--------------------------

Hi,

we have created a Custom template for Document Information Extraction . Now we want to call the service API for this Custom Document. We do not see however, how that would work in the POST/Document service.

When using

{
  "extraction": {
    "headerFields": [
      "Description",
      "Capacity"
    ],
    "lineItemFields": [         
    ]
  },
  "clientId": "c_00",
  "documentType": "Custom",
  "receivedDate": "2020-02-17",
  "enrichment": {
    "sender": {
      "top": 5,
      "type": "businessEntity",
      "subtype": "supplier"
    },
    "employee": {
      "type": "employee"
    }
  }
}

We get this error "message": "Not supported document type: Custom".

What are we doing wrong ? There seems also no option to include the template type in the request.

Any help appreciated.

Regards

Marcus