Back

Search

Search

Methods

Inventory

Orders

Orders /CreateNewOrder

Response: OpenOrder



Create an empty draft order. (Please see CreateOrders call)

Parameters

NameTypeDescription
fulfilmentCenterGuidFulfilment center to be associated

HTTP Endpoint

Server /Orders / CreateNewOrder

Permissions


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=75a80ea7-20e6-42d8-9aed-05a2cf3207b0

Response

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

{
  "OrderId": "75c8e3f0-5a73-47d0-a167-8ed9ebc49a6d",
  "NumOrderId": 2,
  "GeneralInfo": {
    "Status": 1,
    "LabelPrinted": true,
    "LabelError": "sample string 3",
    "InvoicePrinted": true,
    "PickListPrinted": true,
    "IsRuleRun": true,
    "Notes": 7,
    "PartShipped": true,
    "Marker": 64,
    "ReferenceNum": "sample string 9",
    "SecondaryReference": "sample string 10",
    "ExternalReferenceNum": "sample string 11",
    "ReceivedDate": "2018-02-19T16:57:08.1969984+00:00",
    "Source": "sample string 13",
    "SubSource": "sample string 14",
    "SiteCode": "sample string 15",
    "HoldOrCancel": true,
    "DespatchByDate": "2018-02-19T16:57:08.1969984+00:00",
    "Location": "5f96b54a-6558-400b-a75e-bfdee7551b85",
    "NumItems": 19
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "b4f002a2-6e81-40eb-85e3-ca2a86a57421",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.1,
    "ItemWeight": 5.1,
    "PackageCategoryId": "6d73dd4c-38c8-4214-9d10-fa6c319dc1c9",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "c11754a2-eac8-4eaa-ad94-78ed61745e39",
    "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",
      "FullName": "sample string 9",
      "Company": "sample string 10",
      "PhoneNumber": "sample string 11",
      "CountryId": "1b523a91-027a-45e5-a114-8141bf645e62"
    },
    "BillingAddress": {
    }
  },
  "TotalsInfo": {
    "Subtotal": 1.1,
    "PostageCost": 2.1,
    "Tax": 3.1,
    "TotalCharge": 4.1,
    "PaymentMethod": "sample string 5",
    "PaymentMethodId": "96cbdd1a-eab7-4e73-b875-af7939e214b0",
    "ProfitMargin": 7.1,
    "TotalDiscount": 8.1,
    "Currency": "sample string 9",
    "CountryTaxRate": 10.1,
    "ConversionRate": 11.1
  },
  "FolderName": [
    "sample string 1",
    "sample string 2"
  ],
  "Items": [
    {
      "OrderId": "23873299-3fa0-438b-87f6-0cbed9fbd568",
      "ItemId": "107bb4a6-ea41-4f77-a6ea-e0dd8862d1a4",
      "StockItemId": "c812dbd0-d905-4120-aa9c-cc1eea112333",
      "ItemNumber": "sample string 4",
      "SKU": "sample string 5",
      "ItemSource": "sample string 6",
      "Title": "sample string 7",
      "Quantity": 8,
      "CategoryName": "sample string 9",
      "CompositeAvailablity": 1,
      "RowId": "b72ab79a-cbea-4b1b-88f4-e755e55bcac9",
      "StockLevelsSpecified": true,
      "OnOrder": 12,
      "InOrderBook": 1,
      "Level": 13,
      "MinimumLevel": 1,
      "AvailableStock": 14,
      "PricePerUnit": 15.1,
      "UnitCost": 16.1,
      "Discount": 17.1,
      "Tax": 22.1,
      "TaxRate": 18.1,
      "Cost": 19.1,
      "CostIncTax": 20.1,
      "CompositeSubItems": [
        {
        },
        {
        }
      ],
      "IsService": true,
      "SalesTax": 22.1,
      "TaxCostInclusive": true,
      "PartShipped": true,
      "Weight": 25.1,
      "BarcodeNumber": "sample string 26",
      "Market": 27,
      "ChannelSKU": "sample string 28",
      "ChannelTitle": "sample string 29",
      "DiscountValue": 17.490939881456391,
      "HasImage": true,
      "ImageId": "a7bb0221-181e-45e6-b9ee-e646b0b7365d",
      "AdditionalInfo": [
        {
          "pkOptionId": "9468e05a-4844-4401-92fc-553c66a96675",
          "Property": "sample string 2",
          "Value": "sample string 3"
        },
        {
        }
      ],
      "StockLevelIndicator": 30,
      "BatchNumberScanRequired": true,
      "SerialNumberScanRequired": true,
      "BinRack": "sample string 33",
      "BinRacks": [
        {
          "Quantity": 1,
          "BinRack": "sample string 2",
          "Location": "4bb3e6d7-cb3b-4e9d-bb9c-0d3db8af60df"
        },
        {
        }
      ],
      "InventoryTrackingType": 34,
      "isBatchedStockItem": false
    },
    {
    }
  ]
}