younifyd
Menu

Get products for given filters

Get products for given filters

GET/products

Use it in a workflow

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

Request

Query parameters

witharray<string>

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

filters[id]array<integer>

Comma-separated list of IDs of entities that should be used for filtering.

filters[minId]integer

Minimum (inclusive) ID of entities that should be returned.

filters[maxId]integer

Maximum (inclusive) ID of entities that should be returned.

filters[minCreatedAt]string (date-time)

Minimum (inclusive) creation date of entities that should be returned.

filters[maxCreatedAt]string (date-time)

Maximum (inclusive) creation date of entities that should be returned.

filters[minUpdatedAt]string (date-time)

Minimum (inclusive) modification date of entities that should be returned.

filters[maxUpdatedAt]string (date-time)

Maximum (inclusive) modification date of entities that should be returned.

filters[minLastContentUpdatedAt]string (date-time)

Minimum (inclusive) content update timestamp of products that should be returned.

filters[maxLastContentUpdatedAt]string (date-time)

Maximum (inclusive) content update timestamp of products that should be returned.

filters[variantId]array<integer>

Comma-separated list of variant IDs that should be used for filtering.

filters[variantReferenceKey]array<string>

Comma-separated list of product variant reference keys that should be used for filtering.

filters[variantEan]array<string>

Comma-separated list of variant EANs that should be used for filtering.

filters[attributes]object

This query parameter allows you to filter for entities with the given simple attributes. The array/object key must be the attribute name and the value can be a comma-separated list of attribute values. The filter logic will combine all attributes of the same group into an `OR` filter and all attribute groups into an `AND` filter.

limitinteger

Maximum number of entities in the result. When fetching entities with children, the limit always applies to the amount of parent entities. **WARNING:** While the maximum allowed value is **1000**, using this limit in combination with the `with` parameter (to load detailed nested resources like `variants.attributes`) can lead to performance issues. * If you use the maximum limit, do not use the `with` parameter. * When loading nested resources via `with`, use the default limit of **100** or a value significantly lower than 1000 to ensure API stability.

Default 100

filters[masterReferenceKey]array<string>

Comma-separated list of master reference keys that should be used for filtering.

filters[isComposite]boolean

Pass true to get only composite products, pass false to get the non-composite products.

filters[state]string

Pass one of the available product states "live", "draft", "problem", "new", "inApproval", "blocked".

One oflivedraftproblemnewinApprovalblockedDefault "live"

sortstring

Sort products by the provided field.

One ofidcreatedAtlastContentUpdatedAtDefault "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 {{getProductsForGivenFilters.response.data.<field>}}.

entitiesarray<object>
idinteger

The ID of the product created by SCAYLE.

createdAtstring (date-time)

Product creation timestamp in UTC.

updatedAtstring (date-time)

Product last update timestamp in UTC.

lastContentUpdatedAtstring (date-time)

Timestamp of the latest content-related product update in UTC.

problemsarray<string>

If product is in problem state, the reasons are listed here.

referenceKeystringrequired

A key that uniquely identifies the product (e.g., a shirt in a specific color) within the tenant's ecosystem.

nameobjectrequired

The localized product name. At least the base language that is configured in SCAYLE is mandatory.

masterobjectrequired3 fields

A master product is used for grouping a collection of products (e.g., all colors of a shirt). It defines categories and attributes, which are shared between all products belonging to the same master.

statestringrequired

The state of the product determined by the state evaluation process. The only possible values to request are `live`, `draft` and `blocked`. The `problem` state can only be the result of the state evaluation process. If product is in problem state, the reasons are listed in read-only 'problems' field. The `new` and `inApproval` states can be set in the SCAYLE Panel. If a product belongs to multiple merchants, the state is returned based on the hierarchical order live, inApproval, problem, blocked, draft

One oflivedraftproblemnewinApprovalblockedDefault "live"

attributesarray<object>5 fields

A list of attributes attached to the product.

variantsarray<object>10 fields

A list of product variants attached to the product.

imagesarray<object>10 fields

A list of product images attached to the product.

videosarray<object>9 fields

A list of product videos attached to the product.

productSortingsarray<object>6 fields

A list of product sortings.

customDataany
sellableTimeframesarray<object>5 fields

A list of product sellable timeframes.

isCompositeboolean

Indicates whether the product is composite.

merchantReferenceKeysarray<string>

A list of merchant reference keys the product belongs to.

similarProductsarray<object>3 fields

A list of similar products.

productLocksobject2 fields
cursorobject
nextstring

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

json
{
  "entities": [
    {
      "referenceKey": "M0001-black",
      "name": {
        "de_DE": "Blaues Hemd",
        "en_GB": "Blue Shirt"
      },
      "master": {
        "referenceKey": "M0001",
        "categories": {
          "paths": [
            [
              [
                "Fashion",
                "Men",
                "Shirts"
              ]
            ]
          ],
          "isLocked": false
        },
        "attributes": [
          {
            "name": "string",
            "type": "simple",
            "value": null,
            "isLocked": false,
            "shopCountrySpecific": [
              null
            ]
          }
        ]
      },
      "state": "live",
      "id": 0,
      "createdAt": "2025-01-01T00:00:00Z",
      "updatedAt": "2025-01-01T00:00:00Z",
      "lastContentUpdatedAt": "2025-01-01T00:00:00Z",
      "problems": [
        "system: product has no image"
      ],
      "attributes": [
        {
          "name": "string",
          "type": "simple",
          "value": null,
          "isLocked": false,
          "shopCountrySpecific": [
            {
              "shopKey": null,
              "countryCode": null,
              "value": null,
              "isLocked": null
            }
          ]
        }
      ],
      "variants": [
        {
          "referenceKey": "M0001-black-M",
          "id": 0,
          "merchantReferenceKeys": [
            "string"
          ],
          "ean": "0000007619991",
          "attributes": [
            {
              "name": "size",
              "type": "simple",
              "value": "M",
              "isLocked": false
            }
          ],
          "prices": [
            {
              "price": null,
              "tax": null,
              "countryCode": null,
              "currencyCode": null,
              "key": null,
              "oldPrice": null,
              "recommendedRetailPrice": null,
              "buyingPrice": null,
              "groupKey": null,
              "promotionKey": null,
              "unitPrice": null,
              "validFrom": null
            }
          ],
          "stocks": [
            {
              "quantity": null,
              "warehouseReferenceKey": null,
              "changedAt": null,
              "sellableWithoutStock": null,
              "merchantReferenceKey": null,
              "expectedAvailabilityAt": null
            }
          ],
          "customData": null,
          "isComposite": false,
          "relatedVariants": null
        }
      ],
      "images": [
        {
          "id": 0,
          "referenceKey": "my_original_name.jpg",
          "name": "image.jpg",
          "mimeType": "string",
          "position": 3,
          "shopCountrySpecific": [
            {
              "shopKey": null,
              "countryCode": null,
              "position": null
            }
          ],
          "source": {
            "url": "https://example.com/image.png",
            "attachment": "U3dhZ2dlciByb2Nrcw=="
          },
          "assetUrl": "images/my_image.jpg",
          "attributes": [
            {
              "name": "view",
              "type": "simple",
              "value": "front",
              "isLocked": true
            }
          ],
          "customData": null
        }
      ]
    }
  ],
  "cursor": {
    "next": "MQ=="
  }
}

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