OnPrintShop Orders icon

OnPrintShop Orders

Read and update OnPrintShop orders, order products, shipments, batches, quotes, and statuses

Mutation → Set Order Product

AI-generated

Summary

Creates or updates an order product line using its ID, dimensions, and a JSON input object. Safe Mode blocks this mutation when using the Complete API.

Inputs

  • Safe Mode — Defaults to false. In the Complete API, blocks mutations; in legacy actions, reduces nested response fields.
  • Order Product ID — ID of the order product to update.
  • Width — Product width, with up to two decimal places.
  • Height — Product height, with up to two decimal places.
  • Input (JSON) (required) — SetOrderProductInput JSON object. The default includes lock_price, comment, and notify_customer.

Output shape

A single mutation result.

The provided source pack contains only the node entry module, so it does not show the runtime request or response shape.

Examples

Example 1: Block the mutation in the Complete API

Enable Safe Mode to prevent the write.

Example 2: Update an order product

Provide its ID, width, height, and a SetOrderProductInput JSON object.

Links

Discussion