Docs
Clear, task-focused documentation for each area of the LPS Sync Dashboard.
Inventory
Purpose
Inventory is for monitoring inventory sync runs from NetSuite → Shopify and drilling into SKU-level history.
What you can do here
- View recent sync runs and their results.
- Drill into a SKU to see quantity changes over time.
- Run diagnostics when an expected quantity doesn’t match.
Key UI pages
Related API routes
These are implemented under app/api/inventory/...:
GET /api/inventory/runs: list inventory sync runsPOST /api/inventory/sync: start a sync (or trigger the sync logic)GET /api/inventory/sku/[sku]: SKU history + changesGET /api/inventory/debug: debugging endpoint (internal use)
Troubleshooting
- Runs list is empty: verify DynamoDB access/config and check
GET /api/inventory/runs. - SKU history looks wrong: confirm the SKU string matches upstream expectations and compare the API response vs what the UI renders.