Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

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": "ec031799-ae0c-4a05-bc62-e403a8147430",
    "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",
    "OrderStatusType": "Pending",
    "OrderStatus": "sample string 12",
    "PaymentStatus": "Unpaid",
    "OrderItems": [
      {
        "TaxCostInclusive": true,
        "UseChannelTax": true,
        "PricePerUnit": 3.1,
        "PostalServiceCost": 4.1,
        "Qty": 5,
        "TaxRate": 6.1,
        "LineDiscount": 7.1,
        "LineRefund": 8.0,
        "RefundQuantity": 9.0,
        "ShippingRefund": 10.0,
        "TotalRefund": 11.0,
        "ItemNumber": "sample string 12",
        "ChannelSKU": "sample string 13",
        "IsService": true,
        "ItemTitle": "sample string 15",
        "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": "2022-08-03T16:02:28.8065236+01:00",
        "NoteUserName": "sample string 3",
        "Internal": true
      }
    ],
    "Source": "sample string 13",
    "SubSource": "sample string 14",
    "ChannelBuyerName": "sample string 15",
    "ReferenceNumber": "sample string 16",
    "ExternalReference": "sample string 17",
    "SecondaryReferenceNumber": "sample string 18",
    "Currency": "sample string 19",
    "ConversionRate": 20.1,
    "ReceivedDate": "2022-08-03T16:02:28.8075203+01:00",
    "DispatchBy": "2022-08-03T16:02:28.8075203+01:00",
    "PaidOn": "2022-08-03T16:02:28.8075203+01:00",
    "PostalServiceCost": 24.1,
    "PostalServiceTaxRate": 25.1,
    "PostalServiceDiscount": 26.1,
    "Discount": 27.1,
    "ItemsRefund": 28.0,
    "ShippingRefund": 29.0,
    "TotalRefund": 30.0,
    "LineRefundAllocation": 0,
    "ShippingRefundAllocation": 0,
    "BuyerTaxNumber": "sample string 31",
    "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": "2022-08-03T16:02:28.8547933+01:00",
    "DeliveryEndDate": "2022-08-03T16:02:28.8547933+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.

[
  "d1488305-316f-44b3-8326-e02256c380b7"
]