younifyd
Menu

Get a product

Get a product

GET/v1/products/{productId}

Use it in a workflow

  1. Add a step and choose the SCAYLE Storefront connector.
  2. Pick the Get a product action (under products).
  3. Fill in the fields below, then reference the result from later steps as {{getAProduct.response.data}}.

Request

Path parameters

productIdintegerrequired

Get product with specified `productId`.

Query parameters

shopIdinteger

The numeric ID of the shop to resolve the request against. Every shop in a multi-shop setup has a unique `shopId`. **Priority:** `shopId` (or the `X-Shop-Id` header) takes precedence over all other shop identification parameters. When `shopId` is present, `shopKey`, `countryCode`, and `locale` are ignored entirely. **Alternative:** If neither `shopId` nor `X-Shop-Id` is provided, you must supply all three of `shopKey`, `countryCode`, and `locale` together to identify the shop.

shopKeystring

The unique string key identifying the shop (e.g. `sa`, `de`). **Must be provided together with `countryCode` and `locale`** as a query-parameter alternative to `shopId`. All three parameters are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `shopId` or the `X-Shop-Id` header is present.

countryCodestring

The ISO 3166-1 alpha-2 country code of the shop (e.g. `DE`, `AT`). Automatically normalised to uppercase. **Must be provided together with `shopKey` and `locale`** as a query-parameter alternative to `shopId`. All three parameters are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `shopId` or the `X-Shop-Id` header is present.

localestring

The locale of the shop (e.g. `en_GB`, `de_DE`). Used to validate that the resolved shop's locale matches the requested locale. **Must be provided together with `shopKey` and `countryCode`** as a query-parameter alternative to `shopId`. All three parameters are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `shopId` or the `X-Shop-Id` header is present.

campaignKeystring

Adjust prices based on the specified `campaignKey`. If provided campaign doesn't exist, the default price is returned. Please note, that campaign prices are stored in advance and available earlier than the campaign starts.

Default null

witharray<string>

