Warehouse

Usage

This endpoints allows retrieveal, creation, modification and deletion of Warehouses in Warehouze.

Get

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

Post

Send an array of json objects to create new Warehouses, Number is required.

Put

Send an array of json objects to update existing Warehouses, Id is required.

Warehouse Properties
NameTypeDescriptionUpdatable
City String True
CompanyId Int32 False
Country String True
DataSource DataSource 0 Economic, 1 SmartWeb, 2 Local, 3 Magento, 4 GoldenPlanet, 5 Shopify, 6 WooCommerce, 7 FakturaFil, 8 IEX False
ExternalId Int32 False
Hidden Boolean True
Id Int32 False
Name String True
Number String False
PostalArea String True
PostalCode String True
Street String True
Sample Get call
        var request = {
            Token: "Insert your token here",
            Query: [
                              "Number=1",
            ],
            Properties: [
                            "Id",
                            "Number",
                            "Name",
            ],
        };
        $.ajax({
            url: "https://api.warehouze.io/Warehouse",
            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' }, { Number: '2', Name: 'Primary warehouse' }])
            ],
        };
        $.ajax({
            url: "https://api.warehouze.io/Warehouse",
            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: 'Warehouse 1' }, { Id: 2, Name: 'Warehouse 2' }])
            ],
        };
        $.ajax({
            url: "https://api.warehouze.io/Warehouse",
            data: request,
            dataType: 'text',
            type: "PUT",
            success: function (data) {
                console.log(data);
            },
            error: function (data, xHr) {
                console.log(data);
                console.log(xHr);
            }
        });