Toggle Sidebar
Get Product by Product ID
Retrieve the details of a specific product using its unique product ID (UUID). This endpoint is useful for fetching details when displaying product information, processing transactions, or managing price data for individual items in your application.
Requirements
id(product ID) is required.
Usage
Request
- Method:
GET - Path:
/products/{id}
Path Parameters
| Name | Type | Required | Example | Description |
|------|--------|----------|---------|-------------|
| id | string | Yes | 3fa85f64-5717-4562-b3fc-2c963f66afa6 | Unique product ID (UUID). |
Example
curl -X GET "https://api.example.com/products/3fa85f64-5717-4562-b3fc-2c963f66afa6"
Response
200 OK
Returns a standard API envelope with product details in data.
Example:
{
"status": true,
"path": "string",
"statusCode": 0,
"message": "string",
"data": {
"id": "string",
"product_name": "string",
"primary_category": 0,
"secondary_category": 0,
"primary_category_name": "string",
"secondary_category_name": "string",
"short_description": "string",
"full_description": "string",
"key_feature_one": "Unknown Type: string,null",
"key_feature_two": "Unknown Type: string,null",
"key_feature_three": "Unknown Type: string,null",
"author_id": "string",
"main_file_url": "Unknown Type: string,null",
"product_demo_url": "string",
"product_doc_url": "string",
"thumbnail_images": "Unknown Type: string,null",
"product_preview_file": "Unknown Type: string,null",
"price": 0,
"extended_price": 0,
"is_draft": true,
"current_stage": "string",
"current_status": "string"
}
}
Notes
- The response uses a standard envelope:
status,path,statusCode,message, anddata. - Fields marked as
"Unknown Type: string,null"should be treated as nullable strings. priceandextended_priceare numeric values for the product pricing.is_draftindicates whether the product is still in draft mode.