Include related product resources, for example, the attributes of a product can be included using `with=attributes` or `with=attributes:key(plusSize)`. Specific keys can be excluded instead of selected, e.g., `with=attributes:exclude(plusSize)`. Nested includes can be included with `with=variants.attributes`. Multiple includes are separated by commas `with=siblings,variants`. Include | Description ------- | ----------- `categories` | Include categories related to the product. `categories:hidden(true)` | Also include hidden categories. `categories.shopLevelCustomData` | Include shop-level custom data of categories. `categories.shopLevelCustomData:key()` | Include shop-level custom data of categories with empty object. `categories.shopLevelCustomData:key(keyA\|...)` | Include shop-level custom data of categories with only specified keys. `categories.countryLevelCustomData` | Include country-level custom data of categories. `categories.countryLevelCustomData:key()` | Include country-level custom data of categories with empty object. `categories.countryLevelCustomData:key(keyA\|...)` | Include country-level custom data of categories with only specified keys. `categories.categoryProperties:name(keyA\|...)` | Include only specified category properties. `masterCategories` | Include master categories of the product. `baseCategories` | Include base categories of the product. (deprecated) `searchCategoryIds` | Include the list of IDs of all categories associated with the product, both hidden and visible. `attributes` | Include all product attributes. `attributes:key(keyA\|...)` | Include only attributes with specified keys. `attributes:exclude(keyA\|...)` | Include all attributes except specified keys. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `attributes:type(typeA\|...)` | Include only attributes with specified types. `advancedAttributes` | Include all product advanced attributes. `advancedAttributes:key(keyA\|...)` | Include only advanced attributes with specified keys. `advancedAttributes:exclude(keyA\|...)` | Include all advanced attributes except specified keys. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `advancedAttributes:type(typeA\|...)` | Include only advanced attributes with specified types. `definingAttributes` | Include defining attributes of the product. `customData:key()` | Include custom data of the product with empty object. `customData:key(keyA\|...)` | Include custom data of the product with only specified keys. `priceRange` | Include information about the price range of the product. `priceRange.customData` | Include custom data of the product price range (`min`/`max` prices). `priceRange.customData:key()` | Include custom data of the product price range with empty object. `priceRange.customData:key(keyA\|...)` | Include custom data of the product price range with only specified keys. `lowestPriorPrice` | Include the lowest prior price of the product. `reductionRange` | Include information about the reduction range of the price. `reductionRange.customData` | Include custom data of the product reduction range (`min`/`max` prices). `reductionRange.customData:key()` | Include custom data of the product reduction range with empty object. `reductionRange.customData:key(keyA\|...)` | Include custom data of the product reduction range with only specified keys. `sellableTimeframe` | Include the sellable timeframe of the product. `images.attributes` | Include attributes of product images. `images.attributes:key(keyA\|...)` | Include only image attributes with specified keys. `images.attributes:exclude(keyA\|...)` | Include all image attributes except specified keys. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `images.attributes:type(typeA\|...)` | Include only image attributes with specified types. `images.customData:key()` | Include custom data of product images with empty object. `images.customData:key(keyA\|...)` | Include custom data of product images with only specified keys. `videos` | Include videos of the product. `videos.attributes` | Include attributes of product videos. `videos.attributes:key(keyA\|...)` | Include only video attributes with specified keys. `videos.attributes:exclude(keyA\|...)` | Include all video attributes except specified keys. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `videos.attributes:type(typeA\|...)` | Include only video attributes with specified types. `videos.customData:key()` | Include custom data of product videos with empty object. `videos.customData:key(keyA\|...)` | Include custom data of product videos with only specified keys. `variants` | Include product variants. `variants.attributes` | Include attributes of product variants. `variants.attributes:key(keyA\|...)` | Include only variant attributes with specified keys. `variants.attributes:exclude(keyA\|...)` | Include all variant attributes except specified keys. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `variants.attributes:type(typeA\|...)` | Include only variant attributes with specified types. `variants.advancedAttributes` | Include advanced attributes of product variants. `variants.advancedAttributes:key(keyA\|...)` | Include only variant advanced attributes with specified keys. `variants.advancedAttributes:exclude(keyA\|...)` | Include all variant advanced attributes except specified keys. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `variants.advancedAttributes:type(typeA\|...)` | Include only variant advanced attributes with specified types. `variants.lowestPriorPrice` | Include the lowest prior price of product variants. `variants.price.customData` | Include custom data of product variant prices. `variants.price.customData:key()` | Include custom data of product variant prices with empty object. `variants.price.customData:key(keyA\|...)` | Include custom data of product variant prices with only specified keys. `variants.customData:key()` | Include custom data of product variants with empty object. `variants.customData:key(keyA\|...)` | Include custom data of product variants with only specified keys. `variants.merchant` | Include merchant information for product variants. `variants.merchant.customData:key()` | Include custom data of product variant merchants with empty object. `variants.merchant.customData:key(keyA\|...)` | Include custom data of product variant merchants with only specified keys. `variants.relatedVariants` | Include the resolved components of a composite product variant. Always an array once requested, even if the variant isn't composite. Not supported on sibling variants. `variants.relatedVariants.attributes` | Include attributes of related-variant components. `variants.relatedVariants.attributes:key(keyA\|...)` | Include only related-variant component attributes with specified keys. `variants.relatedVariants.attributes:exclude(keyA\|...)` | Include all related-variant component attributes except specified keys. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `variants.relatedVariants.attributes:type(typeA\|...)` | Include only related-variant component attributes with specified types. `variants.relatedVariants.advancedAttributes` | Include advanced attributes of related-variant components. `variants.relatedVariants.advancedAttributes:key(keyA\|...)` | Include only related-variant component advanced attributes with specified keys. `variants.relatedVariants.advancedAttributes:exclude(keyA\|...)` | Include all related-variant component advanced attributes except specified keys. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `variants.relatedVariants.advancedAttributes:type(typeA\|...)` | Include only related-variant component advanced attributes with specified types. `variants.relatedVariants.lowestPriorPrice` | Include the lowest prior price of related-variant components. `variants.relatedVariants.customData:key()` | Include custom data of related-variant components with empty object. `variants.relatedVariants.customData:key(keyA\|...)` | Include custom data of related-variant components with only specified keys. `variants.relatedVariants.price.customData` | Include custom data of related-variant component prices. `variants.relatedVariants.price.customData:key()` | Include custom data of related-variant component prices with empty object. `variants.relatedVariants.price.customData:key(keyA\|...)` | Include custom data of related-variant component prices with only specified keys. `siblings` | Include sibling products. `siblings.categories` | Include categories of sibling products. `siblings.categories:hidden(true)` | Also include hidden categories of sibling products. `siblings.categories.shopLevelCustomData` | Include shop-level custom data of sibling product categories. `siblings.categories.shopLevelCustomData:key()` | Include shop-level custom data of sibling product categories with empty object. `siblings.categories.shopLevelCustomData:key(keyA\|...)` | Include shop-level custom data of sibling product categories with only specified keys. `siblings.categories.countryLevelCustomData` | Include country-level custom data of sibling product categories. `siblings.categories.countryLevelCustomData:key()` | Include country-level custom data of sibling product categories with empty object. `siblings.categories.countryLevelCustomData:key(keyA\|...)` | Include country-level custom data of sibling product categories with only specified keys. `siblings.categories.categoryProperties` | Include all category properties of sibling products. `siblings.categories.categoryProperties:name(keyA\|...)` | Include only specified category properties of sibling products. `siblings.masterCategories` | Include master categories of sibling products. `siblings.baseCategories` | Include base categories of sibling products. (deprecated) `siblings.attributes` | Include all attributes of sibling products. `siblings.attributes:key(keyA\|...)` | Include only sibling product attributes with specified keys. `siblings.attributes:exclude(keyA\|...)` | Include all sibling product attributes except specified keys. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `siblings.attributes:type(typeA\|...)` | Include only sibling product attributes with specified types. `siblings.advancedAttributes` | Include all advanced attributes of sibling products. `siblings.advancedAttributes:key(keyA\|...)` | Include only sibling product advanced attributes with specified keys. `siblings.advancedAttributes:exclude(keyA\|...)` | Include all sibling product advanced attributes except specified keys. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `siblings.advancedAttributes:type(typeA\|...)` | Include only sibling product advanced attributes with specified types. `siblings.definingAttributes` | Include defining attributes of sibling products. `siblings.customData:key()` | Include custom data of sibling products with empty object. `siblings.customData:key(keyA\|...)` | Include custom data of sibling products with only specified keys. `siblings.priceRange` | Include information about the price range of sibling products. `siblings.priceRange.customData` | Include custom data of the sibling product price range (`min`/`max` prices). `siblings.priceRange.customData:key()` | Include custom data of the sibling product price range with empty object. `siblings.priceRange.customData:key(keyA\|...)` | Include custom data of the sibling product price range with only specified keys. `siblings.lowestPriorPrice` | Include the lowest prior price of sibling products. `siblings.reductionRange` | Include information about the reduction range of sibling product prices. `siblings.reductionRange.customData` | Include custom data of the sibling product reduction range (`min`/`max` prices). `siblings.reductionRange.customData:key()` | Include custom data of the sibling product reduction range with empty object. `siblings.reductionRange.customData:key(keyA\|...)` | Include custom data of the sibling product reduction range with only specified keys. `siblings.sellableTimeframe` | Include the sellable timeframe of sibling products. `siblings.images.attributes` | Include attributes of sibling product images. `siblings.images.attributes:key(keyA\|...)` | Include only sibling product image attributes with specified keys. `siblings.images.attributes:exclude(keyA\|...)` | Include all sibling product image attributes except specified keys. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `siblings.images.attributes:type(typeA\|...)` | Include only sibling product image attributes with specified types. `siblings.images.customData:key()` | Include custom data of sibling product images with empty object. `siblings.images.customData:key(keyA\|...)` | Include custom data of sibling product images with only specified keys. `siblings.videos` | Include videos of sibling products. `siblings.videos.attributes` | Include attributes of sibling product videos. `siblings.videos.attributes:key(keyA\|...)` | Include only sibling product video attributes with specified keys. `siblings.videos.attributes:exclude(keyA\|...)` | Include all sibling product video attributes except specified keys. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `siblings.videos.attributes:type(typeA\|...)` | Include only sibling product video attributes with specified types. `siblings.videos.customData:key()` | Include custom data of sibling product videos with empty object. `siblings.videos.customData:key(keyA\|...)` | Include custom data of sibling product videos with only specified keys. `siblings.variants` | Include variants of sibling products. `siblings.variants.attributes` | Include attributes of sibling product variants. `siblings.variants.attributes:key(keyA\|...)` | Include only sibling product variant attributes with specified keys. `siblings.variants.attributes:exclude(keyA\|...)` | Include all sibling product variant attributes except specified keys. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `siblings.variants.attributes:type(typeA\|...)` | Include only sibling product variant attributes with specified types. `siblings.variants.advancedAttributes` | Include advanced attributes of sibling product variants. `siblings.variants.advancedAttributes:key(keyA\|...)` | Include only sibling product variant advanced attributes with specified keys. `siblings.variants.advancedAttributes:exclude(keyA\|...)` | Include all sibling product variant advanced attributes except specified keys. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `siblings.variants.advancedAttributes:type(typeA\|...)` | Include only sibling product variant advanced attributes with specified types. `siblings.variants.lowestPriorPrice` | Include the lowest prior price of sibling product variants. `siblings.variants.price.customData` | Include custom data of sibling product variant prices. `siblings.variants.price.customData:key()` | Include custom data of sibling product variant prices with empty object. `siblings.variants.price.customData:key(keyA\|...)` | Include custom data of sibling product variant prices with only specified keys. `siblings.variants.customData:key()` | Include custom data of sibling product variants with empty object. `siblings.variants.customData:key(keyA\|...)` | Include custom data of sibling product variants with only specified keys. `siblings.variants.merchant` | Include merchant information for sibling product variants. `siblings.variants.merchant.customData:key()` | Include merchant custom data of sibling product variants with empty object. `siblings.variants.merchant.customData:key(keyA\|...)` | Include merchant custom data of sibling product variants with only specified keys.

