OnPrintShop Master Options icon

OnPrintShop Master Options

Manage OnPrintShop master options, attributes, formulas, rules, ranges, prices, tags, groups, and stock

Complete API → Get Master Option Combination Matrix

AI-generated

Summary

Retrieve the master option combination matrix for a specified set of option IDs, representing combinations of product master options.

Inputs

  • Option Ids (required) — List of master option IDs to include in the combination matrix; must contain at least two IDs.
  • Input Mode — Choose between providing the option IDs as individual fields or as a JSON object.
  • Return Fields Mode — Select whether to return all available fields or a custom selection of matrix attribute IDs, matrix option IDs, and total records.
  • Return Fields — Specify which fields to return when 'Custom Selection' is chosen in Return Fields Mode.

Output shape

a JSON object containing the combination matrix and metadata

Returns an object with 'matrix' containing arrays of option_ids and attribute_ids representing combinations, and 'totalRecords' indicating the number of combinations. Input requires at least two option IDs; operation errors if fewer provided.

Links

Discussion