Back

Search

Search

Methods

Inventory

Orders

Orders /CreateNewOrder

Response: OpenOrder


Parameters

NameTypeDescription
fulfilmentCenterGuid
createAsDraftBoolean

HTTP Endpoint

Server /Orders / CreateNewOrder

Permissions

GlobalPermissions.OrderBook.OpenOrdersNode

Example Code

Example Request

The following request format is required for this method.

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

fulfilmentCenter=f52aee69-c1f2-463e-99d2-ae6c2396ff8e&createAsDraft=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": "0baada72-1a0c-46d8-91a2-ba940e84fea8",
        "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-06-12T09:27:52.485949+01:00",
    "Source": "sample string 14",
    "SubSource": "sample string 15",
    "SiteCode": "sample string 16",
    "HoldOrCancel": true,
    "DespatchByDate": "2019-06-12T09:27:52.485949+01:00",
    "ScheduledDelivery": {
      "From": "2019-06-12T09:27:52.485949+01:00",
      "To": "2019-06-12T09:27:52.485949+01:00"
    },
    "HasScheduledDelivery": true,
    "Location": "457b4a10-2e3a-4bf2-a062-5621601013f6",
    "NumItems": 20,
    "StockAllocationType": 0
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "c44b8372-088f-4309-9519-76cb2620cf53",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.1,
    "ItemWeight": 5.1,
    "PackageCategoryId": "76322203-7c10-4ec5-9301-326b96400dd9",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "c0c3e082-a82b-42aa-a9ad-87a7d8cc0763",
    "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": "91768bd3-29af-41a2-908e-846207d45f5a"
    },
    "BillingAddress": {
    }
  },
  "TotalsInfo": {
    "Subtotal": 1.1,
    "PostageCost": 2.1,
    "Tax": 3.1,
    "TotalCharge": 4.1,
    "PaymentMethod": "sample string 5",
    "PaymentMethodId": "32d9de4d-b5b7-474d-9118-84f6d3baccb9",
    "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": "d7479c3e-ff41-44ea-9cff-af02c88e4295",
      "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": "ca7e4c6e-f634-45e2-9df9-ec2537675e2f",
        "Rowid": "be825cc6-8fc8-416e-b84b-03074f1f01fc",
        "pkPurchaseId": "f75a47ee-e53f-4003-9ccd-20418bada2b1",
        "ExternalInvoiceNumber": "sample string 4",
        "fkSupplierId": "9d2e34dc-4243-458a-adf2-b672f3b5fa60",
        "DateOfDelivery": "2019-06-12T09:27:52.485949+01:00",
        "QuotedDeliveryDate": "2019-06-12T09:27:52.485949+01:00",
        "SupplierName": "sample string 8",
        "fkLocationId": "0515dafa-bde2-4299-98a0-ca84c079bf7d"
      },
      "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": "fe33bf1a-6943-4623-911d-aa2cdff7c41e",
      "AdditionalInfo": [
        {
          "pkOptionId": "676273ee-8692-42bb-8f7d-6142a98f5b46",
          "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": "80b49cd5-84b1-406d-a1da-76507e63c2cb",
          "BatchId": 1,
          "OrderItemBatchId": 1
        },
        {
        }
      ],
      "InventoryTrackingType": 33,
      "isBatchedStockItem": false,
      "IsWarehouseManaged": true,
      "HasPurchaseOrders": true,
      "CanPurchaseOrderFulfil": true,
      "IsUnlinked": false,
      "RowId": "2e0eb86e-6470-4e6a-84e6-491d5e8fdcea",
      "OrderId": "b106cc70-7d6b-4398-a778-70a5995512b8",
      "StockItemId": "d59c0c79-3e93-4772-a75e-c8b3507770e2"
    },
    {
    }
  ],
  "HasItems": true,
  "OrderId": "b522d1cf-36e4-4d10-aa24-1099972a0ed4"
}