Default []

pricePromotionKeystring

Adjust variant price based on the specified `pricePromotionKey`. If the variant does not have a matching price promotion, the default price is returned.

Default null

Headers

X-Shop-Idinteger

The numeric ID of the shop to resolve the request against. Every shop in a multi-shop setup has a unique shop ID. **Priority:** `X-Shop-Id` (or the `shopId` query parameter) takes precedence over all other shop identification parameters. When this header is present, `X-Shop-Key`, `X-Country-Code`, and `X-Locale` are ignored entirely. **Alternative:** If neither `X-Shop-Id` nor `shopId` is provided, you must supply all three of `X-Shop-Key`, `X-Country-Code`, and `X-Locale` together to identify the shop.

Default null

X-Shop-Keystring

The unique string key identifying the shop (e.g. `sa`, `de`). **Must be provided together with `X-Country-Code` and `X-Locale`** as a header-based alternative to `X-Shop-Id`. All three headers are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `X-Shop-Id` or the `shopId` query parameter is present.

X-Country-Codestring

The ISO 3166-1 alpha-2 country code of the shop (e.g. `DE`, `AT`). Automatically normalised to uppercase. **Must be provided together with `X-Shop-Key` and `X-Locale`** as a header-based alternative to `X-Shop-Id`. All three headers are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `X-Shop-Id` or the `shopId` query parameter is present.

