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=a6ab6f99-3e27-4c58-a599-c7da7960af33

Response

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

[
  {
    "pkReturnId": 1,
    "RowType": 0,
    "ReturnReference": "sample string 2",
    "fkOrderId": "9f4a5ccd-1586-49b3-aef3-bfa25c08d7aa",
    "fkOrderItemRowId": "64d3aaa8-55b0-441e-a049-159f0ec059df",
    "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": "2f437c91-e53c-406e-bd83-5f0decf743f1",
    "Scrapped": true,
    "ScrapQty": 1,
    "LastState": "sample string 16",
    "LastDate": "2019-06-12T09:27:51.5593032+01:00",
    "Completed": true,
    "fkNewOrderId": "4169b77f-99c1-45a6-8949-375971385abc",
    "fkNewOrderItemRowId": "0e533414-5e9e-4e02-8287-c11727578f32",
    "fkNewStockItemId": "7d02aaaa-b295-4daa-ae4c-428b2169f8f1",
    "NewQty": 1,
    "NewOrderId": 1,
    "NewOrderCancelled": true,
    "NewSKU": "sample string 20",
    "NewItemTitle": "sample string 21",
    "NewOrderProcessedOn": "2019-06-12T09:27:51.5593032+01:00",
    "AdditionalCost": 1.1,
    "fkRefundRowId": "c99b40e4-47b6-41c8-9cc2-b8379fd195b4",
    "RefundedAmount": 1.1,
    "PendingRefund": 1.1,
    "ReturnDate": "2019-06-12T09:27:51.5603038+01:00"
  },
  {
    "pkReturnId": 1,
    "RowType": 0,
    "ReturnReference": "sample string 2",
    "fkOrderId": "9f4a5ccd-1586-49b3-aef3-bfa25c08d7aa",
    "fkOrderItemRowId": "64d3aaa8-55b0-441e-a049-159f0ec059df",
    "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": "2f437c91-e53c-406e-bd83-5f0decf743f1",
    "Scrapped": true,
    "ScrapQty": 1,
    "LastState": "sample string 16",
    "LastDate": "2019-06-12T09:27:51.5593032+01:00",
    "Completed": true,
    "fkNewOrderId": "4169b77f-99c1-45a6-8949-375971385abc",
    "fkNewOrderItemRowId": "0e533414-5e9e-4e02-8287-c11727578f32",
    "fkNewStockItemId": "7d02aaaa-b295-4daa-ae4c-428b2169f8f1",
    "NewQty": 1,
    "NewOrderId": 1,
    "NewOrderCancelled": true,
    "NewSKU": "sample string 20",
    "NewItemTitle": "sample string 21",
    "NewOrderProcessedOn": "2019-06-12T09:27:51.5593032+01:00",
    "AdditionalCost": 1.1,
    "fkRefundRowId": "c99b40e4-47b6-41c8-9cc2-b8379fd195b4",
    "RefundedAmount": 1.1,
    "PendingRefund": 1.1,
    "ReturnDate": "2019-06-12T09:27:51.5603038+01:00"
  }
]