Creates new orders, once an order is paid it will be skipped on save. Returns list of pkOrderId's that were saved.
Name | Type | Description |
---|---|---|
orders | List<ChannelOrder> | List of orders to create |
location | String | Location to create the order |
The following request format is required for this method.
POST https://eu-ext.linnworks.net/api/Orders/CreateOrders
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
This is an example of the request structure. Results will vary depending on your data.
orders=[
{
"UseChannelTax": true,
"pkOrderId": "f8a4e672-2521-458c-9d68-30b1eae14db3",
"AutomaticallyLinkBySKU": true,
"AutomaticallyLinkByBarcode": true,
"AutomaticallyLinkByASIN": true,
"Site": "sample string 6",
"MatchPostalServiceTag": "sample string 7",
"PostalServiceName": "sample string 8",
"SavePostalServiceIfNotExist": true,
"MatchPaymentMethodTag": "sample string 10",
"PaymentMethodName": "sample string 11",
"SavePaymentMethodIfNotExist": true,
"MappingSource": "sample string 13",
"OrderState": "None",
"OrderStatusType": "Pending",
"OrderStatus": "sample string 14",
"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": "2023-01-10T13:49:45.7897127+00:00",
"NoteUserName": "sample string 3",
"Internal": true
}
],
"Source": "sample string 15",
"SubSource": "sample string 16",
"ChannelBuyerName": "sample string 17",
"ReferenceNumber": "sample string 18",
"ExternalReference": "sample string 19",
"SecondaryReferenceNumber": "sample string 20",
"Currency": "sample string 21",
"ConversionRate": 22.1,
"ReceivedDate": "2023-01-10T13:49:45.7907093+00:00",
"DispatchBy": "2023-01-10T13:49:45.7907093+00:00",
"PaidOn": "2023-01-10T13:49:45.7907093+00:00",
"PostalServiceCost": 26.1,
"PostalServiceTaxRate": 27.1,
"PostalServiceDiscount": 28.1,
"Discount": 29.1,
"ItemsRefund": 30.0,
"ShippingRefund": 31.0,
"TotalRefund": 32.0,
"LineRefundAllocation": 0,
"ShippingRefundAllocation": 0,
"BuyerTaxNumber": "sample string 33",
"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": "2023-01-10T13:49:45.8007344+00:00",
"DeliveryEndDate": "2023-01-10T13:49:45.8007344+00:00",
"OrderIdentifierTags": [
"sample string 1"
],
"ForceReSaveFulfilledOrder": true
}
]&location=sample string 1
This is an example of the response JSON. Results will vary depending on your data.
[
"1674d43e-1f64-45ae-ae80-1976321b9dfb"
]