Yep Platform logo
REST API · Yep Platform Technical documentation for certified integrations

Stock

Stock updates with processing queue, atomic claim and relative reindex — designed for high-volume scenarios.

Queue Atomic claim High volume

Overview

The stock endpoint has been reinforced for higher robustness in high-volume scenarios, with queue-based processing and relative reindex. The update accepts identification by SKU or by ID depending on the type field.

POST/api2/stock/

Update or set stock by SKU or ID.

JSONQueue
{
  "type": "sku",
  "sku": "novo_produto",
  "qty": 27,
  "stock_id": 1
}
Accepts SKU or ID according to type.

Parameters

type Required
Defines the lookup identifier: sku or id.
sku Conditional
Product SKU when type=sku.
qty Required
New stock quantity.
stock_id Optional
Stock identifier when more than one stock is configured.