Back

Search

Search

Methods

Inventory

Orders

Orders /GetOrderDetailsByNumOrderId

Response: OrderDetails



Retrieves the order detail for a given order numeric id. If not found empty class is returned.

Parameters

NameTypeDescription
OrderIdInt32Order Id (numeric)

HTTP Endpoint

Server /Orders / GetOrderDetailsByNumOrderId

Permissions

GlobalPermissions.OrderBook.ViewOrderDetailsNode

Example Code

Example Request

The following request format is required for this method.

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

Response

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

{
  "OrderId": "3fb0b4c5-ea25-4b82-a49a-3db1995ac4aa",
  "NumOrderId": 2,
  "Processed": true,
  "ProcessedDateTime": "2019-07-23T15:31:56.7808065+01:00",
  "FulfilmentLocationId": "00362aef-4a6b-462f-b588-fa54f4aaf841",
  "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": "1d18ad94-004e-44bd-8704-5f238f637383",
        "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-07-23T15:31:56.7808065+01:00",
    "Source": "sample string 14",
    "SubSource": "sample string 15",
    "SiteCode": "sample string 16",
    "HoldOrCancel": true,
    "DespatchByDate": "2019-07-23T15:31:56.7808065+01:00",
    "ScheduledDelivery": {
      "From": "2019-07-23T15:31:56.7808065+01:00",
      "To": "2019-07-23T15:31:56.7808065+01:00"
    },
    "HasScheduledDelivery": true,
    "Location": "36640149-ad3b-49e4-b658-543939192c29",
    "NumItems": 20,
    "StockAllocationType": 0
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "28dc3cd3-665f-4aed-855e-c3cd66de6a67",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.1,
    "ItemWeight": 5.1,
    "PackageCategoryId": "ac5685ef-e370-4d36-9e44-39f447eba840",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "16fa126d-aa5c-4a1f-b33a-ab92633811e5",
    "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": "cb1ab8d2-32f0-4b13-a613-38ac450f1ec5"
    },
    "BillingAddress": {
    }
  },
  "TotalsInfo": {
    "Subtotal": 1.1,
    "PostageCost": 2.1,
    "Tax": 3.1,
    "TotalCharge": 4.1,
    "PaymentMethod": "sample string 5",
    "PaymentMethodId": "a96ce2ef-646f-45e8-95bd-edb9050c13bb",
    "ProfitMargin": 7.1,
    "TotalDiscount": 8.1,
    "Currency": "sample string 9",
    "CountryTaxRate": 10.1,
    "ConversionRate": 11.1
  },
  "ExtendedProperties": [
    {
      "RowId": "849dfa38-d3fb-481d-9b58-96091db1c9c7",
      "Name": "sample string 2",
      "Value": "sample string 3",
      "Type": "sample string 4"
    },
    {
    }
  ],
  "FolderName": [
    "sample string 1",
    "sample string 2"
  ],
  "Items": [
    {
      "ItemId": "c8b66db1-4c55-4e24-bf66-4f7734ac8fed",
      "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": "42f55d86-ed73-408f-993a-cc632424b071",
        "Rowid": "0c405e50-ce67-40b6-abc7-87331731f4a9",
        "pkPurchaseId": "7a068aa0-9813-4016-8a90-995c16966f1e",
        "ExternalInvoiceNumber": "sample string 4",
        "fkSupplierId": "9e90790c-4166-4816-8b02-ed75b894446a",
        "DateOfDelivery": "2019-07-23T15:31:56.7808065+01:00",
        "QuotedDeliveryDate": "2019-07-23T15:31:56.7808065+01:00",
        "SupplierName": "sample string 8",
        "fkLocationId": "3875d379-8473-4f27-ad06-ad4b509d7db7"
      },
      "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": "e2804100-7b86-456c-84ae-bc3ee5f9fa10",
      "AdditionalInfo": [
        {
          "pkOptionId": "963d083d-0fc0-4ea9-bd3b-12314582ceab",
          "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": "364c6554-ced3-410c-b561-16e93a0a4e70",
          "BatchId": 1,
          "OrderItemBatchId": 1
        },
        {
        }
      ],
      "InventoryTrackingType": 33,
      "isBatchedStockItem": false,
      "IsWarehouseManaged": true,
      "HasPurchaseOrders": true,
      "CanPurchaseOrderFulfil": true,
      "IsUnlinked": false,
      "RowId": "cc8b2c61-4357-49f0-9870-2c5dcb729b0f",
      "OrderId": "4777ecae-573c-4ca1-b075-34dfcd4b143b",
      "StockItemId": "ac21fb55-0635-4e9d-b7d0-85404ca3d1d5"
    },
    {
    }
  ],
  "Notes": [
    {
      "OrderNoteId": "5b079f11-190d-40e8-a9ae-648960b46763",
      "OrderId": "b9e7d5da-f108-43aa-9338-0e2b005af4a7",
      "NoteDate": "2019-07-23T15:31:56.7808065+01:00",
      "Internal": true,
      "Note": "sample string 5",
      "CreatedBy": "sample string 6",
      "NoteTypeId": 64
    },
    {
    }
  ]
}