Pular para o conteúdo
Documentação API Reference FAQ Changelog Status

Inventory (Stock Items)

magento-1

Endpoints REST para consulta e atualização de itens em estoque.

GET /api/rest/stockitems OAuth 1.0a

List all stock items (admin only)

List all stock items (admin only).

PUT /api/rest/stockitems OAuth 1.0a

Bulk update stock items (admin only)

Bulk update stock items (admin only).

PUT parameters

  • qty — quantity in stock
  • min_qty / max_sale_qty — thresholds
  • min_sale_qty — minimum sale quantity
  • is_qty_decimal — allow decimals
  • backorders — backorder behavior
  • manage_stock — whether inventory is tracked
  • is_in_stock — availability (0 or 1)
  • use_config_* — use system config instead of custom value

Dica (PT-BR): não existe DELETE /stockitems/:id — o item de estoque só pode ser atualizado.

GET /api/rest/stockitems/:stockitemId OAuth 1.0a

Retrieve a stock item

Retrieve a stock item.

PUT /api/rest/stockitems/:stockitemId OAuth 1.0a

Update a stock item

Update a stock item.

PUT parameters

  • qty — quantity in stock
  • min_qty / max_sale_qty — thresholds
  • min_sale_qty — minimum sale quantity
  • is_qty_decimal — allow decimals
  • backorders — backorder behavior
  • manage_stock — whether inventory is tracked
  • is_in_stock — availability (0 or 1)
  • use_config_* — use system config instead of custom value

Dica (PT-BR): não existe DELETE /stockitems/:id — o item de estoque só pode ser atualizado.