younifyd
Menu

Get smart sorting keys

Get smart sorting keys

GET/smart-sorting-keys

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Get smart sorting keys action (under SmartSortingKeys).
  3. Fill in the fields below, then reference the result from later steps as {{getSmartSortingKeys.response.data}}.

Request

Query parameters

filters[isCustom]boolean

Pass true to return only custom smart sorting keys (CSSKs). Pass false to return only system smart sorting keys. Omit to return both.

filters[search]string

Case-insensitive match if `key` or `description` contains this value. Combined with other filters using AND.

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"

cursorstring

Valid cursor used for pagination.

Response

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

entitiesarray<object>
keystringrequired

Unique identifier of the smart sorting key.

namestringrequired

Name of the smart sorting key.

descriptionstring

Optional description of the smart sorting key. Omitted in responses when null.

isCustomboolean

Whether this is a custom smart sorting key. Always false for system keys.

weightsobjectrequired24 fields

Building-block weights on a 1-5 scale. Each value is an integer from 1 to 5.

cursorobject
nextstring

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

json
{
  "entities": [
    {
      "key": "summer-priority",
      "name": "Summer Priority",
      "weights": {
        "stock": 5,
        "sales": 3,
        "salesInv": 1,
        "variantAvailabilityAdjInv": 1
      },
      "description": "summer priority CSSK",
      "isCustom": true
    }
  ],
  "cursor": {
    "next": "MQ=="
  }
}

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