OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Complete API → Set Quote

AI-generated

Summary

Creates a quote for a customer or updates an existing quote in OnPrintShop. Supply quote products and optional shipping and admin fields, then use the returned result, message, and ID to track the write.

Inputs

  • Safe Mode — The UI declares this toggle, but the Complete API handler shown does not use it for this mutation.
  • Input Mode — Choose Fields to build the input from parameters or JSON Object to provide the mutation arguments directly.
  • Userid (required) — Customer user ID for the quote.
  • Parameters — Optional quote fields: quote_id to update an existing quote (omit or use 0 to create), quote_title, selected_shipping_type, order_product_status, and admin_extra_fields. In Fields mode, the input.products_arr field is required and contains quote product entries; each entry can include product identifiers, name, quantity, dimensions, prices, options, and other listed product fields. Admin Extra Fields accepts a JSON scalar.
  • Arguments JSON (required) — In JSON Object mode, provide the full GraphQL arguments object, such as userid, input, and any optional quote_id, quote_title, selected_shipping_type, or admin_extra_fields values.
  • Partial Response — Choose whether to fail on errors or return partial data.
  • Return Fields Mode — Choose all response fields or a custom selection.
  • Return Fields — When Custom Selection is enabled, select from id, message, and result.

Output shape

A single n8n output containing the mutation response object.

The response contains the selected fields from setQuote (by default result, message, and id). GraphQL errors fail the operation unless partial response handling is configured; the operation writes to OnPrintShop.

Examples

Example 1: Create a quote

Set the customer Userid and quote title, leave Quote ID empty or 0, and provide input with products_arr entries.

Example 2: Update a quote

Set Userid and the existing Quote ID, then provide the quote input fields to apply.

Links

Discussion