docs
  1. Shops
  2. Smart Sorting Keys
  3. Create A Custom Smart Sorting Key

Create a custom smart sorting key

v1.204.1
OpenAPI 3.0.3

This is the specification of the SCAYLE Admin API.

For more information about how to interact with the Admin API, you can read the respective developer guide. The developer guide includes code samples for our PHP SDK, for our Java SDK and for JavaScript and curl.

Authentication is done via X-Access-Token HTTP Header as described here.

Base url should be prefixed with /api/admin/v1.

If a client side timeout is deemed necessary, it is recommended to set it at a minimum of 380 seconds.

Server:https://{tenant-space}.admin.api.scayle.cloud/v1
Client Libraries

SmartSortingKeys

​

Smart Sorting Keys

SmartSortingKeys Operations

Create a custom smart sorting key

​

This endpoint can be used to create a custom smart sorting key. System keys cannot be created through this endpoint.

Body

required
application/json

Responses

  • application/json
  • application/json
  • application/json
Request Example for post/smart-sorting-keys
const smartSortingKey = new SmartSortingKey();
smartSortingKey.key = 'summer-priority';
smartSortingKey.name = 'Summer Priority';
smartSortingKey.description = 'summer priority CSSK';
const weights = new SmartSortingKeyWeights();
weights.stock = 5;
weights.sales = 3;
weights.salesInv = 1;
weights.variantAvailabilityAdjInv = 1;
smartSortingKey.weights = weights;

const createdSmartSortingKey = await adminApi.smartSortingKeys().createSmartSortingKey(smartSortingKey);

{
  "key": "summer-priority",
  "name": "Summer Priority",
  "description": "summer priority CSSK",
  "isCustom": true,
  "weights": {
    "stock": 5,
    "sales": 3,
    "salesInv": 1,
    "variantAvailabilityAdjInv": 1
  }
}

Models

​
​
​

Last updated: December 02, 2026