ERPNext Integration

REST API-Based Integration for Open-Source ERP

Manufacturing • Inventory • Quality • Attendance

Modern REST API Integration for ERPNext

ERPNext is a popular open-source ERP system for fast-growing SMEs and manufacturers. IoTReady integrates seamlessly with ERPNext using its modern REST APIs, enabling automated data flow from shop floor operations to ERP records.

REST APIs

Modern RESTful integration-fast, reliable, well-documented

Complete Flows

Stock Entry, Quality Inspection, Attendance, Batch Tracking

Real-Time Sync

Instant updates from operations to ERPNext records

API Documentation: IoTReady uses the official Frappe REST API framework. View Frappe REST API docs →

What We Integrate

Common ERPNext workflows automated through IoTReady

Stock Entry

DocType: Stock Entry

Automated posting of all inventory movements:

  • Material Receipt: Incoming materials from suppliers
  • Material Issue: Raw material consumption for production
  • Material Transfer: Movement between warehouses
  • Manufacture: Production completion with RM consumption and FG creation
  • Repack: Material transformation or repacking

API Endpoint: POST /api/resource/Stock Entry

Purchase Receipt

DocType: Purchase Receipt

Automated GRN from receiving operations:

  • Barcode/RFID scan at receiving
  • Weight scales for quantity verification
  • Automatic batch number assignment
  • Supplier details and purchase order linking
  • Quality inspection triggering if required

API Endpoint: POST /api/resource/Purchase Receipt

Quality Inspection

DocType: Quality Inspection

Automated QC inspection records:

  • Mobile app-based inspection checklists
  • Sample measurements and test results
  • Pass/Fail status with reasons
  • Inspector details and timestamps
  • Link to Purchase Receipt or Stock Entry
  • Photo attachments for non-conformances

API Endpoint: POST /api/resource/Quality Inspection

Attendance

DocType: Attendance

Automated attendance tracking:

  • RFID badges: Tap at entry/exit gates
  • Face biometric: Facial recognition for attendance
  • Mobile check-in: GPS-based attendance for field workers
  • Automatic Present/Absent/Half Day status
  • Working hours calculation
  • Integration with ERPNext payroll

API Endpoint: POST /api/resource/Attendance

Batch Traceability

DocType: Batch

Complete batch-level tracking:

  • Automatic batch creation with unique IDs
  • Manufacturing date, expiry date tracking
  • Batch attributes (supplier batch, quality grade, etc.)
  • Link raw material batches to finished goods batches
  • Batch-wise stock balance and movement history

API Endpoint: GET/POST /api/resource/Batch

Work Order Integration

DocType: Work Order

Production workflow integration:

  • Fetch active work orders from ERPNext
  • Track production progress in real-time
  • Record material consumption against work order
  • Update work order status (In Progress, Completed)
  • Post finished goods production

API Endpoint: GET/PUT /api/resource/Work Order

How ERPNext Integration Works

1. Capture Shop Floor Data

Operations data captured via barcode scanners, RFID readers, weight scales, and mobile apps:

  • Raw material receipt with weighment and batch numbers
  • Production workstation check-in/check-out
  • Quality inspection checklists and measurements
  • Finished goods packaging and labeling
  • RFID badge or biometric attendance

2. Business Rules & Workflow

OTP business rules engine processes and validates data:

  • Validate item codes against ERPNext master data
  • Apply workflow logic (e.g., QC required before stock entry)
  • Calculate quantities, costs, and batch assignments
  • Enrich data with context (operator, timestamp, location)

3. Post to ERPNext via REST API

Automatic transaction posting using Frappe REST APIs:

  • Authenticate using API key/secret
  • POST Stock Entry, Purchase Receipt, Quality Inspection, etc.
  • Receive ERPNext document name back to OTP
  • Handle API errors with retry logic
POST https://your-erpnext.com/api/resource/Stock Entry
Authorization: token {api_key}:{api_secret}
Content-Type: application/json

