OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Complete API → Set Order

AI-generated

Summary

Create or update an OnPrintShop order using the Set Order GraphQL mutation. Provide the customer user ID, order title, and an input object containing the required products_arr list; optionally supply an existing order ID, shipping type ID, and admin extra fields.

Inputs

  • Safe Mode — The Complete API safety toggle. Its exact effect on this mutation is not shown in the supplied implementation.
  • Userid (required) — OnPrintShop customer user ID.
  • Order Title (required) — Title for the order.
  • Input Mode — Choose Fields to build the input from form fields, or JSON Object to provide the GraphQL arguments as JSON.
  • Input (required) — In Fields mode, provide one or more products in products_arr. Each product requires products_quantity; optional fields include cost, customer price, product and size IDs or names, dimensions, SKU, job title, weight, production days, pricing flags, and options. The options value accepts JSON scalars.
  • Order ID — Existing order ID to update; when omitted or zero, the mutation receives no order_id and can create a new order.
  • Selected Shipping Type — Shipping type ID to include with the order.
  • Admin Extra Fields — Optional repeated field key and value pairs sent as admin_extra_fields.
  • Arguments JSON — In JSON Object mode, supply the complete GraphQL arguments object, including input, order_title, userid, and any optional arguments.
  • Partial Response — Choose whether to fail on errors or return partial data. The supplied execution path does not show this setting being applied to this mutation.
  • Return Fields Mode — Choose all fields or a custom selection. The supplied mutation selects result, message, and id; it does not show this setting changing the selection.
  • Return Fields — Custom return field selection offers ID, Message, and Result. The supplied execution path does not show this selection being applied to this mutation.

Output shape

A single n8n output item containing the Set Order mutation result object.

The returned object contains result, message, and id. Response aliases may add snake_case or camelCase equivalents. GraphQL errors are raised as node errors; with Continue On Fail enabled, an error object is returned for the input item.

Links

Discussion