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=dd8cf7e3-eec3-487c-80d7-ec7fbf5d93c7&resendItems=[
  {
    "OrderItemRowId": "f6c0e49f-9264-43a4-bfa9-fc182668ce90",
    "OrderItemBatchId": 1,
    "Refund": 2.1,
    "Qty": 3,
    "ScrapQty": 1,
    "Batch": {
      "OrderItemBatchId": 1,
      "OrderItemRowId": "a5f11338-d719-4717-abad-5554d2760c14",
      "BatchInventoryId": 3,
      "Quantity": 4,
      "Batch": {
        "BatchId": 1,
        "SKU": "sample string 2",
        "InventoryTrackingType": 3,
        "StockItemId": "7dce7f5f-1ba1-46df-b820-f8e2ce71feac",
        "BatchNumber": "sample string 5",
        "ExpiresOn": "2019-10-09T15:11:39.4627115+01:00",
        "SellBy": "2019-10-09T15:11:39.4627115+01:00",
        "Inventory": [
          null,
          {
            "BatchInventoryId": 1,
            "BatchId": 2,
            "StockLocationId": "06509e3e-164a-4bae-854f-def09d028e70",
            "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": "eec6cbe6-bdc2-4edc-a616-0ba8100f6183",
    "NewQty": 5
  },
  {
    "OrderItemRowId": "f6c0e49f-9264-43a4-bfa9-fc182668ce90",
    "OrderItemBatchId": 1,
    "Refund": 2.1,
    "Qty": 3,
    "ScrapQty": 1,
    "Batch": {
      "OrderItemBatchId": 1,
      "OrderItemRowId": "a5f11338-d719-4717-abad-5554d2760c14",
      "BatchInventoryId": 3,
      "Quantity": 4,
      "Batch": {
        "BatchId": 1,
        "SKU": "sample string 2",
        "InventoryTrackingType": 3,
        "StockItemId": "7dce7f5f-1ba1-46df-b820-f8e2ce71feac",
        "BatchNumber": "sample string 5",
        "ExpiresOn": "2019-10-09T15:11:39.4627115+01:00",
        "SellBy": "2019-10-09T15:11:39.4627115+01:00",
        "Inventory": [
          null,
          {
            "BatchInventoryId": 1,
            "BatchId": 2,
            "StockLocationId": "06509e3e-164a-4bae-854f-def09d028e70",
            "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": "eec6cbe6-bdc2-4edc-a616-0ba8100f6183",
    "NewQty": 5
  }
]&despatchLocation=1514ac9e-cd04-41cd-ac1e-89909fed9f5e&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": "18bb72f2-12ab-48de-8ccd-4658077c0bb6",
    "fkOrderItemRowId": "614a3237-df6c-494c-aa6d-4e8be437d3f0",
    "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": "a01b9e86-90dc-4422-9895-ed03cf4e026c",
    "Scrapped": true,
    "ScrapQty": 1,
    "LastState": "sample string 16",
    "LastDate": "2019-10-09T15:11:42.7696711+01:00",
    "Completed": true,
    "fkNewOrderId": "a13923fc-b047-4c65-8692-06c56a99eb98",
    "fkNewOrderItemRowId": "c42f7b55-d90a-4ceb-a75f-8d6ed83a34ef",
    "fkNewStockItemId": "cc752aa0-c827-45ac-a781-ddf2c352b0e5",
    "NewQty": 1,
    "NewOrderId": 1,
    "NewOrderCancelled": true,
    "NewSKU": "sample string 20",
    "NewItemTitle": "sample string 21",
    "NewOrderProcessedOn": "2019-10-09T15:11:42.7696711+01:00",
    "AdditionalCost": 1.1,
    "fkRefundRowId": "3c3c7d05-17e7-42ae-9599-6eb1a6e53d1c",
    "RefundedAmount": 1.1,
    "PendingRefund": 1.1,
    "ReturnDate": "2019-10-09T15:11:42.7696711+01:00"
  },
  {
    "pkReturnId": 1,
    "RowType": 0,
    "ReturnReference": "sample string 2",
    "fkOrderId": "18bb72f2-12ab-48de-8ccd-4658077c0bb6",
    "fkOrderItemRowId": "614a3237-df6c-494c-aa6d-4e8be437d3f0",
    "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": "a01b9e86-90dc-4422-9895-ed03cf4e026c",
    "Scrapped": true,
    "ScrapQty": 1,
    "LastState": "sample string 16",
    "LastDate": "2019-10-09T15:11:42.7696711+01:00",
    "Completed": true,
    "fkNewOrderId": "a13923fc-b047-4c65-8692-06c56a99eb98",
    "fkNewOrderItemRowId": "c42f7b55-d90a-4ceb-a75f-8d6ed83a34ef",
    "fkNewStockItemId": "cc752aa0-c827-45ac-a781-ddf2c352b0e5",
    "NewQty": 1,
    "NewOrderId": 1,
    "NewOrderCancelled": true,
    "NewSKU": "sample string 20",
    "NewItemTitle": "sample string 21",
    "NewOrderProcessedOn": "2019-10-09T15:11:42.7696711+01:00",
    "AdditionalCost": 1.1,
    "fkRefundRowId": "3c3c7d05-17e7-42ae-9599-6eb1a6e53d1c",
    "RefundedAmount": 1.1,
    "PendingRefund": 1.1,
    "ReturnDate": "2019-10-09T15:11:42.7696711+01:00"
  }
]