Skip to main content

Endpoint

GET /api/v1/products/{id}
Retrieves detailed information about a specific product.

Path Parameters

id
integer
required
The unique identifier of the product to retrieve

Response

id
integer
Unique identifier for the product
name
string
The name of the product
description
string
Detailed description of the product
sku
string
Stock Keeping Unit identifier
category_id
integer
ID of the product’s category
price
number
Selling price of the product
cost_price
number
Cost price of the product
weight_kg
number
Weight in kilograms
is_active
boolean
Whether the product is active and available for sale
created_at
string
Creation timestamp in ISO 8601 format
product_dimension_id
integer
ID of the associated product dimensions record
product_inventory_id
integer
ID of the associated inventory record
image_ids
array
List of image IDs associated with this product

Example

curl -X GET "https://api.furniture.com/api/v1/products/1" \
  -H "Accept: application/json"

Response Example

{
  "id": 1,
  "name": "Modern Oak Dining Table",
  "description": "Elegant 6-seater dining table made from solid oak wood with a smooth finish",
  "sku": "TBL-OAK-001",
  "category_id": 5,
  "price": 899.99,
  "cost_price": 450.00,
  "weight_kg": 45.5,
  "is_active": true,
  "created_at": "2024-01-15T10:30:00",
  "product_dimension_id": 1,
  "product_inventory_id": 1,
  "image_ids": [101, 102, 103]
}

Response Codes

200
Success
Product found and returned successfully
404
Error
Product not found with the specified ID

Build docs developers (and LLMs) love