OnPrintShop Master Options icon

OnPrintShop Master Options

Manage OnPrintShop master options, attributes, formulas, rules, ranges, prices, tags, groups, and stock

Stock → Update Stock

AI-generated

Summary

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 (C or D), and optional comments.

Output shape

One or more items from the API mutation result.

The node sends all configured changes together in one updateMasterOptionStock mutation 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"}].

Links

Discussion