X-Localestring

The locale of the shop (e.g. `en_GB`, `de_DE`). Used to validate that the resolved shop's locale matches the requested locale. **Must be provided together with `X-Shop-Key` and `X-Country-Code`** as a header-based alternative to `X-Shop-Id`. All three headers are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `X-Shop-Id` or the `shopId` query parameter is present.

Response

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

idinteger

The ID of the product.

advancedAttributesobject

The advanced attributes of the product.

attributesobject

The attributes of the product.

baseCategoriesarray<object>

The base categories of the product.

categoryIdintegerrequired

Unique identifier of the category

categoryNamestringrequired

Name of the category

categoryParentIdintegerrequired

Parent ID of the category

categoryPathstringrequired

Category path as text

masterCategoriesarray<object>

The master categories of the product.

categoryIdintegerrequired

Unique identifier of the category

categoryNamestringrequired

Name of the category

categoryParentIdintegerrequired

Parent ID of the category

categoryPathstringrequired

Category path as text

categoriesarray<array<object>>

The categories of the product, including the inherited parent categories. Each category is represented as an array, starting with the top-level category and ending with the directly assigned category.

definingAttributesarray<object>

The defining attributes of the product.

idstringrequired
keystringrequired
labelstringrequired
imagesarray<object>

The images of the product.

