OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Master Option Stock → Set Stock Settings (Staging)

AI-generated

Summary

Update out-of-stock ordering and notification settings for one or more master options through OnPrintShop’s staging API. The operation sends the supplied settings array to setMasterOptionStockSettings and returns its mutation result.

Inputs

  • Safe Mode — Optional boolean. The UI describes this as blocking mutations in the Complete API; legacy actions may return fewer nested fields. This operation uses the regular GraphQL mutation handler, so the source does not show Safe Mode blocking this write.
  • Settings Inputs (JSON Array) (required) — A JSON array of SetMasterOptionStockSettingsInput objects, one per option setting update. The default example uses option_id, allow_order_out_of_stock and notify_quantity. Supply the values you want OnPrintShop to apply; confirm out-of-stock behavior before enabling writes.

Output shape

A list of items containing the mutation result.

Each result can include index, result, message and id. The input must parse as a JSON array; a single object or wrapper is rejected. GraphQL errors are raised as node errors, or returned as an { "error": "..." } item when Continue On Fail is enabled.

Examples

Example 1: Set settings for one option

Pass an array with one object, such as { "option_id": 264, "allow_order_out_of_stock": 0, "notify_quantity": 10 }.

Example 2: Set settings for multiple options

Include one input object per option in the array.

Links

Discussion