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 → Add Configuration
AI-generatedSummary
Creates an OnPrintShop master option stock configuration by submitting its stock type, option ID, default stock, and any multiplier, attribute-stock, or combination-stock rows to the API.
Inputs
- Stock Type (required) — Choose Option Wise, Attribute Wise, or Combination Wise.
- Master Option ID — Master option to configure; defaults to 0.
- Default Stock — Default stock quantity; defaults to 1.
- Use Custom Multipliers — When enabled, sends custom_multiplier as 1; otherwise sends 0.
- Apply to All — Numeric apply-to-all setting; defaults to 0.
- Multipliers — Optional rows of Attribute ID and Multiplier.
- Attribute Stock — Optional rows mapping Attribute ID to Stock.
- Combination Stock — Optional rows with Option IDs, Attribute IDs, and Stock.
Output shape
A list of result items from the addMasterOptionStockConfig mutation.
Each returned item is paired with its input item. The API result includes index, result, message, and id fields; empty optional collections are omitted from the submitted input.