attributesobject
customDataobject
hashstring
namestring
urlstring

Ready-to-use image URL. Empty for products indexed before image URLs were introduced.

videosarray<object>

The videos of the product. Only included when requested via `with=videos` (or `with=siblings.videos` for sibling products).

attributesobject
customDataobject
hashstring
urlstring

Ready-to-use video URL.

customDataobject
isActiveboolean

Identifies whether a product is active or not.

isNewboolean

Identifies whether a product is new or not.

isSoldOutboolean

Indicates whether the product is sold out. `true` when no variant is in stock or sellable without stock.

isCompositeboolean

Identifies whether the product is a composite (a bundle sold as a single SKU made up of other variants). Always present, regardless of `with` parameters.

masterKeystring

Identifies the master product which this product belongs.

firstLiveAtstring

A date string formatted as RFC 3339.

priceRangeobject
maxobjectrequired11 fields
minobjectrequired11 fields
reductionRangeobject
maxobject11 fields
minobject11 fields
lowestPriorPriceobject

Information about the lowest price in the past 30 days.

withTaxintegerrequired

The lowest price including tax.

relativeDifferenceToPricenumber (float)required

The relative difference from the lowest prior price to the current price. If the value is positive, it means that the current price is higher than the lowest prior price. If the value is negative, it means that the current price is lower than the lowest prior price.

referenceKeystring

The reference key of the product.

searchCategoryIdsarray<integer>

The search category IDs of the product.

siblingsarray<object>

The siblings of the product.

variantsarray<object>
idintegerrequired

The variant ID.

isCompositeboolean

Identifies whether the variant is a composite (a bundle sold as a single SKU made up of other variants). Always present, regardless of `with` parameters.

advancedAttributesobject

The variant advanced attributes.

appliedPricePromotionKeystring

The applied price promotion key.

attributesobject

The variant attributes.

lowestPriorPriceobject2 fields

Information about the lowest price in the past 30 days.

priceobjectrequired11 fields
referenceKeystringrequired

The variant reference key.

firstLiveAtstringrequired

A date string formatted as RFC 3339.

stockobjectrequired5 fields

The stock information.

customDataobjectrequired
merchantobject5 fields

The merchant information.

relatedVariantsarray<object>16 fields

The resolved components of a composite variant. Only present when requested via `with=relatedVariants` (or `variants.relatedVariants`, etc., depending on the endpoint). Once requested, this is always an array - an empty one if the variant isn't composite or has no components, never omitted. Each raw component reference maps to its own entry, in order. Components don't carry their own `relatedVariants` or `merchant`: recursion is capped at one level, and components are never merchant-enriched.

createdAtstringrequired

A date string formatted as RFC 3339.

updatedAtstringrequired

A date string formatted as RFC 3339.

createdAtstring

A date string formatted as RFC 3339.

updatedAtstring

A date string formatted as RFC 3339.

indexedAtstring

A date string formatted as RFC 3339.

SellableTimeframeobject

A Sellable Timeframe of the product

sellableFromstringrequired

A date string formatted as RFC 3339.

sellableTostringrequired

A date string formatted as RFC 3339.

json
{
  "id": 0,
  "images": [
    {
      "attributes": {},
      "customData": {},
      "hash": "string",
      "name": "string",
      "url": "string"
    }
  ],
  "customData": {},
  "isActive": false,
  "isNew": false,
  "isSoldOut": false,
  "masterKey": "480306626-1",
  "firstLiveAt": "2023-01-26T09:30:15Z",
  "referenceKey": "abc123",
  "createdAt": "2023-01-26T09:30:15Z",
  "updatedAt": "2023-01-26T09:30:15Z",
  "indexedAt": "2023-01-26T09:30:15Z"
}

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

Was this page helpful?