Menu
Get a product
Get a product
/v1/products/{productId}Use it in a workflow
- Add a step and choose the SCAYLE Storefront connector.
- Pick the Get a product action (under products).
- Fill in the fields below, then reference the result from later steps as
{{getAProduct.response.data}}.
Request
Path parameters
productIdintegerrequiredGet product with specified `productId`.
Query parameters
shopIdintegerThe 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.
shopKeystringThe 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.
countryCodestringThe 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.
localestringThe 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.
campaignKeystringAdjust 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 []
pricePromotionKeystringAdjust 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-IdintegerThe 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-KeystringThe 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-CodestringThe 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-LocalestringThe 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>}}.
idintegerThe ID of the product.
advancedAttributesobjectThe advanced attributes of the product.
attributesobjectThe attributes of the product.
baseCategoriesarray<object>The base categories of the product.
categoryIdintegerrequiredUnique identifier of the category
categoryNamestringrequiredName of the category
categoryParentIdintegerrequiredParent ID of the category
categoryPathstringrequiredCategory path as text
masterCategoriesarray<object>The master categories of the product.
categoryIdintegerrequiredUnique identifier of the category
categoryNamestringrequiredName of the category
categoryParentIdintegerrequiredParent ID of the category
categoryPathstringrequiredCategory 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.
idstringrequiredkeystringrequiredlabelstringrequiredimagesarray<object>The images of the product.
attributesobjectcustomDataobjecthashstringnamestringurlstringReady-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).
attributesobjectcustomDataobjecthashstringurlstringReady-to-use video URL.
customDataobjectisActivebooleanIdentifies whether a product is active or not.
isNewbooleanIdentifies whether a product is new or not.
isSoldOutbooleanIndicates whether the product is sold out. `true` when no variant is in stock or sellable without stock.
isCompositebooleanIdentifies whether the product is a composite (a bundle sold as a single SKU made up of other variants). Always present, regardless of `with` parameters.
masterKeystringIdentifies the master product which this product belongs.
firstLiveAtstringA date string formatted as RFC 3339.
priceRangeobjectmaxobjectrequired11 fieldsminobjectrequired11 fieldsreductionRangeobjectmaxobject11 fieldsminobject11 fieldslowestPriorPriceobjectInformation about the lowest price in the past 30 days.
withTaxintegerrequiredThe lowest price including tax.
relativeDifferenceToPricenumber (float)requiredThe 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.
referenceKeystringThe reference key of the product.
searchCategoryIdsarray<integer>The search category IDs of the product.
siblingsarray<object>The siblings of the product.
variantsarray<object>idintegerrequiredThe variant ID.
isCompositebooleanIdentifies whether the variant is a composite (a bundle sold as a single SKU made up of other variants). Always present, regardless of `with` parameters.
advancedAttributesobjectThe variant advanced attributes.
appliedPricePromotionKeystringThe applied price promotion key.
attributesobjectThe variant attributes.
lowestPriorPriceobject2 fieldsInformation about the lowest price in the past 30 days.
priceobjectrequired11 fieldsreferenceKeystringrequiredThe variant reference key.
firstLiveAtstringrequiredA date string formatted as RFC 3339.
stockobjectrequired5 fieldsThe stock information.
customDataobjectrequiredmerchantobject5 fieldsThe merchant information.
relatedVariantsarray<object>16 fieldsThe 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.
createdAtstringrequiredA date string formatted as RFC 3339.
updatedAtstringrequiredA date string formatted as RFC 3339.
createdAtstringA date string formatted as RFC 3339.
updatedAtstringA date string formatted as RFC 3339.
indexedAtstringA date string formatted as RFC 3339.
SellableTimeframeobjectA Sellable Timeframe of the product
sellableFromstringrequiredA date string formatted as RFC 3339.
sellableTostringrequiredA date string formatted as RFC 3339.
{
"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.