OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Product → Get Stock

AI-generated

Summary

Retrieves stock records for a product by product ID, with optional pagination, field selection, and safe mode retry on 5xx server errors.

Inputs

  • productIdStock (required) — ID of the product to retrieve stock for
  • safeMode — If enabled, retries first page without nested groups when server returns 5xx
  • queryParametersStock — Pagination and result limits for stock records
  • stockFields — Select stock fields to return

Output shape

array

Each record contains values for the selected stock fields (stock_id, product_id, product_name, size_id, size_title, credit_stock, debited_stock, stock_quantity, option_details). Pagination applies via limit/offset when queryParametersStock is provided.

Discussion