OnPrintShop Inventory icon

OnPrintShop Inventory

Read and update product stock, product stock lists, and master-option stock

Complete API → Update Product Stock

AI-generated

Summary

Updates OnPrintShop product stock using the Complete API. Supply the required input and optionally specify a product SKU, stock type, and response fields.

Inputs

  • Input Mode (required) — Choose Fields to provide stock_details in the input collection, or JSON Object to provide API arguments as JSON. The input collection is required; stock_details is an optional JSON value.
  • Product SKU — SKU to associate with the stock update.
  • Type — Stock target type: product_option (default) or product.
  • Safe Mode — When enabled, blocks mutations in Complete API. The default is off.
  • Partial Response — Choose whether to fail on errors (default) or return partial data. Partial results may contain failures.
  • Return Fields Mode — Return all fields (default) or select a custom response field set.
  • Return Fields — When custom selection is enabled, choose from ID, Message, Result, Stock Details, and Stock Quantity.

Output shape

A single API result, or partial data when configured.

The exact response structure is not shown in the provided source. Partial data may contain failures; reconcile each row before further writes.

Links

Discussion