OnPrintShop Master Options icon

OnPrintShop Master Options

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

Complete API → Update Master Option Stock

AI-generated

Summary

Update master option stock quantities in OnPrintShop by crediting or debiting specified stock configurations.

Inputs

  • Inputs (required) — An array of stock change objects, each specifying the configuration ID, quantity to credit or debit, change type ('C' for credit or 'D' for debit), and optional comments.
  • Input Mode (required) — Choose between entering multiple stock changes via form fields or a JSON object array.
  • Partial Response — Determines whether to fail on any error or return partial data when batch updates contain failures.
  • Return Fields Mode — Choose between returning all response fields or a custom selection of fields such as ID, Index, Message, and Result.

Output shape

a list of result items, each including the index, result status, message, and ID for corresponding stock updates

Accepts multiple stock update inputs; returns batch results reflecting success or failure per stock change entry.

Links

Discussion