OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Complete API → Get User Basket

AI-generated

Summary

Retrieve the basket information for a specific user from the OnPrintShop Complete API.

Inputs

  • User ID (required) — The integer ID of the user whose basket information is to be retrieved.
  • Safe Mode — A boolean to prevent mutations when set true; for this read operation, it blocks mutations in the Complete API.
  • Return Fields Mode — Option to select returning all available fields or a custom selection of basket fields.
  • Return Fields — Specific basket fields to return if 'Custom Selection' mode is selected. Options include Basket ID, Cart Count, Cart Data Cache, Cart Detail, Cart ID, Cart Payment Request, Date, Department ID, Ship To Multiple Address Detail, User ID, Current Count, and Total Baskets.

Output shape

a single object containing basket details for the specified user, including an array of baskets and pagination info.

The response contains fields such as baskets (array of basket objects with various details), totalBaskets (total number of baskets), and currentCount (number of returned baskets). Errors in the API request will be thrown as node execution errors.

Examples

Example 1: Retrieve basket data for user ID 123

Set 'User ID' to 123 and optionally select custom basket fields or use all fields. Safe Mode can be left off for this retrieval.

Links

Discussion