The getProduct actor-chain allows the user to look up products by their ID.

Parameter

Description

productId

The ID of the product.

catalogs

Used by the CategoryItemLookupDroplet. If filterByCatalog is set to true, this parameter provides the list of acceptable catalogs.

filterBySite

Identifies if the output is filtered by site. Set to true by default.

filterByCatalog

Identifies if the output is filtered by catalog. Set to true by default.

sites

Used by the CategoryItemLookupDroplet. If filterBySite is set to true, this parameter provides the list of acceptable sites.

Get Product by Product ID Example
curl -v -b customer_cookies.txt -H "Content-Type: application/json" -d "{
\"productId\" : \"xprod2085\"}" "http://localhost:8280/rest/model/atg/commerce/
catalog/ProductCatalogActor/getProduct"

The server response may be similar to the following:

{
  "product": {
  "currencyCode": "USD",
  "highestSalePrice": 19,
  "lowestSalePrice": 19,
  "lowestListPrice": 19,
  "fullImageUrl": "/crsdocroot/content/images/products/full/HOME_TumblerGlass_full.jpg",
  "childSKUs": [{
    "listPrice": 19,
    "displayName": "Tumbler Glass",
    "type": "sku",
    "repositoryId": "xsku2085"
  }],
  "repositoryId": "xprod2085",
  "highestListPrice": 19,
  "description": "Tumbler glass great for mixed drinks and other beverages",
  "largeImageUrl": "/crsdocroot/content/images/products/large/HOME_TumblerGlass_large.jpg",
  "longDescription": "Our heavy glass tumblers are a versatile addition to your barware collection. Holds 12 ounces. Dishwasher safe. Made in Poland.",
  "isNavigableProduct": true,
  "mediumImageUrl": "/crsdocroot/content/images/products/medium/HOME_TumblerGlass_medium.jpg",
  "displayName": "Tumbler Glass",
  "thumbnailImageUrl": "/crsdocroot/content/images/products/thumb/HOME_TumblerGlass_thumb.jpg"
}}

Copyright © 1997, 2015 Oracle and/or its affiliates. All rights reserved. Legal Notices