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=032c7b53-ec64-41dd-9910-03860dcf2c83&fulfilmentLocationId=ba3a04bc-4e6b-4f66-a8e0-41852cfda3a9&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": [
      {
        "IdentifierId": 1,
        "IsCustom": true,
        "ImageId": "4e708051-7470-4263-8581-2588f3b4a320",
        "ImageUrl": "sample string 4",
        "Tag": "sample string 5",
        "Name": "sample string 6"
      },
      {
      }
    ],
    "ReferenceNum": "sample string 10",
    "SecondaryReference": "sample string 11",
    "ExternalReferenceNum": "sample string 12",
    "ReceivedDate": "2019-11-28T09:46:01.8735315+00:00",
    "Source": "sample string 14",
    "SubSource": "sample string 15",
    "SiteCode": "sample string 16",
    "HoldOrCancel": true,
    "DespatchByDate": "2019-11-28T09:46:01.8735315+00:00",
    "ScheduledDelivery": {
      "From": "2019-11-28T09:46:01.8735315+00:00",
      "To": "2019-11-28T09:46:01.8735315+00:00"
    },
    "HasScheduledDelivery": true,
    "Location": "ba3db940-fb83-42d4-a322-45b99de79d6b",
    "NumItems": 20,
    "StockAllocationType": 0
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "77dc8f27-deef-43e1-a4c2-ba407ab9b372",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.1,
    "ItemWeight": 5.1,
    "PackageCategoryId": "52019c47-1f83-4e6f-8ad2-08d58fce561c",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "85512cbe-9200-440c-b8c6-0c304ae46bd2",
    "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": "e2b54a66-a050-4a16-b7bd-2cb87faa0f0e"
    },
    "BillingAddress": {
    }
  },
  "TotalsInfo": {
    "Subtotal": 1.1,
    "PostageCost": 2.1,
    "Tax": 3.1,
    "TotalCharge": 4.1,
    "PaymentMethod": "sample string 5",
    "PaymentMethodId": "d6a508c0-13f0-4540-99f0-5b7260753cab",
    "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": "da7594aa-ac4f-4a04-b4ac-3ce39955a1ef",
      "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,
      "OnPurchaseOrder": {
        "pkPurchaseItemId": "d6edde68-a684-4c08-bb24-beb015c7b906",
        "Rowid": "1afba345-4035-4b58-ab28-04599d1cefc0",
        "pkPurchaseId": "af1ebe4d-52a8-46ec-8c92-fdb1b9ee0769",
        "ExternalInvoiceNumber": "sample string 4",
        "fkSupplierId": "cfe325db-ea2d-415a-a389-33fd343a6c68",
        "DateOfDelivery": "2019-11-28T09:46:01.8735315+00:00",
        "QuotedDeliveryDate": "2019-11-28T09:46:01.8735315+00:00",
        "SupplierName": "sample string 8",
        "fkLocationId": "c9d8e2a5-3925-4a9f-a986-2cb94a7a3758"
      },
      "InOrderBook": 1,
      "Level": 11,
      "MinimumLevel": 1,
      "AvailableStock": 12,
      "PricePerUnit": 13.1,
      "UnitCost": 14.1,
      "DespatchStockUnitCost": 15.1,
      "Discount": 16.1,
      "Tax": 21.1,
      "TaxRate": 17.1,
      "Cost": 18.1,
      "CostIncTax": 19.1,
      "CompositeSubItems": [
        {
        },
        {
        }
      ],
      "IsService": true,
      "SalesTax": 21.1,
      "TaxCostInclusive": true,
      "PartShipped": true,
      "Weight": 24.1,
      "BarcodeNumber": "sample string 25",
      "Market": 26,
      "ChannelSKU": "sample string 27",
      "ChannelTitle": "sample string 28",
      "DiscountValue": 10.806660973526899,
      "HasImage": true,
      "ImageId": "c1abd81c-18c8-4c39-b814-0ae2505a4ce2",
      "AdditionalInfo": [
        {
          "pkOptionId": "9163833e-548b-41d0-af41-dd1355f32cfa",
          "Property": "sample string 2",
          "Value": "sample string 3"
        },
        {
        }
      ],
      "StockLevelIndicator": 29,
      "BatchNumberScanRequired": true,
      "SerialNumberScanRequired": true,
      "BinRack": "sample string 32",
      "BinRacks": [
        {
          "Quantity": 1,
          "BinRack": "sample string 2",
          "Location": "fd20c34b-e3e9-4b4f-ac4a-08faf6280136",
          "BatchId": 1,
          "OrderItemBatchId": 1
        },
        {
        }
      ],
      "InventoryTrackingType": 33,
      "isBatchedStockItem": false,
      "IsWarehouseManaged": true,
      "HasPurchaseOrders": true,
      "CanPurchaseOrderFulfil": true,
      "IsUnlinked": false,
      "RowId": "fa912550-f838-44d0-9853-2c5add4a8814",
      "OrderId": "3d3183b8-467b-4fad-8e46-21bc86cf0a69",
      "StockItemId": "c7faad11-c7b4-4c15-abfb-5e0bde9165e0"
    },
    {
    }
  ],
  "HasItems": true,
  "OrderId": "3ebf8e35-bc40-4ec5-beb3-f68dca45978a"
}