Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

Orders /CreateNewOrder

Allows 150 calls per minute

Response: OpenOrder



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

Parameters

NameTypeDescription
fulfilmentCenterGuidFulfilment center to be associated
createAsDraftBoolean

Permissions

GlobalPermissions.OrderBook.OpenOrders.CreateOrdersNode

Example Request

The following request format is required for this method.

Endpoint URL

GET | POST https://eu-ext.linnworks.net/api/Orders/CreateNewOrder

Headers

Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

Request Body

This is an example of the request structure. Results will vary depending on your data.

fulfilmentCenter=a173276a-06f9-4619-a0af-de534d39d095&createAsDraft=true

Response

This is an example of the response JSON. Results will 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": "7285eca9-f848-4672-b7db-107b99609ebf",
        "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": "2022-09-05T15:10:05.2166804+03:00",
    "Source": "sample string 14",
    "SubSource": "sample string 15",
    "SiteCode": "sample string 16",
    "HoldOrCancel": true,
    "DespatchByDate": "2022-09-05T15:10:05.2166804+03:00",
    "ScheduledDelivery": {
      "From": "2022-09-05T15:10:05.2166804+03:00",
      "To": "2022-09-05T15:10:05.2166804+03:00"
    },
    "HasScheduledDelivery": true,
    "Location": "9399c63c-0320-4598-8468-dcdeb07fbeeb",
    "NumItems": 20,
    "PickwaveIds": [
      1
    ],
    "StockAllocationType": 0
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "36c49bf4-ec6c-4fa0-abf4-dda29d83beb1",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.0,
    "ItemWeight": 5.0,
    "PackageCategoryId": "6d1411ca-9ecd-4570-9af5-dc7e76c861eb",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "b8f561b1-b6d2-4082-9ce1-895c98d5920f",
    "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": "bc719668-e2a5-4f1e-ac90-c19271277830"
    },
    "BillingAddress": {
    }
  },
  "TotalsInfo": {
    "Subtotal": 2.1,
    "PostageCost": 3.1,
    "PostageCostExTax": 4.1,
    "Tax": 5.1,
    "TotalCharge": 6.1,
    "PaymentMethod": "sample string 7",
    "PaymentMethodId": "a76a9914-5cee-4763-91b5-71dfb6067f59",
    "ProfitMargin": 9.1,
    "TotalDiscount": 10.1,
    "Currency": "sample string 11",
    "CountryTaxRate": 12.1,
    "ConversionRate": 13.1
  },
  "TaxInfo": {
    "TaxNumber": "sample string 1"
  },
  "FolderName": [
    "sample string 1"
  ],
  "IsPostFilteredOut": true,
  "CanFulfil": true,
  "Fulfillment": {
    "FulfillmentState": 0,
    "PurchaseOrderState": 1
  },
  "Items": [
    {
      "ItemId": "086dda8c-0f75-4e2c-b8d1-189c269ecd74",
      "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": "9dd5bb66-2882-465f-8d8e-d4a24b53a29f",
        "Rowid": "f03bdf31-52d8-4dc4-9bd7-07668bfc6f20",
        "pkPurchaseId": "6d726e28-6b0b-4570-9378-34322fc8a0a0",
        "ExternalInvoiceNumber": "sample string 4",
        "fkSupplierId": "14d15dc3-3062-4fe8-a49d-c00f6fe84fde",
        "DateOfDelivery": "2022-09-05T15:10:05.2166804+03:00",
        "QuotedDeliveryDate": "2022-09-05T15:10:05.2166804+03:00",
        "SupplierName": "sample string 8",
        "fkLocationId": "7ea82d5b-64c6-4a64-afc3-7bd71d843deb"
      },
      "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": "dfbb8248-d7cb-4515-b51a-3e27cb481f59",
      "AdditionalInfo": [
        {
          "pkOptionId": "eff63678-0e56-4d8f-aadd-86ad88a52025",
          "Property": "sample string 2",
          "Value": "sample string 3"
        }
      ],
      "StockLevelIndicator": 29,
      "ShippingCost": 30.1,
      "PartShippedQty": 31,
      "ItemName": "sample string 32",
      "BatchNumberScanRequired": true,
      "SerialNumberScanRequired": true,
      "BinRack": "sample string 35",
      "BinRacks": [
        {
          "Quantity": 1,
          "BinRack": "sample string 2",
          "Location": "43ecd6ad-56eb-4f9c-9609-0035f0db8013",
          "BatchId": 1,
          "OrderItemBatchId": 1
        }
      ],
      "InventoryTrackingType": 36,
      "isBatchedStockItem": false,
      "IsWarehouseManaged": true,
      "IsUnlinked": false,
      "StockItemIntId": 39,
      "Boxes": [
        {
          "BoxId": 1,
          "StockItemIntId": 2,
          "BoxName": "sample string 3",
          "Width": 4.0,
          "Height": 5.0,
          "Length": 6.0,
          "Weight": 7.0,
          "ValuePercentage": 8.0,
          "Barcode": "sample string 9",
          "PackagingTypeId": "9999bc4f-6d7a-4076-b970-60518eb7c970",
          "LogicalDelete": true
        }
      ],
      "RowId": "fedd8b55-d363-4060-9919-8174fbdee6b2",
      "OrderId": "d0e2c415-c95e-4870-a0c5-2bd5644bb721",
      "StockItemId": "9905a5ce-3dc7-428f-b8de-48c9bc8f6245"
    }
  ],
  "HasItems": true,
  "TotalItemsSum": 0,
  "OrderId": "ee5421d7-2a4b-4204-8d11-3878025be855"
}