younifyd
Menu

Get Stores

Return stores identified by the IDs provided as input.

GET/organizations/{organizationId}/stores

Use it in a workflow

  1. Add a step and choose the Salesforce Commerce Cloud connector.
  2. Pick the Get Stores action (under Shopper Stores).
  3. Fill in the fields below, then reference the result from later steps as {{getStores.response.data}}.

Request

Path parameters

organizationIdstringrequired

An identifier for the organization the request is being made by

Query parameters

idsstringrequired

The IDs of a requested stores (comma separated, max 50 IDs).

siteIdstringrequired

The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites.

localeoneOf

A descriptor for a geographical region by both a language and country code. By combining these two, regional differences in a language can be addressed, such as with the request header parameter `Accept-Language` following [RFC 2616](https://tools.ietf.org/html/rfc2616) & [RFC 1766](https://tools.ietf.org/html/rfc1766). This can also just refer to a language code, also RFC 2616/1766 compliant, as a default if there is no specific match for a country. Finally, can also be used to define default behavior if there is no locale specified.

Response

Returns 200 with an object. Read it in later steps with {{getStores.response.data.<field>}}.

dataarray<object>

The list of stores in the search result.

address1string

The primary address of the store.

address2string

The secondary address of the store.

citystring

The city of the store.

countryCodestring

A two letter uppercase country code conforming to the [ISO 3166-1](https://www.iso.org/iso-3166-country-codes.html) alpha-2 standard.

distancenumber (double)

The distance to the given geolocation where the stores will be searched, using the unit given in the attribute 'DistanceUnit' (miles or kilometers).

distanceUnitstring

The unit the distance attribute is measured in (either in miles or kilometers).

One ofkmmi

emailstring

The email address of the store.

faxstring

The fax number of the store.

idstringrequired

The id of the store.

imagestring

The store image.

inventoryIdstring

The inventory list id associated with this store.

latitudenumber (double)

The latitude of the store.

longitudenumber (double)

The longitude of the store.

namestring

The store name.

phonestring

The phone number of the store.

posEnabledboolean

Whether this store uses Store Point-of-Sale.

postalCodeany

The postal code of the store.

stateCodestring

The state code of the store.

storeEventsstring

The store events.

storeHoursstring

The opening hours of the store.

storeLocatorEnabledboolean

Whether this store should show up in store locator results.

json
{
  "data": [
    {
      "id": "string",
      "address1": "string",
      "address2": "string",
      "city": "string",
      "countryCode": "US",
      "distance": 0,
      "distanceUnit": "km",
      "email": "string",
      "fax": "string",
      "image": "string",
      "inventoryId": "string",
      "latitude": 0
    }
  ]
}

Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.

Was this page helpful?
Get Stores — Salesforce Commerce Cloud — Documentation