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=b97ddcf6-e1b8-4dd6-9f76-e186c8205f32&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": "ed16ef8e-ac78-4715-b0c8-06397447599d",
        "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": "2023-01-10T13:49:54.3380224+00:00",
    "Source": "sample string 14",
    "SubSource": "sample string 15",
    "SiteCode": "sample string 16",
    "HoldOrCancel": true,
    "DespatchByDate": "2023-01-10T13:49:54.3380224+00:00",
    "ScheduledDelivery": {
      "From": "2023-01-10T13:49:54.3380224+00:00",
      "To": "2023-01-10T13:49:54.3380224+00:00"
    },
    "HasScheduledDelivery": true,
    "Location": "a6195c0b-adc3-4db1-a9b9-7ff51f8b2aff",
    "NumItems": 20,
    "PickwaveIds": [
      1
    ],
    "StockAllocationType": 0
  },
  "ShippingInfo": {
    "Vendor": "sample string 1",
    "PostalServiceId": "d511c957-98cc-4fdb-96c6-f52b38e67a18",
    "PostalServiceName": "sample string 3",
    "TotalWeight": 4.0,
    "ItemWeight": 5.0,
    "PackageCategoryId": "cfec28f0-3c50-4734-8572-b59650286f72",
    "PackageCategory": "sample string 7",
    "PackageTypeId": "36e95cc1-b673-41b1-a33c-7c217b46924d",
    "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": "0ad7131f-76f9-4221-a823-5cedf5826be3"
    },
    "BillingAddress": {
    }
  },
  "TotalsInfo": {
    "Subtotal": 2.1,
    "PostageCost": 3.1,
    "PostageCostExTax": 4.1,
    "Tax": 5.1,
    "TotalCharge": 6.1,
    "PaymentMethod": "sample string 7",
    "PaymentMethodId": "f630a065-abed-4abc-ad0b-1ed022804d85",
    "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": "96618e01-c553-4a2d-a4fa-58c4d8e28182",
      "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": "fea32d59-7ebd-40c8-9546-1cbe061ea352",
        "Rowid": "eab69ea4-5eaf-4923-b714-b9d7056137b7",
        "pkPurchaseId": "72409380-e374-499c-8706-ace6b03c4312",
        "ExternalInvoiceNumber": "sample string 4",
        "fkSupplierId": "20005f3b-e585-4e54-a8c1-4d14a9c46aed",
        "DateOfDelivery": "2023-01-10T13:49:54.339019+00:00",
        "QuotedDeliveryDate": "2023-01-10T13:49:54.339019+00:00",
        "SupplierName": "sample string 8",
        "fkLocationId": "4c47a7af-06c7-4e2c-8bbb-dd277b7c6ab4"
      },
      "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": "5bb6f462-ab01-4a07-a614-4ea01a04b2fe",
      "AdditionalInfo": [
        {
          "pkOptionId": "3af6ccf8-bcdc-4eb7-b1aa-474d3c16fefb",
          "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": "e2f99e62-12a6-47c4-887a-aa5672bea5ca",
          "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": "a345eff6-26d2-434c-bb10-69fc7fcb223f",
          "LogicalDelete": true
        }
      ],
      "RowId": "6ca28fc7-a66e-4e37-8eb7-aef18e546f29",
      "OrderId": "0705e920-042a-4d80-8636-f7f4f83a29b7",
      "StockItemId": "0a101609-4e51-4cc7-8b8c-52968b491b63"
    }
  ],
  "HasItems": true,
  "TotalItemsSum": 0,
  "OrderId": "80829d68-68fc-42c4-ba52-5548b8c8dfe6"
}