OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Master Option Stock → Update Stock (Staging)

AI-generated

Summary

Credits or debits master-option stock by sending a batch of stock movements to OnPrintShop. Use config reads first to identify the correct stock combination and its config ID.

Inputs

  • Inputs (JSON Array) (required) — A JSON array of stock movements. Each item should include config_id, stock_quantity, and change_type (C to credit or D to debit); comments can describe the movement. Provide one item per movement.
  • Safe Mode — Boolean toggle shown for this operation. The source does not use it in the stock update handler.

Output shape

A single n8n output containing one item with the mutation response.

The response includes the update result fields index, result, message, and id for each movement. Invalid JSON or a non-array input raises an error; GraphQL errors are also raised.

Links

Discussion