OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Complete API → Set Product SKU

AI-generated

Summary

Create, update, or delete product SKU mappings in OnPrintShop. Submit one or more ProductSkuInput objects using Fields or a JSON array; the mutation returns its per-input status and identifiers.

Inputs

  • Safe Mode — Blocks mutations in Complete API when enabled; defaults to off.
  • Inputs (required) — Add one or more SKU mapping inputs. Each can include product ID (products_id), SKU type (sku_type), size ID (size_id), product additional option IDs (prod_add_opt_ids), attribute IDs (attribute_ids), SKU (sku), and delete (set to 1 to remove a mapping). Fields are optional in the UI; supply values appropriate to the mapping.
  • Arguments JSON — In JSON Object input mode, provide the mutation arguments as JSON with inputs set to an array of ProductSkuInput objects.
  • Partial Response — Choose whether to fail on errors or return partial data; partial results may include failures that should be reconciled before further writes.
  • Return Fields Mode — Return all mutation fields or select a custom subset.
  • Return Fields — When Custom Selection is selected, choose from ID, Index, Message, and Result.

Output shape

A list of items, each containing the mutation result for a batch of SKU inputs.

The returned fields are id, index, result, and message, subject to Return Fields selection. GraphQL errors are raised as node errors; enabling continue on fail returns an error item.

Links

Discussion