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. A parameter has been added to create customer orders in data integrations (e-conomic) called "createInDataIntegration", this parameter is by default false.
  • /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
CustomerId Int32 False
DataSource DataSource 0 Economic, 1 SmartWeb, 2 Local, 3 Magento, 4 GoldenPlanet, 5 Shopify, 6 WooCommerce, 7 FakturaFil, 8 IEX, 9 Logisnap False
DebtorEmail String False
DebtorName String False
DebtorPhone String False
DeliveryAddress String False
DeliveryCity String False
DeliveryCountry String False
DeliveryDate Nullable`1 False
DeliveryPostalCode String False
ExternalId String False
Id Int32 False
InternalOrderNumber Int32 False
IsCurrentInvoice Boolean False
LastUpdated DateTime False
LockDate Nullable`1 False
LockUser String False
LogisnapOrderId String False
LogisnapPdfUrl String False
Number String False
OrderDate DateTime False
OtherReference String False
Ref1 String False
Ref2 String False
ShippingMethod String False
ShippingPrice Decimal False
Status CoStatus 0 NotAvailable, 1 PartiallyAvailable, 2 Available, 3 PackingSlip, 4 Packed, 5 Invoiced, 6 PackedAndDeleted, 7 Deleted False
TermsOfDelivery String True
Sample Get call
        var request = {
            Token: "Insert your token here",
            Query: [
                  "Id=1",
            ],
            Properties: [
              Id,
              Number,
              TermsOfDelivery
            ],
        };
        $.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);
            }
        });