Menu
Search Product Variations
Search product variations using complex queries and filters.
POST
/organizations/{organizationId}/products/{productId}/variant-searchUse it in a workflow
- Add a step and choose the Salesforce Commerce Cloud connector.
- Pick the Search Product Variations action (under Products (Data API)).
- Fill in the fields below, then reference the result from later steps as
{{searchProductVariations.response.data}}.
Request
Path parameters
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{searchProductVariations.response.data.<field>}}.
{
"hits": [
{
"productId": "apple-ipod-classic",
"ats": 10,
"defaultProductVariation": true,
"image": {
"path": "/images/apple-ipod-classic.jpg",
"absUrl": "https://www.example-image.com/images/apple-ipod-classic.jpg",
"alt": {
"en_US": "iPod"
},
"disBaseUrl": "https://www.dis-base-url/images/apple-ipod-clasic.jpg",
"title": {
"en_US": "iPod"
}
},
"inStock": true,
"online": true,
"orderable": true,
"price": 29.99,
"priceCurrency": "USD",
"searchable": {
"Site1": true
},
"variationAttributes": [
{
"attributeDefinitionId": "color",
"attributeDefinitionName": {
"en_US": "Color"
},
"defaultValue": "black",
"id": "color",
"name": {
"en_US": "Color"
},
"shared": false,
"slicing": true,
"values": [
{
"value": null,
"description": null,
"image": null,
"imageSwatch": null,
"name": null,
"orderable": null,
"position": null
}
],
"variationAttributeType": "string"
}
],
"variationValues": {
"color": "black"
}
}
]
}
Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.
Was this page helpful?