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=2a175a59-5cb2-4ed8-8f13-8763466ffe44

Response

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

[
  {
    "pkReturnId": 1,
    "RowType": 0,
    "ReturnReference": "sample string 2",
    "fkOrderId": "75980fa7-26ee-4716-996d-2dd186ddf0e4",
    "fkOrderItemRowId": "82949798-31a1-461a-aa62-944e8b6459c0",
    "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": "bbab968a-35cd-4330-9337-16a5ee95d9a4",
    "Scrapped": true,
    "ScrapQty": 1,
    "LastState": "sample string 16",
    "LastDate": "2019-07-23T15:31:55.572912+01:00",
    "Completed": true,
    "fkNewOrderId": "6d31d678-fa11-4c8a-898f-6e1e069ec30c",
    "fkNewOrderItemRowId": "b8bc9e5c-8f31-4a21-93d7-f39ed8e0c60e",
    "fkNewStockItemId": "dce351a8-85fd-425d-a982-9305111212fc",
    "NewQty": 1,
    "NewOrderId": 1,
    "NewOrderCancelled": true,
    "NewSKU": "sample string 20",
    "NewItemTitle": "sample string 21",
    "NewOrderProcessedOn": "2019-07-23T15:31:55.572912+01:00",
    "AdditionalCost": 1.1,
    "fkRefundRowId": "97b29c56-d4c1-40c8-b1ea-c404c28b194a",
    "RefundedAmount": 1.1,
    "PendingRefund": 1.1,
    "ReturnDate": "2019-07-23T15:31:55.5739128+01:00"
  },
  {
    "pkReturnId": 1,
    "RowType": 0,
    "ReturnReference": "sample string 2",
    "fkOrderId": "75980fa7-26ee-4716-996d-2dd186ddf0e4",
    "fkOrderItemRowId": "82949798-31a1-461a-aa62-944e8b6459c0",
    "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": "bbab968a-35cd-4330-9337-16a5ee95d9a4",
    "Scrapped": true,
    "ScrapQty": 1,
    "LastState": "sample string 16",
    "LastDate": "2019-07-23T15:31:55.572912+01:00",
    "Completed": true,
    "fkNewOrderId": "6d31d678-fa11-4c8a-898f-6e1e069ec30c",
    "fkNewOrderItemRowId": "b8bc9e5c-8f31-4a21-93d7-f39ed8e0c60e",
    "fkNewStockItemId": "dce351a8-85fd-425d-a982-9305111212fc",
    "NewQty": 1,
    "NewOrderId": 1,
    "NewOrderCancelled": true,
    "NewSKU": "sample string 20",
    "NewItemTitle": "sample string 21",
    "NewOrderProcessedOn": "2019-07-23T15:31:55.572912+01:00",
    "AdditionalCost": 1.1,
    "fkRefundRowId": "97b29c56-d4c1-40c8-b1ea-c404c28b194a",
    "RefundedAmount": 1.1,
    "PendingRefund": 1.1,
    "ReturnDate": "2019-07-23T15:31:55.5739128+01:00"
  }
]