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=3577a1db-d627-4e7a-adfe-f9526b214c24&resendItems=[
  {
    "OrderItemRowId": "1a6581d7-dd74-4f45-a441-d71d6a20c2c6",
    "OrderItemBatchId": 1,
    "Refund": 2.1,
    "Qty": 3,
    "ScrapQty": 1,
    "Batch": {
      "OrderItemBatchId": 1,
      "OrderItemRowId": "76655c40-6582-4760-ba89-42bf1649863a",
      "BatchInventoryId": 3,
      "Quantity": 4,
      "Batch": {
        "BatchId": 1,
        "SKU": "sample string 2",
        "InventoryTrackingType": 3,
        "StockItemId": "ca5fb6c9-eb85-453b-80fd-b60b899371cf",
        "BatchNumber": "sample string 5",
        "ExpiresOn": "2019-11-28T09:45:57.4363845+00:00",
        "SellBy": "2019-11-28T09:45:57.4363845+00:00",
        "Inventory": [
          null,
          {
            "BatchInventoryId": 1,
            "BatchId": 2,
            "StockLocationId": "74f1d345-304d-4f50-86da-022488ded529",
            "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": "6a7f9518-c8bb-4479-ade9-28f6a7a87adb",
    "NewQty": 5
  },
  {
    "OrderItemRowId": "1a6581d7-dd74-4f45-a441-d71d6a20c2c6",
    "OrderItemBatchId": 1,
    "Refund": 2.1,
    "Qty": 3,
    "ScrapQty": 1,
    "Batch": {
      "OrderItemBatchId": 1,
      "OrderItemRowId": "76655c40-6582-4760-ba89-42bf1649863a",
      "BatchInventoryId": 3,
      "Quantity": 4,
      "Batch": {
        "BatchId": 1,
        "SKU": "sample string 2",
        "InventoryTrackingType": 3,
        "StockItemId": "ca5fb6c9-eb85-453b-80fd-b60b899371cf",
        "BatchNumber": "sample string 5",
        "ExpiresOn": "2019-11-28T09:45:57.4363845+00:00",
        "SellBy": "2019-11-28T09:45:57.4363845+00:00",
        "Inventory": [
          null,
          {
            "BatchInventoryId": 1,
            "BatchId": 2,
            "StockLocationId": "74f1d345-304d-4f50-86da-022488ded529",
            "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": "6a7f9518-c8bb-4479-ade9-28f6a7a87adb",
    "NewQty": 5
  }
]&despatchLocation=fcfa5ca9-64f0-4f37-8f48-6146f75d3570&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": "5673bf9f-b230-4058-84f6-d939a3888e20",
    "fkOrderItemRowId": "f3cf8d11-95e6-4580-9f12-fb9297e60c1e",
    "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": "8e1ed59b-71ac-482f-9bcb-7f66330abd1f",
    "Scrapped": true,
    "ScrapQty": 1,
    "LastState": "sample string 16",
    "LastDate": "2019-11-28T09:46:00.3005052+00:00",
    "Completed": true,
    "fkNewOrderId": "8984238d-7e2d-47b7-a881-696551eeb70a",
    "fkNewOrderItemRowId": "5cd910f3-4cab-468d-9ac4-633d095c6100",
    "fkNewStockItemId": "90c36643-0ea5-4e74-b2f3-d7cbf73a7ec2",
    "NewQty": 1,
    "NewOrderId": 1,
    "NewOrderCancelled": true,
    "NewSKU": "sample string 20",
    "NewItemTitle": "sample string 21",
    "NewOrderProcessedOn": "2019-11-28T09:46:00.3005052+00:00",
    "AdditionalCost": 1.1,
    "fkRefundRowId": "15f8c272-8976-47a0-8446-742648fe62f5",
    "RefundedAmount": 1.1,
    "PendingRefund": 1.1,
    "ReturnDate": "2019-11-28T09:46:00.3005052+00:00"
  },
  {
    "pkReturnId": 1,
    "RowType": 0,
    "ReturnReference": "sample string 2",
    "fkOrderId": "5673bf9f-b230-4058-84f6-d939a3888e20",
    "fkOrderItemRowId": "f3cf8d11-95e6-4580-9f12-fb9297e60c1e",
    "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": "8e1ed59b-71ac-482f-9bcb-7f66330abd1f",
    "Scrapped": true,
    "ScrapQty": 1,
    "LastState": "sample string 16",
    "LastDate": "2019-11-28T09:46:00.3005052+00:00",
    "Completed": true,
    "fkNewOrderId": "8984238d-7e2d-47b7-a881-696551eeb70a",
    "fkNewOrderItemRowId": "5cd910f3-4cab-468d-9ac4-633d095c6100",
    "fkNewStockItemId": "90c36643-0ea5-4e74-b2f3-d7cbf73a7ec2",
    "NewQty": 1,
    "NewOrderId": 1,
    "NewOrderCancelled": true,
    "NewSKU": "sample string 20",
    "NewItemTitle": "sample string 21",
    "NewOrderProcessedOn": "2019-11-28T09:46:00.3005052+00:00",
    "AdditionalCost": 1.1,
    "fkRefundRowId": "15f8c272-8976-47a0-8446-742648fe62f5",
    "RefundedAmount": 1.1,
    "PendingRefund": 1.1,
    "ReturnDate": "2019-11-28T09:46:00.3005052+00:00"
  }
]