Menu
productTailoring
A product's store-specific tailoring (name, description, slug, attributes overridden per store).
Use it in a workflow
- Add a step and choose the Commercetools connector.
- Pick the productTailoring action (under Product).
- Fill in the fields below, then reference the result from later steps as
{{producttailoring.response.data}}.
Query
This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.
query ProductTailoring($id: String, $key: String, $productId: String, $productKey: String, $storeKey: KeyReferenceInput) {
productTailoring(
id: $id
key: $key
productId: $productId
productKey: $productKey
storeKey: $storeKey
) {
key
productRef {
typeId
id
}
product {
id
key
version
productTypeRef {
typeId
id
}
productType {
key
name
description
id
version
createdAt
lastModifiedAt
createdBy
lastModifiedBy
}
masterData {
current
staged
published
hasStagedChanges
}
skus
createdAt
lastModifiedAt
stateRef {
typeId
id
}
state {
id
version
key
type
roles
nameAllLocales
descriptionAllLocales
builtIn
transitionsRef
transitions
initial
createdAt
lastModifiedAt
createdBy
lastModifiedBy
}
priceMode
taxCategoryRef {
typeId
id
}
taxCategory {
name
description
rates
key
id
version
createdAt
lastModifiedAt
createdBy
lastModifiedBy
}
reviewRatingStatistics {
averageRating
highestRating
lowestRating
count
ratingsDistribution
}
createdBy {
isPlatformClient
clientId
externalUserId
anonymousId
customerRef
userRef
associateRef
attributedTo
}
lastModifiedBy {
isPlatformClient
clientId
externalUserId
anonymousId
customerRef
userRef
associateRef
attributedTo
}
}
storeRef {
typeId
key
}
store {
id
version
key
nameAllLocales {
locale
value
}
languages
countries {
code
}
productSelections {
productSelectionRef
productSelection
active
}
distributionChannelsRef {
typeId
id
}
distributionChannels {
id
version
key
roles
nameAllLocales
descriptionAllLocales
address
geoLocation
createdAt
lastModifiedAt
reviewRatingStatistics
custom
createdBy
lastModifiedBy
}
supplyChannelsRef {
typeId
id
}
supplyChannels {
id
version
key
roles
nameAllLocales
descriptionAllLocales
address
geoLocation
createdAt
lastModifiedAt
reviewRatingStatistics
custom
createdBy
lastModifiedBy
}
storefront {
checkoutUrlTemplate
orderUrlTemplate
termsOfServiceUrl
privacyPolicyUrl
refundPolicyUrl
shippingPolicyUrl
cookiePolicyUrl
imprintUrl
faqUrl
contactUrl
}
createdAt
lastModifiedAt
custom {
typeRef
type
}
createdBy {
isPlatformClient
clientId
externalUserId
anonymousId
customerRef
userRef
associateRef
attributedTo
}
lastModifiedBy {
isPlatformClient
clientId
externalUserId
anonymousId
customerRef
userRef
associateRef
attributedTo
}
}
current {
nameAllLocales {
locale
value
}
descriptionAllLocales {
locale
value
}
slugAllLocales {
locale
value
}
metaTitleAllLocales {
locale
value
}
metaDescriptionAllLocales {
locale
value
}
metaKeywordsAllLocales {
locale
value
}
variants {
id
images
assets
attributesRaw
}
attributesRaw {
attributeDefinition
name
value
attributesRaw
referencedResource
referencedResourceSet
}
}
staged {
nameAllLocales {
locale
value
}
descriptionAllLocales {
locale
value
}
slugAllLocales {
locale
value
}
metaTitleAllLocales {
locale
value
}
metaDescriptionAllLocales {
locale
value
}
metaKeywordsAllLocales {
locale
value
}
variants {
id
images
assets
attributesRaw
}
attributesRaw {
attributeDefinition
name
value
attributesRaw
referencedResource
referencedResourceSet
}
}
published
hasStagedChanges
id
version
createdAt
lastModifiedAt
createdBy {
isPlatformClient
clientId
externalUserId
anonymousId
customerRef {
typeId
id
}
userRef {
typeId
id
}
associateRef {
typeId
id
}
attributedTo {
clientId
source
userRef
}
}
lastModifiedBy {
isPlatformClient
clientId
externalUserId
anonymousId
customerRef {
typeId
id
}
userRef {
typeId
id
}
associateRef {
typeId
id
}
attributedTo {
clientId
source
userRef
}
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"id": "string",
"key": "string",
"productId": "string",
"productKey": "string",
"storeKey": "string"
}
Response
Read the result with {{producttailoring.response.data.data.productTailoring}}. If the API returns errors, the step fails and they are at {{producttailoring.response.data.errors}}.
Need more? See the Commercetools guide for connection setup and behaviour shared by every action.
Was this page helpful?