OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Complete API → Add Master Option Stock Config

AI-generated

Summary

Add a new master option stock configuration in the OnPrintShop system by providing detailed input data describing stock type, combinations, attributes, and stock quantities.

Inputs

  • Input (required) — Object containing AddMasterOptionStockConfigInput fields, including required 'Stock Type' and optional fields such as 'Apply To All', 'Attributes' (with attribute IDs and stocks), 'Combinations' (with option and attribute IDs and stocks), 'Custom Multiplier', 'Default Stock', 'Multipliers', and 'Option ID'.

Output shape

a single object with fields such as index, result, message, and id representing the outcome of adding the master option stock configuration.

If the operation succeeds, the node returns the mutation response object; if errors occur, they are surfaced as node errors. Partial responses and error handling depend on node settings.

Links

Discussion