GET /products/[id]
/api/store/[slug]/products/[id]Fetches one active product with full details including variants (with SKU), images, service charges, and active sale pricing.
Path parameters
slugstringrequiredBusiness store slug (non-empty string, trimmed)
idstringrequiredProduct ID (must be a UUID; validated with z.string().uuid())
Responses
The request succeeded.
No such store, or no such record inside it.
Too many requests. Back off and retry after the window in the response.
What comes back
200 JSON: the product object at the top level (no wrapper key) with id, name, description, type, base_price (sale-adjusted), original_base_price (number or null), digital_file_path, created_at, updated_at, variants (includes sku here, plus sale fields when discounted), images (sorted by display_order), service_charges, active_sale_rule (object or null), optional sale_label / sale_ends_at. 404 { error } for unknown business or product not active/owned by the business. CORS open, OPTIONS supported.