Product

Usage

This endpoints allows retrieveal, creation, modification and deletion of products in Warehouze, it also allows retrieval of stock quantities pr. warehouse.

Get

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

Post

Create an array of json objects to create new Products, Number and GroupId are required.

Put

Create an array of json objects to update existing Products, Id is required.

Product Properties
NameTypeDescriptionUpdatable
AdjustedInStockQty Decimal False
Barcode String True
Barred Boolean False
BaseNumber String False
ColliQty Decimal False
CompanyId Int32 False
CreationDate DateTime False
CustomProductPropertyFive String False
CustomProductPropertyFour String False
CustomProductPropertyOne String False
CustomProductPropertyThree String False
CustomProductPropertyTwo String False
DataSource DataSource 0 Economic, 1 SmartWeb, 2 Local, 3 Magento, 4 GoldenPlanet, 5 Shopify, 6 WooCommerce, 7 FakturaFil False
DeliveryDays Int32 False
ExtraCosts Decimal False
GroupId Int32 False
Height Decimal False
Id Int32 False
IncludeInShoppinglist Boolean False
IsCollectionMaster Boolean False
IsMaster Boolean False
LastUpdated DateTime False
Length Decimal False
LocationId Int32 False
Name String True
Notes String True
Notifications String False
Number String False
OrderedByCustomersQty Decimal False
OrderedFromSuppliersQty Decimal False
PoQtyMin Decimal False
SelectedVariantType1 String False
SelectedVariantType2 String False
ShippingMethod String False
ShippingPrice Decimal False
ShoppingQty Decimal False
StockQty Decimal False
StockQtyMax Decimal False
StockQtyMin Decimal False
SupplierId Int32 False
SupplierProductNumber String False
TurnoverQty Decimal False
UnitCostPrice Decimal False
UnitId Int32 False
UnitPrice Decimal False
UnitSalesPrice Decimal False
UsesMaxOnAllWarehouses Boolean False
UsesMinOnAllWarehouses Boolean False
VariantMasterId Int32 False
Volume Decimal False
WarehouseId Int32 False
Weight Decimal False
Width Decimal False
Sample Get call
        var request = {
            Token: "Insert your token here",
            Query: [
                              "Number=130",
                              "WarehouseNumber=1",
            ],
            Properties: [
                            "Id",
                            "Name",
                            "StockQty",
            ],
        };
        $.ajax({
            url: "https://api.warehouze.io/Product",
            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([{ Number: '1', GroupId: 123456 }, { Number: '2', GroupId: 123456 }])
            ],
        };
        $.ajax({
            url: "https://api.warehouze.io/Product",
            data: request,
            dataType: 'text',
            type: "POST",
            success: function (data) {
                console.log(data);
            },
            error: function (data, xHr) {
                console.log(data);
                console.log(xHr);
            }
        });
            
Sample Put call
        var request = {
            Token: "Insert your token here",
            Query: [
                 JSON.stringify([{ Id: 1, Name: 'Product 1' }, { Id: 2, Name: 'Product 2' }])
            ],
        };
        $.ajax({
            url: "https://api.warehouze.io/Product",
            data: request,
            dataType: 'text',
            type: "PUT",
            success: function (data) {
                console.log(data);
            },
            error: function (data, xHr) {
                console.log(data);
                console.log(xHr);
            }
        });