Salla icon

Salla

Execute Salla Merchant API operations through the unified Actions backend.

Actions150

Products → Create Product Option

AI-generated

Summary

Create a new product option attached to a specified product in Salla, configuring its input type, display properties, visibility conditions, and possible values.

Inputs

  • Sub-resource (required) — Select a sub-resource within the chosen category (must be 'options' for this operation).
  • Return Mode — Choose how the node should emit responses: 'Data Only' returns only the Salla data payload; 'Full Envelope' returns the full backend response including status and raw data.
  • Product (required) — The product ID to which this option will be attached (from the Salla products list).
  • Option Name (required) — The display name for the option, such as "Size" or "Color". This is shown to customers.
  • Option Type (required) — The input type of the option (radio, checkbox, textarea, date, file, color picker, etc.), controlling how customers select or enter values.
  • Required — If enabled, customers must select a value for this option before adding the product to their cart.
  • Additional Fields — Additional configurable fields including display type (text, image, color), visibility rules (always visible or conditional on other option values), sort order, advanced variant flag, order time association, and option values. Option values can be defined individually with names, extra price, display value, and default status, or provided as a raw JSON array.

Output shape

a single response per input item containing either the created product option data or the full backend response envelope as configured by the Return Mode input.

Responses are emitted as an array matching the input items count. When 'Data Only' mode is selected, output contains only the payload data from Salla. In 'Full Envelope' mode, output includes status, raw response, and error info if any.

Examples

Example 1: Create a color option with three values for a specific product

Set Sub-resource to 'options', specify the target product ID, option name as 'Color', option type as 'radio', mark it as required, set display type to 'color', and define values such as Red (#FF0000), Green (#00FF00), and Blue (#0000FF), optionally marking one as default.

Discussion