Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

ReturnsRefunds /UpdateRefund

Allows 150 calls per minute

Response: UpdateRefundResponse



Updates an existing refund in the system

Parameters

NameTypeDescription
requestUpdateRefundRequestThe request class for this call

Permissions

GlobalPermissions.OrderBook.ReturnsRefunds.Refunds.CreateRefundsNode

Example Request

The following request format is required for this method.

Endpoint URL

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

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={
  "RefundHeaderId": 1,
  "OrderId": "513fd917-b6b1-435e-815f-956bec1b0618",
  "RefundLines": [
    {
      "RefundRowId": "3b540261-d711-4794-9f25-efb804a142d0",
      "RemoveFromRefund": true,
      "IsFreeText": false,
      "FreeTextOrNote": "sample string 3",
      "Amount": 4.0,
      "Quantity": 5,
      "ReasonTag": "sample string 6",
      "SubReasonTag": "sample string 7",
      "InsufficientRefundTag": "sample string 8",
      "InsufficientRefundNote": "sample string 9"
    }
  ]
}

Response

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

{
  "RefundHeaderId": 1,
  "RefundReference": "sample string 1",
  "Status": {
    "StatusHeader": 0,
    "StatusDetail": {
      "StatusTag": "sample string 1",
      "StatusDescription": "sample string 2",
      "Actionable": true,
      "ActionDescription": "sample string 4",
      "EditableFields": [
        "sample string 1"
      ]
    }
  },
  "CannotRefundReason": 0,
  "Errors": [
    "sample string 1"
  ],
  "RefundLines": null
}