Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

Orders /CreateOrders

Allows 150 calls per minute

Response: List<Guid>



Creates new orders, once an order is paid it will be skipped on save. Returns list of pkOrderId's that were saved.

Parameters

NameTypeDescription
ordersList<ChannelOrder>List of orders to create
locationStringLocation to create the order

Example Request

The following request format is required for this method.

Endpoint URL

POST https://eu-ext.linnworks.net/api/Orders/CreateOrders

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.

orders=[
  {
    "UseChannelTax": true,
    "pkOrderId": "11fcd092-dfdd-4fc5-9bee-f2e5b8008589",
    "AutomaticallyLinkBySKU": true,
    "Site": "sample string 4",
    "MatchPostalServiceTag": "sample string 5",
    "PostalServiceName": "sample string 6",
    "SavePostalServiceIfNotExist": true,
    "MatchPaymentMethodTag": "sample string 8",
    "PaymentMethodName": "sample string 9",
    "SavePaymentMethodIfNotExist": true,
    "MappingSource": "sample string 11",
    "OrderState": "None",
    "PaymentStatus": "Unpaid",
    "OrderItems": [
      {
        "TaxCostInclusive": true,
        "UseChannelTax": true,
        "PricePerUnit": 3.1,
        "Qty": 4,
        "TaxRate": 5.1,
        "LineDiscount": 6.1,
        "ItemNumber": "sample string 7",
        "ChannelSKU": "sample string 8",
        "IsService": true,
        "ItemTitle": "sample string 10",
        "Options": [
          {
            "Property": "sample string 1",
            "Value": "sample string 2"
          }
        ],
        "Taxes": [
          {
            "TaxType": "sample string 1",
            "TaxValue": 2.0,
            "IsSellerCollected": true
          }
        ]
      }
    ],
    "ExtendedProperties": [
      {
        "Name": "sample string 1",
        "Value": "sample string 2",
        "Type": "sample string 3"
      }
    ],
    "Notes": [
      {
        "Note": "sample string 1",
        "NoteEntryDate": "2021-07-29T09:24:12.6641228+01:00",
        "NoteUserName": "sample string 3",
        "Internal": true
      }
    ],
    "Source": "sample string 12",
    "SubSource": "sample string 13",
    "ChannelBuyerName": "sample string 14",
    "ReferenceNumber": "sample string 15",
    "ExternalReference": "sample string 16",
    "SecondaryReferenceNumber": "sample string 17",
    "Currency": "sample string 18",
    "ConversionRate": 19.1,
    "ReceivedDate": "2021-07-29T09:24:12.6651205+01:00",
    "DispatchBy": "2021-07-29T09:24:12.6651205+01:00",
    "PaidOn": "2021-07-29T09:24:12.6651205+01:00",
    "PostalServiceCost": 23.1,
    "PostalServiceTaxRate": 24.1,
    "PostalServiceDiscount": 25.1,
    "Discount": 26.1,
    "BuyerTaxNumber": "sample string 27",
    "DiscountType": "AllEvenly",
    "DiscountTaxType": "DeductAfterTax",
    "BillingAddress": {
      "MatchCountryCode": "sample string 1",
      "MatchCountryName": "sample string 2",
      "FullName": "sample string 3",
      "Company": "sample string 4",
      "Address1": "sample string 5",
      "Address2": "sample string 6",
      "Address3": "sample string 7",
      "Town": "sample string 8",
      "Region": "sample string 9",
      "PostCode": "sample string 10",
      "Country": "sample string 11",
      "PhoneNumber": "sample string 12",
      "EmailAddress": "sample string 13",
      "isEmpty": false
    },
    "DeliveryAddress": {
      "MatchCountryCode": "sample string 1",
      "MatchCountryName": "sample string 2",
      "FullName": "sample string 3",
      "Company": "sample string 4",
      "Address1": "sample string 5",
      "Address2": "sample string 6",
      "Address3": "sample string 7",
      "Town": "sample string 8",
      "Region": "sample string 9",
      "PostCode": "sample string 10",
      "Country": "sample string 11",
      "PhoneNumber": "sample string 12",
      "EmailAddress": "sample string 13",
      "isEmpty": false
    },
    "DeliveryStartDate": "2021-07-29T09:24:12.6901197+01:00",
    "DeliveryEndDate": "2021-07-29T09:24:12.6901197+01:00",
    "OrderIdentifierTags": [
      "sample string 1"
    ],
    "ForceReSaveFulfilledOrder": true
  }
]&location=sample string 1

Response

This is an example of the response JSON. Results will vary depending on your data.

[
  "5d2fe187-a7ad-4675-84da-6222f9bc9da3"
]