VVorgan
All insights

Importing store orders into your ERP. CSV or API?

If the warehouse picks orders once a day, a reliable file import may be enough. If orders ship throughout the day, the morning file misses any order placed a minute after export. Start by deciding when orders need to reach your ERP and what should happen when the transfer fails.

01

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.

Three ways to transfer orders
ApproachWhen it fitsWhat to check
CSV importThe warehouse works in batches and the ERP accepts files.Can it detect a repeated file and flag rows that need fixing?
Scheduled API syncOrders 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 queueNew orders need to trigger work promptly.Can the receiver detect duplicate events and recover events missed during an outage?
02

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.

Example report from one batch
OrderWhat the store sentERP result
1041New order with a recognised SKUCreated the order
1042Repeat of an order already savedSkipped the duplicate and kept the existing record
1043SKU missing from the ERP catalogueHeld the order and flagged the missing product mapping
1044Address changed before pickingUpdated the address under the rule for this order status
03

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

  1. 01Write down how long an order can wait before it appears in the ERP.
  2. 02Prepare a sample with a new order, a duplicate, a missing SKU and an address change.
  3. 03Run it through an existing connector or a trial import and check the outcome of each row.

Sources