{
  "stock_entry_type": "Material Receipt",
  "company": "Your Company",
  "items": [
    {
      "item_code": "RAW-001",
      "qty": 100,
      "batch_no": "BATCH-2025-001",
      "t_warehouse": "Stores - YC"
    }
  ]
}

4. Maintain Complete Audit Trail

OTP maintains unit-level traceability beyond ERPNext's aggregated records:

  • Link ERPNext document to source RFID/barcode scans
  • Track operator, timestamp, weight scale readings
  • Trace finished goods batch to specific raw material batches
  • Complete audit trail for FSSAI, ISO, and quality compliance

Real-World ERPNext Integration: Go Desi

Food Manufacturing Batch Traceability & QC Integration

Go Desi manufactures packaged food products (snacks, ready-to-eat meals) and requires complete batch traceability for FSSAI compliance. IoTReady's ERPNext integration automates:

Raw Material Receipt with QC

Incoming ingredients (flour, spices, packaging) scanned at receiving → weight captured → Quality Inspection created in ERPNext → QC checklist completed on mobile app → Pass/Fail status updated → Purchase Receipt posted to ERPNext with batch number and QC reference.

Production Workstation Tracking

Operators scan badge at workstation entry/exit → Work Order fetched from ERPNext → Raw material batches scanned for consumption → Production quantities recorded → Stock Entry (Manufacture) posted to ERPNext linking RM batches to FG batch.

Finished Goods Batch Assignment

Finished product packaging → automatic batch number generation → batch attributes (mfg date, expiry, lot number) → Stock Entry posted to ERPNext with complete RM to FG traceability.

Attendance via RFID

Operators tap RFID badge at factory entry → Attendance record created in ERPNext → Present status → Working hours tracked for payroll integration.

Results

  • Best-in-class efficiencies and quality control
  • Complete RM to FG traceability for every batch
  • FSSAI compliance with auditable records
  • Zero manual ERPNext entry - all automated from shop floor

Read full Go Desi case study →

Technical Capabilities

Frappe REST API

Standard REST API integration using Frappe framework. API key/secret authentication. JSON request/response format.

All ERPNext Modules

Stock, Manufacturing, Quality, HR (Attendance), Projects. Support for standard and custom DocTypes.

Real-Time & Batch

Configurable real-time posting or batched transactions based on network and performance requirements.

Master Data Sync

Automatic sync of Items, Warehouses, Employees, Batches from ERPNext to OTP for validation and lookups.

Error Handling

Retry logic for network failures, alert notifications for API errors, detailed logs for troubleshooting.

Cloud & On-Premise

Works with both ERPNext Cloud (Frappe Cloud) and self-hosted on-premise installations.

API Reference

IoTReady uses the official Frappe REST API. Key endpoints:

  • GET /api/resource/{DocType} - List records
  • GET /api/resource/{DocType}/{name} - Get single record
  • POST /api/resource/{DocType} - Create new record
  • PUT /api/resource/{DocType}/{name} - Update record
  • DELETE /api/resource/{DocType}/{name} - Delete record

View complete Frappe REST API documentation →

Why Integrate IoTReady with ERPNext?

Complete Automation

Zero manual ERPNext data entry. All stock movements, QC results, and attendance flow automatically from operations.

Unit-Level Traceability

While ERPNext tracks aggregated stock, OTP maintains complete item/batch-level audit trail for compliance.

QC Integration

Automated quality inspection records with mobile checklists, photo attachments, and pass/fail workflows.

Attendance Tracking

RFID or biometric attendance automatically synced to ERPNext HR module for payroll integration.

FSSAI Compliance

Complete batch traceability from raw materials to finished goods for food safety regulations.

Modern APIs

Clean REST API integration - no custom connectors or middleware required. Fast and reliable.

Related Solutions

RM-FG Traceability

Complete raw material to finished goods batch traceability for food and pharma manufacturing.

Inventory Management

Barcode and RFID-based inventory tracking with automatic ERPNext stock entry posting.

All Integrations

Explore integrations with SAP, Zoho, Tally, and custom ERP systems.

Ready to Automate Your ERPNext Integration?

See how IoTReady connects your shop floor to ERPNext via REST APIs