Back

Search

Search

Methods

Inventory

Orders

Orders /GetOrder

Response: OpenOrder



Get a specific open order

Parameters

NameTypeDescription
orderIdGuidOrder id
fulfilmentLocationIdNullable<Guid>Current fulfilment center
loadItemsBooleanLoad or not the order items information
loadAdditionalInfoBooleanLoad or not the order additional info

HTTP Endpoint

Server /Orders / GetOrder

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Orders/GetOrder 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

orderId=8ee040e6-94f6-401a-8873-23278d4d7028&fulfilmentLocationId=8a8e18d2-e8a6-4833-94dc-c362f9725b2a&loadItems=true&loadAdditionalInfo=true

Response

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

{
  "NumOrderId": 1,
  "GeneralInfo": {
    "Status": 1,
    "LabelPrinted": true,
    "LabelError": "sample string 3",
    "InvoicePrinted": true,
    "PickListPrinted": true,
    "IsRuleRun": true,
    "Notes": 7,
    "PartShipped": true,
    "Marker": 64,
    "IsParked": true,
    "Identifiers": null,
    "ReferenceNum": "sample string 10",
    "SecondaryReference": "sample string 11",
    "ExternalReferenceNum": "sample string 12",
    "ReceivedDate": "2018-10-03T11:12:36.8121384+01:00",
    "Source": "sample string 14",
    "SubSource": "sample string 15",
    "SiteCode": "sample string 16",
    "HoldOrCancel": true,
    "DespatchByDate": "2018-10-03T11:12:36.8121384+01:00",
    "ScheduledDelivery": {
      "From": "2018-10-03T11:12:36.8121384+01:00",
      "To": "2018-10-03T11:12:36.8121384+01:00"
    },
    "HasScheduledDelivery": true,
    "Location": "42f5adae-79b6-465e-be1f-a3dfe47ee620",
    "NumItems": 20,
    "StockAllocationType": 0
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "9c3dc5d1-cc24-437d-8dc8-7a1757ee8807",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.1,
    "ItemWeight": 5.1,
    "PackageCategoryId": "e1841f94-fa2a-48af-aca7-304b205fce78",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "68b6e0e9-7c03-4929-aeac-9cf539c91dee",
    "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",
      "Continent": "sample string 9",
      "FullName": "sample string 10",
      "Company": "sample string 11",
      "PhoneNumber": "sample string 12",
      "CountryId": "dd1728ab-5239-4946-814c-a512e2d2433c"
    },
    "BillingAddress": {
    }
  },
  "TotalsInfo": {
    "Subtotal": 1.1,
    "PostageCost": 2.1,
    "Tax": 3.1,
    "TotalCharge": 4.1,
    "PaymentMethod": "sample string 5",
    "PaymentMethodId": "0b27bd91-0cef-4be5-8c0f-5f6ea315f8a5",
    "ProfitMargin": 7.1,
    "TotalDiscount": 8.1,
    "Currency": "sample string 9",
    "CountryTaxRate": 10.1,
    "ConversionRate": 11.1
  },
  "FolderName": [
    "sample string 1",
    "sample string 2"
  ],
  "IsPostFilteredOut": true,
  "CanFulfil": true,
  "Items": [
    {
      "ItemId": "20d138d0-28c5-4247-9326-d8978f952f79",
      "ItemNumber": "sample string 2",
      "SKU": "sample string 3",
      "ItemSource": "sample string 4",
      "Title": "sample string 5",
      "Quantity": 6,
      "CategoryName": "sample string 8",
      "CompositeAvailablity": 1,
      "StockLevelsSpecified": true,
      "OnOrder": 10,
      "InOrderBook": 1,
      "Level": 11,
      "MinimumLevel": 1,
      "AvailableStock": 12,
      "PricePerUnit": 13.1,
      "UnitCost": 14.1,
      "Discount": 15.1,
      "Tax": 20.1,
      "TaxRate": 16.1,
      "Cost": 17.1,
      "CostIncTax": 18.1,
      "CompositeSubItems": [
        {
        },
        {
        }
      ],
      "IsService": true,
      "SalesTax": 20.1,
      "TaxCostInclusive": true,
      "PartShipped": true,
      "Weight": 23.1,
      "BarcodeNumber": "sample string 24",
      "Market": 25,
      "ChannelSKU": "sample string 26",
      "ChannelTitle": "sample string 27",
      "DiscountValue": 10.222739018087856,
      "HasImage": true,
      "ImageId": "3d9793b3-2087-473f-9b3a-4bf45ba7fabf",
      "AdditionalInfo": [
        {
          "pkOptionId": "f0796f33-a278-41cf-9e7e-c38083ffcbbb",
          "Property": "sample string 2",
          "Value": "sample string 3"
        },
        {
        }
      ],
      "StockLevelIndicator": 28,
      "BatchNumberScanRequired": true,
      "SerialNumberScanRequired": true,
      "BinRack": "sample string 31",
      "BinRacks": [
        {
          "Quantity": 1,
          "BinRack": "sample string 2",
          "Location": "a0861c72-c0c5-4a80-bbc4-8e6a6b41f6bc",
          "BatchId": 1,
          "OrderItemBatchId": 1
        },
        {
        }
      ],
      "InventoryTrackingType": 32,
      "isBatchedStockItem": false,
      "HasPurchaseOrders": true,
      "CanPurchaseOrderFulfil": true,
      "IsUnlinked": false,
      "RowId": "fea69910-9933-469b-a77e-45a2bb7ab2bc",
      "OrderId": "0f29a962-b5be-4591-a551-86278b8d7a91",
      "StockItemId": "42d43300-e2b9-4409-826c-b0c7aec42f75"
    },
    {
    }
  ],
  "HasItems": true,
  "OrderId": "df6905c6-74e3-4bd5-809a-ece5d0b8e7df"
}