Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ReturnsRefunds /ActionRMABooking

Allows 150 calls per minute

Response: ActionRMABookingResponse



Accepts a booked return or exchange in the system

Parameters

NameTypeDescription
requestActionRMABookingRequestThe request class for this call

Permissions

GlobalPermissions.OrderBook.ReturnsRefunds.ReturnsExchanges.AcceptReturnsExchangesNode

Example Request

The following request format is required for this method.

Endpoint URL

POST https://eu-ext.linnworks.net/api/ReturnsRefunds/ActionRMABooking

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.

request={
  "RMAHeaderId": 1,
  "OrderId": "d06d7487-5913-4a6c-830a-4d2d5470fd43",
  "Request": {
    "caption": "sample string 1",
    "controls": [
      {
        "id": "sample string 1",
        "caption": "sample string 2",
        "description": "sample string 3",
        "type": "sample string 4",
        "value": "sample string 5",
        "group": "sample string 6"
      }
    ]
  }
}

Response

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

{
  "RefundHeaderId": 1,
  "Status": {
    "StatusHeader": 0,
    "StatusDetail": {
      "StatusTag": "sample string 1",
      "StatusDescription": "sample string 2",
      "Actionable": true,
      "ActionDescription": "sample string 4",
      "EditableFields": [
        "sample string 1"
      ]
    }
  },
  "SuccessfullyActioned": true,
  "RMAHeaderId": 1,
  "Items": [
    {
      "RMARowId": 1,
      "RMAHeaderId": 2,
      "Type": 0,
      "Status": {
      },
      "ExternalReference": "sample string 3",
      "CreatedDate": "2022-03-09T13:04:03.8142073+00:00",
      "Actioned": true,
      "ActionedDate": "2022-03-09T13:04:03.8142073+00:00",
      "Deleted": true,
      "ResendQuantity": 7,
      "NewOrderId": "8c932d9c-b867-4af4-83cc-e0c660260109",
      "ValidationError": "sample string 10",
      "Error": "sample string 10",
      "Errors": [
        {
          "RMARowId": 1,
          "ErrorMessage": "sample string 2",
          "DateStamp": "2022-03-09T13:04:03.8142073+00:00",
          "Acknowledged": true
        }
      ],
      "Info": "sample string 11",
      "ExchangeStockItemId": "c4e9f140-52c4-4dbe-83f4-ec546f949060",
      "ExchangeSKU": "sample string 13",
      "ExchangeTitle": "sample string 14",
      "ExchangeQuantity": 15,
      "DespatchLocationId": "4ec08b1a-a18a-4bbd-9514-40bf84906598",
      "AdditionalCost": 17.0,
      "OrderItemRowId": "6a9ef207-0092-4573-993f-3986a49e6d89",
      "ReturnItemSKU": "sample string 19",
      "ReturnItemTitle": "sample string 20",
      "BatchInventoryId": 1,
      "ReturnLocation": "3baf9a46-2797-41ec-a664-0aca2c16b3b8",
      "ReturnQuantity": 22,
      "RefundAmount": 23.0,
      "RefundRowId": "f6e60dfc-f251-4a6f-aef0-787e103f1168",
      "ScrapQuantity": 24,
      "ReasonCategory": "sample string 25",
      "IsFreeText": false,
      "Reason": "sample string 26",
      "ReasonTag": "sample string 27",
      "SubReasonTag": "sample string 28",
      "BinrackOverride": "sample string 29"
    }
  ],
  "Errors": [
    "sample string 1"
  ],
  "Info": [
    "sample string 1"
  ]
}