OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Complete API → Set Product Price

AI-generated

Summary

Create or update product prices in OnPrintShop by sending one or more ProductPriceInput records. Choose field-based entry or provide the input array as JSON; Safe Mode blocks this mutation when enabled.

Inputs

  • Safe Mode — Defaults to off. When enabled, blocks mutations in the Complete API.
  • Input Mode — Choose Fields to build the input records in the node, or JSON Object to supply them directly.
  • Inputs (required) — In Fields mode, add one or more records. Available optional fields are Corporate ID, Delete, Price, Price Defining Method, Product Price ID, Products ID, Qty, Qty To, Size ID, User Type ID, Vendor Price, and Visible.
  • Arguments JSON — In JSON Object mode, provide a JSON array of ProductPriceInput objects. Use an array even for one price; bare objects and wrapper inputs are rejected.
  • Partial Response — Choose Fail on Errors (default) or Return Partial Data. Partial results can include failures, so reconcile every row before another write.
  • Return Fields Mode — Return All Fields by default, or select Custom Selection.
  • Return Fields — In Custom Selection mode, choose any of ID, Index, Message, or Result.

Output shape

A list of items containing the mutation result object, with fields selected by Return Fields Mode.

The mutation returns index, result, message, and id for submitted inputs. GraphQL errors raise an operation error; the Partial Response setting controls handling of partial results.

Links

Discussion