The CSRGgiftlistSearchActor is used to find a customer’s gift list. This actor is located at /atg/commerce/gifts/ and contains the search actor-chain.
Parameter | Description |
|---|---|
| The first name of the customer. |
| The last name of the customer. |
| The list event type. |
| The list event date. |
| Indicates the field used to sort the results. |
| Indicates the direction that the results are sorted. |
| The number of results that are displayed per page. |
| The paging results of the search to display. |
Search for Customer Gift List Example
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" -d "{
\"firstName\" : \"Stuart\", \"lastName\" : \"Schmidt\", \"eventType\": \"Other\",
\"eventDate\" : \"AUG 30, 2013\", \"sortDirection\": \"desc\", \"sortField\" :
\"eventName\",\"currentPage\": 1, \"resultsPerPage\": 5 }" "http://localhost:8180/
rest/model/atg/commerce/gifts/CSRGiftlistSearchActor/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
}
]
}
