Endpoint - Refund

Endpoint which is called with details of an order refund within Linnworks.

This endpoint is used when the customer refunds an order in Linnworks.net.

Request

Post

OrderRefundRequest

Field NameTypeDescription
AuthorizationTokenStringAuthorization Token from the customers integration.
RefundOrderRefundInformation about the order/items to refund. See OrderRefund

OrderRefund

Field NameTypeDescription
ItemsOrderRefundItem[]A collection of order items to refund on the marketplace. See OrderRefundItem
ReferenceNumberStringThe order reference number within Linnworks.
ExternalReferenceStringThe external reference number within Linnworks. This is usually the marketplace reference.
RefundShippingAmountDecimalThe amount to refund for shipping.

OrderRefundItem

Field NameTypeDescription
SKUStringThe unique Linnworks SKU of the item.
OrderLineNumberStringThe order item number for this item. This is usually the marketplace ID for the order item.
RefundAmountDecimalThe amount to submit as a refund for this item.
ReasonStringIf the marketplace supports tag-based refund reasons, this field will contain the selected tag. Otherwise, it will include the freetext reason submitted by the customer.
SecondaryReasonStringIf the marketplace supports tag-based refund reasons, this field will contain the selected sub-tag.

Sample

{
  "AuthorizationToken": "0dfdbaf3e4d5434f825e774e31bcc148",
  "Refund": {
    "ReferenceNumber": "XYZ-1",
    "ExternalReference": "EXT-XYZ-1",
    "RefundShippingAmount": 0,
    "Items": [
      {
        "OrderLineNumber": "010045",
        "SKU": "ITEM-001",
        "RefundAmount": 49.99,
        "Reason": "Broken",
        "SecondaryReason": ""
      }
    ]
  }
}

Response

OrderRefundResponse

Field NameTypeDescription
RefundReferenceStringReturns the created refund reference from the marketplace.
ErrorStringDefines if there was an error with the request and returns it.

Sample

{
  "RefundReference": "REF-001"
}
{
  "Error": "Could not process refund.",
  "RefundReference": "REF-001"
}