younifyd
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

  1. Add a step and choose the BigCommerce Storefront connector.
  2. Pick the site_product action (under Product).
  3. 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.

graphql
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.

idstring

Product global id filter.

entityIdnumber

Product id filter.

variantEntityIdnumber

Product filter by variant id.

optionValueIdsarray<object>

A variant option value ids filter.

optionEntityIdnumberrequired
valueEntityIdnumberrequired
skustring

Product filter by sku.

useDefaultOptionSelectionsboolean

When set to True, returns products with default option selection overlay if one exists. Chosen options selections can be overridden by optionValueIds. If neither this option nor optionValueIds are used query returns a base product. Defaults to False.

json
{
  "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}}.

idstring
entityIdnumber
skustring
pathstring
namestring
descriptionstring
warrantystring
minPurchaseQuantitynumber
maxPurchaseQuantitynumber
addToCartUrlstring
addToWishlistUrlstring
isPriceHiddenboolean
weightobject
valuenumber
unitstring
heightobject
valuenumber
unitstring
widthobject
valuenumber
unitstring
depthobject
valuenumber
unitstring
reviewSummaryobject
averageRatingnumber
numberOfReviewsnumber
summationOfRatingsnumber
typestring
availabilitystring
availabilityDescriptionstring
availabilityV2object
statusstring

One ofAvailablePreorderUnavailable

descriptionstring
brandobject
idstring
entityIdnumber
namestring
defaultImageobject2 fields
pageTitlestring
metaDescstring
metaKeywordsarray<object>
seoobject3 fields
searchKeywordsarray<object>
pathstring
defaultImageobject
altTextstring
isDefaultboolean
inventoryobject
isInStockboolean
isStockTrackedboolean
hasVariantInventoryboolean
aggregatedobject5 fields
upcstring
mpnstring
gtinstring
createdAtobject
utcstring
seoobject
pageTitlestring
metaDescriptionstring
metaKeywordsstring
conditionstring

One ofNEWREFURBISHEDUSED

showCartActionboolean

Need more? See the BigCommerce Storefront guide for connection setup and behaviour shared by every action.