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 Lookup in 2026

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.

The same route now also serves a read-only lookup of a product's stock configuration, including its effective salability.

Product stock lookup New

Read-only operation: it does not change stock, does not enqueue anything, does not save the product and does not trigger reindexing.

GET/api2/stockNew

Fetch the stock configuration of a product by SKU or ID.

Read-onlyNo queueNo reindex
GET /api2/stock?id=3291&type=sku
Authorization: Bearer {access_token}
GET /api2/stock?id=2074&type=id
Authorization: Bearer {access_token}
GET /api2/stock?id=3291&type=sku&store_id=1&customer_group_id=0
Authorization: Bearer {access_token}

Parameters

id Required
Product ID or SKU, according to type.
type Required
Defines how id is interpreted: id or sku.
store_id Optional
Store used as the read context.
customer_group_id Optional
Group used for context-dependent values. Defaults to 0.

Response example

{
  "success": true,
  "product_id": 2074,
  "sku": "3291",
  "type": "simple",
  "context": {
    "store_id": 1,
    "website_id": 1,
    "customer_group_id": 0,
    "store": {"id": 1, "code": "default", "name": "Português (Brasil)"},
    "website": {"id": 1, "code": "cafe", "name": "Main Website"},
    "customer_group": {"id": 0, "name": "Guest"}
  },
  "inventory": {
    "inventory_manage_stock": true,
    "inventory_use_config_manage_stock": true,
    "inventory_qty": "38.0000",
    "inventory_min_qty": "0.0000",
    "inventory_use_config_min_qty": true,
    "inventory_min_sale_qty": null,
    "inventory_use_config_min_sale_qty": true,
    "inventory_max_sale_qty": "10000.0000",
    "inventory_use_config_max_sale_qty": true,
    "inventory_is_qty_decimal": false,
    "inventory_backorders": "none",
    "inventory_use_config_backorders": true,
    "inventory_notify_stock_qty": "1.0000",
    "inventory_use_config_notify_stock_qty": true,
    "inventory_enable_qty_increments": false,
    "inventory_use_config_enable_qty_increments": true,
    "inventory_qty_increments": null,
    "inventory_use_config_qty_increments": true,
    "inventory_stock_availability": "in_stock",
    "inventory_stock_availability_label": "In Stock",
    "inventory_is_salable": true
  }
}

Mapping to the Yep Platform

Field in the Yep PlatformREST field
Manage Stockinventory_manage_stock
Qtyinventory_qty
Out-of-Stock Thresholdinventory_min_qty
Minimum Qty Allowed in Cartinventory_min_sale_qty
Maximum Qty Allowed in Cartinventory_max_sale_qty
Qty Uses Decimalsinventory_is_qty_decimal
Backordersinventory_backorders
Notify for Quantity Belowinventory_notify_stock_qty
Enable Qty Incrementsinventory_enable_qty_increments
Qty Incrementsinventory_qty_increments
Stock Availabilityinventory_stock_availability
Effective salabilityinventory_is_salable
For fields that support Use Config Settings, the matching inventory_use_config_* indicates whether the value is inherited from the global configuration. When use_config is active, the main field represents the value effectively used by the Yep Platform.

Availability: an important distinction

inventory_stock_availability
Represents the Stock Availability option configured on the product. Values: in_stock and out_of_stock, paired with inventory_stock_availability_label (In Stock or Out of Stock).
inventory_is_salable
Represents whether the product is effectively available for sale according to the Yep Platform rules.
inventory_backorders
Normalized values: none, allow_below_zero and allow_below_zero_and_notify.

These two fields are not synonyms

You may receive inventory_stock_availability: "in_stock" together with inventory_is_salable: false. This is not an inconsistency: the first field represents the configured stock state; the second represents the platform's effective decision.

Configurable products

For configurable products, inventory_qty: null is a valid and expected result — the API does not sum the quantities of the associated products. To determine effective availability, use inventory_is_salable.

null values

Some inherited values may return null when there is no effective configuration applicable in that context.

{
  "inventory_min_sale_qty": null,
  "inventory_use_config_min_sale_qty": true
}

HTTP responses

ScenarioStatus
Success200
Invalid parameters400
Missing authentication or invalid token401
Not allowed403
Product not found404
Internal failure500
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.