The GiftlistSearchActor is used to find a customer’s gift list. This actor is located at: /atg/commerce/gifts/GiftlistSearchActor, and contains the search actor-chain.
Parameter | Description |
|---|---|
| Sets the current page. |
| Looks for matching strings in |
| The first name of the customer. |
| The last name of the customer. |
| The list event type. |
| The list event date. |
| Sets the number of results to display per page. |
| The state or province of the billing address. |
Search for Gift List Example
curl -v -b customer_cookies.txt -H "Content-Type: application/json" -d "{
\"firstName\" : \"Stuart\", \"lastName\" : \"Schmidt\", \"eventType\": \"Other\",
\"eventDate\" : \"AUG 30, 2013\"} "http://localhost:8280/rest/model/atg/commerce/
gifts/GiftlistSearchActor/search"The server response may be similar to the following:
{"giftlists": [
{
"giftlistItems": [],
"instructions": null,
"description": null,
"name": "Birthday",
"public": true,
"date": {"time": 1377837000000},
"type": "Other",
"repositoryId": "gl140010",
"addressId": null
},
{
"giftlistItems": [{
"siteId": "storeSiteUS",
"skuId": "xsku1043",
"quantity": 2,
"repositoryId": "gi50001",
"productId": "xprod1015"
}],
"instructions": null,
"description": null,
"name": "updated test",
"public": true,
"date": {"time": 1377837000000},
"type": "Other",
"repositoryId": "gl120010",
"addressId": null
},
{
"giftlistItems": [],
"instructions": null,
"description": null,
"name": "Anniversary",
"public": true,
"date": {"time": 1377837000000},
"type": "Other",
"repositoryId": "gl120011",
"addressId": null
}
]}
