> ## Documentation Index
> Fetch the complete documentation index at: https://docs.khaime.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Product

> Get a single product by ID

# Get Product

Returns detailed information about a single product.

## Request

<ParamField header="X-API-Key" type="string" required>
  Your API key
</ParamField>

<ParamField path="id" type="integer" required>
  The product ID
</ParamField>

### Query Parameters

<ParamField query="currency" type="string">
  Currency code for price conversion (e.g., "USD", "EUR")
</ParamField>

<ParamField query="country" type="string">
  Country code for regional pricing (e.g., "US", "GB")
</ParamField>

## Response

<ResponseExample>
  ```json theme={null}
  {
    "status": true,
    "message": "Product retrieved successfully",
    "data": {
      "id": 12345,
      "title": "Premium T-Shirt",
      "slug": "premium-t-shirt",
      "description": "High-quality cotton t-shirt with custom print",
      "type": "physical_product",
      "price": 2999,
      "slash_price": null,
      "is_slash_price": false,
      "currency": "USD",
      "is_published": true,
      "images": [
        {
          "url": "https://cdn.khaime.com/products/123/main.jpg",
          "alt": "Premium T-Shirt - Front"
        },
        {
          "url": "https://cdn.khaime.com/products/123/back.jpg",
          "alt": "Premium T-Shirt - Back"
        }
      ],
      "variations": [
        {
          "id": "var_001",
          "variant_label": "Size: Medium",
          "variant_price": 0,
          "variation_quantity": 50,
          "sku": "TSH-M-001"
        },
        {
          "id": "var_002",
          "variant_label": "Size: Large",
          "variant_price": 200,
          "variation_quantity": 30,
          "sku": "TSH-L-001"
        }
      ],
      "categories": [
        {
          "id": 5,
          "name": "Apparel"
        }
      ],
      "subscription_settings": {
        "subscription_available": false
      },
      "shipping_rule_destinations": ["US", "CA", "GB"],
      "currency_conversion_details": {
        "currency": "USD",
        "source_currency": "USD",
        "exchange_rate": 1
      }
    }
  }
  ```
</ResponseExample>

## Errors

| Error Code          | Description                               |
| ------------------- | ----------------------------------------- |
| `PRODUCT_NOT_FOUND` | Product doesn't exist or is not published |

## Example

```bash theme={null}
curl "https://api.khaime.com/api/v1/product/12345?currency=EUR" \
  -H "X-API-Key: pk_live_your_api_key"
```
