Before connecting a store to an ERP, decide which system owns each stock value and when it can change. A connection can move data successfully while applying the wrong business rule. Define product identifiers, available stock, reservations, cancellations, and exception handling before treating the integration as complete.
Imagine a product with ten units in a warehouse and three units reserved for an offline customer. If the store receives the physical count without the reservation rule, it may offer more stock than the business can fulfil. The integration needs the meaning of the number, not just its location in an API response.
Define the stock quantities
Ask operations and the ERP owner to explain the quantities they use. Physical stock, reserved stock, available-to-sell stock, and incoming stock may be different values. The exact terms and calculation depend on your systems and process.
Choose the quantity the store should display or use for ordering. Record whether safety buffers, warehouse selection, or manual allocations apply. Do not let the developer invent that calculation from field names alone.
Give each field an owner
| Value | Decision to document | Example question |
|---|---|---|
| Product identifier | Authoritative matching key | Does every variant have a unique reference? |
| Available quantity | Source and calculation | Are reservations already deducted? |
| Order reservation | Trigger and release rule | When is stock held for an unpaid order? |
| Cancellation | Reversal responsibility | Which system releases the reservation? |
| Product availability | Status rule | Can incoming stock be offered for preorder? |
This table is illustrative. Use the actual ERP definitions and store behaviour. A simple “sync stock both ways” instruction leaves important conflicts unresolved.
Match products before moving stock
Validate the identifier used to connect records. Product names are often unsuitable as the only matching method because names can change or repeat. Confirm how variations, bundles, discontinued items, and replacement products are represented.
Create a report of unmatched or duplicate identifiers before enabling automated updates. Assign someone to resolve those records. Silently skipping an unmatched item can leave the store displaying stale stock while the rest of the integration appears healthy.
Map the order lifecycle
Walk through an order from creation to fulfilment, cancellation, and return. At each stage, decide whether stock is reserved, reduced, released, or left unchanged. Record which system performs the action and how the other system learns about it.
Include a payment that remains pending and an order edited by staff. If the same event is delivered again, the integration should not apply the same stock movement twice. The implementation team should explain its approach using the systems’ documented event behaviour.
Decide how delays are handled
No integration should assume that every connected service is always available. Agree what the store does when a stock update is delayed or the ERP cannot be reached. The right response depends on how much operational risk the business can accept.
Some businesses may pause ordering for affected items; others may use a controlled buffer or manual review. These are business choices that need approval. Explain the customer-facing availability message consistently with the chosen process.
Make exceptions visible
Build a small operational view or report for failed updates, unmatched products, and unresolved order transfers. It should identify the affected reference, time, and next action without exposing unnecessary customer information.
Assign an owner and a review frequency suited to the operation. An error log that nobody checks is not a complete exception process. Staff need to know when to retry, when to correct data, and when to escalate to technical support.
Test one product family before full rollout
Choose representative items, including a variant and a low-stock product where applicable. Test an ordinary sale, cancellation, order edit, and a delayed or repeated update in a controlled environment.
Reconcile the final quantities in both systems against the expected business result. A successful API response is only one technical signal. Operations should confirm that the numbers mean the same thing on both sides.
Keep a plan for enabling the integration gradually and for pausing it if reconciliation fails. Avoid bulk stock changes without a record of the previous values and a practical recovery process.
Common questions
Should stock always synchronise in real time?
The required timing depends on sales volume, stock risk, and system capabilities. Define an acceptable delay and exception process instead of using “real time” without a measurable meaning.
Can the store and ERP both edit stock?
They can participate in a designed workflow, but competing edits need explicit rules. Give each value and movement a defined owner so one system does not overwrite a valid change from the other.
What should we prepare for an integration brief?
Provide sample product references, stock definitions, order stages, and system documentation through an approved process. Read the broader ERP integration guide and discuss the scope with Titanium.