OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Product → Set Product SKU (Staging)

AI-generated

Summary

Create, update, or delete OnPrintShop product SKU mappings by sending an array of SKU rows. Use Get SKU Matrix first to obtain matching size and option combination IDs.

Inputs

  • Inputs (JSON Object Array) (required) — A JSON array of ProductSkuInput objects, with one object per SKU row. Include the product ID, SKU type, combination IDs such as size_id, prod_add_opt_ids, and attribute_ids, and the SKU value. Set delete to 1 to remove a mapping; the example uses 0.
  • Safe Mode — Boolean toggle. The UI describes this as blocking mutations in the Complete API; this operation uses the regular API mutation handler, so no Safe Mode effect is shown for it.

Output shape

A single n8n output containing one item with the mutation result object.

The result includes index, result, message, and id fields. If the response contains GraphQL errors, the node raises an operation error.

Examples

Example 1: Create or update SKU mappings for a product

Supply an array of SKU rows with products_id, sku_type, the matching size and option combination identifiers, sku, and delete: 0.

Example 2: Remove an existing SKU mapping

Supply the mapping identifiers and set delete to 1.

Links

Discussion