Solutech Engineering

OCR Integration Process

External OCR service integration and document processing workflow

OCR Integration Process

The OCR integration is the core processing engine of the LPO system, handling document digitization through an external service.

External OCR Service

Service Details

  • Provider: Solutech Labs Internal Service
  • Endpoint: http://reader.data.solutechlabs.com/v1/upload_document/
  • Service Type: External OCR processing service

Request Payload

{
    "sat_reference": "uuid-string",
    "client_code": "CLIENT001",
    "callback_url": "https://app.solutechlabs.com/api/v1/eva/draft/local-purchase-orders/callback",
    "file": "https://cdn.solutechlabs.com/local_purchase_orders/CLIENT001/filename.pdf"
}

Callback Data Structure

The OCR service returns structured data via the callback endpoint with the following format:

{
    "sat_reference": "019965d4-2358-739d-ba13-4b217e1307e6",
    "details": [
        {
            "ship_to_name": "Signature Mall",
            "purchase_order_id": "2021120001110",
            "purchase_order_date": "21-Jul-2025",
            "ship_to_address": "Signature Mall Ltd. Off Mombasa Road, Sabaki, Nairobi, Kenya"
        }
    ],
    "data": [
        {
            "bar_code": "6161101880695",
            "item_code": "1",
            "item_name": "KLEENIT 3S SCUBA SCRUBBER",
            "quantity": 12,
            "price": 1,
            "net_amount": 26250.6
        },
        {
            "bar_code": "6161101880466",
            "item_code": "2",
            "item_name": "KLEENIT 3S SPONGE CLOTH SWIPE REG",
            "quantity": 12,
            "price": 1,
            "net_amount": 26250.6
        },
        {
            "bar_code": "6161101880190",
            "item_code": "3",
            "item_name": "KLEENIT 4S SUPER SCRUBBER",
            "quantity": 18,
            "price": 1,
            "net_amount": 26250.6
        },
        {
            "bar_code": "6161101880183",
            "item_code": "4",
            "item_name": "KLEENIT 5S COMBO SCRUBBER",
            "quantity": 25,
            "price": 1,
            "net_amount": 26250.6
        },
        {
            "bar_code": "6161101881296",
            "item_code": "5",
            "item_name": "KLEENIT COTTON MOP HD WITH METAL HANDLE CMOP28N",
            "quantity": 12,
            "price": 1,
            "net_amount": 26250.6
        },
        {
            "bar_code": "6161101880053",
            "item_code": "6",
            "item_name": "SOKONI 24PC 20G CONVE PACK",
            "quantity": 25,
            "price": 1,
            "net_amount": 26250.6
        },
        {
            "bar_code": "6161101880077",
            "item_code": "7",
            "item_name": "SOKONI STEELWOOL 15PC",
            "quantity": 40,
            "price": 1,
            "net_amount": 26250.6
        },
        {
            "bar_code": "6161101880275",
            "item_code": "8",
            "item_name": "STEELEX 12S BRIGHT SCOURING PAD",
            "quantity": 12,
            "price": 1,
            "net_amount": 26250.6
        }
    ],
    "callback_url": "https://apps.solutechlabs.com/api/v1/eva/draft/local-purchase-orders/callback",
    "page_count": 1,
    "status": "success"
}