Reassociating Products to Orders to after reimport

Topic summary

A user reimported inventory while keeping handles and SKUs unchanged, but discovered that the connection between existing orders and products was lost.

The issue stems from how the system links orders to products—through product/variant IDs rather than handles or SKUs. Since reimporting creates new IDs, the historical order associations break.

Another participant confirmed there’s no straightforward way to restore these connections after reimport. The thread concludes with the original poster acknowledging this limitation.

Summarized with AI on November 15. AI used: claude-sonnet-4-5-20250929.

After reimporting my inventory with unchanged handle and SKU, the linkage between orders and products has been lost. What am I missing? Is there a way to fix it?

I’m using rest api via php. Thanks

Hey @manteco

Unfortunately they’re connected via the product/variant IDs.

ok, thank you anyway