Get Product Details
Retrieves complete information about a specific product.Path Parameters
Product identifier
Response
Product identifier
Product name
Product description
Product price
Discounted price (if discount active)
URL to main product image
Product category information
Seller information
Additional product images and videos
Product attributes (size, color, material, etc.)
Product variants (if applicable)
Average customer rating
Total number of reviews
Response Codes
200 OK- Product found400 Bad Request- Invalid product ID format404 Not Found- Product not found
Example
cURL
Success Response
Get Products by Category
Retrieves products in a specific category with pagination.Path Parameters
Child category identifier
Page number (starts at 1)
Query Parameters
Number of products per page (default: 20)
Response
Array of product objects
Total number of products in category
Current page number
Total number of pages
Response Codes
200 OK- Products retrieved400 Bad Request- Invalid page number (must be > 0)404 Not Found- Category not found
Example
cURL
Search Products
Searches for products by query string.Query Parameters
Search query text
Number of results to return
Response
Array of matching products
Response Codes
200 OK- Search completed400 Bad Request- Invalid or empty search query
Example
cURL
Get Products with Discount
Retrieves products that have active discounts.Path Parameters
Page number (starts at 1)
Query Parameters
Number of products per page
Example
cURL
Get Random Products
Retrieves random products for homepage or discovery features.Query Parameters
Number of random products to return
Example
cURL
Create Product (Seller)
Creates a new product listing.Request Body (multipart/form-data)
Product name
Product description
Product price
Available quantity
Category ID
Seller ID
Main product image file
Product attributes (JSON)
Response Codes
204 No Content- Product created successfully400 Bad Request- Invalid data or missing required fields404 Not Found- Category or seller not found
Example
cURL
Update Product Price (Seller)
Updates the price of a product.Path Parameters
Product identifier
Request Body
New product price (must be > 0)
Response Codes
204 No Content- Price updated400 Bad Request- Invalid price404 Not Found- Product not found
Example
cURL
Delete Product (Seller)
Deletes a product listing.Path Parameters
Product identifier
Response Codes
204 No Content- Product deleted404 Not Found- Product not found
Example
cURL
Filter Products by Attributes
Filters products based on attribute values.Request Body
Category to filter within
Array of attribute filters
Example
cURL