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=1c783545-777e-43df-a43d-adc33097aa1f

Response

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

[
  {
    "pkReturnId": 1,
    "RowType": 0,
    "ReturnReference": "sample string 2",
    "fkOrderId": "93d9ff5a-2a2b-4719-ae6a-c092ef754420",
    "fkOrderItemRowId": "59c8df01-b044-463e-8233-355cb557916a",
    "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": "ad626faf-e4fd-4bd0-8cba-6e266a1dfe1d",
    "Scrapped": true,
    "ScrapQty": 1,
    "LastState": "sample string 16",
    "LastDate": "2018-02-19T16:57:07.8088409+00:00",
    "Completed": true,
    "fkNewOrderId": "06f924cb-3ff0-404d-884f-e6aab6416eb3",
    "fkNewOrderItemRowId": "646691b9-da70-4eff-95a4-43f98011d21e",
    "fkNewStockItemId": "79ef8ca2-3dec-4492-8d8d-a7e9dbd232ae",
    "NewQty": 1,
    "NewOrderId": 1,
    "NewOrderCancelled": true,
    "NewSKU": "sample string 20",
    "NewItemTitle": "sample string 21",
    "NewOrderProcessedOn": "2018-02-19T16:57:07.8093421+00:00",
    "AdditionalCost": 1.1,
    "fkRefundRowId": "52025459-bf83-4666-a846-9705d50b2888",
    "RefundedAmount": 1.1,
    "PendingRefund": 1.1,
    "ReturnDate": "2018-02-19T16:57:07.8098433+00:00"
  },
  {
    "pkReturnId": 1,
    "RowType": 0,
    "ReturnReference": "sample string 2",
    "fkOrderId": "93d9ff5a-2a2b-4719-ae6a-c092ef754420",
    "fkOrderItemRowId": "59c8df01-b044-463e-8233-355cb557916a",
    "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": "ad626faf-e4fd-4bd0-8cba-6e266a1dfe1d",
    "Scrapped": true,
    "ScrapQty": 1,
    "LastState": "sample string 16",
    "LastDate": "2018-02-19T16:57:07.8088409+00:00",
    "Completed": true,
    "fkNewOrderId": "06f924cb-3ff0-404d-884f-e6aab6416eb3",
    "fkNewOrderItemRowId": "646691b9-da70-4eff-95a4-43f98011d21e",
    "fkNewStockItemId": "79ef8ca2-3dec-4492-8d8d-a7e9dbd232ae",
    "NewQty": 1,
    "NewOrderId": 1,
    "NewOrderCancelled": true,
    "NewSKU": "sample string 20",
    "NewItemTitle": "sample string 21",
    "NewOrderProcessedOn": "2018-02-19T16:57:07.8093421+00:00",
    "AdditionalCost": 1.1,
    "fkRefundRowId": "52025459-bf83-4666-a846-9705d50b2888",
    "RefundedAmount": 1.1,
    "PendingRefund": 1.1,
    "ReturnDate": "2018-02-19T16:57:07.8098433+00:00"
  }
]