Back

Search

Search

Methods

Inventory

Orders

ReturnsRefunds /ActionBookedOrder

Response: Void



Action list of booked returns/exchange items for a given order ID. If the return is for a batched item, the batch must be booked in manually.

Parameters

NameTypeDescription
pkOrderIdGuidunique ID of the order
bookedItemsList<BookedReturnsExchangeItem>list of returns/exchange items to be actioned

HTTP Endpoint

Server /ReturnsRefunds / ActionBookedOrder

Permissions

GlobalPermissions.OrderBook.ReturnsRefundsNode

Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/ReturnsRefunds/ActionBookedOrder 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=4101a8fe-b8d4-46b0-9940-1f344ce2db20&bookedItems=[
  {
    "fkOrderItemRowId": "e8328e68-e40a-4005-b6c2-d4f015afcef1",
    "OrderItemBatchId": 2,
    "StockItemId": "a55839a6-bc94-4fef-bcb3-00258bb39384",
    "BatchInventoryId": 1,
    "BatchNumber": "sample string 3",
    "RowType": "sample string 4",
    "SKU": "sample string 5",
    "ItemTitle": "sample string 6",
    "ReturnQty": 7,
    "MaxReturnQty": 8,
    "NewQty": 1,
    "NewSKU": "sample string 9",
    "NewTitle": "sample string 10",
    "fkNewStockItemId": "891e8ee4-4b1d-46f5-be1a-9a183e0de49d",
    "Category": "sample string 11",
    "Reason": "sample string 12",
    "fkReturnLocationId": "5f28b322-7fd0-41ef-9701-eb3f00a50f53",
    "ReturnLocation": "sample string 14",
    "PendingRefundAmount": 1.1,
    "Scrapped": true,
    "ScrapQty": 1,
    "ParentOrderItemRowId": "a1bd5bc3-4273-4157-8e3e-6b6062b9e469",
    "AdditionalCost": 1.1,
    "cCurrency": "sample string 17",
    "pkReturnId": 18,
    "ChannelReason": "sample string 19",
    "ChannelReasonSec": "sample string 20",
    "ReturnDate": "2019-06-12T09:27:49.6069497+01:00",
    "DespatchUnitValue": 22.1,
    "BatchInventory": null
  },
  {
    "fkOrderItemRowId": "e8328e68-e40a-4005-b6c2-d4f015afcef1",
    "OrderItemBatchId": 2,
    "StockItemId": "a55839a6-bc94-4fef-bcb3-00258bb39384",
    "BatchInventoryId": 1,
    "BatchNumber": "sample string 3",
    "RowType": "sample string 4",
    "SKU": "sample string 5",
    "ItemTitle": "sample string 6",
    "ReturnQty": 7,
    "MaxReturnQty": 8,
    "NewQty": 1,
    "NewSKU": "sample string 9",
    "NewTitle": "sample string 10",
    "fkNewStockItemId": "891e8ee4-4b1d-46f5-be1a-9a183e0de49d",
    "Category": "sample string 11",
    "Reason": "sample string 12",
    "fkReturnLocationId": "5f28b322-7fd0-41ef-9701-eb3f00a50f53",
    "ReturnLocation": "sample string 14",
    "PendingRefundAmount": 1.1,
    "Scrapped": true,
    "ScrapQty": 1,
    "ParentOrderItemRowId": "a1bd5bc3-4273-4157-8e3e-6b6062b9e469",
    "AdditionalCost": 1.1,
    "cCurrency": "sample string 17",
    "pkReturnId": 18,
    "ChannelReason": "sample string 19",
    "ChannelReasonSec": "sample string 20",
    "ReturnDate": "2019-06-12T09:27:49.6069497+01:00",
    "DespatchUnitValue": 22.1,
    "BatchInventory": null
  }
]

Response

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

null