Miva icon

Miva

Interact with Miva eCommerce API

Report Low Inventory

AI-generated

Summary

Report low inventory products by comparing current inventory levels against specified thresholds from input data items.

Inputs

  • Product Identifier Type (required) — Select the type of product identifier used (Product ID, Product Code, or Product SKU) in your input data.
  • Product Identifier Field (required) — Specify the field name in input data that contains the product identifier value.
  • Inventory Field (required) — Specify the field name in input data that contains the current inventory level.
  • Threshold Field (required) — Specify the field name in input data that contains the low inventory threshold.

Output shape

A single JSON object summarizing low inventory status and alert message.

Returns a single output item indicating if any products have inventory below their thresholds. The JSON includes a 'message' string listing low stock items if any, 'lowStockCount' integer, and an 'alert' boolean indicating whether any low inventory items were found. If there are missing required fields in input data, the output indicates missing field names and does not perform the check.

Examples

Example 1: Input items containing product identifiers, current inventory, and threshold values.

Configured with input fields specifying product identifier type and field names for product identifier, inventory, and threshold.

Links

Discussion