OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Mutation → Set Order (Staging)

AI-generated

Summary

Create a new OnPrintShop staging order or update an existing one by sending the user, title, shipping type, and SetOrderInput to the API. The operation returns the mutation result, message, and order ID.

Inputs

  • User ID (required) — OnPrintShop user ID for the order.
  • Order ID — Existing order ID to update; leave at 0 to create a new order.
  • Order Title (required) — Title for the order.
  • Shipping Type — Selected shipping type ID.
  • Input (JSON) (required) — SetOrderInput object. The default is {"productsArr": []}; include the order product data in productsArr as needed.
  • Admin Extra Fields — Optional repeatable field key/value pairs sent as admin_extra_fields.
  • Safe Mode — Boolean toggle. The provided source shows Safe Mode affecting paginated order reads; it does not show it blocking or changing this mutation.

Output shape

A single n8n output containing one item per input item, with each item holding the mutation result object.

The result object includes result, message, and id. GraphQL errors are raised as node errors unless Continue On Fail is enabled.

Links

Discussion