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=5e51b667-ab3e-4601-a33c-c3069098c587

Response

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

[
  {
    "pkReturnId": 1,
    "RowType": 0,
    "ReturnReference": "sample string 2",
    "fkOrderId": "5d5886f8-951a-4e04-8866-c68bc9a371fe",
    "fkOrderItemRowId": "bcac5d64-4b82-49a8-9c19-826ff719708e",
    "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": "72500977-f019-4136-a50f-6025c6c306de",
    "Scrapped": true,
    "ScrapQty": 1,
    "LastState": "sample string 16",
    "LastDate": "2018-10-03T11:12:35.5322364+01:00",
    "Completed": true,
    "fkNewOrderId": "5bf44abb-9ad9-4348-8fcb-1fe9ff63336c",
    "fkNewOrderItemRowId": "3551df05-5651-4c94-967e-910d0144b82d",
    "fkNewStockItemId": "dc4f789f-c70c-4a62-9ce6-104b36c6aea9",
    "NewQty": 1,
    "NewOrderId": 1,
    "NewOrderCancelled": true,
    "NewSKU": "sample string 20",
    "NewItemTitle": "sample string 21",
    "NewOrderProcessedOn": "2018-10-03T11:12:35.5332368+01:00",
    "AdditionalCost": 1.1,
    "fkRefundRowId": "27602a5d-b21a-4e45-b1b8-759a70896f92",
    "RefundedAmount": 1.1,
    "PendingRefund": 1.1,
    "ReturnDate": "2018-10-03T11:12:35.5332368+01:00"
  },
  {
    "pkReturnId": 1,
    "RowType": 0,
    "ReturnReference": "sample string 2",
    "fkOrderId": "5d5886f8-951a-4e04-8866-c68bc9a371fe",
    "fkOrderItemRowId": "bcac5d64-4b82-49a8-9c19-826ff719708e",
    "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": "72500977-f019-4136-a50f-6025c6c306de",
    "Scrapped": true,
    "ScrapQty": 1,
    "LastState": "sample string 16",
    "LastDate": "2018-10-03T11:12:35.5322364+01:00",
    "Completed": true,
    "fkNewOrderId": "5bf44abb-9ad9-4348-8fcb-1fe9ff63336c",
    "fkNewOrderItemRowId": "3551df05-5651-4c94-967e-910d0144b82d",
    "fkNewStockItemId": "dc4f789f-c70c-4a62-9ce6-104b36c6aea9",
    "NewQty": 1,
    "NewOrderId": 1,
    "NewOrderCancelled": true,
    "NewSKU": "sample string 20",
    "NewItemTitle": "sample string 21",
    "NewOrderProcessedOn": "2018-10-03T11:12:35.5332368+01:00",
    "AdditionalCost": 1.1,
    "fkRefundRowId": "27602a5d-b21a-4e45-b1b8-759a70896f92",
    "RefundedAmount": 1.1,
    "PendingRefund": 1.1,
    "ReturnDate": "2018-10-03T11:12:35.5332368+01:00"
  }
]