The locateItems
actor-chain is used to find stores that have the specified item.
Parameter | Description |
---|---|
| The SKU ID of the item to find in the store. |
| Used to specify a country. |
| Used to specify a state. |
| Used to specify a city. |
| Used to specify a postal code. |
| Used to identify a distance (in meters). |
| The maximum number of results to display on the page. |
Search for Store Example
curl -L -v -b customer_cookies.txt -H "Content-Type: application/json" -d "{ \"distance\" : \"10\", \"skuId\" : \"sku30029\"}" "http://localhost:8280/ rest/model/atg/commerce/locations/StoreLocatorActor/locateItems"
The server response may be similar to the following:
{ "FashionIsland": { "distance": 0, "postalCode": "92660", "phoneNumber": "555-555-2006", "name": "Fashion Island", "state": "CA", "address1": "401 Newport Center Drive", "stockLevel": 0, "city": "Newport", "country": "USA" }, "BiltmoreFashionPark": { "distance": 0, "postalCode": "85016", "phoneNumber": "(555) 555-1963", "name": "Biltmore Fashion Park", "state": "AZ", "address1": "2404 East Camelback Road", "stockLevel": 0, "city": "Phoenix", "country": "USA" } }