Creates a resend
Name | Type | Description |
---|---|---|
pkOrderId | Guid | Order ID that needs to be resend |
resendItems | List<RowQty> | Resend items information |
despatchLocation | Guid | Location ID where from resend be despatched |
category | String | Category |
reason | String | Resond reason |
additionalCost | Double | Order-level additional cost |
The following request format is required for this method.
GET | POST https://eu-ext.linnworks.net/api/ProcessedOrders/CreateResend
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.
pkOrderId=3367c2ff-69d8-428a-ac1d-c53bca343d27&resendItems=[
{
"OrderItemRowId": "d37d1eb0-bc43-435f-a3c0-52815003e2c0",
"OrderItemBatchId": 1,
"Refund": 2.1,
"Qty": 3,
"ScrapQty": 1,
"Batch": {
"OrderItemBatchId": 1,
"OrderItemRowId": "046872cc-f9fc-43e5-a52c-76591f7af607",
"BatchInventoryId": 3,
"Quantity": 4,
"Batch": {
"BatchId": 1,
"SKU": "sample string 2",
"InventoryTrackingType": 3,
"StockItemId": "f22d6dac-290e-498e-8cf1-b8e57112763c",
"BatchNumber": "sample string 5",
"ExpiresOn": "2023-01-10T13:49:45.6588201+00:00",
"SellBy": "2023-01-10T13:49:45.6588201+00:00",
"Inventory": [
{
"BatchInventoryId": 1,
"BatchId": 2,
"StockLocationId": "5c17aee5-f80a-489c-b704-10c81f104302",
"BinRack": "sample string 4",
"PrioritySequence": 5,
"Quantity": 6,
"StockValue": 7.0,
"StartQuantity": 8,
"PickedQuantity": 9,
"BatchStatus": "Available",
"IsDeleted": true,
"WarehouseBinrackStandardType": 1,
"WarehouseBinrackTypeName": "sample string 12",
"InTransfer": 1,
"BinRackId": 1,
"WarehouseBinrackTypeId": 1
}
],
"IsDeleted": true
},
"DespatchUnitValue": 0.0,
"AssignmentType": 0
},
"AdditionalCost": 4.1,
"NewStockItemId": "458fd809-b742-4e6c-b355-59dded493ee7",
"NewQty": 5
}
]&despatchLocation=4b56d8cb-1bb2-4088-b004-707c203561c2&category=sample string 1&reason=sample string 1&additionalCost=1.1
This is an example of the response JSON. Results will vary depending on your data.
[
{
"pkReturnId": 1,
"RowType": 0,
"ReturnReference": "sample string 2",
"fkOrderId": "bb24a975-ecbc-4118-90e6-d7e0057606ee",
"fkOrderItemRowId": "25d29917-9b2c-41c7-800b-5adb7c5fbfee",
"OrderItemBatchId": 5,
"nOrderId": 6,
"SKU": "sample string 7",
"ItemTitle": "sample string 8",
"BatchNumber": "sample string 9",
"Reason": "sample string 10",
"ChannelReason": "sample string 11",
"ChannelReasonSec": "sample string 12",
"Category": "sample string 13",
"ReturnQty": 14,
"fkReturnLocationId": "1d60884f-bbec-4191-9fac-9914e767e979",
"Scrapped": true,
"ScrapQty": 1,
"LastState": "sample string 16",
"LastDate": "2023-01-10T13:49:50.3269895+00:00",
"Completed": true,
"fkNewOrderId": "471c0a6f-77aa-4978-a6a4-7f9aed16ca12",
"fkNewOrderItemRowId": "041cec34-4283-43ac-b4e9-c72a84254310",
"fkNewStockItemId": "ebffbceb-6a52-404f-a20c-926ab7706fbe",
"NewQty": 1,
"NewOrderId": 1,
"NewOrderCancelled": true,
"NewSKU": "sample string 20",
"NewItemTitle": "sample string 21",
"NewOrderProcessedOn": "2023-01-10T13:49:50.3269895+00:00",
"AdditionalCost": 1.1,
"fkRefundRowId": "dc4e9a5f-db21-4c8e-bbd6-66921bf46090",
"RefundedAmount": 1.1,
"PendingRefund": 1.1,
"ReturnDate": "2023-01-10T13:49:50.3269895+00:00"
}
]