Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

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=3639d909-60c9-4721-b4cb-ef155fbdc2b9&resendItems=[
  {
    "OrderItemRowId": "d37729d8-4d1e-4ea7-9b00-a89c3994f396",
    "OrderItemBatchId": 1,
    "Refund": 2.1,
    "Qty": 3,
    "ScrapQty": 1,
    "Batch": {
      "OrderItemBatchId": 1,
      "OrderItemRowId": "5f15ef39-9c8d-492c-bd3a-95fa7e0260bd",
      "BatchInventoryId": 3,
      "Quantity": 4,
      "Batch": {
        "BatchId": 1,
        "SKU": "sample string 2",
        "InventoryTrackingType": 3,
        "StockItemId": "73f62ccb-fbc4-42e0-95dd-f72278fe7d04",
        "BatchNumber": "sample string 5",
        "ExpiresOn": "2021-07-29T09:24:11.9384764+01:00",
        "SellBy": "2021-07-29T09:24:11.9384764+01:00",
        "Inventory": [
          {
            "BatchInventoryId": 0,
            "BatchId": 0,
            "StockLocationId": "00000000-0000-0000-0000-000000000000",
            "BinRack": "Available",
            "PrioritySequence": 0,
            "Quantity": 0,
            "StockValue": 0.0,
            "StartQuantity": 0,
            "PickedQuantity": 0,
            "BatchStatus": "Available",
            "IsDeleted": false,
            "WarehouseBinrackStandardType": null,
            "WarehouseBinrackTypeName": "Available",
            "InTransfer": null,
            "BinRackId": null,
            "WarehouseBinrackTypeId": null
          }
        ],
        "IsDeleted": true
      },
      "DespatchUnitValue": 0.0,
      "AssignmentType": 0
    },
    "AdditionalCost": 4.1,
    "NewStockItemId": "ebad89a3-a906-4d50-b225-c14f33da8946",
    "NewQty": 5
  }
]&despatchLocation=1eec695b-2bc7-4d1b-817d-07a299265a26&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": "3668c8ee-bd6f-4784-852c-a9a74f01cb0f",
    "fkOrderItemRowId": "419796c2-ceaa-4da3-835e-f382083802c0",
    "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": "5862d609-449e-4dc8-a0e3-67fd4da63175",
    "Scrapped": true,
    "ScrapQty": 1,
    "LastState": "sample string 16",
    "LastDate": "2021-07-29T09:24:42.3832188+01:00",
    "Completed": true,
    "fkNewOrderId": "0cbd1955-3a6b-42c0-a823-1ed0220d4864",
    "fkNewOrderItemRowId": "5fef1ada-a656-498e-a77f-b661c3f5db1e",
    "fkNewStockItemId": "9b7ddbff-15ae-4cdc-8974-e53543935356",
    "NewQty": 1,
    "NewOrderId": 1,
    "NewOrderCancelled": true,
    "NewSKU": "sample string 20",
    "NewItemTitle": "sample string 21",
    "NewOrderProcessedOn": "2021-07-29T09:24:42.3832188+01:00",
    "AdditionalCost": 1.1,
    "fkRefundRowId": "f56f4564-e9f3-4803-8b05-2d8669f96abf",
    "RefundedAmount": 1.1,
    "PendingRefund": 1.1,
    "ReturnDate": "2021-07-29T09:24:42.3832188+01:00"
  }
]