Get Product
Retrieves the details of a single product, including its variants, pricing, stock, media and metafields.
HTTP Request
- URL:
/products/{id} - Method:
GET - Headers:
accessToken: Required. Your API access token.
- Required scope:
READ_PRODUCTorREAD_WRITE_PRODUCT
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | String | Required. The ID of the product to retrieve. |
Query Parameters
| Parameter | Type | Description |
|---|---|---|
metaCode | String | Metafield code. Use with metaValue to return the product only if it has this metafield value. |
metaValue | String | Metafield value to match for metaCode. |
cURL Example
curl --location '<BASE_URL>/products/67bb23803b6220fb83f2a1c2' \
--header 'accessToken: <ACCESS_TOKEN>'
Response
- 200 OK: The product was returned successfully.
- 400 Bad Request: The access token is missing or invalid, or the product ID is not valid.
Sample JSON Response
{
"success": true,
"data": {
"id": "67bb23803b6220fb83f2a1c2",
"entityId": 1042,
"name": "Contractor Trash Bags 60 Gal",
"sku": "C3200",
"productType": "configurable",
"hasOptions": true,
"status": "active",
"visibility": true,
"description": { "dataType": "HTML", "value": "<p>Heavy-duty 3 mil contractor bags.</p>" },
"shortDescription": "Heavy-duty 3 mil bags",
"specifications": [
{ "_id": "67bb23803b6220fb83f2a1c3", "name": "Material", "value": "LLDPE", "displayStorefront": true }
],
"customUrl": "contractor-trash-bags-60-gal",
"manufacturer": "Aluf Plastics",
"mpn": "PG6-6060",
"brand": "65b0d13f98539a33577ac4ce",
"categories": ["696a558b2c0b334070270d81"],
"weight": 27,
"dimensions": { "width": 12, "height": 10, "depth": 8 },
"quantity": { "minQuantity": 1, "quantityIncrement": 1 },
"price": 48.5,
"cost": 31.2,
"sale": null,
"priceRange": { "minPrice": 48.5, "maxPrice": 52 },
"tierPrice": [
{ "_id": "67bb23803b6220fb83f2a1e0", "quantity": 10, "price": 45, "discount": 0, "tierPricingType": "fixed" }
],
"additionalCost": { "type": "fixed", "value": 0 },
"isTaxExempt": false,
"taxcode": "P0000000",
"trackInventory": true,
"inventoryType": "product",
"inventory": { "stock": 340, "minStock": 20 },
"isFeatured": false,
"isFreeShipping": false,
"mediaGallery": [
{
"id": "67bb23803b6220fb83f2a1d3",
"url": "https://cdn.example.com/products/c3200.webp",
"type": "image",
"label": "Front",
"isDefault": true
}
],
"files": [
{ "_id": "67bb23803b6220fb83f2a1d4", "type": "document", "format": "pdf", "url": "https://cdn.example.com/files/c3200-sds.pdf", "name": "Safety data sheet" }
],
"options": [
{
"_id": "67bb23803b6220fb83f2a1d9",
"optionName": "Unit",
"optionType": "radio",
"optionValues": [
{ "_id": "67bb23803b6220fb83f2a1da", "label": "Each", "value": "EA", "isDefault": true },
{ "_id": "67bb23803b6220fb83f2a1db", "label": "Case", "value": "CS", "isDefault": false }
]
}
],
"variants": [
{
"_id": "67bb23803b6220fb83f2a1dc",
"sku": "C3200-E",
"name": "Each",
"mpn": "PG6-6060-E",
"price": 48.5,
"cost": 31.2,
"weight": 1,
"options": [
{ "_id": "67bb23803b6220fb83f2a1dd", "optionName": "Unit", "optionValueLabel": "Each", "optionValue": "EA" }
],
"inventory": { "stock": 120 },
"isActive": true,
"mediaGallery": [],
"tierPrice": []
}
],
"groupedProducts": [],
"bundledProducts": [],
"relatedProducts": [
{ "_id": "67bb23803b6220fb83f2a1e2", "code": "accessories", "label": "Accessories", "products": ["67bb23803b6220fb83f2a1f0"], "isShow": true }
],
"filters": [
{ "_id": "67bb23803b6220fb83f2a1e4", "code": "color", "label": "Color", "options": [{ "label": "Black", "value": "black" }] }
],
"metaFields": [
{
"metaFieldId": "66d1f0c2a1b2c3d4e5f60718",
"code": "material",
"label": "Material",
"displayStorefront": true,
"valueType": "text",
"value": "LLDPE"
}
],
"searchKeyWords": ["trash bag", "contractor bag"],
"synonymKeywords": ["garbage bag"],
"seo": { "pageTitle": "Contractor Trash Bags 60 Gal", "metaKeywords": "trash bags", "metaDescription": "Heavy-duty contractor bags." },
"manageCustoms": false,
"productGroups": [],
"productZones": [],
"ratings": 4,
"salesCount": 87,
"revenue": 4219.5,
"sortOrder": 0,
"createdAt": "2025-02-23T13:28:00.512Z",
"updatedAt": "2025-09-14T08:02:41.118Z"
}
}
Response Details
Product Data
| Field | Type | Description |
|---|---|---|
id | String | Unique identifier of the product. |
entityId | Number | Numeric product ID. |
name | String | Name of the product. |
sku | String | SKU of the product. |
productType | String | simple, configurable, grouped or bundle. |
hasOptions | Boolean | Whether the product has options and variants. |
status | String | active or inactive. Default is active. |
visibility | Boolean | Whether the product is visible on the storefront. Default is true. |
description | Object | Full description: dataType (HTML or JSON) and value. |
shortDescription | String | Short description. |
specifications | Array | Specifications, each with name, value and displayStorefront. |
customUrl | String | URL of the product page on the storefront. |
manufacturer | String | Manufacturer name. |
mpn | String | Manufacturer part number. |
brand | String | ID of the product's brand. See Get Single Brand. |
categories | Array | IDs of the categories the product belongs to. |
weight | Number | Weight of the product. Default is 1. |
dimensions | Object | width, height and depth. Each defaults to 1. |
quantity | Object | minQuantity and quantityIncrement for ordering. Both default to 1. |
price | Number | Base price. |
cost | Number | Cost price. |
sale | Number | Sale price. |
priceRange | Object | Lowest (minPrice) and highest (maxPrice) variant price. |
tierPrice | Array | Quantity price breaks. See Tier Price Object. |
additionalCost | Object | Extra cost: type (custom, fixed or percentage) and value. |
isTaxExempt | Boolean | Whether the product is tax exempt. Default is false. |
taxcode | String | Tax code. |
trackInventory | Boolean | Whether stock is tracked. Default is false. |
inventoryType | String | Whether stock is tracked per product or per variant. |
inventory | Object | stock (quantity on hand) and minStock (low-stock level). |
isFeatured | Boolean | Whether the product is featured. Default is false. |
isFreeShipping | Boolean | Whether the product ships free. Default is false. |
mediaGallery | Array | Images and videos. See Media Gallery Object. |
files | Array | Attached files, each with type, format, url and name. |
options | Array | Product options. See Option Object. |
variants | Array | Product variants. See Variant Object. |
groupedProducts | Array | Products in a grouped product, each with productId, quantity and dynamicQuantity. |
bundledProducts | Array | Bundle sections, each with optionTitle, inputType, isRequired and bundledItems. |
relatedProducts | Array | Related product lists, each with code, label, products and isShow. |
filters | Array | Filter values, each with code, label and options. |
metaFields | Array | Custom field values. See Metafields. |
searchKeyWords | Array | Extra keywords for storefront search. |
synonymKeywords | Array | Search synonyms. |
seo | Object | pageTitle, metaKeywords and metaDescription. |
manageCustoms | Boolean | Whether customs details are used. Default is false. |
customs | Object | countryCode, commodityDescription and hsCodes. |
productGroups | Array | IDs of the product groups the product belongs to. |
productZones | Array | IDs of the product zones the product belongs to. See Get All Product Zones. |
ratings | Number | Average star rating. |
salesCount | Number | Number of units sold. |
revenue | Number | Revenue from sales of the product. |
sortOrder | Number | Display order. |
createdAt | String | Date and time the product was created (ISO 8601). |
updatedAt | String | Date and time the product was last updated (ISO 8601). |
Variant Object
| Field | Type | Description |
|---|---|---|
_id | String | Unique identifier of the variant. |
sku | String | SKU of the variant. |
name | String | Name of the variant. |
mpn | String | Manufacturer part number. |
price | Number | Price of the variant. |
cost | Number | Cost price. |
sale | Number | Sale price. |
weight | Number | Weight of the variant. |
options | Array | Option values, each with optionName, optionValue and optionValueLabel. |
inventory | Object | stock and minStock for the variant. |
tierPrice | Array | Quantity price breaks for the variant. |
mediaGallery | Array | Images and videos for the variant. |
isActive | Boolean | Whether the variant is active. Default is true. |
Option Object
| Field | Type | Description |
|---|---|---|
optionName | String | Name of the option, for example Size. |
optionType | String | color, dropdown, radio, rectangleBox or image. |
optionValues | Array | Values, each with label, value and isDefault. |
Media Gallery Object
| Field | Type | Description |
|---|---|---|
id | String | Unique identifier of the media item. |
url | String | URL of the image or video. |
type | String | image, video or embed. |
label | String | Label or alt text. |
isDefault | Boolean | Whether this is the main image. |
Tier Price Object
| Field | Type | Description |
|---|---|---|
quantity | Number | Minimum quantity for this price break. |
price | Number | Price when tierPricingType is fixed. |
discount | Number | Discount when tierPricingType is discount. |
tierPricingType | String | fixed or discount. Default is fixed. |
Notes
- If no product matches the ID,
datais an empty object.