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=6f8ffc3b-cd7c-411b-9a2b-697f7ee43913&fulfilmentLocationId=0c327605-76c5-4f31-8471-1cb7a9b0f330&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": "14bd047f-8e69-40c7-bf97-251f3aab4ec3",
        "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-10-09T15:11:45.526484+01:00",
    "Source": "sample string 14",
    "SubSource": "sample string 15",
    "SiteCode": "sample string 16",
    "HoldOrCancel": true,
    "DespatchByDate": "2019-10-09T15:11:45.526484+01:00",
    "ScheduledDelivery": {
      "From": "2019-10-09T15:11:45.526484+01:00",
      "To": "2019-10-09T15:11:45.526484+01:00"
    },
    "HasScheduledDelivery": true,
    "Location": "fbe8ac78-c83e-4fdd-9a08-917424661476",
    "NumItems": 20,
    "StockAllocationType": 0
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "1ee19be4-2a2e-4951-89f5-df42af400b85",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.1,
    "ItemWeight": 5.1,
    "PackageCategoryId": "c712c66c-ac8b-4021-9ca8-4748d11b11a2",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "7b6df827-a2fa-40da-892f-6e825f8dd6a2",
    "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": "3b463696-1bc9-440b-86c4-beb8f9303bd5"
    },
    "BillingAddress": {
    }
  },
  "TotalsInfo": {
    "Subtotal": 1.1,
    "PostageCost": 2.1,
    "Tax": 3.1,
    "TotalCharge": 4.1,
    "PaymentMethod": "sample string 5",
    "PaymentMethodId": "c5d28e54-3b5a-4de9-8149-f1c82e5e17c5",
    "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": "00335bb3-5482-4643-b5f3-61e9ec58a939",
      "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": "a700bda2-74de-4bd5-9504-3fe0d6b52cef",
        "Rowid": "6f06824c-f532-46d0-b079-1155e95dda2f",
        "pkPurchaseId": "e4b402f0-921f-4766-8e6c-9f4975398e6e",
        "ExternalInvoiceNumber": "sample string 4",
        "fkSupplierId": "22cc681a-b893-4988-ba28-ee6270dd743d",
        "DateOfDelivery": "2019-10-09T15:11:45.527497+01:00",
        "QuotedDeliveryDate": "2019-10-09T15:11:45.527497+01:00",
        "SupplierName": "sample string 8",
        "fkLocationId": "b8cc8953-dbb9-414f-9e44-0e37ff38d448"
      },
      "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": "1b8cf46e-98af-4705-97ab-0b1d3256912f",
      "AdditionalInfo": [
        {
          "pkOptionId": "02fb8ae4-153e-4eab-93f0-7b04a8b36c6a",
          "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": "59f87ea0-d164-4ed0-b813-5e3454fd9012",
          "BatchId": 1,
          "OrderItemBatchId": 1
        },
        {
        }
      ],
      "InventoryTrackingType": 33,
      "isBatchedStockItem": false,
      "IsWarehouseManaged": true,
      "HasPurchaseOrders": true,
      "CanPurchaseOrderFulfil": true,
      "IsUnlinked": false,
      "RowId": "ffe94eed-1357-4131-93ef-73b998d525f0",
      "OrderId": "b5b72fa3-0b66-41e8-83f4-f569afdfa2ed",
      "StockItemId": "b844d314-9767-4974-951a-ba4363abf095"
    },
    {
    }
  ],
  "HasItems": true,
  "OrderId": "963dba9f-5ea2-4b0e-afce-762eafa9d914"
}