younifyd
Menu

Get shop countries for given filters

Get shop countries for given filters

GET/shops/{shopKey}/countries

Use it in a workflow

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

Request

Path parameters

shopKeystringrequired

The shop key.

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[countryCode]array<string>

Comma-separated list of country codes that should be used for filtering.

filters[supportedLanguageCode]array<string>

Comma-separated list of supported language codes that should be used for filtering.

cursorstring

Valid cursor used for pagination.

Response

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

entitiesarray<object>
idinteger

The ID of the shop country created by SCAYLE.

shopKeystring

A key that uniquely identifies the shop within the tenant's ecosystem. Must be exactly 2 chars long.

countryCodestringrequired

ISO 3166 alpha 2 country code.

defaultLanguageCodestringrequired

ISO-3166 country code and ISO-639 language code.

supportedLanguageCodesarray<string>

List of supported language codes.

urlstringrequired

Url of the shop country.

activeboolean

Defines if the shop country is active.

deletedboolean

Defines if the shop country is deleted.

priceGroupKeystring

Key of the price group the shop country is assigned to.

currencyCodestring

The currency used in the shop country.

assortmentobject4 fields
warehousesarray<object>4 fields

A list of warehouses attached to the shop country.

priceRoundingsarray<object>4 fields

List of price rounding configurations.

smartSortingKeyoneOf

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

customerSegmentOverridesarray<object>4 fields

Customer segment sorting overrides for this shop country. Returned on shop country reads when `with=customerSegmentOverrides` is set, and on shop reads when `with=countries.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.

customDataany

Arbitrary fields assigned to Shop countries

cursorobject
nextstring

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

json
{
  "entities": [
    {
      "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": [
            0
          ],
          "exclude": [
            0
          ]
        },
        "attributes": [
          {
            "name": "string",
            "include": [
              null
            ],
            "exclude": [
              null
            ]
          }
        ],
        "merchantReferenceKeys": {
          "include": [
            "string"
          ],
          "exclude": [
            "string"
          ]
        }
      },
      "warehouses": [
        {
          "referenceKey": "my-warehouse",
          "id": 1,
          "priority": 100,
          "packageGroup": {
            "id": 1
          }
        }
      ]
    }
  ],
  "cursor": {
    "next": "MQ=="
  }
}

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