CustomerOrder

Usage

This endpoints allows retrieveal, creation, modification and deletion of CustomerOrders in Warehouze. It also allows invoicing and deletion.

Get

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

Post
  • /
    Send an array of json objects to create new CustomerOrders, Number is required. InternalOrderNumber and LastUpdated will be set automatically.
  • /Invoice
    Send an array of json objects to Invoice existing CustomerOrders, object properties are Id, InvoiceNumber, InvoiceDate. InvoiceDate will default to DateTime.Now Central Europe Standard Time.
  • /SetDeleted
    Sets Deleted Status and DeletedDate on CustomerOrders based on a query.

Put

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

CustomerOrder Properties
NameTypeDescriptionUpdatable
CompanyId Int32 False
CustomerId Int32 False
DataSource DataSource 0 Economic, 1 SmartWeb, 2 Local, 3 Magento, 4 GoldenPlanet, 5 Shopify, 6 WooCommerce, 7 FakturaFil, 8 IEX False
DebtorName String False
DeliveryDate Nullable`1 False
ExternalId Int32 False
Id Int32 False
InternalOrderNumber Int32 False
IsCurrentInvoice Boolean False
LastUpdated DateTime False
Number String False
OrderDate DateTime False
ShippingMethod String False
ShippingPrice Decimal False
TermsOfDelivery String True
Sample Get call
        var request = {
            Token: "Insert your token here",
            Query: [
                  "Id=1",
            ],
            Properties: [
              Id,
              CompanyId,
              Number
            ],
        };
        $.ajax({
            url: "https://api.warehouze.io/CustomerOrder",
            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', DebtorName: 'Person A' }])
            ],
        };
        $.ajax({
            url: "https://api.warehouze.io/CustomerOrder",
            data: request,
            dataType: 'text',
            type: "POST",
            success: function (data) {
                console.log(data);
            },
            error: function (data, xHr) {
                console.log(data);
                console.log(xHr);
            }
        });
            
Sample Post Invoice call
        var request = {
            Token: "Insert your token here",
            Query: [
                 JSON.stringify([{ Id: 1, InvoiceNumber: 1, InvoiceDate: '2020/01/13' }, { Id: 2, InvoiceNumber: 2 }])
            ],
        };
        $.ajax({
            url: "https://api.warehouze.io/CustomerOrder/Invoice",
            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, TermsOfDelivery: 'CustomerOrder 1' }, { Id: 2, TermsOfDelivery: 'CustomerOrder 2' }])
            ],
        };
        $.ajax({
            url: "https://api.warehouze.io/CustomerOrder",
            data: request,
            dataType: 'text',
            type: "PUT",
            success: function (data) {
                console.log(data);
            },
            error: function (data, xHr) {
                console.log(data);
                console.log(xHr);
            }
        });