Skip to main content

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_PRODUCT or READ_WRITE_PRODUCT

Path Parameters​

ParameterTypeDescription
idStringRequired. The ID of the product to retrieve.

Query Parameters​

ParameterTypeDescription
metaCodeStringMetafield code. Use with metaValue to return the product only if it has this metafield value.
metaValueStringMetafield 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​

FieldTypeDescription
idStringUnique identifier of the product.
entityIdNumberNumeric product ID.
nameStringName of the product.
skuStringSKU of the product.
productTypeStringsimple, configurable, grouped or bundle.
hasOptionsBooleanWhether the product has options and variants.
statusStringactive or inactive. Default is active.
visibilityBooleanWhether the product is visible on the storefront. Default is true.
descriptionObjectFull description: dataType (HTML or JSON) and value.
shortDescriptionStringShort description.
specificationsArraySpecifications, each with name, value and displayStorefront.
customUrlStringURL of the product page on the storefront.
manufacturerStringManufacturer name.
mpnStringManufacturer part number.
brandStringID of the product's brand. See Get Single Brand.
categoriesArrayIDs of the categories the product belongs to.
weightNumberWeight of the product. Default is 1.
dimensionsObjectwidth, height and depth. Each defaults to 1.
quantityObjectminQuantity and quantityIncrement for ordering. Both default to 1.
priceNumberBase price.
costNumberCost price.
saleNumberSale price.
priceRangeObjectLowest (minPrice) and highest (maxPrice) variant price.
tierPriceArrayQuantity price breaks. See Tier Price Object.
additionalCostObjectExtra cost: type (custom, fixed or percentage) and value.
isTaxExemptBooleanWhether the product is tax exempt. Default is false.
taxcodeStringTax code.
trackInventoryBooleanWhether stock is tracked. Default is false.
inventoryTypeStringWhether stock is tracked per product or per variant.
inventoryObjectstock (quantity on hand) and minStock (low-stock level).
isFeaturedBooleanWhether the product is featured. Default is false.
isFreeShippingBooleanWhether the product ships free. Default is false.
mediaGalleryArrayImages and videos. See Media Gallery Object.
filesArrayAttached files, each with type, format, url and name.
optionsArrayProduct options. See Option Object.
variantsArrayProduct variants. See Variant Object.
groupedProductsArrayProducts in a grouped product, each with productId, quantity and dynamicQuantity.
bundledProductsArrayBundle sections, each with optionTitle, inputType, isRequired and bundledItems.
relatedProductsArrayRelated product lists, each with code, label, products and isShow.
filtersArrayFilter values, each with code, label and options.
metaFieldsArrayCustom field values. See Metafields.
searchKeyWordsArrayExtra keywords for storefront search.
synonymKeywordsArraySearch synonyms.
seoObjectpageTitle, metaKeywords and metaDescription.
manageCustomsBooleanWhether customs details are used. Default is false.
customsObjectcountryCode, commodityDescription and hsCodes.
productGroupsArrayIDs of the product groups the product belongs to.
productZonesArrayIDs of the product zones the product belongs to. See Get All Product Zones.
ratingsNumberAverage star rating.
salesCountNumberNumber of units sold.
revenueNumberRevenue from sales of the product.
sortOrderNumberDisplay order.
createdAtStringDate and time the product was created (ISO 8601).
updatedAtStringDate and time the product was last updated (ISO 8601).

Variant Object​

FieldTypeDescription
_idStringUnique identifier of the variant.
skuStringSKU of the variant.
nameStringName of the variant.
mpnStringManufacturer part number.
priceNumberPrice of the variant.
costNumberCost price.
saleNumberSale price.
weightNumberWeight of the variant.
optionsArrayOption values, each with optionName, optionValue and optionValueLabel.
inventoryObjectstock and minStock for the variant.
tierPriceArrayQuantity price breaks for the variant.
mediaGalleryArrayImages and videos for the variant.
isActiveBooleanWhether the variant is active. Default is true.

Option Object​

FieldTypeDescription
optionNameStringName of the option, for example Size.
optionTypeStringcolor, dropdown, radio, rectangleBox or image.
optionValuesArrayValues, each with label, value and isDefault.
FieldTypeDescription
idStringUnique identifier of the media item.
urlStringURL of the image or video.
typeStringimage, video or embed.
labelStringLabel or alt text.
isDefaultBooleanWhether this is the main image.

Tier Price Object​

FieldTypeDescription
quantityNumberMinimum quantity for this price break.
priceNumberPrice when tierPricingType is fixed.
discountNumberDiscount when tierPricingType is discount.
tierPricingTypeStringfixed or discount. Default is fixed.

Notes​

  • If no product matches the ID, data is an empty object.