younifyd
Menu

Create or update a shop category country configuration

Create or update a shop category country configuration

POST/shops/{shopKey}/countries/{countryCode}/categories/{shopCategoryId}

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Create or update a shop category country configuration action (under ShopCategories).
  3. Fill in the fields below, then reference the result from later steps as {{createOrUpdateAShopCategoryCountryConfiguration.response.data}}.

Request

Path parameters

shopKeystringrequired

The shop key.

countryCodestringrequired

The shop country code; use shop country ID instead of country code when a country is ambiguous within a shop.

shopCategoryIdintegerrequired

Shop category ID.

Query parameters

withany

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

Request body

Enter the body as JSON in the step's Body field.

countryCodestring

ISO 3166 alpha 2 country code.

shopCountryIdinteger

Id of Shop Country.

pathstring

String representation of the URL path to the category.

isActiveboolean

Declares whether the shop category is active or not.

isVisibleboolean

Declares whether the shop category is visible in the shop or not.

isExcludedFromSearchboolean

Declares whether the shop category country should be excluded from search.

isIncludedInSearchWhenInvisibleboolean

Declares whether the shop category country should still be included in search results while it is invisible.

Default false

propertiesarray<object>

The properties assigned to the shop category.

keystringrequired

The key of the shop category property.

valuestringrequired

The value of the shop category property.

customDataany
smartSortingKeyoneOf

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

customSortingKeystring

A custom sorting key that will be applied to sort the products displayed in a shopCategoryCountry.

customerSegmentOverridesarray<object>

Customer segment sorting overrides for this shop category country. Each item must include at least one of `smartSortingKey` or `customSortingKey`, and a priority. An item with neither key is rejected. Returned on shop category reads when `with=countries.customerSegmentOverrides` is set, and on shop category country reads 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. Only active customer segments can be attached. Overrides are accepted only when `smartSortingKey` or `customSortingKey` is also present in the same request.

customerSegmentIdstring (uuid)required

GUID of the customer segment.

smartSortingKeyoneOf

System smart sorting key or custom smart sorting key from the catalog. Optional when `customSortingKey` is set. Shop and shop country overrides still require `smartSortingKey`.

customSortingKeystring

Custom sorting key applied for this customer segment. Null when no custom sorting key is set.

priorityintegerrequired

Priority of this override relative to other segment overrides on the same shop category country. Must be unique within the array.

isActiveboolean

Whether the customer segment is currently active. Present on read responses only.

seoany
json
{
  "countryCode": "DE",
  "shopCountryId": 1,
  "path": "/my-shop-category",
  "isActive": true,
  "isVisible": true,
  "isExcludedFromSearch": true,
  "isIncludedInSearchWhenInvisible": false,
  "properties": [
    {
      "key": "myKey",
      "value": "myValue"
    }
  ],
  "customData": null,
  "smartSortingKey": "summer-priority",
  "customSortingKey": "string",
  "customerSegmentOverrides": [
    {
      "customerSegmentId": "4c9a1e2f-0f1b-4c8e-9a3d-7b5e2f1a8c40",
      "priority": 100,
      "smartSortingKey": "scayle:v1:new-arrivals",
      "customSortingKey": "deals",
      "isActive": true
    }
  ]
}

Response

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

countryCodestring

ISO 3166 alpha 2 country code.

shopCountryIdinteger

Id of Shop Country.

pathstring

String representation of the URL path to the category.

isActiveboolean

Declares whether the shop category is active or not.

isVisibleboolean

Declares whether the shop category is visible in the shop or not.

isExcludedFromSearchboolean

Declares whether the shop category country should be excluded from search.

isIncludedInSearchWhenInvisibleboolean

Declares whether the shop category country should still be included in search results while it is invisible.

Default false

propertiesarray<object>

The properties assigned to the shop category.

keystringrequired

The key of the shop category property.

valuestringrequired

The value of the shop category property.

customDataany
smartSortingKeyoneOf

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

customSortingKeystring

A custom sorting key that will be applied to sort the products displayed in a shopCategoryCountry.

customerSegmentOverridesarray<object>

Customer segment sorting overrides for this shop category country. Each item must include at least one of `smartSortingKey` or `customSortingKey`, and a priority. An item with neither key is rejected. Returned on shop category reads when `with=countries.customerSegmentOverrides` is set, and on shop category country reads 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. Only active customer segments can be attached. Overrides are accepted only when `smartSortingKey` or `customSortingKey` is also present in the same request.

customerSegmentIdstring (uuid)required

GUID of the customer segment.

smartSortingKeyoneOf

System smart sorting key or custom smart sorting key from the catalog. Optional when `customSortingKey` is set. Shop and shop country overrides still require `smartSortingKey`.

customSortingKeystring

Custom sorting key applied for this customer segment. Null when no custom sorting key is set.

priorityintegerrequired

Priority of this override relative to other segment overrides on the same shop category country. Must be unique within the array.

isActiveboolean

Whether the customer segment is currently active. Present on read responses only.

seoany
json
{
  "countryCode": "DE",
  "shopCountryId": 1,
  "path": "/my-shop-category",
  "isActive": true,
  "isVisible": true,
  "isExcludedFromSearch": true,
  "isIncludedInSearchWhenInvisible": false,
  "properties": [
    {
      "key": "myKey",
      "value": "myValue"
    }
  ],
  "customData": null,
  "smartSortingKey": "summer-priority",
  "customSortingKey": "string",
  "customerSegmentOverrides": [
    {
      "customerSegmentId": "4c9a1e2f-0f1b-4c8e-9a3d-7b5e2f1a8c40",
      "priority": 100,
      "smartSortingKey": "scayle:v1:new-arrivals",
      "customSortingKey": "deals",
      "isActive": true
    }
  ]
}

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