Difference between revisions of "OCR service"

From 1Archive help
Jump to: navigation, search
(Available fields)
(Supplier validation)
Line 79: Line 79:
 
<br/>[[image:cancel_document.png|link=]]<br/>
 
<br/>[[image:cancel_document.png|link=]]<br/>
  
=====Supplier validation=====
+
=====Supplier/customer validation=====
 +
When no existing supplier/customer could be found with the data found on the invoice, the system gives you the possibility to add a new one.
 +
 
 +
<br/>{{info|The supplier/customer field can be shown in orange, this means that there is already a proposal for creating the supplier/customer.}}<br/>
 +
 
 +
When a supplier is already selected (either by the recognition server, or by manually selecting one), you still can edit its data.<br/>
 +
Use the [[image:add.png|link=]] "Add" or the [[image:edit.png|link=]] "Edit" button to add or edit the supplier/customer.
 +
 
 +
======Available fields======
 +
* '''Active''': should the supplier/customer be active or not?
 +
* '''Code''': the code for the supplier/customer. '''This field cannot be changed!'''
 +
* '''Name''': the name for the supplier/customer.
 +
* '''External ID''': the ID for the supplier/customer in an external package. '''This field should not be used!'''
 +
* '''Aliases''': the aliases for the supplier/customer.
 +
* '''VAT ID''': the VAT ID for the supplier/customer.
 +
* '''Bank account 1''': the bank account (IBAN) for the supplier/customer.
 +
* '''E-mail''': the e-mail address for the supplier/customer.
 +
* '''Website''': the website for the supplier/customer
 +
 
 +
<br/>[[image:ocr_partner_edit.png|link=|400px]]<br/>

Revision as of 16:58, 6 June 2018

1 General

The OCR service is used for recognizing and validating documents coming from an external source. Your app can make use of it by sending PDF documents to Onea Transfer (documentation can be found here).
Those documents will automatically be sent through our recognition server, where they will await validation by a manual validator.


Info.png The advantage of using a manual validator is we can increase the recognition percentage to a maximum.

Schematic overview of the flow:
App ocr integration.png

  1. Your app is sending a PDF document to the OCR service
  2. The OCR service sets the status to PENDING and sends a uuid back
  3. The OCR service sets the status to PROCESSING when the document is successfully received and ready to process
    The OCR service also pokes the given callback URL saying there was a statusupdate
  4. Your app gets the PROCESSING status from the OCR service
  5. The OCR service sets the status to VALIDATION when the document is successfully processed and ready for manual validation
    The OCR service also pokes the given callback URL saying there was a statusupdate
  6. Your app gets the VALIDATION status from the OCR service
  7. Now there are two possible events:
    1. The OCR service sets the status to CANCELLED when the document has been cancelled by the manual validator
    2. The OCR service sets the status to DONE when the document was successfully validated by the manual validator
    The OCR service also pokes the given callback URL saying there was a statusupdate
  8. Your app gets the CANCELLED or DONE status from the OCR service
  9. Your app gets the UBL data of the document from the OCR service

2 BilltoBox usecase


Note.png This is only applicable for companies for which the Value Added Service OCR & Scanning is set to Onea in BilltoBox.

2.1 Manual validation


Warning.png This chapter is only applicable for manual validators.

2.1.1 Login

The OCR service validation is located at https://ocr.onea.be. Login with your provided credentials. Once logged in, you will be redirected to the archive screen where you are able to see a list of all documents that still need to be validated.


Ocr archive.png

2.1.2 Validation

Click the View ok.png View notok.png "View the document" button to open a document.


Ocr document view.png

2.1.2.1 Available fields


Available header fields:

  • Company VAT: the VAT number for the own company. This should always be prefilled by BilltoBox!
  • Invoice type: the type of the invoice. Possible values are:
    • F: invoice
    • C: credit note
  • Supplier/customer: the supplier from who the invoice came / the customer for which the invoice is intended.
  • Supplier/customer VAT: the VAT ID of the supplier/customer. This field is read-only and cannot be edited.
  • Invoice number: the number of the invoice.
  • Invoice date: the date of the invoice.
  • Due date: the date before which you have to pay the invoice.
  • OGM: the structured bank transfer code.
  • Currency: the currency used for the invoice.
  • Net amount: the net amount of the invoice.
  • Local net amount: when choosing a value other than EUR for currency, this field shows the net amount in EUR. This field is read-only and cannot be edited.
  • VAT amount: the VAT amount.
  • Total amount: the total amount of the invoice.
  • Discount %: the percentage of the discount received when the document is paid within a certain period. This field is only available for incoming invoices.


Available posting line fields:

  • Net amount: the amount of the booking line. The default value is the net amount entered on the header.
  • VAT %: the percentage of VAT

Info.png Fields shown in red are mandatory and need to be filled in to be able to validate a document. A field is shown in yellow when the recognition server is not sure of the value it found. These fields always need to be validated.

2.1.2.2 Available buttons


  • Back.png "Close": close the current opened document.

Warning.png If there are unsaved changes, these will be lost!

  • Save.png "Save": save the changes you made in the document.
  • Remove.png "Cancel document": cancel the current document.
  • Yes.png "Validate": validate the current document.


When cancelling a document, you need to provide a reason why you think this document should be cancelled. There are multiple possibilities to choose from:

  • No invoice found: select this one if the document isn't an invoice.
  • Other: select this one if you think for some reason the document should be cancelled. Please provide a comment explaining why you think the document should be cancelled.


Cancel document.png

2.1.2.3 Supplier/customer validation

When no existing supplier/customer could be found with the data found on the invoice, the system gives you the possibility to add a new one.


Info.png The supplier/customer field can be shown in orange, this means that there is already a proposal for creating the supplier/customer.

When a supplier is already selected (either by the recognition server, or by manually selecting one), you still can edit its data.
Use the Add.png "Add" or the Edit.png "Edit" button to add or edit the supplier/customer.

2.1.2.3.1 Available fields
  • Active: should the supplier/customer be active or not?
  • Code: the code for the supplier/customer. This field cannot be changed!
  • Name: the name for the supplier/customer.
  • External ID: the ID for the supplier/customer in an external package. This field should not be used!
  • Aliases: the aliases for the supplier/customer.
  • VAT ID: the VAT ID for the supplier/customer.
  • Bank account 1: the bank account (IBAN) for the supplier/customer.
  • E-mail: the e-mail address for the supplier/customer.
  • Website: the website for the supplier/customer


Ocr partner edit.png