Back

Search

Search

Methods

Inventory

Orders

Orders /GetOpenOrders

Response: GenericPagedResult<OpenOrder>



Get a paged list of open orders

Parameters

NameTypeDescription
entriesPerPageInt32Entries per page
pageNumberInt32Page number
filtersFieldsFilterFilters to apply
sortingList<FieldSorting>Sorting to apply
fulfilmentCenterNullable<Guid>Location to get the orders for
additionalFilterStringAdditional filter

HTTP Endpoint

Server /Orders / GetOpenOrders

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Orders/GetOpenOrders HTTP/1.1
Host: eu-ext.linnworks.net
Connection: keep-alive
Accept: application/json, text/javascript, */*; q=0.01
Origin: https://www.linnworks.net
Accept-Language: en
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: https://www.linnworks.net/
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

entriesPerPage=1&pageNumber=1&sorting=[
  {
    "FieldCode": 0,
    "Direction": 0,
    "Order": 1
  },
  {
    "FieldCode": 0,
    "Direction": 0,
    "Order": 1
  }
]&fulfilmentCenter=9f3abd41-4b81-476a-a76a-6a6cbcfbad66&additionalFilter=sample string 1

Response

This is an example response. Results may vary depending on your data.

{
  "PageNumber": 1,
  "EntriesPerPage": 2,
  "TotalEntries": 3,
  "TotalPages": 2,
  "Data": [
    {
      "OrderId": "f2743863-03bb-4bc9-8482-ad7dc074ce27",
      "NumOrderId": 2,
      "GeneralInfo": {
        "Status": 1,
        "LabelPrinted": true,
        "LabelError": "sample string 3",
        "InvoicePrinted": true,
        "PickListPrinted": true,
        "IsRuleRun": true,
        "Notes": 7,
        "PartShipped": true,
        "Marker": 64,
        "ReferenceNum": "sample string 9",
        "SecondaryReference": "sample string 10",
        "ExternalReferenceNum": "sample string 11",
        "ReceivedDate": "2018-02-19T16:57:08.5474756+00:00",
        "Source": "sample string 13",
        "SubSource": "sample string 14",
        "SiteCode": "sample string 15",
        "HoldOrCancel": true,
        "DespatchByDate": "2018-02-19T16:57:08.5474756+00:00",
        "Location": "aa58fe60-9fe5-40e0-a029-d9343fd80215",
        "NumItems": 19
      },
      "ShippingInfo": {
        "Vendor": "sample string 1",
        "PostalServiceId": "1a22db95-9856-4009-bc89-b161647b5ea9",
        "PostalServiceName": "sample string 3",
        "TotalWeight": 4.1,
        "ItemWeight": 5.1,
        "PackageCategoryId": "046a04ba-6c35-4c0d-b5be-720dd020c8cc",
        "PackageCategory": "sample string 7",
        "PackageTypeId": "78eae9b4-df46-4d05-b35f-9d6d7e156ec5",
        "PackageType": "sample string 8",
        "PostageCost": 9.1,
        "PostageCostExTax": 10.1,
        "TrackingNumber": "sample string 11",
        "ManualAdjust": true
      },
      "CustomerInfo": {
        "ChannelBuyerName": "sample string 1",
        "Address": {
          "EmailAddress": "sample string 1",
          "Address1": "sample string 2",
          "Address2": "sample string 3",
          "Address3": "sample string 4",
          "Town": "sample string 5",
          "Region": "sample string 6",
          "PostCode": "sample string 7",
          "Country": "sample string 8",
          "FullName": "sample string 9",
          "Company": "sample string 10",
          "PhoneNumber": "sample string 11",
          "CountryId": "56d6691a-82a7-47e7-b5af-8fc01cb9e110"
        },
        "BillingAddress": {
        }
      },
      "TotalsInfo": {
        "Subtotal": 1.1,
        "PostageCost": 2.1,
        "Tax": 3.1,
        "TotalCharge": 4.1,
        "PaymentMethod": "sample string 5",
        "PaymentMethodId": "30fff921-61e1-46d1-8af6-2dbdffa016aa",
        "ProfitMargin": 7.1,
        "TotalDiscount": 8.1,
        "Currency": "sample string 9",
        "CountryTaxRate": 10.1,
        "ConversionRate": 11.1
      },
      "FolderName": [
        "sample string 1",
        "sample string 2"
      ],
      "Items": [
        {
          "OrderId": "a3463aa8-d489-4d03-881d-9fedb938f88a",
          "ItemId": "b81fa696-eb06-4334-8fe2-faf44c237c18",
          "StockItemId": "73fc68b6-7083-4269-953e-0fc983d3f389",
          "ItemNumber": "sample string 4",
          "SKU": "sample string 5",
          "ItemSource": "sample string 6",
          "Title": "sample string 7",
          "Quantity": 8,
          "CategoryName": "sample string 9",
          "CompositeAvailablity": 1,
          "RowId": "00c38f62-b388-4b60-8ea4-f2e00c66afc5",
          "StockLevelsSpecified": true,
          "OnOrder": 12,
          "InOrderBook": 1,
          "Level": 13,
          "MinimumLevel": 1,
          "AvailableStock": 14,
          "PricePerUnit": 15.1,
          "UnitCost": 16.1,
          "Discount": 17.1,
          "Tax": 22.1,
          "TaxRate": 18.1,
          "Cost": 19.1,
          "CostIncTax": 20.1,
          "CompositeSubItems": [
            {
            },
            {
            }
          ],
          "IsService": true,
          "SalesTax": 22.1,
          "TaxCostInclusive": true,
          "PartShipped": true,
          "Weight": 25.1,
          "BarcodeNumber": "sample string 26",
          "Market": 27,
          "ChannelSKU": "sample string 28",
          "ChannelTitle": "sample string 29",
          "DiscountValue": 17.490939881456391,
          "HasImage": true,
          "ImageId": "4f53fe9d-e33d-4db5-a221-e4edf2c06ffb",
          "AdditionalInfo": [
            {
              "pkOptionId": "1d9cd2a7-4d3c-43dd-a0ba-400da4943f90",
              "Property": "sample string 2",
              "Value": "sample string 3"
            },
            {
            }
          ],
          "StockLevelIndicator": 30,
          "BatchNumberScanRequired": true,
          "SerialNumberScanRequired": true,
          "BinRack": "sample string 33",
          "BinRacks": [
            {
              "Quantity": 1,
              "BinRack": "sample string 2",
              "Location": "0b9a3e47-1564-4ff6-8860-3e1c0b546669"
            },
            {
            }
          ],
          "InventoryTrackingType": 34,
          "isBatchedStockItem": false
        },
        {
        }
      ]
    },
    {
    }
  ]
}