ERP Integration Guide
This guide covers best practices for integrating ZenFlow with your Enterprise Resource Planning (ERP) system for seamless order fulfillment and inventory synchronization.Integration Architecture
Key Integration Points
Orders
Push orders from ERP to ZenFlow for fulfillment
Products
Sync product catalog between systems
Stock
Bidirectional inventory synchronization
Events
Receive fulfillment status updates
Order Sync
Pushing Orders to ZenFlow
When a new order is created in your ERP, push it to ZenFlow:Handling Order Status Updates
Set up a webhook to receive status updates:Order State Mapping
Map ZenFlow states to your ERP states:| ZenFlow State | Typical ERP State |
|---|---|
| Pending | Awaiting Fulfillment |
| In Progress | Picking |
| Packed | Ready to Ship |
| Completed | Shipped |
| Cancelled | Cancelled |
Product Sync
Initial Catalog Import
Sync your product catalog to ZenFlow:Incremental Updates
For product changes, sync incrementally:Stock Sync
Bidirectional Sync Strategy
Pushing Stock to ZenFlow
When stock changes in your ERP:Receiving Stock Updates
Handle stock webhooks from ZenFlow:Bulk Stock Sync
For periodic full sync:Best Practices
1. Use Idempotency Keys
Always use your ERP’s order ID asorder_tenant_id:
2. Handle Network Failures
Implement retry logic with queuing:3. Maintain ID Mappings
Keep a mapping table between ERP and ZenFlow IDs:4. Implement Webhooks
Don’t poll - use webhooks for real-time updates:5. Monitor Integration Health
Track sync metrics:Common Patterns
Scheduled Sync
For non-critical data, use scheduled syncs:Event-Driven Sync
For critical data, use events:Need Help?
- Review API Reference for endpoint details
- Check Webhooks Guide for event setup
- Contact [email protected] for integration assistance



