OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Mutation → Set Option Formulas

AI-generated

Summary

Set or update custom option pricing formulas in OnPrintShop by sending a JSON object with formula details to be applied via a GraphQL mutation.

Inputs

  • Input (JSON) (required) — SetCustomFormulaInput JSON object containing the custom formula data to create or update.
  • Safe Mode — Boolean to block mutations in Complete API or reduce nested response fields in legacy actions; defaults to false.

Output shape

a JSON object indicating the result and message of the set operation, including the formula ID if successful.

If the mutation encounters errors, the node throws an error with details. The output contains fields 'result', 'message', and 'formula_id' on success.

Examples

Example 1: Set Option Formulas

Provide the SetCustomFormulaInput JSON object with formula details to set or update option formulas in OnPrintShop.

Links

Discussion