Get Product

GET /api/v1/products/{id}

Returns a single product with its categories, images, and options.

Example

curl -H "Authorization: Bearer KEY:SECRET" 
     https://example.com/api/v1/products/57

Response

{
    "success": true,
    "data": {
        "product_id": 57,
        "name": "Leather Wallet",
        "description": "<p>Premium handcrafted leather wallet.</p>",
        "price": 49.99,
        "sale_price": 39.99,
        "stock_level": 25,
        "product_code": "LW-001",
        "categories": [
            {"cat_id": 5, "primary": 1},
            {"cat_id": 12, "primary": 0}
        ],
        "images": [
            {"file_id": 101, "main_img": 1, "filepath": "products/", "filename": "wallet-front.jpg"},
            {"file_id": 102, "main_img": 0, "filepath": "products/", "filename": "wallet-back.jpg"}
        ],
        "options": [
            {
                "option_id": 3,
                "option_name": "Colour",
                "option_type": 0,
                "option_required": 1,
                "values": [
                    {"value_id": 10, "value_name": "Black"},
                    {"value_id": 11, "value_name": "Brown"}
                ]
            }
        ]
    }
}