Menu
Create Product Option
Create or bind a product option.
PUT
/organizations/{organizationId}/products/{productId}/product-options/{id}Use it in a workflow
- Add a step and choose the Salesforce Commerce Cloud connector.
- Pick the Create Product Option action (under Products (Data API)).
- Fill in the fields below, then reference the result from later steps as
{{createProductOption.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"id": "warranty",
"customName": {
"en_US": "Warranty"
},
"defaultProductOptionValue": "5-years",
"description": {
"en_US": "Option Description"
},
"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"
}
},
"name": "Warranty",
"selectedOptionValue": "2-years",
"shared": false,
"sortingMode": "byoptionprice",
"values": [
{
"id": "5-year",
"value": {
"en_US": "5 Year Warranty"
},
"defaultProductOptionValue": true,
"optionPrices": [
{
"currencyMnemonic": "USD",
"value": 1234.56
}
],
"skuExtension": "extension"
}
]
}
Response
Returns 200 with an object. Read it in later steps with {{createProductOption.response.data.<field>}}.
{
"id": "warranty",
"customName": {
"en_US": "Warranty"
},
"defaultProductOptionValue": "5-years",
"description": {
"en_US": "Option Description"
},
"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"
}
},
"name": "Warranty",
"selectedOptionValue": "2-years",
"shared": false,
"sortingMode": "byoptionprice",
"values": [
{
"id": "5-year",
"value": {
"en_US": "5 Year Warranty"
},
"defaultProductOptionValue": true,
"optionPrices": [
{
"currencyMnemonic": "USD",
"value": 1234.56
}
],
"skuExtension": "extension"
}
]
}
Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.
Was this page helpful?