CustomerOrderLine

Usage

This endpoints allows retrieveal, creation, modification and deletion of CustomerOrderLines in Warehouze. It also allows allocation, undoing allocation, creating packing slips, undoing packing slips, packing, undoing of packing, 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 CustomerOrderLines. CustomerOrderId, Qty and ProductId are required. InternalLineNumber and Date will be set automatically. CurrencyCode default value is DKK.
  • /Allocation
    Allocate CustomerOrderLines based on a query.
  • /Deallocation
    Deallocation for CustomerOrderLines based on a query.
  • /PackingSlip
    PackingSlip CustomerOrderLines based on a query.
    Request parameters include Resend (bool), SendEmail(bool) and Email(string). Resend determines wether the packingslip already exists and needs to be sent again. SendEmail and Email determine wether an email should be sent, and to what email address.
  • /UndoPackingSlip
    Undo PackingSlip for CustomerOrderLines based on a query.
  • /Pack
    Pack CustomerOrderLines based on a query.
  • /UndoPack
    Undo Packing for CustomerOrderLines based on a query.
  • /Invoice
    Send an array of json objects to Invoice existing CustomerOrderLines, object properties are Id, InvoiceNumber, InvoiceQty and InvoiceDate. InvoiceQty will default to Qty (Ordered Qty), InvoiceDate will default to DateTime.Now Central Europe Standard Time.
  • /SetDeleted
    Sets Deleted Status and DeletedDate on CustomerOrderLines based on a query.
Put

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

CustomerOrderLine Properties
NameTypeDescriptionUpdatable
AvailableQty Decimal False
CalculatedBaseCurrencyUnitCostPrice Decimal False
CollectionInternalLineNumber Int32 False
CompanyId Int32 False
CurrencyCode String False
CurrencyUnitCostPrice Decimal False
CustomerOrderId Int32 False
Date DateTime False
DeletedDate Nullable`1 False
ExternalLineId Int32 False
Id Int32 False
InternalLineNumber Int32 False
InvoicedQty Decimal False
IsAllocatedAvailable Boolean False
IsCollectionMaster Boolean False
IsCollectionPart Boolean False
Location String False
PackedQty Decimal False
PackingResponsible String False
PackingSlipQty Decimal False
ProductBarcode String False
ProductId Int32 False
ProductName String False
ProductNumber String False
Qty Decimal False
Selected Boolean False
Status CoStatus 0 NotAvailable, 1 PartiallyAvailable, 2 Available, 3 PackingSlip, 4 Packed, 5 Invoiced, 6 PackedAndDeleted, 7 Deleted False
StockWarehouseIdExternal Int32 False
Total Decimal False
UnitCostPrice Decimal False
UnitNetPrice Decimal False
WarehouseId Int32 False
Sample Get call
        var request = {
            Token: "Insert your token here",
            Query: [
                  "Id=1",
            ],
            Properties: [
              Id,
              CompanyId,
              ProductId
            ],
        };
        $.ajax({
            url: "https://api.warehouze.io/CustomerOrderLine",
            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 CustomerOrder call
        var request = {
            Token: "Insert your token here",
            Query: [
                 JSON.stringify([{ CustomerOrderId: 1, Qty: 9.0, ProductId:1 }, { CustomerOrderId: 1, Qty: 9.0, ProductId:1  }])
            ],
        };
        $.ajax({
            url: "https://api.warehouze.io/CustomerOrderLine",
            data: request,
            dataType: 'text',
            type: "POST",
            success: function (data) {
                console.log(data);
            },
            error: function (data, xHr) {
                console.log(data);
                console.log(xHr);
            }
        });
            
        var request = {
            Token: "Insert your token here",
            Query: [
                 "Id=1",
            ]
        };
        $.ajax({
            url: "https://api.warehouze.io/CustomerOrderLine/Allocation",
            data: request,
            dataType: 'text',
            type: "POST",
            success: function (data) {
                console.log(data);
            },
            error: function (data, xHr) {
                console.log(data);
                console.log(xHr);
            }
        });
            
        var request = {
            Token: "Insert your token here",
            Resend: false,
            SendEmail: true,
            Email: "email@email.com",
            Query: [
                        "Id=1",
            ]
        };
        $.ajax({
            url: "https://api.warehouze.io/CustomerOrderLine/PackingSlip",
            data: request,
            dataType: 'text',
            type: "POST",
            success: function (data) {
                console.log(data);
            },
            error: function (data, xHr) {
                console.log(data);
                console.log(xHr);
            }
        });
            
        var request = {
            Token: "Insert your token here",
            Query: [
                 JSON.stringify([{ Id: 1, InvoiceNumber: 1, InvoiceQty: 9.0, InvoiceDate: '2020/01/13' }, { Id: 2, InvoiceNumber: 2 }])
            ],
        };
        $.ajax({
            url: "https://api.warehouze.io/CustomerOrderLine/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, Qty: 9.0 }, { Id: 2, Qty: 9.0 }])
            ],
        };
        $.ajax({
            url: "https://api.warehouze.io/CustomerOrderLine",
            data: request,
            dataType: 'text',
            type: "PUT",
            success: function (data) {
                console.log(data);
            },
            error: function (data, xHr) {
                console.log(data);
                console.log(xHr);
            }
        });