Skip to main content

Overview

The Products API allows you to retrieve product information including details, pricing, images, options, and availability. Products are accessed through the catalog model rather than dedicated API controllers.

Get Product

Retrieve detailed information about a specific product by its ID.

Method

Parameters

integer
required
The unique identifier of the product

Response

integer
Unique product identifier
string
Product name
string
Full product description
string
Product model/SKU
float
Product price (includes discount if applicable)
float
Special price if active, null otherwise
float
Quantity discount price if applicable
integer
Tax class identifier
integer
Available stock quantity
integer
Minimum order quantity
string
Main product image path
integer
Manufacturer identifier
string
Manufacturer name
boolean
Whether product requires shipping
float
Product weight
integer
Weight class identifier
float
Product length dimension
float
Product width dimension
float
Product height dimension
integer
Length class identifier
integer
Average product rating (0-5)
integer
Number of product reviews
integer
Reward points for purchase
boolean
Product enabled status
string
Date product becomes available
array
Product variant options (for variant products)
array
Override values for master product
integer
Master product ID (for variant products)

Example Response

Get Products

Retrieve a list of products with optional filtering and sorting.

Method

Parameters

integer
Filter by category ID
boolean
Include products from subcategories
string
Comma-separated filter IDs
Search term for product name
string
Search term for product tags
boolean
Include description in search
integer
Filter by manufacturer ID
string
Sort field: p.sort_order, pd.name, p.model, p.quantity, p.price, rating, p.date_added
string
Sort order: ASC or DESC
integer
Offset for pagination (default: 0)
integer
Number of products to return (default: 20)

Example Request

Response

Returns an array of product objects with the same structure as Get Product.

Get Product Options

Retrieve all options for a product.

Method

Response Fields

integer
Product option identifier
integer
Base option identifier
string
Option name (e.g., “Size”, “Color”)
string
Option type: select, radio, checkbox, text, textarea, file, date, time, datetime
array
Available option values
boolean
Whether option is required

Example Response

Get Product Images

Retrieve all images for a product.

Method

Response

Get Product Subscriptions

Retrieve subscription plans available for a product.

Method

Response Fields

integer
Subscription plan identifier
string
Subscription plan name
float
Subscription price
string
Payment frequency: day, week, month, year
integer
Number of frequency units per cycle
integer
Number of cycles (0 = unlimited)
boolean
Whether trial period is available
float
Trial period price
string
Trial frequency period
integer
Trial cycle count
integer
Trial duration in cycles

Product Validation

When adding products to cart, the following validations are performed:
  • Product Exists - Product ID must be valid and active
  • Stock Availability - Sufficient quantity must be available
  • Minimum Quantity - Order must meet minimum quantity requirement
  • Required Options - All required options must be provided
  • Option Values - Option values must be valid for the product
  • Subscription Plans - Valid subscription plan required if product has subscriptions

Code Examples

Get Product with Options

Search Products by Category

Product pricing automatically includes applicable discounts and special prices. The price field returns the effective price the customer will pay.

Next Steps

Categories API

Browse product categories

Cart API

Add products to cart

Manufacturers API

Filter by manufacturer

Orders API

Create orders with products