ERP Integration: Container OCR API
Feed validated container data directly into your enterprise workflows. Upload your logistics and gate captures to test our extraction accuracy for free, eliminating manual data entry across your supply chain.

The Disconnect in Enterprise Logistics Data
Enterprise Resource Planning (ERP) systems govern modern supply chains, but they suffer from a massive disconnect when it comes to physical freight. When container IDs are manually entered into an ERP by dispatchers or yard clerks, human error inevitably corrupts the database. These typos lead to billing disputes, lost tracking milestones, and severe compliance issues with customs authorities. To see how our engine acts as a flawless automated bridge between the physical yard and your database, you can upload a test image to explore our core Container OCR capabilities completely free.
A REST API Built for Enterprise Ecosystems
Delivered strictly as a high-performance REST API to ensure seamless integration into any commercial ERP (such as SAP, Oracle, or Microsoft Dynamics) without heavy SDK dependencies, this endpoint is powered by our Logistics Container OCR engine. It acts as a universal middleware for your supply chain data. The engine applies strict ISO 6346 validation on the fly, instantly calculating check digits to guarantee that only perfectly accurate Container Codes trigger your enterprise financial and operational workflows.
Live Demo: Container OCR
No registration required. Upload a file to test the extraction.
Drop files here or click to browse
JPG · PNG · WebP · up to 500 files · max 4.5 MB each
Ready to use this in production? Get 20 free API calls — no credit card needed.
Get 20 Free API Calls →ERP Automation Workflows
Freight Forwarding & Dispatch
Instantly link container IDs to specific booking references in the ERP as freight enters the depot. Ready to scale your enterprise operations globally? View flexible pricing to secure maximum API processing limits with cryptocurrency and fiat support.
Automated Billing & Invoicing
Trigger financial workflows accurately. By verifying the exact container number handled, your ERP can automatically generate and issue invoices with zero manual oversight.
Supply Chain Visibility (Control Tower)
Update your logistics control tower in real-time. Feed timestamped container location data directly into your ERP to provide clients with accurate, live tracking portals.
Customs & Compliance Reporting
Ensure your electronic customs declarations match the physical cargo perfectly. Validated OCR data in your ERP prevents fines and cross-border delays caused by typographical errors.
Technical Specs
- Enterprise Scalability: Deployed on Cloudflare's global edge network, ensuring ultra-low latency to handle high-volume batch processing for enterprise logistics.
- Input Versatility: Fully supports raw Base64 strings, direct multipart file uploads, and public image URLs—ideal for integrating with highly secure enterprise intranets.
- Validation: Built-in ISO 6346 checksum verification mathematically guarantees that invalid container codes never corrupt your master ERP database.
- API-First Architecture: Eliminates the maintenance overhead of SDKs, communicating purely over standard HTTP protocols supported by all modern ERP integration buses.
Key Features
- Free Image Testing: Instantly upload logistics images directly from your operations to test extraction accuracy before assigning developer resources to the integration.
- Standardized Output: Returns a unified `container_number` string ready for instant database insertion, while isolating the Owner Code, Category, Serial, and Check Digit in a parsed object.
- Universal Compatibility: Works seamlessly alongside any enterprise software stack, from SAP and Oracle to custom-built logistics backends.
Integration & AI Prompts
Call the endpoint directly via HTTP from your ERP middleware or integration platform (like MuleSoft or SAP PI). To maintain maximum enterprise security, the API flexibly accepts direct multipart file uploads or Base64-encoded strings, avoiding the need to expose images on public URLs.
import requests
import base64
# Prepare Base64 Image from logistics edge device to push to ERP
with open("freight_yard_capture.jpg", "rb") as image_file:
base64_image = base64.b64encode(image_file.read()).decode('utf-8')
url = "https://api.structocr.com/v1/container"
headers = {
"x-api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
}
payload = {
"img": base64_image
}
try:
print("Scanning Container for ERP Sync...")
response = requests.post(url, headers=headers, json=payload)
result = response.json()
if result.get('success'):
data = result['data']
print("✅ Container Code Extracted!")
print(f"Full Number: {data.get('container_number')}")
print(f"Valid ISO: {data.get('is_valid')}")
print(f"Confidence: {data.get('confidence')}")
# Code to trigger ERP webhook goes here
else:
print(f"❌ Extraction Failed: {result.get('error')} - {result.get('message')}")
except Exception as e:
print(f"An error occurred: {e}")Standardized JSON Output
The API returns a cleanly parsed payload providing the full consolidated container number, validating the check digit, and breaking down the ISO 6346 components for your ERP.
{
"success": true,
"data": {
"container_number": "ZCSU8921655",
"is_valid": true,
"confidence": "High",
"parsed": {
"owner_code": "ZCS",
"category": "U",
"serial_number": "892165",
"check_digit": "5"
}
}
}Frequently Asked Questions
Can we test the API with images from our operations before integrating it into our ERP?
Absolutely. You can upload operational images directly on our platform to test how the OCR engine handles your specific real-world conditions completely free of charge.
Will this integrate with SAP, Oracle, or Microsoft Dynamics?
Yes. Because we provide a standard HTTP REST API that returns structured JSON, it acts as a universal data source that can be easily mapped and consumed by any enterprise ERP or integration middleware.
Do we need to expose sensitive logistics images to public URLs?
No. The API natively accepts direct file uploads and Base64-encoded strings, ensuring that your operational images remain securely within your enterprise firewall.
Explore More Container Solutions
BIC Code Extraction: Container OCR API
Extract BIC Owner Codes from shipping containers instantly. Upload your images to test our high-accuracy BIC Code OCR API for free and automate equipment tracking.
How to Build a Container Recognition Scanner App
Step-by-step developer guide on how to build a custom container recognition scanner using a lightweight API. Test your image payloads for free today.
Check Digit Calculator: Container OCR API
Automate container check digit calculation with our high-accuracy OCR API. Upload images to test ISO 6346 validation for free and prevent manual data entry errors.
Precise Data Extraction and Seamless
Integration with AI-powered OCR API.
Empower your solutions with automated data extraction by
integrating best-in class StructOCR via API seamlessly.
No credit card required • Full API access included