younifyd
Menu

Get shops for given filters

Get shops for given filters

GET/shops

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Get shops for given filters action (under Shops).
  3. Fill in the fields below, then reference the result from later steps as {{getShopsForGivenFilters.response.data}}.

Request

Query parameters

witharray<string>

Comma-separated list of additional properties that should be included in the response.

limitinteger

Maximum number of entities in the result. When fetching entities with children, the limit always applies to the amount of parent entities (max. 1000).

Default 100

sortstring

Sort by the provided column.

One ofidDefault "id"

sortDirstring

Sort ascending or descending

One ofascdescDefault "asc"

filters[priceGroupKey]array<string>

Comma-separated list of price group keys that should be used for filtering.

cursorstring

Valid cursor used for pagination.

Response

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

entitiesarray<object>
idinteger

The ID of the shop created by SCAYLE.

keystringrequired

A key that uniquely identifies the shop within the tenant's ecosystem. Must be **exactly two characters** long.

namestringrequired

Full name of the shop.

logoUrlstring

The URL of the logo assigned to the shop.

logoSourceobject2 fields

Source where to download the asset from. Either URL or attachment.

activeboolean

Defines if the shop is active.

deletedboolean

Defines if the shop is deleted.

priceGroupKeystring

Key of the price group the shop is assigned to.

shopCategoryTreeIdinteger

Defines shop category tree id. Can be set only on creation.

companyIdinteger

The ID of the company the shop is assigned to.

countriesarray<object>16 fields

The countries assigned to the shop. Can be set only on creation.

customDataany

Arbitrary fields assigned to Shop

smartSortingKeyoneOf

System smart sorting key or custom smart sorting key from the catalog.

customerSegmentOverridesarray<object>4 fields

Customer segment sorting overrides for this shop. Returned when `with=customerSegmentOverrides` is set. On write, omit the property to leave existing assignments unchanged, send an empty array to remove them, or send items to replace the full set. Each `customerSegmentId` and each `priority` must be unique. At most 30 overrides are accepted.

cursorobject
nextstring

The cursor pointing to the next page. If null there is no next page available.

json
{
  "entities": [
    {
      "key": "ms",
      "name": "My shop",
      "id": 1,
      "logoUrl": "images/logo.png",
      "logoSource": {
        "url": "https://example.com/image.png",
        "attachment": "U3dhZ2dlciByb2Nrcw=="
      },
      "active": true,
      "deleted": false,
      "priceGroupKey": "myPriceGroup",
      "shopCategoryTreeId": 1,
      "companyId": 1,
      "countries": [
        {
          "countryCode": "DE",
          "defaultLanguageCode": "de_DE",
          "url": "https://www.example.com",
          "id": 1,
          "shopKey": "ay",
          "supportedLanguageCodes": [
            "de_DE"
          ],
          "active": true,
          "deleted": false,
          "priceGroupKey": "myPriceGroup",
          "currencyCode": "EUR",
          "assortment": {
            "masterCategories": {
              "include": null,
              "exclude": null
            },
            "products": {
              "include": null,
              "exclude": null
            },
            "attributes": [
              null
            ],
            "merchantReferenceKeys": {
              "include": null,
              "exclude": null
            }
          },
          "warehouses": [
            {
              "referenceKey": null,
              "id": null,
              "priority": null,
              "packageGroup": null
            }
          ]
        }
      ],
      "customData": null
    }
  ],
  "cursor": {
    "next": "MQ=="
  }
}

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