WarehouseStock

Usage

This endpoints allows retrieveal of stock quantities and taking inventory.

Get

Call requires at least one property name, blank query is allowed.

Post

Send an array of json objects to create stock adjustments, ProductId and Qty are required.

This endpoint is used for taking inventory, meaning the Qty property defines the new StockQty of the Product, on the specified Warehouse.

WarehouseStock Properties
NameTypeDescriptionUpdatable
Id Int32 False
LastUpdate DateTime False
OrderedByCustomersQty Decimal False
OrderedFromSuppliersQty Decimal False
ProductId Int32 False
Qty Decimal False
QtyMax Decimal False
QtyMin Decimal False
WarehouseId Int32 False
Sample Get call
        var request = {
            Token: "Insert your token here",
            Properties: [
                        "Id",
                        "StockQty",
                        "ProductId",
            ],
        };
        $.ajax({
            url: "https://api.warehouze.io/WarehouseStock",
            data: request,
            dataType: 'text',
            type: "GET",
            traditional: true,
            success: function (data) {
                console.log(data);
            },
            error: function (data, xHr) {
                console.log(data);
                console.log(xHr);
            }
        });
            
Sample Post call
        var request = {
            Token: "Insert your token here",
            Query: [
                 JSON.stringify([{ ProductId:1, Qty:1, WarehouseId:2 }])
            ],
        };
        $.ajax({
            url: "https://api.warehouze.io/WarehouseStock",
            data: request,
            dataType: 'text',
            type: "POST",
            success: function (data) {
                console.log(data);
            },
            error: function (data, xHr) {
                console.log(data);
                console.log(xHr);
            }
        });