OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Master Option Stock → Add Stock Config (Staging)

AI-generated

Summary

Create master-option stock configurations in OnPrintShop by sending the supplied input object to the staging GraphQL mutation. Check the option and attribute combinations against the combination matrix first; invalid pairs fail.

Inputs

  • Input (JSON) (required) — An AddMasterOptionStockConfigInput object. The example includes stock_type and a combinations array with option_ids, attribute_ids, and stock; provide values matching valid combinations.
  • Safe Mode — A boolean that blocks mutations in the Complete API. This operation uses the standard GraphQL path, so Safe Mode does not block this mutation.

Output shape

A single object containing the mutation result.

The response fields are index, result, message, and id. Invalid JSON or GraphQL errors cause the operation to fail.

Links

Discussion