OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Complete API → Update Master Option Stock

AI-generated

Summary

Credits or debits stock for one or more master option stock configurations in OnPrintShop. Supply each configuration ID, the integer quantity to change, and a change type; optionally include a comment.

Inputs

  • Safe Mode — When enabled, blocks mutations in Complete API operations. Defaults to off.
  • Input Mode — Choose repeatable Fields or a JSON Object array for the inputs. Defaults to Fields.
  • Inputs (required) — One or more entries, each with a required Config ID, Stock Quantity, and Change Type: C to credit or D to debit. Comments are optional.
  • Arguments JSON — In JSON Object mode, provide the mutation arguments as JSON; the runtime expects an inputs array of input objects.
  • Partial Response — Choose whether to fail on errors or return partial data. Partial results may include failed rows; reconcile them before further writes.
  • Return Fields Mode — Return all available response fields or select specific fields. Defaults to all.
  • Return Fields — When Custom Selection is chosen, select any of ID, Index, Message, and Result to return.

Output shape

A list of items containing the mutation result.

Each returned result can include index, result, message, and id; the selected Return Fields mode controls which fields are returned. The operation processes inputs as a batch, and GraphQL errors fail the operation unless partial response handling returns partial data.

Examples

Example 1: Credit stock for a configuration

Add an Inputs row with Change Type C, the Config ID, and the Stock Quantity; optionally add a comment such as Restocked.

Links

Discussion