Back

Search

Search

Methods

Inventory

Orders

ProcessedOrders /CreateResend

Response: List<ReturnInfo>



Creates a resend

Parameters

NameTypeDescription
pkOrderIdGuidOrder ID that needs to be resend
resendItemsList<RowQty>Resend items information
despatchLocationGuidLocation ID where from resend be despatched
categoryStringCategory
reasonStringResond reason
additionalCostDoubleOrder-level additional cost

HTTP Endpoint

Server /ProcessedOrders / CreateResend

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/ProcessedOrders/CreateResend 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=e8052660-53bf-46ec-8dce-7399e9635a6b&resendItems=[
  {
    "OrderItemRowId": "3f344ad3-03de-4281-a836-4218f8c7374e",
    "OrderItemBatchId": 1,
    "Refund": 2.1,
    "Qty": 3,
    "ScrapQty": 1,
    "Batch": {
      "OrderItemBatchId": 1,
      "OrderItemRowId": "7181f739-300e-4693-8341-ad4fa0b8b151",
      "BatchInventoryId": 3,
      "Quantity": 4,
      "Batch": {
        "BatchId": 1,
        "SKU": "sample string 2",
        "InventoryTrackingType": 3,
        "StockItemId": "c955d446-6315-4d43-a592-cc4f481391a1",
        "BatchNumber": "sample string 5",
        "ExpiresOn": "2019-06-12T09:27:49.7020085+01:00",
        "SellBy": "2019-06-12T09:27:49.7020085+01:00",
        "Inventory": [
          null,
          {
            "BatchInventoryId": 1,
            "BatchId": 2,
            "StockLocationId": "d64d3d70-ed43-4d03-a41b-d4f4a9af06b9",
            "BinRack": "sample string 4",
            "PrioritySequence": 5,
            "Quantity": 6,
            "StockValue": 7.0,
            "StartQuantity": 8,
            "PickedQuantity": 9,
            "BatchStatus": "Available",
            "IsDeleted": false,
            "WarehouseBinrackStandardType": null,
            "WarehouseBinrackTypeName": null,
            "InTransfer": null,
            "BinRackId": null
          }
        ],
        "IsDeleted": true
      },
      "DespatchUnitValue": 0.0,
      "AssignmentType": 0
    },
    "AdditionalCost": 4.1,
    "NewStockItemId": "ef93a3a4-b157-412f-8955-856ba8ac8307",
    "NewQty": 5
  },
  {
    "OrderItemRowId": "3f344ad3-03de-4281-a836-4218f8c7374e",
    "OrderItemBatchId": 1,
    "Refund": 2.1,
    "Qty": 3,
    "ScrapQty": 1,
    "Batch": {
      "OrderItemBatchId": 1,
      "OrderItemRowId": "7181f739-300e-4693-8341-ad4fa0b8b151",
      "BatchInventoryId": 3,
      "Quantity": 4,
      "Batch": {
        "BatchId": 1,
        "SKU": "sample string 2",
        "InventoryTrackingType": 3,
        "StockItemId": "c955d446-6315-4d43-a592-cc4f481391a1",
        "BatchNumber": "sample string 5",
        "ExpiresOn": "2019-06-12T09:27:49.7020085+01:00",
        "SellBy": "2019-06-12T09:27:49.7020085+01:00",
        "Inventory": [
          null,
          {
            "BatchInventoryId": 1,
            "BatchId": 2,
            "StockLocationId": "d64d3d70-ed43-4d03-a41b-d4f4a9af06b9",
            "BinRack": "sample string 4",
            "PrioritySequence": 5,
            "Quantity": 6,
            "StockValue": 7.0,
            "StartQuantity": 8,
            "PickedQuantity": 9,
            "BatchStatus": "Available",
            "IsDeleted": false,
            "WarehouseBinrackStandardType": null,
            "WarehouseBinrackTypeName": null,
            "InTransfer": null,
            "BinRackId": null
          }
        ],
        "IsDeleted": true
      },
      "DespatchUnitValue": 0.0,
      "AssignmentType": 0
    },
    "AdditionalCost": 4.1,
    "NewStockItemId": "ef93a3a4-b157-412f-8955-856ba8ac8307",
    "NewQty": 5
  }
]&despatchLocation=1b22119a-9f2b-406b-94fd-61977a29bbf8&category=sample string 1&reason=sample string 1&additionalCost=1.1

Response

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

[
  {
    "pkReturnId": 1,
    "RowType": 0,
    "ReturnReference": "sample string 2",
    "fkOrderId": "a7e597b9-3eeb-40fd-b1d3-d2abd6c70df2",
    "fkOrderItemRowId": "7f601714-d5dc-4079-aca4-d18d46e57756",
    "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": "561cc91d-68c9-4d58-9f3b-1a7b17df4785",
    "Scrapped": true,
    "ScrapQty": 1,
    "LastState": "sample string 16",
    "LastDate": "2019-06-12T09:27:51.7054051+01:00",
    "Completed": true,
    "fkNewOrderId": "3b76f6fb-62b5-47d0-a726-41643dd54778",
    "fkNewOrderItemRowId": "0940f39a-6690-4334-9aa3-8bc478e3fafa",
    "fkNewStockItemId": "f1b4d53e-5ad9-49b9-b0ec-6661cb523afd",
    "NewQty": 1,
    "NewOrderId": 1,
    "NewOrderCancelled": true,
    "NewSKU": "sample string 20",
    "NewItemTitle": "sample string 21",
    "NewOrderProcessedOn": "2019-06-12T09:27:51.7054051+01:00",
    "AdditionalCost": 1.1,
    "fkRefundRowId": "76afd713-0755-46a0-9588-cc11629c6685",
    "RefundedAmount": 1.1,
    "PendingRefund": 1.1,
    "ReturnDate": "2019-06-12T09:27:51.7054051+01:00"
  },
  {
    "pkReturnId": 1,
    "RowType": 0,
    "ReturnReference": "sample string 2",
    "fkOrderId": "a7e597b9-3eeb-40fd-b1d3-d2abd6c70df2",
    "fkOrderItemRowId": "7f601714-d5dc-4079-aca4-d18d46e57756",
    "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": "561cc91d-68c9-4d58-9f3b-1a7b17df4785",
    "Scrapped": true,
    "ScrapQty": 1,
    "LastState": "sample string 16",
    "LastDate": "2019-06-12T09:27:51.7054051+01:00",
    "Completed": true,
    "fkNewOrderId": "3b76f6fb-62b5-47d0-a726-41643dd54778",
    "fkNewOrderItemRowId": "0940f39a-6690-4334-9aa3-8bc478e3fafa",
    "fkNewStockItemId": "f1b4d53e-5ad9-49b9-b0ec-6661cb523afd",
    "NewQty": 1,
    "NewOrderId": 1,
    "NewOrderCancelled": true,
    "NewSKU": "sample string 20",
    "NewItemTitle": "sample string 21",
    "NewOrderProcessedOn": "2019-06-12T09:27:51.7054051+01:00",
    "AdditionalCost": 1.1,
    "fkRefundRowId": "76afd713-0755-46a0-9588-cc11629c6685",
    "RefundedAmount": 1.1,
    "PendingRefund": 1.1,
    "ReturnDate": "2019-06-12T09:27:51.7054051+01:00"
  }
]