OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Complete API → Set User Basket

AI-generated

Summary

Updates a user's OnPrintShop basket by sending the required action, user ID, and basket input to the setUserBasket API mutation. Use Fields mode to build the input with one or more items, or JSON Object mode to provide the API arguments directly; Safe Mode blocks this write.

Inputs

  • Safe Mode — When enabled, blocks mutations in the Complete API resource.
  • Action (required) — String action for the basket mutation.
  • User ID (required) — Integer ID of the user whose basket to update.
  • Input — SetUserBasketInput object. In Fields mode, optionally provide items with required job name and quantity, plus optional cost, customer price, dimensions, product and size identifiers, SKU, template, weight, production days, custom product flag, and JSON options.
  • Item Index — Integer basket item index; optional in the UI, though the API mutation declares it as required.
  • Arguments JSON — In JSON Object mode, provide the API mutation arguments as JSON.
  • Partial Response — Choose whether to fail on errors or return partial data. Partial results may contain failures; reconcile each row before another write.
  • Return Fields Mode — Return all response fields or choose a custom selection.
  • Return Fields — Custom response fields: ID, Message, and Result.

Output shape

A single n8n output containing one item per input item, with each item holding the selected mutation response fields.

The API mutation returns result, message, and basket_id; custom field selection offers ID, Message, and Result, so the UI's ID maps to the mutation's basket identifier. API errors raise an operation error unless partial response handling is configured.

Links

Discussion