Automatic receipt type detection (OCR) in Spain

At Pleo, we use Optical Character Recognition (OCR) to help you manage expenses faster. In Spain, OCR can automatically suggest whether a document is a receipt (simplified invoice / ticket) or an invoice (factura), so you can capture the right information for accounting and VAT reporting.


  • You must have admin access to change the document type and review invoice details (VAT number and invoice number)
  • OCR results are provided as suggestions. If the image is unclear or the document format is unusual, some data may be incorrect and require manual review or correction.

How OCR detects the document type

When you attach a photo or file to an expense, Pleo analyses the document and makes an automatic suggestion:

  • Receipt (ticket / simplified invoice): usually contains fewer required fields
  • Invoice (factura): typically requires additional details for VAT deduction and bookkeeping (e.g. supplier tax ID (NIF/CIF) and an invoice number)


This detection happens automatically as part of the expense workflow after the document is uploaded.

Review or change the document type

  1. Open the relevant expense

  2. Find Document type

  3. Review the OCR suggestion (receipt or invoice)

  4. If needed, change the selection to Receipt or Invoice


If you select Invoice, Pleo shows extra fields for the information you may need for accounting:

  • Supplier tax identification number (NIF/CIF)
  • Invoice number

Accept OCR suggestions for invoice fields

If OCR detects an invoice, it will try to extract key fields automatically.

  1. In the expense, check the suggested values for:

    i. VAT number (NIF/CIF)

    ii. Invoice number

  2. Accept the suggestion if it’s correct

  3. Edit the fields if the suggestion is incomplete or incorrect


Good to know: OCR values are suggestions, not guaranteed matches. If the image is blurry or the invoice layout is unusual, you may need to correct the document type and/or edit the extracted fields

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article