Skip to content

Stocks

Stock management tracks inventory quantities per product per warehouse.

List Stocks

GET/stocks🔒 Session — can viewAny

Paginated list of stocks with filtering.

Supports filtering via StockQueryFilterService. Includes warehouse data.

Create Stock

POST/stocks/store🔒 Session — can create

Create a stock entry for a product in a warehouse. Initial quantity is always set to 0.

FieldTypeRequiredDescription
product_idstringYesProduct ID (must exist)
warehouse_idstringYesWarehouse ID (must exist)
warning_quantitynumberYesLow stock warning threshold
statusstringYesStock status (enum value)

INFO

Stock quantity always starts at 0. Use the increment/decrement endpoints to adjust quantities.

Show Stock

GET/stocks/{stock}/show🔒 Session — can view

View stock details including current quantity and history.

Update Stock

PATCH/stocks/{stock}/update🔒 Session — can update

Update stock metadata.

FieldTypeRequiredDescription
product_idstringYesProduct ID
warehouse_idstringYesWarehouse ID
warning_quantitynumberYesLow stock warning threshold
statusstringYesStock status

Delete Stocks (Bulk)

DELETE/stocks/delete🔒 Session — can delete

Bulk delete stock entries.

FieldTypeRequiredDescription
idsarrayYesArray of stock IDs

Increment Stock

PUT/stocks/{stock}/increment🔒 Session — can increment

Add quantity to a stock entry. Creates a stock history record.

FieldTypeRequiredDescription
quantitynumberYesQuantity to add

Decrement Stock

PUT/stocks/{stock}/decrement🔒 Session — can decrement

Remove quantity from a stock entry. Creates a stock history record.

FieldTypeRequiredDescription
quantitynumberYesQuantity to subtract

Stock Histories

GET/stocks-histories🔒 Session

View paginated stock change history across all stocks.

WedoCOD Documentation