The getProduct actor-chain allows the user to look up products by their ID.
Parameter | Description |
|---|---|
| The ID of the product. |
| Used by the |
| Identifies if the output is filtered by site. Set to |
| Identifies if the output is filtered by catalog. Set to |
| Used by the |
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": "/atgdocroot/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": "/atgdocroot/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": "/atgdocroot/content/images/products/medium/HOME_TumblerGlass_medium.jpg",
"displayName": "Tumbler Glass",
"thumbnailImageUrl": "/atgdocroot/content/images/products/thumb/HOME_TumblerGlass_thumb.jpg"
}}
