Invoice Splitter

What is Invoice Splitter

Users may have to manage in production, multi invoices documents without knowing boundaries of each single invoices. The Invoice Splitter API allows users to get these boundaries, enabling then an Invoices API call on each single invoices.

How it Works

You need first to subscribe to the API, by going on the platform : https://platform.mindee.com/ and under Utilities clicking on the product card.

Invoice Splitter is asynchronous, it requires:

  • Replace my-api-key-here with your new API key, or use the select an API key feature and it will be filled automatically.

  • Copy and paste the sample code of your desired choice in your application, code environment, terminal etc.

  • Replace /path/to/the/file.ext with the path to your input document.

API Response

Below is the full sample JSON response you get when you call the API. Since the response is quite verbose, we will walk through the fields section by section.

You can find the prediction within the prediction key found in two locations:

  • In document > inference > prediction for document-level predictions: it contains the invoice page groups: the list of page indexes and its confidence score.

  • In document > inference > pages[ ] > prediction for page-level predictions: it is always empty, as the split i done at document level and not page level.

Each predicted invoice_page_groups contains:

  • a page_indexesdefining the pages belonging to a single invoice

  • a confidence representing a binary score

    • 0: in case the model is not confident in the split.

    • 1: in case the model is confident in the split

Last updated

Was this helpful?