Actions42
- Attribute Actions
- Attribute Price Actions
- Formula Actions
- Master Option Actions
- Option Group Actions
- Range Actions
- Rule Actions
- Stock Actions
- Tag Actions
- Complete API Actions
- Get Custom Formula
- Get Master Option Combination Matrix
- Get Master Option Range
- Get Master Option Stock Configs
- Get Master Option Stock History
- Get Master Option Tag
- Get Option Group
- Product Master Options
- Add Master Option Stock Config
- Delete Master Option Stock Config
- Set Assign Options
- Set Custom Formula
- Set Master Option
- Set Master Option Attribute Price
- Set Master Option Attributes
- Set Master Option Range
- Set Master Option Stock Settings
- Set Master Option Tag
- Set Option Group
- Update Master Option Stock
Stock → Set Settings
AI-generatedSummary
Set master option stock settings in OnPrintShop by providing an array of stock setting objects either via form fields or as a JSON array.
Inputs
- Input Mode (required) — Choose whether to input stock settings as individual form fields or as a JSON object array.
- Stock Settings (required) — Collection of stock settings, each including Master Option ID (option_id), Allow Out-of-Stock Orders (allow_order_out_of_stock), and Notify Quantity (notify_quantity). This is used when Input Mode is 'Form Fields'.
- Stock Settings JSON (required) — A JSON array of SetMasterOptionStockSettingsInput objects for batch updating stock settings. Required when Input Mode is 'JSON Object Array'.
Output shape
a list of result objects for each stock setting update operation
Each result object includes index, result status, message, and id. If multiple stock settings are provided, each results in one item in the output list.