Decide how much delay you can accept
In this example, a shop employee exports orders each morning and re-enters them in the ERP. A batch contains a few dozen orders. Can the warehouse work from one daily batch, or does it need new orders, address changes and cancellations between shipments?
If a connector already supports your store and ERP, run your real scenarios through it before commissioning custom code. Check product mapping, changes after import and whether staff can see records the ERP rejected.
| Approach | When it fits | What to check |
|---|---|---|
| CSV import | The warehouse works in batches and the ERP accepts files. | Can it detect a repeated file and flag rows that need fixing? |
| Scheduled API sync | Orders should reach the ERP regularly, for example every 15 minutes. | Can the sync catch up after an outage and fetch changes to existing orders? |
| Webhook and queue | New orders need to trigger work promptly. | Can the receiver detect duplicate events and recover events missed during an outage? |
See what the import report records
The rows below use fictional data. The ERP identifies orders by the store ID and order ID together. Order 1042 can therefore exist in two different stores. The report records the outcome for each row so staff can see what happened.
| Order | What the store sent | ERP result |
|---|---|---|
| 1041 | New order with a recognised SKU | Created the order |
| 1042 | Repeat of an order already saved | Skipped the duplicate and kept the existing record |
| 1043 | SKU missing from the ERP catalogue | Held the order and flagged the missing product mapping |
| 1044 | Address changed before picking | Updated the address under the rule for this order status |
Test retries before turning the import on
Run the same batch twice. The order count in the ERP should stay the same. Then interrupt a test import just after a record is written and run it again. If the ERP saved the order but the response never arrived, the importer needs to check the result before trying to create it again.
Decide which changes can be applied automatically. An address may be safe to update before picking. A change after dispatch may need a staff decision. Each rejected record should have a clear reason and a way to retry it after a correction.
Put it into practice
- 01Write down how long an order can wait before it appears in the ERP.
- 02Prepare a sample with a new order, a duplicate, a missing SKU and an address change.
- 03Run it through an existing connector or a trial import and check the outcome of each row.