← Back to Docs

Product Detail

Overview

The Product Detail page provides a comprehensive view of a single product and all its variants. It is product-centric (not SKU-centric), showing product information with a variants table below.

Page Sections

1. Product Header

ElementDescription
Product ImageThumbnail from Shopify
TitleProduct name
VendorProduct vendor/brand
Product TypeCategory (e.g., Footwear, Electronics)
Sync Badge"🔗 Synced" or "⛓️‍💥 Not Synced"

2. Alert Banner

Yellow warning banner appears if any SKUs are unsynced, showing the count and instructions to sync them.

3. KPI Cards

KPIDescriptionData Source
Total StockSum of quantity_available across all variantsinventory_snapshots
Daily VelocitySum of daily_sales_velocity across variantsinventory_snapshots
Need ReorderCount of variants with critical or stockout statusinventory_snapshots
Daily Revenuecost_per_item × total daily velocityproducts + inventory_snapshots
Inventory Valuecost_per_item × total stockproducts + inventory_snapshots
Avg Days LeftAverage days_of_stock_remaining across variantsinventory_snapshots

4. Sales Trend Chart

14-day daily bar chart showing revenue per day. Green bars = revenue > $0, gray bars = $0 or no orders. Date labels in "Sep 10" format.

5. Recent Orders

Table showing recent Shopify orders that contain this product, with order number, date, customer, and quantity.

6. Suppliers Card

Shows all assigned suppliers (Primary, 2nd, 3rd) with:

Edit Suppliers button opens a modal to add/remove suppliers and set SKU-specific costs and lead times.

7. Variants Table

ColumnDescription
SKUVariant SKU code with sync status icon
TitleVariant title (e.g., "M / White")
QuantityAvailable quantity (or "N/A" if not synced)
StatusHealthy / Low / Critical / Stockout badge
Daily VelocityUnits sold per day
Days RemainingEstimated days until stockout
ActionsEdit, sync toggle

Backorder / Preorder

Expected Availability

Products can be flagged as backorder or preorder with:

Breadcrumb Navigation

Products (clicking clears all filters) › Product Name

API Endpoints

EndpointMethodDescription
/api/products/{id}GETProduct with variants and suppliers
/api/products/{id}/sales-chartGET14-day sales data
/api/products/{id}/recent-ordersGETOrders for this product
/api/products/{id}/backorderPUTUpdate backorder/preorder settings
/api/products/{id}/suppliersPUTUpdate supplier assignments