The locateItems actor-chain is used to find stores that have the specified item.

Parameter

Description

skuId

The SKU ID of the item to find in the store.

countryCode

Used to specify a country.

state

Used to specify a state.

city

Used to specify a city.

postalCode

Used to specify a postal code.

distance

Used to identify a distance (in meters).

maxResultsPerPage

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"
  }
}

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