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:
a
POSTto retrieve a job_id: POST https://api.mindee.net/v1/products/mindee/invoice_splitter/v1/predict_asynca
GETusing the job_id to retrieve the predictions: GET https://api.mindee.net/v1/products/mindee/invoice_splitter/v1/documents/queue/{job_id}
Always use the appropriate SDK whenever possible. Manual integrations take longer and are more error-prone.
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.extwith the path to your input document.
Remember to replace with your V1 API key.
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 > predictionfor document-level predictions: it contains the invoice page groups: the list of page indexes and its confidence score.In
document > inference > pages[ ] > predictionfor 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 invoicea
confidencerepresenting a binary score0: 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?

