WMS ERP integration is the automatic flow of documents and stock movements between the ERP that keeps accounting, purchasing and sales records and the warehouse management system (WMS) that runs shelves, picking and shipping. The short answer: the ERP owns orders and the financial value of stock, the WMS owns physical location and movement. The ERP sends purchase and sales orders to the warehouse, the WMS receives, picks and ships, and posts every movement back to the ERP with a single unique id.
Why integrate the ERP and the WMS?
Without integration the warehouse team writes receipts on paper and keys them into the ERP later. Meanwhile the two systems disagree: goods already on the shelf in the WMS do not exist in the ERP, sales cannot sell them and accounting cannot match the supplier invoice. Shipping is the mirror image, goods that left are still in stock in the ERP. The strength of an ERP is one record for the whole company; if warehouse movements arrive late or incomplete, cost, margin and stock reports are wrong. A warehouse management system (WMS) holds the detail the ERP does not: which bin, which lot, which picker.
Which system owns what?
- ERP: item master (code, unit, unit conversions), customer and supplier accounts, purchase and sales orders, prices, cost and journal entries.
- WMS: bin locations, lot and serial numbers, pick lists, packing, count sessions and internal transfers.
- Shared but one way: total quantity on hand. The physical number comes from the WMS; the ERP never edits it, it only derives it from movements.
- Items are created in the ERP and flow down to the WMS; nobody opens a new item code in the warehouse.
Golden rule: every field has exactly one owner. An integration where both systems can correct the same stock quantity produces two different stock reports by the end of the first month.
What data flows between ERP and WMS?
- Items and units: from ERP to WMS, including case and pallet multipliers.
- Purchase orders: from ERP to WMS as expected receipts; the WMS returns the quantity actually counted and the lot.
- Sales orders: from ERP to WMS as pick orders; the WMS returns shipped quantity, short picks and carton data.
- Warehouse transfers: issue and receipt are two separate movements, and goods between them show as stock in transit.
- Count differences: an approved variance in the WMS goes to the ERP as an adjustment movement that accounting sees on its own account.
How to post movements to the ERP safely
The most common failure is a network drop that posts the same movement twice or not at all. The fix is to write every movement to an outbox with a unique id created once in the WMS, and to check that id on the ERP side. The warehouse keeps working while the ERP is down, pending movements are sent in order when the connection returns, and the same movement never reduces stock twice.
type StockMovement = {
movementId: string; // created once in the WMS, never reused
kind: 'receipt' | 'shipment' | 'transfer' | 'adjustment';
sku: string;
warehouseId: string;
quantity: number; // positive in, negative out
documentNo: string; // purchase order, sales order or count session
};
type OutboxRow = StockMovement & { sentAt: string | null; attempts: number };
// The ERP keeps a list of movement ids it has already posted.
async function postToErp(
row: OutboxRow,
postedIds: Set<string>,
post: (m: StockMovement) => Promise<void>,
): Promise<OutboxRow> {
if (postedIds.has(row.movementId)) {
return { ...row, sentAt: row.sentAt ?? new Date().toISOString() };
}
try {
await post(row);
postedIds.add(row.movementId);
return { ...row, sentAt: new Date().toISOString() };
} catch {
// Stays in the outbox and is retried later; the warehouse keeps working.
return { ...row, attempts: row.attempts + 1 };
}
}Common mistakes
- Sending balances instead of movements: a "120 units now" message overwrites whatever happened in between and the cause of a difference is lost.
- Defining unit conversions in two places: if the ERP counts cases and the WMS counts pieces, the drift grows silently.
- One nightly batch: during the day sales see yesterday's stock.
- Not monitoring the error queue: a failed movement waits for weeks and surfaces at month end close.
- Fixing count differences by hand in the ERP: the link between WMS and ERP breaks.
How to plan the integration project
Start with a field ownership table, then map each document type (purchase, sale, transfer, count) one by one. If the ERP has an API, connect directly; if not, use a staging table or file exchange, and we compare the options in our API integration article. If shipping requires an e-waybill, decide up front whether the ERP or the WMS issues it. If sales need to see stock, a CRM and warehouse integration can reuse the same movement stream. Before go live, run an opening count so both systems start from the same number.
Conclusion
WMS ERP integration is not a data transfer, it is an ownership agreement: the ERP manages money and documents, the WMS manages physical movement, and identified movements flow between them. Follow that rule and stock, cost and accounting show the same number. If you want to connect your existing ERP to a warehouse management system or build both together, see our corporate solutions page or request a quote.