Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ProcessedOrders /CreateResend

Allows 150 calls per minute

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

Example Request

The following request format is required for this method.

Endpoint URL

POST https://eu-ext.linnworks.net/api/ProcessedOrders/CreateResend

Headers

Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

Request Body

This is an example of the request structure. Results will vary depending on your data.

pkOrderId=2ca1c77e-f54b-4803-9b88-90bbe717deb1&resendItems=[
  {
    "OrderItemRowId": "127fa198-512b-496f-b04f-c9d8c96476ac",
    "OrderItemBatchId": 1,
    "Refund": 2.1,
    "Qty": 3,
    "ScrapQty": 1,
    "Batch": {
      "OrderItemBatchId": 1,
      "OrderItemRowId": "bce25eeb-69d9-4105-9d30-c36dec6b8564",
      "BatchInventoryId": 3,
      "Quantity": 4,
      "Batch": {
        "BatchId": 1,
        "SKU": "sample string 2",
        "InventoryTrackingType": 3,
        "StockItemId": "5ab93527-510a-4fd3-b3be-d93aba786db1",
        "BatchNumber": "sample string 5",
        "ExpiresOn": "2022-03-09T13:04:02.4429594+00:00",
        "SellBy": "2022-03-09T13:04:02.4429594+00:00",
        "Inventory": [
          {
            "BatchInventoryId": 1,
            "BatchId": 2,
            "StockLocationId": "33da7b01-2a02-4b6e-a800-fff08f99fbe8",
            "BinRack": "sample string 4",
            "PrioritySequence": 5,
            "Quantity": 6,
            "StockValue": 7.0,
            "StartQuantity": 8,
            "PickedQuantity": 9,
            "BatchStatus": "Available",
            "IsDeleted": true,
            "WarehouseBinrackStandardType": 1,
            "WarehouseBinrackTypeName": "sample string 12",
            "InTransfer": 1,
            "BinRackId": 1,
            "WarehouseBinrackTypeId": 1
          }
        ],
        "IsDeleted": true
      },
      "DespatchUnitValue": 0.0,
      "AssignmentType": 0
    },
    "AdditionalCost": 4.1,
    "NewStockItemId": "633ff4df-2b10-40a6-a23d-4ecb4c67fad7",
    "NewQty": 5
  }
]&despatchLocation=439ac467-4c00-49c2-a105-f087c565b163&category=sample string 1&reason=sample string 1&additionalCost=1.1

Response

This is an example of the response JSON. Results will vary depending on your data.

[
  {
    "pkReturnId": 1,
    "RowType": 0,
    "ReturnReference": "sample string 2",
    "fkOrderId": "4966ce9e-637e-4473-8972-fbc727933ecf",
    "fkOrderItemRowId": "90795d70-c031-4d14-84e7-be877cd66af1",
    "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": "c91691a1-227c-41cf-a421-96643c628877",
    "Scrapped": true,
    "ScrapQty": 1,
    "LastState": "sample string 16",
    "LastDate": "2022-03-09T13:04:12.3177034+00:00",
    "Completed": true,
    "fkNewOrderId": "6b7259a6-48e0-43cb-ab29-884d89569511",
    "fkNewOrderItemRowId": "020d6863-62f3-46b6-9636-aade4a0b5066",
    "fkNewStockItemId": "57547dd4-bfd1-4a32-83b2-05420e0db13f",
    "NewQty": 1,
    "NewOrderId": 1,
    "NewOrderCancelled": true,
    "NewSKU": "sample string 20",
    "NewItemTitle": "sample string 21",
    "NewOrderProcessedOn": "2022-03-09T13:04:12.3177034+00:00",
    "AdditionalCost": 1.1,
    "fkRefundRowId": "115580ca-76aa-4fba-b2b8-2ee301f737eb",
    "RefundedAmount": 1.1,
    "PendingRefund": 1.1,
    "ReturnDate": "2022-03-09T13:04:12.3187006+00:00"
  }
]