Skip to main content

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:

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 as order_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?