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 → Update Stock
AI-generatedSummary
Credits or debits stock for one or more stock configurations in OnPrintShop. Enter changes as repeatable form rows or as a JSON array of UpdateMasterOptionStockInput objects; each row specifies a configuration ID, quantity, change type, and optional comment.
Inputs
- Input Mode (required) — Choose Form Fields or JSON Object Array.
- Stock Changes (required) — In form mode, add one or more rows. Each row requires a Config ID and Quantity; choose Credit (
C, default) or Debit (D), and optionally provide Comments. - Stock Changes JSON (required) — In JSON mode, provide an array of stock change objects, each with
config_id,stock_quantity,change_type(CorD), and optionalcomments.
Output shape
One or more items from the API mutation result.
The node sends all configured changes together in one
updateMasterOptionStockmutation per incoming workflow item. JSON input must parse as an array of objects; the node returns the mutation result items.
Examples
Example 1: Increase stock for configuration 42 by 10 units
Set Input Mode to Form Fields and add a row with Config ID 42, Quantity 10, Change Type Credit.
Example 2: Decrease stock for multiple configurations in one request
Set Input Mode to JSON Object Array and provide rows such as [{"config_id":42,"stock_quantity":3,"change_type":"D"},{"config_id":43,"stock_quantity":8,"change_type":"C","comments":"Restock"}].