The GiftlistLookupActor is used to view the items within a customer’s gift list. This actor is located at: /atg/commerce/gifts/GiftlistLookupActor, and contains the items actor-chain.

Parameter

Description

giftlistId

The ID of the gift list to view.

View Gift List Item Example
curl -L -v -b customer_cookies.txt -H "Content-Type: application/json" -d "{
\"giftlistId\" : \"gl430003\"}" "http://localhost:8280/rest/model/atg/commerce/
gifts/GiftlistLookupActor/items?giftlistId=xgl10002"

The server response may be similar to the following:

{"giftlistItems":[
  {
    "repositoryId":"xgi10001",
    "productId":"xprod1001",
    "siteId":"storeSiteUS",
    "skuId":"xsku1003",
    "quantity":1
  },
  {
    "repositoryId":"xgi10002",
    "productId":"xprod1007",
    "siteId":"storeSiteUS",
    "skuId":"xsku1026",
    "quantity":1
  },
  {
    "repositoryId":"xgi10003",
    "productId":"xprod1014",
    "siteId":"storeSiteUS",
    "skuId":"xsku1042",
    "quantity":1
  },
  {
    "repositoryId":"xgi10004",
    "productId":"xprod1047",
    "siteId":"storeSiteUS",
    "skuId":"xsku1244",
    "quantity":1
  },
  {
    "repositoryId":"xgi10005",
    "productId":"xprod2032",
    "siteId":"storeSiteUS",
    "skuId":"xsku2032",
    "quantity":1
  },
  {
    "repositoryId":"xgi10006",
    "productId":"xprod2071",
    "siteId":"homeSite",
    "skuId":"xsku2071",
    "quantity":1
  },
  {
    "repositoryId":"xgi10007",
    "productId":"xprod2116",
    "siteId":"homeSite",
    "skuId":"xsku2116",
    "quantity":1
  },
  {
    "repositoryId":"xgi10008",
    "productId":"xprod2138",
    "siteId":"homeSite",
    "skuId":"xsku2138",
    "quantity":1
  }
]}

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