Magento REST icon

Magento REST

Consume Magento REST API

Inventory → Update Stock

AI-generated

Summary

Updates product stock levels in Magento via REST API

Inputs

  • sku (required) — Product SKU
  • itemId (required) — Stock item ID (usually 1)
  • stockData (required) — Stock data in JSON format

Output shape

Magento stock item response

Optionally flattened if simplifyOutput is enabled, which converts custom_attributes array to object, merges extension_attributes, and simplifies nested structures

Examples

Example 1: Update stock for a product SKU with standard stock item ID

Set sku to the target product's SKU, leave itemId at default 1, provide stockData as JSON object with quantity and other stock-relevant fields

Links

Discussion