Use the OCR engine
Use Payabli’s OCR (Optical Character Recognition) engine to recognize and scrape text from bills and invoices directly from your PDF or image files, simplifying your data management. You can then use the OCR engine’s output to add new invoices and bills in Payabli via the API.
If you need help understanding the difference between invoices and bills, see this resource.
Process the document
Before you begin, note that the bill and invoice typeResult values return the information needed to create the specified kind of record in Payabli, so make sure you choose the right one. You can’t use a bill typeResult OCR output to import an invoice, and vice versa.
The first step is to choose whether you need to process an image file or a base64-encoded string version of your bill or invoice.
Upload a file
Upload a base64-encoded string
See the API reference for complete details about this endpoint.
Build the request
Make a POST request to /Import/ocrDocumentForm/{typeResult}, uploading the file. The OCR engine supports pdf, jpg, jpeg, png, and gif files.
This example is for a bill, notice that the typeResult path parameter is bill. If you want to OCR an invoice for a customer, this value should be invoice.
Create the bill or invoice
After you get the OCR results, you can use the API to create a bill or invoice in Payabli. You’ll need the contents of the resultData object returned in with the OCR response.
Create an invoice
Create a bill
Follow these steps to create an invoice (money in).
See the API reference for complete details about this endpoint.
Related resources
See these related resources to help you get the most out of Payabli.