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

GET | 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=d1365ed1-49ba-4fb3-a62f-0fe0f6a482db&resendItems=[
  {
    "OrderItemRowId": "564a6d86-9a20-40bb-a9f6-4ed7ea104ab8",
    "OrderItemBatchId": 1,
    "Refund": 2.1,
    "Qty": 3,
    "ScrapQty": 1,
    "Batch": {
      "OrderItemBatchId": 1,
      "OrderItemRowId": "da85845b-e7c2-4f9c-b045-d961e1ac4c6c",
      "BatchInventoryId": 3,
      "Quantity": 4,
      "Batch": {
        "BatchId": 1,
        "SKU": "sample string 2",
        "InventoryTrackingType": 3,
        "StockItemId": "576f0df4-be2d-4cdd-9c06-2f780778d4ff",
        "BatchNumber": "sample string 5",
        "ExpiresOn": "2022-09-05T15:10:00.96084+03:00",
        "SellBy": "2022-09-05T15:10:00.96084+03:00",
        "Inventory": [
          {
            "BatchInventoryId": 1,
            "BatchId": 2,
            "StockLocationId": "5a850391-dc89-4542-9e2c-e40f9a4cfd73",
            "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": "cf1eedc8-8235-4bea-b311-51e313de36a5",
    "NewQty": 5
  }
]&despatchLocation=8d872963-b858-4797-a516-0986d3e03dfe&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": "67a4b52f-8c10-4ed9-b891-4707d7a1fb17",
    "fkOrderItemRowId": "dd4a2e2a-7dd2-4f93-9985-142580ac3dd9",
    "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": "04e073c7-dcea-4eda-bca5-13cfb62776c2",
    "Scrapped": true,
    "ScrapQty": 1,
    "LastState": "sample string 16",
    "LastDate": "2022-09-05T15:10:04.3600058+03:00",
    "Completed": true,
    "fkNewOrderId": "677eb352-b62a-4f9c-8d55-a6d2a52d3bac",
    "fkNewOrderItemRowId": "dfac47ad-2fae-4730-9a70-92df62b1a496",
    "fkNewStockItemId": "a68b8472-89cf-43c4-bb29-648ba225c5f5",
    "NewQty": 1,
    "NewOrderId": 1,
    "NewOrderCancelled": true,
    "NewSKU": "sample string 20",
    "NewItemTitle": "sample string 21",
    "NewOrderProcessedOn": "2022-09-05T15:10:04.3600058+03:00",
    "AdditionalCost": 1.1,
    "fkRefundRowId": "d75f938e-335f-46c8-a716-33033c3bf18a",
    "RefundedAmount": 1.1,
    "PendingRefund": 1.1,
    "ReturnDate": "2022-09-05T15:10:04.3600058+03:00"
  }
]