Back

Search

Search

Methods

Inventory

Orders

ReturnsRefunds /ActionRMABooking

Response: ActionRMABookingResponse



Accepts a booked return or exchange in the system

Parameters

NameTypeDescription
requestActionRMABookingRequestThe request class for this call

HTTP Endpoint

Server /ReturnsRefunds / ActionRMABooking

Permissions

GlobalPermissions.OrderBook.ReturnsRefunds.ReturnsExchanges.AcceptReturnsExchangesNode

Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/ReturnsRefunds/ActionRMABooking 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={
  "RMAHeaderId": 1,
  "OrderId": "77097413-560a-415f-9eef-e27695bcc684",
  "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"
      },
      {
        "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 response. Results may 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",
        "sample string 2"
      ]
    }
  },
  "RMAHeaderId": 1,
  "Items": [
    {
      "RMARowId": 1,
      "RMAHeaderId": 2,
      "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 3",
      "CreatedDate": "2019-10-09T15:11:41.8740365+01:00",
      "Actioned": true,
      "ActionedDate": "2019-10-09T15:11:41.8740365+01:00",
      "Deleted": true,
      "ResendQuantity": 7,
      "NewOrderId": "a6d26cf9-33cd-40ef-a879-0d7f647ce7b5",
      "ValidationError": "sample string 10",
      "Error": "sample string 10",
      "Errors": [
        {
          "RMARowId": 1,
          "ErrorMessage": "sample string 2",
          "DateStamp": "2019-10-09T15:11:41.8740365+01:00",
          "Acknowledged": true
        },
        {
          "RMARowId": 1,
          "ErrorMessage": "sample string 2",
          "DateStamp": "2019-10-09T15:11:41.8740365+01:00",
          "Acknowledged": true
        }
      ],
      "Info": "sample string 11",
      "ExchangeStockItemId": "6bff994f-30a4-4a99-b358-0e20d83d0c04",
      "ExchangeSKU": "sample string 13",
      "ExchangeTitle": "sample string 14",
      "ExchangeQuantity": 15,
      "DespatchLocationId": "5ec3bde1-7f7f-4352-ad3e-29f72d6b5a33",
      "AdditionalCost": 17.0,
      "OrderItemRowId": "f5c40818-0f54-492d-bcea-ce4d60d79faf",
      "ReturnItemSKU": "sample string 19",
      "ReturnItemTitle": "sample string 20",
      "BatchInventoryId": 1,
      "ReturnLocation": "009a5963-7371-4856-af68-dfa6e22ce85f",
      "ReturnQuantity": 22,
      "RefundAmount": 23.0,
      "RefundRowId": "f13b7cfe-b832-4d2f-9c28-21f1b49cd071",
      "ScrapQuantity": 24,
      "ReasonCategory": "sample string 25",
      "IsFreeText": true,
      "Reason": "sample string 26",
      "ReasonTag": "sample string 27",
      "SubReasonTag": "sample string 28",
      "BinrackOverride": "sample string 29"
    },
    {
      "RMARowId": 1,
      "RMAHeaderId": 2,
      "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 3",
      "CreatedDate": "2019-10-09T15:11:41.8740365+01:00",
      "Actioned": true,
      "ActionedDate": "2019-10-09T15:11:41.8740365+01:00",
      "Deleted": true,
      "ResendQuantity": 7,
      "NewOrderId": "a6d26cf9-33cd-40ef-a879-0d7f647ce7b5",
      "ValidationError": "sample string 10",
      "Error": "sample string 10",
      "Errors": [
        {
          "RMARowId": 1,
          "ErrorMessage": "sample string 2",
          "DateStamp": "2019-10-09T15:11:41.8740365+01:00",
          "Acknowledged": true
        },
        {
          "RMARowId": 1,
          "ErrorMessage": "sample string 2",
          "DateStamp": "2019-10-09T15:11:41.8740365+01:00",
          "Acknowledged": true
        }
      ],
      "Info": "sample string 11",
      "ExchangeStockItemId": "6bff994f-30a4-4a99-b358-0e20d83d0c04",
      "ExchangeSKU": "sample string 13",
      "ExchangeTitle": "sample string 14",
      "ExchangeQuantity": 15,
      "DespatchLocationId": "5ec3bde1-7f7f-4352-ad3e-29f72d6b5a33",
      "AdditionalCost": 17.0,
      "OrderItemRowId": "f5c40818-0f54-492d-bcea-ce4d60d79faf",
      "ReturnItemSKU": "sample string 19",
      "ReturnItemTitle": "sample string 20",
      "BatchInventoryId": 1,
      "ReturnLocation": "009a5963-7371-4856-af68-dfa6e22ce85f",
      "ReturnQuantity": 22,
      "RefundAmount": 23.0,
      "RefundRowId": "f13b7cfe-b832-4d2f-9c28-21f1b49cd071",
      "ScrapQuantity": 24,
      "ReasonCategory": "sample string 25",
      "IsFreeText": true,
      "Reason": "sample string 26",
      "ReasonTag": "sample string 27",
      "SubReasonTag": "sample string 28",
      "BinrackOverride": "sample string 29"
    }
  ],
  "Errors": [
    "sample string 1",
    "sample string 2"
  ],
  "Info": [
    "sample string 1",
    "sample string 2"
  ]
}