OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Complete API → Delete Master Option Stock Config

AI-generated

Summary

Delete a master option stock configuration on OnPrintShop by specifying a Config ID and/or Option IDs to remove the corresponding stock config entries.

Inputs

  • Safe Mode — Optional boolean to block mutations in Complete API mode; typically leave false unless mutation blocking is desired.
  • Input Mode (required) — Choose input format for parameters: either 'Fields' or 'JSON Object' mode.
  • Parameters — If using Fields input mode, provide optional Config ID (integer) and/or Option IDs (comma-separated string) to specify which master option stock configuration to delete.
  • Arguments JSON — If using JSON input mode, provide a JSON object with appropriate parameters for deleting the master option stock configuration.
  • Partial Response — Choose how to handle partial results with possible failures: fail on errors or return partial data.
  • Return Fields Mode — Select whether to return all fields or a custom selection of fields in the response.
  • Return Fields — If using custom selection mode, choose which fields to return from the response, such as ID, Index, Message, and Result.

Output shape

a list of deletion result objects, each containing fields like id, index, message, and result indicating the outcome of the delete operation.

The operation calls a GraphQL mutation 'deleteMasterOptionStockConfig' and returns the mutation response. At least one of Config ID or Option IDs must be specified to identify the stock config(s) to delete. If neither is provided, the operation will throw an error. Handle errors accordingly, and use the Partial Response option to control behavior on partial failures.

Examples

Example 1: Delete a master option stock config by Config ID

Set Input Mode to 'Fields', set Config ID to target config ID number, leave Option IDs empty.

Example 2: Delete master option stock configs by Option IDs

Set Input Mode to 'Fields', leave Config ID empty, specify Option IDs as a comma-separated string like '59,89'.

Example 3: Delete using JSON input

Set Input Mode to 'JSON Object', and provide JSON with config_id and/or option_ids keys.

Links

Discussion