Actions20
- Customer Actions
- Customer Address Actions
- Basket Actions
- Notification Actions
- Complete API Actions
Complete API → Set User Basket
AI-generatedSummary
Set or update a user’s basket in OnPrintShop using the Complete API. Provide the required action and user ID, then optionally supply basket item details and an item index; choose the fields or JSON input mode and select which response fields to return.
Inputs
- Safe Mode — When enabled, blocks mutations in the Complete API. This operation writes to OnPrintShop, so leave it disabled to perform the basket update.
- Input Mode — Choose Fields to enter the action, user ID, and optional parameters individually, or JSON Object to supply the API arguments as JSON.
- Action (required) — The API action string.
- User ID (required) — The integer ID of the user whose basket to set.
- Parameters — Optional API arguments: an input object containing optional basket items and item_index. Each item requires a job name and quantity; optional fields include product and size IDs or names, dimensions, pricing, weight, production days, SKU, template ID, custom-product status, and JSON options.
- Arguments JSON — In JSON Object input mode, provide the API arguments as a JSON object.
- Partial Response — Choose whether API partial results with errors fail the operation or return partial data. Reconcile all rows in partial results before further writes.
- Return Fields Mode — Return all available response fields or select a custom subset.
- Return Fields — When custom selection is enabled, choose any of ID, Message, or Result.
Output shape
A response containing the selected fields from the API result.
By default, all available fields are returned; custom selection can include ID, Message, and Result. The source pack shows only the node entry module, so it does not establish the exact response envelope.