Ways in and out
For ERP partners and developers: orders reach ordris AI by upload, from a mailbox or through the REST API. They leave as JSON, through webhooks and through adapters. This page names formats, calls and authentication so that you can judge the effort of an integration.
Overview
- Ways in: web interface (upload files), mailbox (e-mails with attachments), API (file or JSON)
- Formats: PDF, images, e-mails, text, CSV, XML, JSON
- ordris AI: import, capture, validate, convert, transfer
- Ways out: API (result as JSON), webhooks (on events), adapters (another format)
The diagram shows the three ways in, ordris AI in the middle and the ways out. What happens in the middle is described under How it works.
Ways in
Upload in the web interface
On the page ‘Start new recognition process’ you drop your files. In multi-upload mode every file becomes a process of its own. Files can also be dropped anywhere else in the web interface, for example an e-mail straight from Outlook.
Mailbox
ordris AI polls a mailbox for orders, every minute in the standard set-up. It fetches unread e-mails with an attachment, turns text and attachments into a process and marks the e-mail as read. The mailbox is one at Google Workspace (Gmail); access is granted once by consent in the browser. ordris AI does not pre-sort: every such e-mail is processed.
REST API
Another system submits the order itself, as a file or as JSON with text and attachments. A workflow in your instance can also start processes, triggered by a call from another system. The calls are listed under API.
Formats
| Format | How ordris AI reads it |
|---|---|
| directly, including scans | |
| Images: JPG, PNG, GIF | directly, for example photos |
| TIFF | is combined into one PDF |
| E-mail files: .eml, Outlook .msg | the body becomes accompanying text, the attachments become documents |
| Text, HTML, CSV, XML, JSON | as a file |
| .docx, .odt, .rtf | are converted to PDF if no directly readable attachment is present |
ordris AI identifies the file type by the file name extension. A request may be up to 50 MB in size. If several readable files are attached, ordris AI reads all of them and finds the order among them; it drops small signature images from e-mails.
If the order is only in the text of an e-mail, without an attachment, ordris AI processes it only when the API call allows this with the option extractBodyWithoutAttachments.
Ways out
Result as JSON
You fetch the recognised and reviewed order as JSON through the API. In the web interface the results can be searched and exported as CSV.
Webhooks
ordris AI calls an address when events occur. We store the target URL, the events and the authentication (none, token or basic) in the configuration of your instance. Every delivery attempt is stored with status code, request, response and error; administrators see this in the web interface.
Workflow
In the standard set-up a workflow in your instance receives the webhook for ‘process approved’, fetches the result through the API and calls the adapter or the target system. This is how the hand-over is built for each customer.
Adapters
An adapter receives the order as JSON over HTTP and returns it in the format of the target system. An adapter exists for the XML order format of e.bootis: it produces the XML with order number, date, buyer, delivery party and line items. The adapter converts; it does not transmit.
Webhook events include process_created, process_finished, process_failed, process_approved and process_rejected. Others exist for assessments, results, master data imports, the review list, users and the start of the system.
Which system receives the order, and how, is set up for each customer. We clarify your ERP in the first conversation.
API
ordris AI has a REST API with an OpenAPI description. Every instance has an address of its own:
- Base address:
https://<instance>.ordris.ai/api/external/ - OpenAPI description (Swagger UI):
/api/external/swagger/index.html
Authentication. Systems send an API key in the X-API-Key header. A key has a name and a validity between one day and one year; only a hash of it is stored. Alternatively the API accepts an access token from the login service Auth0 as Authorization: Bearer.
Submitting an order and fetching the result.
POST /processes/file: submit a file (multipart, fieldfile, optionaltext)POST /processes/json: submit text, additional instructions and attachments as Base64POST /processes/file/waitandPOST /processes/json/wait: as above, the response waits for the resultGET /processes/{id}/result: the result as JSON
Without /wait the API answers at once with the ID of the process. You fetch the result later or have a webhook notify you.
Further resources. Status, decision, input and attachments of a process, converted results, versions, abort and restart, master data (articles, customers, mappings, each with CSV import and CSV export), search, events with delivery status, review list, statistics and API keys.
See it with your own orders
Bring a few typical orders, as PDFs or as e-mails. In the demo you see what ordris AI reads from them. After the first conversation you can start with a free demo version.