OnPrintShop Master Options icon

OnPrintShop Master Options

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

Complete API → Delete Master Option Stock Config

AI-generated

Summary

Delete a master option stock configuration in OnPrintShop by specifying either its Config ID or associated Option IDs.

Inputs

  • Config ID — The ID of the stock configuration to delete; use this or Option Ids, but not both.
  • Option Ids — Comma-separated Option IDs identifying the stock configuration to delete; use this or Config ID, but not both.
  • Input Mode — Choose between providing fields or a JSON object for input (mostly fields for this operation).
  • Partial Response — Option to fail on errors or return partial data when processing.
  • Return Fields Mode — Choose between returning all fields or a custom selection in the response.
  • Return Fields — Specify which response fields to return if using custom selection mode.

Output shape

a list of deletion result objects, each including index, result status, message, and id fields

Exactly one of Config ID or Option Ids must be provided. The response includes operation success status details. Errors thrown if neither or both identifiers are provided.

Examples

Example 1: Delete a stock configuration by Config ID

Provide Config ID with no Option Ids; runs deletion mutation and returns result details.

Example 2: Delete a stock configuration by Option Ids

Provide Option Ids as a comma-separated string with no Config ID; runs deletion mutation and returns result details.

Links

Discussion