Extracting invoices with Rossum Elis Extraction API - client examples
These are examples on how to use the Elis Extraction API to automatically process your invoices with AI.
Get API key
Sign up for free (via your Google or GitHub account):
- "Signup successful! Thank you for signing up. You will receive an email with API access details in no later than a few hours."
You can check this information and your API usage in the dashboard: https://api.rossum.ai/
Python API client & CLI
The easiest way to try out the Elis Extraction API
Python package that provides a CLI and Python API.
pip install rossum export ROSSUM_API_KEY="xxxxxxxxxxxxxxxxxxxxxx_YOUR_ELIS_API_KEY_xxxxxxxxxxxxxxxxxxxxxxx" rossum extract invoice.pdf -o invoice.json
import rossum extracted_json = rossum.extract('invoice.pdf')
Examples in various languages
In general we send a document file (with security key) to the Elis API, obtain a document id, wait for it being completed (via polling) and get the extracted data in JSON format.
- Bash (curl)
- Python (requests, polling)
- Java (unirest, gradle)
- Scala (sttp, json4s, sbt)
- PHP (curl)
- Ruby (restclient)