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=6f5b71db-c43e-493b-8583-2d39aa63321e&resendItems=[
  {
    "OrderItemRowId": "fca61e70-1c10-4c6c-b0db-40bdfccc231c",
    "OrderItemBatchId": 1,
    "Refund": 2.1,
    "Qty": 3,
    "ScrapQty": 1,
    "Batch": {
      "OrderItemBatchId": 1,
      "OrderItemRowId": "8cb38c41-15df-4465-b2fb-d4a5b2308d00",
      "BatchInventoryId": 3,
      "Quantity": 4,
      "Batch": {
        "BatchId": 1,
        "SKU": "sample string 2",
        "InventoryTrackingType": 3,
        "StockItemId": "2bf12a49-9730-4b32-b80c-8b3d1439049b",
        "BatchNumber": "sample string 5",
        "ExpiresOn": "2019-08-21T13:34:04.3540887+01:00",
        "SellBy": "2019-08-21T13:34:04.3540887+01:00",
        "Inventory": [
          null,
          {
            "BatchInventoryId": 1,
            "BatchId": 2,
            "StockLocationId": "6594480f-fd4c-4af5-82f4-3e8cb5f7c46b",
            "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": "ade24fb5-c2db-45bf-bbd3-cdf5d06ace6e",
    "NewQty": 5
  },
  {
    "OrderItemRowId": "fca61e70-1c10-4c6c-b0db-40bdfccc231c",
    "OrderItemBatchId": 1,
    "Refund": 2.1,
    "Qty": 3,
    "ScrapQty": 1,
    "Batch": {
      "OrderItemBatchId": 1,
      "OrderItemRowId": "8cb38c41-15df-4465-b2fb-d4a5b2308d00",
      "BatchInventoryId": 3,
      "Quantity": 4,
      "Batch": {
        "BatchId": 1,
        "SKU": "sample string 2",
        "InventoryTrackingType": 3,
        "StockItemId": "2bf12a49-9730-4b32-b80c-8b3d1439049b",
        "BatchNumber": "sample string 5",
        "ExpiresOn": "2019-08-21T13:34:04.3540887+01:00",
        "SellBy": "2019-08-21T13:34:04.3540887+01:00",
        "Inventory": [
          null,
          {
            "BatchInventoryId": 1,
            "BatchId": 2,
            "StockLocationId": "6594480f-fd4c-4af5-82f4-3e8cb5f7c46b",
            "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": "ade24fb5-c2db-45bf-bbd3-cdf5d06ace6e",
    "NewQty": 5
  }
]&despatchLocation=3be92f77-9e34-4baf-85a3-aae9204d5957&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": "992b93ad-a26f-4ffe-9695-8e55fff8f2b1",
    "fkOrderItemRowId": "7b2746ae-3a72-4943-a00e-eade726eb16b",
    "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": "4ba6e92d-4668-4dd0-a253-a5ffd19fb00b",
    "Scrapped": true,
    "ScrapQty": 1,
    "LastState": "sample string 16",
    "LastDate": "2019-08-21T13:34:07.9574122+01:00",
    "Completed": true,
    "fkNewOrderId": "ff84be66-4a20-45c3-87d6-aa8435b27b9f",
    "fkNewOrderItemRowId": "2a79dc75-3e95-4cfe-ad9d-61e2071b7715",
    "fkNewStockItemId": "d4924a19-0419-4515-95da-3c68c3c097f2",
    "NewQty": 1,
    "NewOrderId": 1,
    "NewOrderCancelled": true,
    "NewSKU": "sample string 20",
    "NewItemTitle": "sample string 21",
    "NewOrderProcessedOn": "2019-08-21T13:34:07.9574122+01:00",
    "AdditionalCost": 1.1,
    "fkRefundRowId": "f92ef0ae-ed00-425a-aa2f-7283e5f23d53",
    "RefundedAmount": 1.1,
    "PendingRefund": 1.1,
    "ReturnDate": "2019-08-21T13:34:07.9574122+01:00"
  },
  {
    "pkReturnId": 1,
    "RowType": 0,
    "ReturnReference": "sample string 2",
    "fkOrderId": "992b93ad-a26f-4ffe-9695-8e55fff8f2b1",
    "fkOrderItemRowId": "7b2746ae-3a72-4943-a00e-eade726eb16b",
    "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": "4ba6e92d-4668-4dd0-a253-a5ffd19fb00b",
    "Scrapped": true,
    "ScrapQty": 1,
    "LastState": "sample string 16",
    "LastDate": "2019-08-21T13:34:07.9574122+01:00",
    "Completed": true,
    "fkNewOrderId": "ff84be66-4a20-45c3-87d6-aa8435b27b9f",
    "fkNewOrderItemRowId": "2a79dc75-3e95-4cfe-ad9d-61e2071b7715",
    "fkNewStockItemId": "d4924a19-0419-4515-95da-3c68c3c097f2",
    "NewQty": 1,
    "NewOrderId": 1,
    "NewOrderCancelled": true,
    "NewSKU": "sample string 20",
    "NewItemTitle": "sample string 21",
    "NewOrderProcessedOn": "2019-08-21T13:34:07.9574122+01:00",
    "AdditionalCost": 1.1,
    "fkRefundRowId": "f92ef0ae-ed00-425a-aa2f-7283e5f23d53",
    "RefundedAmount": 1.1,
    "PendingRefund": 1.1,
    "ReturnDate": "2019-08-21T13:34:07.9574122+01:00"
  }
]