younifyd
Menu

Get the shop configuration

Get the shop configuration

GET/v1/shop-configuration

Use it in a workflow

  1. Add a step and choose the SCAYLE Storefront connector.
  2. Pick the Get the shop configuration action (under shop-configuration).
  3. Fill in the fields below, then reference the result from later steps as {{getTheShopConfiguration.response.data}}.

Request

Query parameters

shopIdinteger

The numeric ID of the shop to resolve the request against. Every shop in a multi-shop setup has a unique `shopId`. **Priority:** `shopId` (or the `X-Shop-Id` header) takes precedence over all other shop identification parameters. When `shopId` is present, `shopKey`, `countryCode`, and `locale` are ignored entirely. **Alternative:** If neither `shopId` nor `X-Shop-Id` is provided, you must supply all three of `shopKey`, `countryCode`, and `locale` together to identify the shop.

shopKeystring

The unique string key identifying the shop (e.g. `sa`, `de`). **Must be provided together with `countryCode` and `locale`** as a query-parameter alternative to `shopId`. All three parameters are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `shopId` or the `X-Shop-Id` header is present.

countryCodestring

The ISO 3166-1 alpha-2 country code of the shop (e.g. `DE`, `AT`). Automatically normalised to uppercase. **Must be provided together with `shopKey` and `locale`** as a query-parameter alternative to `shopId`. All three parameters are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `shopId` or the `X-Shop-Id` header is present.

localestring

The locale of the shop (e.g. `en_GB`, `de_DE`). Used to validate that the resolved shop's locale matches the requested locale. **Must be provided together with `shopKey` and `countryCode`** as a query-parameter alternative to `shopId`. All three parameters are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `shopId` or the `X-Shop-Id` header is present.

witharray<string>

Include additional data in the response. The following table describes all the possible parameters that can be used: Parameter | Description --- | --- customData | Include the custom data associated with the shop configuration. customData:key() | Include custom data of shop configuration with empty object. customData:key(keyA\|...) | Include custom data of shop configuration with only the specified keys. shopLevelCustomData | Include the shop-level custom data associated with the shop configuration. shopLevelCustomData:key() | Include shop-level custom data of shop configuration with empty object. shopLevelCustomData:key(keyA\|...) | Include shop-level custom data of shop configuration with only the specified keys.

Headers

X-Shop-Idinteger

The numeric ID of the shop to resolve the request against. Every shop in a multi-shop setup has a unique shop ID. **Priority:** `X-Shop-Id` (or the `shopId` query parameter) takes precedence over all other shop identification parameters. When this header is present, `X-Shop-Key`, `X-Country-Code`, and `X-Locale` are ignored entirely. **Alternative:** If neither `X-Shop-Id` nor `shopId` is provided, you must supply all three of `X-Shop-Key`, `X-Country-Code`, and `X-Locale` together to identify the shop.

X-Shop-Keystring

The unique string key identifying the shop (e.g. `sa`, `de`). **Must be provided together with `X-Country-Code` and `X-Locale`** as a header-based alternative to `X-Shop-Id`. All three headers are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `X-Shop-Id` or the `shopId` query parameter is present.

X-Country-Codestring

The ISO 3166-1 alpha-2 country code of the shop (e.g. `DE`, `AT`). Automatically normalised to uppercase. **Must be provided together with `X-Shop-Key` and `X-Locale`** as a header-based alternative to `X-Shop-Id`. All three headers are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `X-Shop-Id` or the `shopId` query parameter is present.

X-Localestring

The locale of the shop (e.g. `en_GB`, `de_DE`). Used to validate that the resolved shop's locale matches the requested locale. **Must be provided together with `X-Shop-Key` and `X-Country-Code`** as a header-based alternative to `X-Shop-Id`. All three headers are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `X-Shop-Id` or the `shopId` query parameter is present.

Response

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

shopIdinteger

A unique numeric identifier for the country shop.

namestring

The name of the shop.

countrystring

The ISO 3166-1 alpha-2 code of the country in which the shop operates.

customDataobject

Additional data relevant for the current shop.

shopCustomDataobject

Additional data relevant for all shops.

propertiesarray<object>

Additional data relevant for the shop.

keystringrequired

The unique identifier of the property.

valuestringrequired

The value of the property.

json
{
  "shopId": 0,
  "name": "string",
  "country": "string",
  "customData": {},
  "shopCustomData": {},
  "properties": [
    {
      "key": "string",
      "value": "string"
    }
  ]
}

Need more? See the SCAYLE Storefront guide for connection setup and behaviour shared by every action.

Was this page helpful?