Back

Search

Search

Methods

Inventory

Orders

ProcessedOrders /GetReturnsExchanges

Response: List<ReturnInfo>



Use this call to get a basic list of returns, exchanges and resends for an order.

Parameters

NameTypeDescription
pkOrderIdGuidThe order id to get the returns for

HTTP Endpoint

Server /ProcessedOrders / GetReturnsExchanges

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/ProcessedOrders/GetReturnsExchanges 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=44cf8af2-6e3f-4498-bd68-b8a52c73421c

Response

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

[
  {
    "pkReturnId": 1,
    "RowType": 0,
    "ReturnReference": "sample string 2",
    "fkOrderId": "1d0a5daf-74da-4b07-86b4-012d58105939",
    "fkOrderItemRowId": "90fa2ed2-4566-47aa-82c5-10d54aceb3db",
    "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": "fec8e40a-94d1-4919-840a-68a691eb7fe3",
    "Scrapped": true,
    "ScrapQty": 1,
    "LastState": "sample string 16",
    "LastDate": "2019-10-09T15:11:42.5741312+01:00",
    "Completed": true,
    "fkNewOrderId": "dfe95618-c13e-433d-9649-0f1cd43ff7ae",
    "fkNewOrderItemRowId": "54094ebb-db8b-4133-beed-a4fd044475f2",
    "fkNewStockItemId": "f20fd288-40d7-4008-ba18-506bb5222fc1",
    "NewQty": 1,
    "NewOrderId": 1,
    "NewOrderCancelled": true,
    "NewSKU": "sample string 20",
    "NewItemTitle": "sample string 21",
    "NewOrderProcessedOn": "2019-10-09T15:11:42.5751439+01:00",
    "AdditionalCost": 1.1,
    "fkRefundRowId": "2210a96d-1cfc-4fbb-98a5-7a067e612c37",
    "RefundedAmount": 1.1,
    "PendingRefund": 1.1,
    "ReturnDate": "2019-10-09T15:11:42.5751439+01:00"
  },
  {
    "pkReturnId": 1,
    "RowType": 0,
    "ReturnReference": "sample string 2",
    "fkOrderId": "1d0a5daf-74da-4b07-86b4-012d58105939",
    "fkOrderItemRowId": "90fa2ed2-4566-47aa-82c5-10d54aceb3db",
    "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": "fec8e40a-94d1-4919-840a-68a691eb7fe3",
    "Scrapped": true,
    "ScrapQty": 1,
    "LastState": "sample string 16",
    "LastDate": "2019-10-09T15:11:42.5741312+01:00",
    "Completed": true,
    "fkNewOrderId": "dfe95618-c13e-433d-9649-0f1cd43ff7ae",
    "fkNewOrderItemRowId": "54094ebb-db8b-4133-beed-a4fd044475f2",
    "fkNewStockItemId": "f20fd288-40d7-4008-ba18-506bb5222fc1",
    "NewQty": 1,
    "NewOrderId": 1,
    "NewOrderCancelled": true,
    "NewSKU": "sample string 20",
    "NewItemTitle": "sample string 21",
    "NewOrderProcessedOn": "2019-10-09T15:11:42.5751439+01:00",
    "AdditionalCost": 1.1,
    "fkRefundRowId": "2210a96d-1cfc-4fbb-98a5-7a067e612c37",
    "RefundedAmount": 1.1,
    "PendingRefund": 1.1,
    "ReturnDate": "2019-10-09T15:11:42.5751439+01:00"
  }
]