Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ReturnsRefunds /UpdateRefund

Allows 150 calls per minute

Response: UpdateRefundResponse



Updates an existing refund in the system. Requires create and delete permissions

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

PUT | 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": "9c55364e-e00c-42a4-950d-729236cc4b95",
  "RefundLines": [
    {
      "RefundRowId": "f1c795d7-764a-40e2-b875-65e66f948f85",
      "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
}