Back

Search

Search

Methods

Inventory

Orders

ReturnsRefunds /UpdateRMABooking

Response: UpdateRMABookingResponse


Parameters

NameTypeDescription
requestUpdateRMABookingRequest

HTTP Endpoint

Server /ReturnsRefunds / UpdateRMABooking

Permissions

GlobalPermissions.OrderBook.ReturnsRefunds.ReturnsExchanges.CreateReturnsExchangesNode

Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/ReturnsRefunds/UpdateRMABooking 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

request={
  "OrderId": "1a0c8512-b791-43d5-99d7-af6f6bc89e8f",
  "RMAHeaderId": 2,
  "ReturnItems": [
    {
      "RMARowId": 1,
      "RemoveFromBooking": true,
      "OrderItemRowId": "24926474-7087-4db8-8d8a-81ed16194a30",
      "BatchInventoryId": 1,
      "ReturnLocation": "9758a1bf-184d-4f33-aaf1-e3e22690087a",
      "ReturnQuantity": 5,
      "RefundAmount": 6.0,
      "ScrapQuantity": 7,
      "ReasonCategory": "sample string 8",
      "IsFreeText": true,
      "Reason": "sample string 9",
      "ReasonTag": "sample string 10",
      "SubReasonTag": "sample string 11"
    },
    {
      "RMARowId": 1,
      "RemoveFromBooking": true,
      "OrderItemRowId": "24926474-7087-4db8-8d8a-81ed16194a30",
      "BatchInventoryId": 1,
      "ReturnLocation": "9758a1bf-184d-4f33-aaf1-e3e22690087a",
      "ReturnQuantity": 5,
      "RefundAmount": 6.0,
      "ScrapQuantity": 7,
      "ReasonCategory": "sample string 8",
      "IsFreeText": true,
      "Reason": "sample string 9",
      "ReasonTag": "sample string 10",
      "SubReasonTag": "sample string 11"
    }
  ],
  "ExchangeItems": [
    {
      "RMARowId": 1,
      "RemoveFromBooking": true,
      "ExchangeStockItemId": "38ecd1e6-ab50-4769-9ae1-944bec59d1e5",
      "ExchangeQuantity": 4,
      "DespatchLocationId": "c50f9e30-1a5b-4392-9685-57288dd1ba54",
      "AdditionalCost": 6.0,
      "OrderItemRowId": "f0f44790-5465-4a0d-be61-c13b3c23d651",
      "BatchInventoryId": 1,
      "ReturnLocation": "9a743902-272f-465e-ad8f-aac79df64215",
      "ReturnQuantity": 9,
      "RefundAmount": 10.0,
      "ScrapQuantity": 11,
      "ReasonCategory": "sample string 12",
      "IsFreeText": true,
      "Reason": "sample string 13",
      "ReasonTag": "sample string 14",
      "SubReasonTag": "sample string 15"
    },
    {
      "RMARowId": 1,
      "RemoveFromBooking": true,
      "ExchangeStockItemId": "38ecd1e6-ab50-4769-9ae1-944bec59d1e5",
      "ExchangeQuantity": 4,
      "DespatchLocationId": "c50f9e30-1a5b-4392-9685-57288dd1ba54",
      "AdditionalCost": 6.0,
      "OrderItemRowId": "f0f44790-5465-4a0d-be61-c13b3c23d651",
      "BatchInventoryId": 1,
      "ReturnLocation": "9a743902-272f-465e-ad8f-aac79df64215",
      "ReturnQuantity": 9,
      "RefundAmount": 10.0,
      "ScrapQuantity": 11,
      "ReasonCategory": "sample string 12",
      "IsFreeText": true,
      "Reason": "sample string 13",
      "ReasonTag": "sample string 14",
      "SubReasonTag": "sample string 15"
    }
  ],
  "ResendItems": [
    {
      "RMARowId": 1,
      "RemoveFromBooking": true,
      "ResendQuantity": 3,
      "DespatchLocationId": "38531690-ebdc-4642-afe2-2f6eb1f160b5",
      "AdditionalCost": 5.0,
      "OrderItemRowId": "bb637a71-9745-47ba-90b1-ac7778ee54e6",
      "BatchInventoryId": 1,
      "ReturnLocation": "03b98977-656f-4489-9cf8-90647404bd19",
      "ReturnQuantity": 8,
      "RefundAmount": 9.0,
      "ScrapQuantity": 10,
      "ReasonCategory": "sample string 11",
      "IsFreeText": true,
      "Reason": "sample string 12",
      "ReasonTag": "sample string 13",
      "SubReasonTag": "sample string 14"
    },
    {
      "RMARowId": 1,
      "RemoveFromBooking": true,
      "ResendQuantity": 3,
      "DespatchLocationId": "38531690-ebdc-4642-afe2-2f6eb1f160b5",
      "AdditionalCost": 5.0,
      "OrderItemRowId": "bb637a71-9745-47ba-90b1-ac7778ee54e6",
      "BatchInventoryId": 1,
      "ReturnLocation": "03b98977-656f-4489-9cf8-90647404bd19",
      "ReturnQuantity": 8,
      "RefundAmount": 9.0,
      "ScrapQuantity": 10,
      "ReasonCategory": "sample string 11",
      "IsFreeText": true,
      "Reason": "sample string 12",
      "ReasonTag": "sample string 13",
      "SubReasonTag": "sample string 14"
    }
  ]
}

