Menu
site_product
Fetch one product by ID, SKU or variant — prices, options, variants, inventory, images, reviews and related products.
Use it in a workflow
- Add a step and choose the BigCommerce Storefront connector.
- Pick the site_product action (under Product).
- Fill in the fields below, then reference the result from later steps as
{{siteProduct.response.data}}.
Query
This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.
query SiteProduct($id: ID, $entityId: Int, $variantEntityId: Int, $optionValueIds: [OptionValueId!], $sku: String, $useDefaultOptionSelections: Boolean) {
site {
product(
id: $id
entityId: $entityId
variantEntityId: $variantEntityId
optionValueIds: $optionValueIds
sku: $sku
useDefaultOptionSelections: $useDefaultOptionSelections
) {
id
entityId
sku
path
name
description
warranty
minPurchaseQuantity
maxPurchaseQuantity
addToCartUrl
addToWishlistUrl
isPriceHidden
weight {
value
unit
}
height {
value
unit
}
width {
value
unit
}
depth {
value
unit
}
reviewSummary {
averageRating
numberOfReviews
summationOfRatings
}
type
availability
availabilityDescription
availabilityV2 {
status
description
}
brand {
id
entityId
name
defaultImage {
altText
isDefault
}
pageTitle
metaDesc
metaKeywords
seo {
pageTitle
metaDescription
metaKeywords
}
searchKeywords
path
}
defaultImage {
altText
isDefault
}
inventory {
isInStock
isStockTracked
hasVariantInventory
aggregated {
availableToSell
warningLevel
availableOnHand
unlimitedBackorder
availableForBackorder
}
}
upc
mpn
gtin
createdAt {
utc
}
seo {
pageTitle
metaDescription
metaKeywords
}
condition
showCartAction
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"id": "string",
"entityId": 0,
"variantEntityId": 0,
"optionValueIds": [
{
"optionEntityId": 0,
"valueEntityId": 0
}
],
"sku": "string",
"useDefaultOptionSelections": false
}
Response
Read the result with {{siteProduct.response.data.data.product}}. If the API returns errors, the step fails and they are at {{siteProduct.response.data.errors}}.
Need more? See the BigCommerce Storefront guide for connection setup and behaviour shared by every action.
Was this page helpful?