Customer

Usage

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

Get

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

Post

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

Put

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

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