> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corebanq.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Process invoice with OCR

> Extract invoice details from documents using OCR technology



## OpenAPI

````yaml post /v1/invoices/ocr
openapi: 3.0.0
info:
  title: Invoices API
  version: 1.0.0
  description: API documentation for Invoices management package
servers: []
security:
  - bearerAuth: []
paths:
  /v1/invoices/ocr:
    post:
      tags:
        - OCR
      summary: Process invoice with OCR
      description: Extract invoice details from documents using OCR technology
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: 02820f6e-8077-487a-a2e5-df12d0ec3a55
      responses:
        '200':
          description: OCR processing result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OCRResult'
        '400':
          description: Invalid file format
        '413':
          description: File too large
        '422':
          description: Processing failed
components:
  schemas:
    OCRResult:
      type: object
      properties:
        extracted_data:
          type: object
          properties:
            invoice_number:
              type: string
            date:
              type: string
              format: date
            total:
              type: number
            currency:
              type: string
            iban:
              type: string
            recipient:
              type: object
              properties:
                name:
                  type: string
                address:
                  type: string
                zip:
                  type: string
                city:
                  type: string
            items:
              type: array
              items:
                type: object
                properties:
                  description:
                    type: string
                  quantity:
                    type: number
                  price:
                    type: number
        confidence_score:
          type: number
          minimum: 0
          maximum: 1
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````