Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

ProcessedOrders /RefundServices

Allows 150 calls per minute

Response: List<RefundInfo>



Use this call to refund one or more services on an order. Please check that any automated refunds are valid prior to calling this method.

Parameters

NameTypeDescription
pkOrderIdGuidThe id of the order to refund services for.
refundItemsList<RefundItem>Refunds for service items

Example Request

The following request format is required for this method.

Endpoint URL

POST https://eu-ext.linnworks.net/api/ProcessedOrders/RefundServices

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.

pkOrderId=340dcb76-1204-4512-9732-fdbdf19b55ad&refundItems=[
  {
    "pkRefundRowId": "a62ae63f-b14c-4283-9e3c-276160f8f43d",
    "IsManualRefund": true,
    "Type": 1,
    "fkOrderItemId": "03ec4af1-8167-4e80-b181-3615c72bfdee",
    "RefundQty": 2,
    "RefundAmount": 3.1,
    "Reason": "sample string 4",
    "ChannelReason": "sample string 5",
    "ChannelReasonSec": "sample string 6"
  }
]

Response

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

[
  {
    "pkRefundRowId": "a99bb8fe-fc6e-4e93-993b-9c147ac15568",
    "SKU": "sample string 1",
    "ItemTitle": "sample string 2",
    "IsItem": true,
    "IsService": true,
    "Amount": 5.1,
    "Reason": "sample string 6",
    "Actioned": true,
    "ActionDate": "2021-07-29T09:24:42.181215+01:00",
    "ReturnReference": "sample string 8",
    "Cost": 1.1,
    "RefundStatus": 0,
    "IgnoredValidation": true,
    "fkOrderItemRowId": "6a4c7081-079e-40a9-8ca8-9611a5f7dfc6",
    "ShouldSerializeChannelReason": false,
    "ChannelReason": "sample string 10",
    "ShouldSerializeChannelReasonSec": false,
    "ChannelReasonSec": "sample string 11"
  }
]