Back

Search

Search

Methods

Inventory

Orders

ProcessedOrders /CreateResend

Response: List<ReturnInfo>



Creates a resend

Parameters

NameTypeDescription
pkOrderIdGuidOrder ID that needs to be resend
resendItemsList<RowQty>Resend items information
despatchLocationGuidLocation ID where from resend be despatched
categoryStringCategory
reasonStringResond reason
additionalCostDoubleOrder-level additional cost

HTTP Endpoint

Server /ProcessedOrders / CreateResend

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/ProcessedOrders/CreateResend HTTP/1.1
Host: eu-ext.linnworks.net
Connection: keep-alive
Accept: application/json, text/javascript, */*; q=0.01
Origin: https://www.linnworks.net
Accept-Language: en
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: https://www.linnworks.net/
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

pkOrderId=e2c0dedd-ad9a-4b88-a4cb-881425add9ee&resendItems=[
  {
    "OrderItemRowId": "d5dfe41e-d63b-4cb6-85d2-e5fc8aaadb2c",
    "OrderItemBatchId": 1,
    "Refund": 2.1,
    "Qty": 3,
    "ScrapQty": 1,
    "AdditionalCost": 4.1,
    "NewStockItemId": "2b646bce-b1cf-4f89-8b19-487fdc94a644",
    "NewQty": 5
  },
  {
    "OrderItemRowId": "d5dfe41e-d63b-4cb6-85d2-e5fc8aaadb2c",
    "OrderItemBatchId": 1,
    "Refund": 2.1,
    "Qty": 3,
    "ScrapQty": 1,
    "AdditionalCost": 4.1,
    "NewStockItemId": "2b646bce-b1cf-4f89-8b19-487fdc94a644",
    "NewQty": 5
  }
]&despatchLocation=c9ead86a-df66-4c89-81fc-298abb66663b&category=sample string 1&reason=sample string 1&additionalCost=1.1

Response

This is an example response. Results may vary depending on your data.

[
  {
    "pkReturnId": 1,
    "RowType": 0,
    "ReturnReference": "sample string 2",
    "fkOrderId": "27e2885a-4931-4625-8dd9-ad6881dab958",
    "fkOrderItemRowId": "3b862c6d-ba0b-408e-b1a5-8d678971d3ab",
    "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": "3dd1afe5-7ebf-4fac-9956-2bd86a77d177",
    "Scrapped": true,
    "ScrapQty": 1,
    "LastState": "sample string 16",
    "LastDate": "2018-02-19T16:57:07.9617715+00:00",
    "Completed": true,
    "fkNewOrderId": "761dcff3-4aa2-4703-9851-127161c6b557",
    "fkNewOrderItemRowId": "2532f979-461a-4887-b7cd-33e9101d0376",
    "fkNewStockItemId": "39516493-4340-4af6-ab83-a2b0807fbaf3",
    "NewQty": 1,
    "NewOrderId": 1,
    "NewOrderCancelled": true,
    "NewSKU": "sample string 20",
    "NewItemTitle": "sample string 21",
    "NewOrderProcessedOn": "2018-02-19T16:57:07.9617715+00:00",
    "AdditionalCost": 1.1,
    "fkRefundRowId": "a1f761dd-2f62-46b4-b19a-48b1837ee688",
    "RefundedAmount": 1.1,
    "PendingRefund": 1.1,
    "ReturnDate": "2018-02-19T16:57:07.9617715+00:00"
  },
  {
    "pkReturnId": 1,
    "RowType": 0,
    "ReturnReference": "sample string 2",
    "fkOrderId": "27e2885a-4931-4625-8dd9-ad6881dab958",
    "fkOrderItemRowId": "3b862c6d-ba0b-408e-b1a5-8d678971d3ab",
    "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": "3dd1afe5-7ebf-4fac-9956-2bd86a77d177",
    "Scrapped": true,
    "ScrapQty": 1,
    "LastState": "sample string 16",
    "LastDate": "2018-02-19T16:57:07.9617715+00:00",
    "Completed": true,
    "fkNewOrderId": "761dcff3-4aa2-4703-9851-127161c6b557",
    "fkNewOrderItemRowId": "2532f979-461a-4887-b7cd-33e9101d0376",
    "fkNewStockItemId": "39516493-4340-4af6-ab83-a2b0807fbaf3",
    "NewQty": 1,
    "NewOrderId": 1,
    "NewOrderCancelled": true,
    "NewSKU": "sample string 20",
    "NewItemTitle": "sample string 21",
    "NewOrderProcessedOn": "2018-02-19T16:57:07.9617715+00:00",
    "AdditionalCost": 1.1,
    "fkRefundRowId": "a1f761dd-2f62-46b4-b19a-48b1837ee688",
    "RefundedAmount": 1.1,
    "PendingRefund": 1.1,
    "ReturnDate": "2018-02-19T16:57:07.9617715+00:00"
  }
]