Response

This is an example response. Results may vary depending on your data.

{
  "RMAHeaderID": 1,
  "Items": [
    {
      "RMARowId": 1,
      "Type": 0,
      "Status": {
        "StatusHeader": 0,
        "StatusDetail": {
          "StatusTag": "sample string 1",
          "StatusDescription": "sample string 2",
          "Actionable": true,
          "ActionDescription": "sample string 4",
          "EditableFields": [
            "sample string 1",
            "sample string 2"
          ]
        }
      },
      "ExternalReference": "sample string 2",
      "Actioned": true,
      "ActionedDate": "2018-10-03T11:12:35.1349569+01:00",
      "Deleted": true,
      "ResendQuantity": 5,
      "NewOrderId": "8807aa7f-7920-4525-9073-bdef84aeb283",
      "Error": "sample string 7",
      "Info": "sample string 8",
      "ExchangeStockItemId": "d87c58a2-5415-49d3-a440-070fe5c75033",
      "ExchangeQuantity": 10,
      "DespatchLocationId": "980a91ff-adb1-4a80-8c68-20049f0da5a6",
      "AdditionalCost": 12.0,
      "OrderItemRowId": "31b86a08-70d9-4693-962b-e068573780ee",
      "BatchInventoryId": 1,
      "ReturnLocation": "2bea6f6b-1cc0-4738-84b4-89cc2ffb3e89",
      "ReturnQuantity": 15,
      "RefundAmount": 16.0,
      "ScrapQuantity": 17,
      "ReasonCategory": "sample string 18",
      "IsFreeText": true,
      "Reason": "sample string 19",
      "ReasonTag": "sample string 20",
      "SubReasonTag": "sample string 21"
    },
    {
      "RMARowId": 1,
      "Type": 0,
      "Status": {
        "StatusHeader": 0,
        "StatusDetail": {
          "StatusTag": "sample string 1",
          "StatusDescription": "sample string 2",
          "Actionable": true,
          "ActionDescription": "sample string 4",
          "EditableFields": [
            "sample string 1",
            "sample string 2"
          ]
        }
      },
      "ExternalReference": "sample string 2",
      "Actioned": true,
      "ActionedDate": "2018-10-03T11:12:35.1349569+01:00",
      "Deleted": true,
      "ResendQuantity": 5,
      "NewOrderId": "8807aa7f-7920-4525-9073-bdef84aeb283",
      "Error": "sample string 7",
      "Info": "sample string 8",
      "ExchangeStockItemId": "d87c58a2-5415-49d3-a440-070fe5c75033",
      "ExchangeQuantity": 10,
      "DespatchLocationId": "980a91ff-adb1-4a80-8c68-20049f0da5a6",
      "AdditionalCost": 12.0,
      "OrderItemRowId": "31b86a08-70d9-4693-962b-e068573780ee",
      "BatchInventoryId": 1,
      "ReturnLocation": "2bea6f6b-1cc0-4738-84b4-89cc2ffb3e89",
      "ReturnQuantity": 15,
      "RefundAmount": 16.0,
      "ScrapQuantity": 17,
      "ReasonCategory": "sample string 18",
      "IsFreeText": true,
      "Reason": "sample string 19",
      "ReasonTag": "sample string 20",
      "SubReasonTag": "sample string 21"
    }
  ],
  "Errors": [
    "sample string 1",
    "sample string 2"
  ],
  "Info": [
    "sample string 1",
    "sample string 2"
  ]
}