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=b76cd87d-a45a-484a-8cf8-1c0c6a354268&resendItems=[
  {
    "OrderItemRowId": "dd4063dc-42bd-40f7-8f91-5fd0140534ac",
    "OrderItemBatchId": 1,
    "Refund": 2.1,
    "Qty": 3,
    "ScrapQty": 1,
    "Batch": {
      "OrderItemBatchId": 1,
      "OrderItemRowId": "25fc2fc2-3635-4e0f-8556-9980122dfb54",
      "BatchInventoryId": 3,
      "Quantity": 4,
      "Batch": {
        "BatchId": 1,
        "SKU": "sample string 2",
        "InventoryTrackingType": 3,
        "StockItemId": "edc47425-645d-4110-b6b6-3aa2ce2f9c62",
        "BatchNumber": "sample string 5",
        "ExpiresOn": "2018-10-03T11:12:33.19559+01:00",
        "SellBy": "2018-10-03T11:12:33.19559+01:00",
        "Inventory": [
          null,
          {
            "BatchInventoryId": 1,
            "BatchId": 2,
            "StockLocationId": "0b24370e-6b87-41f7-815d-6004b2658027",
            "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": "a9994f9b-5a6d-4a75-ad50-956350d17fef",
    "NewQty": 5
  },
  {
    "OrderItemRowId": "dd4063dc-42bd-40f7-8f91-5fd0140534ac",
    "OrderItemBatchId": 1,
    "Refund": 2.1,
    "Qty": 3,
    "ScrapQty": 1,
    "Batch": {
      "OrderItemBatchId": 1,
      "OrderItemRowId": "25fc2fc2-3635-4e0f-8556-9980122dfb54",
      "BatchInventoryId": 3,
      "Quantity": 4,
      "Batch": {
        "BatchId": 1,
        "SKU": "sample string 2",
        "InventoryTrackingType": 3,
        "StockItemId": "edc47425-645d-4110-b6b6-3aa2ce2f9c62",
        "BatchNumber": "sample string 5",
        "ExpiresOn": "2018-10-03T11:12:33.19559+01:00",
        "SellBy": "2018-10-03T11:12:33.19559+01:00",
        "Inventory": [
          null,
          {
            "BatchInventoryId": 1,
            "BatchId": 2,
            "StockLocationId": "0b24370e-6b87-41f7-815d-6004b2658027",
            "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": "a9994f9b-5a6d-4a75-ad50-956350d17fef",
    "NewQty": 5
  }
]&despatchLocation=879f6835-1ceb-455d-8ea2-bf5c59012d7c&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": "dbd68813-badd-4647-9d58-194567e5089c",
    "fkOrderItemRowId": "63462acb-9fb3-47f5-852f-a62e30f9a81b",
    "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": "65301819-497b-4b48-ada7-58fb73bc0813",
    "Scrapped": true,
    "ScrapQty": 1,
    "LastState": "sample string 16",
    "LastDate": "2018-10-03T11:12:35.7033576+01:00",
    "Completed": true,
    "fkNewOrderId": "e8ac713a-f0af-4eef-8a21-66c39cac4b8b",
    "fkNewOrderItemRowId": "d4886b04-0fbd-4fe0-aa93-a1e8c39d472a",
    "fkNewStockItemId": "97169406-4565-4964-87c2-538740c7bdd6",
    "NewQty": 1,
    "NewOrderId": 1,
    "NewOrderCancelled": true,
    "NewSKU": "sample string 20",
    "NewItemTitle": "sample string 21",
    "NewOrderProcessedOn": "2018-10-03T11:12:35.7033576+01:00",
    "AdditionalCost": 1.1,
    "fkRefundRowId": "302b7cdd-e09f-40fd-80b4-058db6e6268f",
    "RefundedAmount": 1.1,
    "PendingRefund": 1.1,
    "ReturnDate": "2018-10-03T11:12:35.7033576+01:00"
  },
  {
    "pkReturnId": 1,
    "RowType": 0,
    "ReturnReference": "sample string 2",
    "fkOrderId": "dbd68813-badd-4647-9d58-194567e5089c",
    "fkOrderItemRowId": "63462acb-9fb3-47f5-852f-a62e30f9a81b",
    "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": "65301819-497b-4b48-ada7-58fb73bc0813",
    "Scrapped": true,
    "ScrapQty": 1,
    "LastState": "sample string 16",
    "LastDate": "2018-10-03T11:12:35.7033576+01:00",
    "Completed": true,
    "fkNewOrderId": "e8ac713a-f0af-4eef-8a21-66c39cac4b8b",
    "fkNewOrderItemRowId": "d4886b04-0fbd-4fe0-aa93-a1e8c39d472a",
    "fkNewStockItemId": "97169406-4565-4964-87c2-538740c7bdd6",
    "NewQty": 1,
    "NewOrderId": 1,
    "NewOrderCancelled": true,
    "NewSKU": "sample string 20",
    "NewItemTitle": "sample string 21",
    "NewOrderProcessedOn": "2018-10-03T11:12:35.7033576+01:00",
    "AdditionalCost": 1.1,
    "fkRefundRowId": "302b7cdd-e09f-40fd-80b4-058db6e6268f",
    "RefundedAmount": 1.1,
    "PendingRefund": 1.1,
    "ReturnDate": "2018-10-03T11:12:35.7033576+01:00"
  }
]